/* Roamie Data Works: site styles.
   Colours, fonts and spacing are set once here as variables.
   Deep navy and blue-grey, blended in the dark bands; light blue-grey
   paper between them. One moment of motion: the hero chart line draws in. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --abyss: #0F1E33;         /* deepest navy: header, footer, dark bands */
  --deep: #15294A;          /* middle of the blends */
  --harbour: #1E4170;       /* lightest blue in the blends */
  --steel: #4F5F74;         /* secondary text on light, 5.8:1 */
  --mist: #EEF2F7;          /* page background */
  --sheet: #FFFFFF;         /* panels, form */
  --rule: #D3DCE7;          /* light lines */
  --ink: #142235;           /* main text, 14:1 on mist */
  --fog: #B8C6D8;           /* body text on dark, 9.6:1 on abyss */
  --ice: #8EC1F5;           /* accent on dark: text, chart line, light button */
  --signal: #2563C9;        /* button on light, white text 5.7:1 */
  --signal-dark: #1B4E9E;
  --error: #A3201B;
  --error-light: #FFB4AE;   /* error text on dark */
  --success: #1E6B3A;
  --font-head: "Archivo", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --wrap: 72rem;
  --gap: clamp(1rem, 4vw, 2rem);
  --blend: radial-gradient(120% 90% at 85% 0%, var(--harbour) 0%, transparent 60%),
           radial-gradient(90% 80% at 0% 100%, var(--deep) 0%, transparent 70%),
           var(--abyss);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}
h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
}
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 750; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.005em; }
p { margin: 0 0 1rem; }

a { color: var(--signal-dark); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem; top: -10rem;
  z-index: 100;
  background: var(--sheet);
  color: var(--ink);
  padding: 0.75rem 1rem;
  font-weight: 600;
  border: 2px solid var(--ink);
  border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

/* Buttons: signal blue on light backgrounds, ice blue on dark ones */
.btn {
  display: inline-block;
  background: var(--signal);
  color: #FFFFFF;
  font-family: var(--font-head);
  font-weight: 650;
  font-size: 1.05rem;
  line-height: 1.3;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border: 2px solid var(--signal);
  border-radius: 8px;
  cursor: pointer;
  min-height: 44px;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--signal-dark); border-color: var(--signal-dark); color: #FFFFFF; }
.btn-small { font-size: 0.95rem; padding: 0.55rem 1rem; }

.site-header .btn,
.hero .btn,
.section-dark .btn {
  background: var(--ice);
  border-color: var(--ice);
  color: var(--abyss);
}
.site-header .btn:hover,
.hero .btn:hover,
.section-dark .btn:hover { background: #FFFFFF; border-color: #FFFFFF; color: var(--abyss); }
/* The form is a white sheet, so its button goes back to signal blue */
.section-dark .form .btn { background: var(--signal); border-color: var(--signal); color: #FFFFFF; }
.section-dark .form .btn:hover { background: var(--signal-dark); border-color: var(--signal-dark); }

/* Header */
.site-header {
  background: var(--abyss);
  color: #FFFFFF;
  border-bottom: 1px solid rgba(142, 193, 245, 0.18);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--ice); }
.site-header :focus-visible,
.hero :focus-visible,
.section-dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--ice); }
.section-dark .form :focus-visible { outline-color: var(--signal); }
.site-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
}
.site-nav a:not(.btn) {
  color: var(--fog);
  text-decoration: none;
  display: inline-block;
  padding: 0.6rem 0;
}
.site-nav a:not(.btn):hover { color: #FFFFFF; text-decoration: underline; }

@media (max-width: 47.99rem) {
  .site-nav { width: 100%; }
  .site-nav ul { gap: 0.25rem 1rem; }
  .site-nav .nav-cta { margin-left: auto; }
}
@media (min-width: 48rem) {
  .site-header { position: sticky; top: 0; z-index: 50; }
  [id] { scroll-margin-top: 5.5rem; }
}

/* Sections */
.section { padding: clamp(3.5rem, 9vw, 6rem) 0; }
.section > .wrap > h2 { margin-bottom: 2rem; }
#about { background: var(--sheet); }
.section-dark {
  background: var(--blend);
  color: var(--fog);
}
.section-dark h2,
.section-dark h3 { color: #FFFFFF; }
.section-dark a:not(.btn) { color: var(--ice); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(142, 193, 245, 0.07) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(142, 193, 245, 0.07) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--blend);
  color: var(--fog);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 9vw, 6.5rem);
}
.hero-chart {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 70%;
}
.hero-chart-line { stroke: var(--ice); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.hero-chart-ghost { stroke: var(--fog); stroke-opacity: 0.25; stroke-width: 1.5; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: no-preference) {
  .hero-chart-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1.8s 0.2s cubic-bezier(0.45, 0, 0.2, 1) forwards;
  }
  .hero-chart-area { opacity: 0; animation: fade 1s 1.4s ease-out forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { color: #FFFFFF; max-width: 12ch; }
.hero-sub {
  font-size: clamp(1.1rem, 2.2vw, 1.25rem);
  line-height: 1.6;
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero-text a:not(.btn) { color: var(--ice); }
.hero-shot { margin: 0; }
.shot {
  border-radius: 10px;
  border: 1px solid rgba(142, 193, 245, 0.35);
  background: var(--sheet);
  box-shadow: 0 0 0 8px rgba(142, 193, 245, 0.08), 0 30px 60px -20px rgba(4, 10, 20, 0.7);
}
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: 1fr 1.15fr; }
}

/* Problems I fix */
.problems {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}
.problems li {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.75rem 1.5rem 1.5rem;
}
.problems .icon {
  display: block;
  width: 2.75rem; height: 2.75rem;
  padding: 0.55rem;
  margin-bottom: 1.25rem;
  border-radius: 10px;
  color: #FFFFFF;
  background: linear-gradient(145deg, var(--harbour), var(--abyss));
}
.problems p { margin: 0; color: var(--steel); }

/* Packages: on a dark band, price set large in figures that line up */
.packages {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  background: rgba(142, 193, 245, 0.2);
  border: 1px solid rgba(142, 193, 245, 0.2);
  border-radius: 14px;
  overflow: hidden;
}
.packages li {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  background: rgba(15, 30, 51, 0.92);
}
.packages .desc { flex-grow: 1; margin-bottom: 1.5rem; }
.price {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(142, 193, 245, 0.25);
  font-family: var(--font-head);
  font-weight: 750;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ice);
  white-space: nowrap;
}
.package-notes { margin-top: 1.75rem; }
.package-notes p { margin-bottom: 0.5rem; }
.package-notes p:first-child { font-weight: 650; color: #FFFFFF; }

/* How it works: four stops joined by a line, a real sequence */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0; padding: 0;
  display: grid;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 2rem 4rem;
  color: var(--steel);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0; left: 0;
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--harbour), var(--abyss));
  color: #FFFFFF;
  font-family: var(--font-head);
  font-weight: 800;
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--mist);
  z-index: 1;
}
.steps li::after {
  content: "";
  position: absolute;
  left: calc(1.375rem - 1px);
  top: 2.75rem; bottom: 0;
  border-left: 2px solid var(--rule);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps strong {
  font-family: var(--font-head);
  display: block;
  font-size: 1.2rem;
  color: var(--ink);
  padding-top: 0.4rem;
  margin-bottom: 0.25rem;
}
@media (min-width: 48rem) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
  .steps li { padding: 4rem 0 0; }
  .steps li::after {
    left: 2.75rem; right: -1.75rem;
    top: calc(1.375rem - 1px); bottom: auto;
    border-left: 0;
    border-top: 2px solid var(--rule);
  }
  .steps li:last-child::after { display: none; }
  .steps strong { padding-top: 0; }
}

/* About */
.about {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.about figure { margin: 0; max-width: 18rem; }
.about img { border-radius: 12px; border: 1px solid var(--rule); }
.about p { max-width: 38rem; font-size: 1.15rem; line-height: 1.7; margin: 0; }
@media (min-width: 48rem) {
  .about { grid-template-columns: 16rem 1fr; gap: 3.5rem; }
}

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 60rem) {
  .contact-grid { grid-template-columns: 1fr 1.3fr; gap: 4rem; }
}
.contact-direct p { margin-bottom: 1.25rem; font-size: 1.1rem; }
.contact-direct .email { font-weight: 600; overflow-wrap: anywhere; }

.form {
  background: var(--sheet);
  color: var(--ink);
  border-radius: 14px;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  box-shadow: 0 30px 60px -25px rgba(4, 10, 20, 0.6);
}
.section-dark .form a:not(.btn) { color: var(--signal-dark); }
.section-dark .form h3 { color: var(--error); }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field .hint { font-weight: 400; color: var(--steel); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #FFFFFF;
  border: 2px solid #8A97A8;
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  min-height: 44px;
}
.field input:hover, .field textarea:hover { border-color: var(--steel); }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--signal); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { display: block; color: var(--error); font-weight: 600; margin-top: 0.35rem; }
.field-error:empty { display: none; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-actions p { margin: 0; flex: 1 1 14rem; font-size: 0.95rem; color: var(--steel); }
.form-status { margin: 1.25rem 0 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.form-status.is-success { color: var(--success); }
.error-summary {
  border: 2px solid var(--error);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.error-summary[hidden] { display: none; }
.error-summary h3 { color: var(--error); font-size: 1.05rem; }
.error-summary ul { margin: 0; padding-left: 1.25rem; }
.error-summary a { color: var(--error); font-weight: 600; }

/* Plain pages (privacy, cookies, accessibility, 404) */
.prose { max-width: 44rem; }
.prose h1 { font-size: clamp(2.1rem, 6vw, 3.25rem); }
.prose h2 { font-size: 1.45rem; margin-top: 2.25rem; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1.25rem; font-size: 0.97rem; background: var(--sheet); }
.prose th, .prose td { text-align: left; vertical-align: top; border: 1px solid var(--rule); padding: 0.6rem 0.75rem; }
.prose th { background: #E3E9F1; }
.table-scroll { overflow-x: auto; }
.updated { color: var(--steel); }

/* Footer */
.site-footer {
  background: var(--abyss);
  color: var(--fog);
  padding: 2.75rem 0;
  font-size: 0.97rem;
  border-top: 1px solid rgba(142, 193, 245, 0.18);
}
.site-footer a { color: #FFFFFF; }
.site-footer p { margin-bottom: 0.6rem; }
.site-footer address { font-style: normal; margin-bottom: 0.6rem; }
.footer-links { list-style: none; margin: 1rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-links a { display: inline-block; padding: 0.3rem 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .skip-link, .form, .hero-chart { display: none; }
  body, .hero, .section-dark { background: #FFFFFF; color: var(--ink); }
  .hero h1, .section-dark h2, .section-dark h3, .price { color: var(--ink); }
}
