/* ==========================================================================
   Gydon marketing site
   Palette and radii are taken from the product's own design tokens in
   public/css/app.css so the site and the software look like one thing.
   ========================================================================== */

:root {
  --navy:        #0B1F33;
  --navy-2:      #102A45;
  --navy-3:      #17385A;
  --accent:      #2D5BD7;
  --accent-hover:#2348B8;
  --accent-soft: #EAF0FD;
  --accent-light:#8FB4FF;   /* links on navy: 8:1 against --navy */

  --ink:         #14243A;
  --ink-muted:   #4A5A70;   /* 7:1 on white */
  --ink-faint:   #6B7A8F;

  --paper:       #FFFFFF;
  --paper-alt:   #F5F8FC;
  --line:        #E1E8F1;

  --ok:          #15935A;
  --warn:        #B7791F;
  --bad:         #C53434;

  --radius:      12px;
  --radius-lg:   18px;
  --shadow-sm:   0 1px 2px rgba(15,27,45,.06), 0 1px 3px rgba(15,27,45,.05);
  --shadow-md:   0 6px 18px rgba(15,27,45,.09), 0 2px 6px rgba(15,27,45,.05);
  --shadow-lg:   0 24px 60px rgba(11,31,51,.28);

  --wrap:        1180px;
  --gap:         clamp(1.25rem, 3vw, 2.5rem);

  --font: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* --------------------------------------------------------------- base ---- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .6em; font-weight: 650; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
h4 { font-size: 1.0625rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }

strong { font-weight: 650; }

code, kbd { font-family: var(--font-mono); font-size: .875em; }

/* Anything focused must be plainly visible, and must not hide behind the
   sticky header (WCAG 2.2, focus not obscured). */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
:target, h2[id], h3[id] { scroll-margin-top: 6.5rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--paper);
  color: var(--ink);
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ------------------------------------------------------------- header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 74px;
}

.brand { flex: 0 0 auto; display: flex; align-items: center; padding: .35rem 0; }
.brand img { width: 190px; height: auto; }

.primary-nav { margin-left: auto; }

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  padding: 0;
}
.nav-list > li { margin: 0; position: relative; }

.nav-list > li > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem .8rem;
  color: rgba(255,255,255,.86);
  text-decoration: none;
  font-size: .96rem;
  font-weight: 500;
  border-radius: 8px;
}
.nav-list > li > a:hover { color: #fff; background: rgba(255,255,255,.09); }
.nav-list > li > a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.13); }

.subnav {
  position: absolute;
  top: calc(100% + .4rem);
  left: 0;
  min-width: 262px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: .5rem;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s;
}
.has-children:hover .subnav,
.has-children:focus-within .subnav { opacity: 1; visibility: visible; transform: none; }
.subnav li { margin: 0; }
.subnav a {
  display: block;
  padding: .55rem .7rem;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: .94rem;
}
.subnav a:hover { background: var(--accent-soft); color: var(--accent-hover); }

.nav-cta { margin-left: .6rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding: .5rem .9rem;
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  font: inherit;
  font-size: .95rem;
  cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 4px; }
.nav-toggle-bars span { display: block; width: 18px; height: 2px; background: currentColor; }

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .7rem 1.4rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: var(--paper-alt); color: var(--ink); border-color: #cfdae8; }

.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ------------------------------------------------------------- sections -- */

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--paper-alt); }
.section-navy { background: var(--navy); color: rgba(255,255,255,.86); }
.section-navy h2, .section-navy h3, .section-navy h4 { color: #fff; }
.section-navy a { color: var(--accent-light); }
.section-navy a:hover { color: #fff; }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.centred { margin-inline: auto; text-align: center; }

.eyebrow {
  display: block;
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .8rem;
}
.section-navy .eyebrow { color: var(--accent-light); }

.lead { font-size: clamp(1.075rem, 1.6vw, 1.25rem); color: var(--ink-muted); }
.section-navy .lead { color: rgba(255,255,255,.8); }

/* ----------------------------------------------------------------- hero -- */

.hero {
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(45,91,215,.36), transparent 62%),
    linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 62%);
  color: #fff;
  padding: clamp(3.25rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { color: rgba(255,255,255,.82); max-width: 54ch; font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
.hero-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.hero-actions { margin-top: 1.9rem; }
.hero-note { margin-top: 1.1rem; font-size: .92rem; color: rgba(255,255,255,.66); }
.hero-shot { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* Screenshots sit in a light frame so a pale UI does not bleed into the page. */
.shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.shot img { width: 100%; display: block; }
.shot-dark { border-color: rgba(255,255,255,.14); box-shadow: var(--shadow-lg); }


.shot-caption {
  font-size: .9rem;
  color: var(--ink-faint);
  margin-top: .85rem;
}
.section-navy .shot-caption { color: rgba(255,255,255,.62); }

/* ---------------------------------------------------------------- grids -- */

.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-muted); font-size: .98rem; }
.card p:last-child { margin-bottom: 0; }

.section-navy .card {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.12);
  box-shadow: none;
}
.section-navy .card p { color: rgba(255,255,255,.76); }

.card-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-navy .card-icon { background: rgba(143,180,255,.16); color: var(--accent-light); }
.card-icon svg { width: 21px; height: 21px; }

/* --------------------------------------------------- alternating feature -- */

.feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.feature + .feature { border-top: 1px solid var(--line); }
.section-navy .feature + .feature { border-top-color: rgba(255,255,255,.12); }
.feature-reverse .feature-text { order: 2; }

.tick-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.tick-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .7rem;
  color: var(--ink-muted);
}
.section-navy .tick-list li { color: rgba(255,255,255,.8); }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  background: var(--ok);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.5 4.5 6.5 11.5 2.5 7.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.5 4.5 6.5 11.5 2.5 7.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ------------------------------------------------------- module directory -- */

.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.module {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
}
.module h3 { font-size: 1.0625rem; margin-bottom: .35rem; }
.module p { font-size: .92rem; color: var(--ink-muted); margin: 0; }
.module-key {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--ink-faint);
  margin-top: .6rem;
}

.group-title {
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 2.5rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
}
.group-title:first-of-type { margin-top: 0; }

/* --------------------------------------------------------- device frames -- */

.devices {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: flex-end;
  justify-content: center;
}

.device-phone { flex: 0 0 auto; }

/* The tablet has to be allowed to shrink, or its 1280px screenshot sets the
   width of the flex item and pushes the frame out of its column. */
.device-tablet { flex: 1 1 320px; min-width: 0; max-width: 720px; }

.device-phone .bezel {
  background: #1B1B1F;
  border-radius: 30px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  width: 258px;
}
.device-phone .bezel img { border-radius: 21px; width: 100%; }

.device-tablet .bezel {
  background: #1B1B1F;
  border-radius: 22px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 720px;
}
.device-tablet .bezel img { border-radius: 12px; width: 100%; }

.device-label {
  text-align: center;
  margin-top: .9rem;
  font-size: .88rem;
  color: var(--ink-faint);
}
.section-navy .device-label { color: rgba(255,255,255,.66); }

/* ----------------------------------------------------------------- spec -- */

.spec { border-top: 1px solid var(--line); margin: 0; }
.section-navy .spec { border-top-color: rgba(255,255,255,.14); }
.spec > div {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: 1.5rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}
.section-navy .spec > div { border-bottom-color: rgba(255,255,255,.14); }
.spec dt { font-weight: 600; }
.spec dd { margin: 0; color: var(--ink-muted); }
.section-navy .spec dd { color: rgba(255,255,255,.78); }

/* ------------------------------------------------------------------ CTA -- */

.cta-band {
  background: linear-gradient(135deg, var(--accent) 0%, #1E3F9E 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 5vw, 3.5rem);
  text-align: center;
}
.cta-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 52ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.75rem; }
.cta-band .btn-secondary { background: #fff; border-color: #fff; }

/* ------------------------------------------------------------------ FAQ -- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-weight: 600;
  font-size: 1.075rem;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: .35rem; top: 1.5rem;
  width: 12px; height: 12px;
  border-right: 2px solid var(--ink-faint);
  border-bottom: 2px solid var(--ink-faint);
  transform: rotate(45deg);
  transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.75rem; }
.faq .faq-body { padding: 0 0 1.35rem; color: var(--ink-muted); max-width: 58rem; }

/* ---------------------------------------------------------------- forms -- */

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}

.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .96rem; }
.field .hint { display: block; font-weight: 400; color: var(--ink-faint); font-size: .87rem; margin-top: .15rem; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: .65rem .85rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #C9D6E5;
  border-radius: 9px;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }

.field-check { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: 1.15rem; }
.field-check input { width: 22px; height: 22px; margin-top: .15rem; flex: 0 0 auto; }
.field-check label { font-weight: 400; font-size: .95rem; margin: 0; }

.required { color: var(--bad); }

.form-legal { font-size: .88rem; color: var(--ink-faint); margin-top: 1.25rem; }

.honeypot { position: absolute; left: -9999px; }

/* --------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.74);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--gap);
}
.footer-brand img { margin-bottom: 1.1rem; }
.footer-brand p { max-width: 34ch; }
.footer-contact a { color: var(--accent-light); text-decoration: none; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }

.footer-col h2 {
  font-size: .8rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: .9rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }

.footer-legal {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}
.footer-legal p { margin-bottom: .4rem; }

/* -------------------------------------------------------- cookie banner -- */

.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 150;
  background: var(--navy);
  color: rgba(255,255,255,.86);
  border-top: 3px solid var(--accent);
  padding: 1.35rem 0;
  box-shadow: 0 -8px 30px rgba(0,0,0,.25);
}
.cookie-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.75rem; align-items: center; }
.cookie-text h2 { font-size: 1.05rem; color: #fff; margin-bottom: .35rem; }
.cookie-text p { font-size: .92rem; margin: 0; max-width: 72ch; }
.cookie-text a { color: var(--accent-light); }
/* Accepting and rejecting must be equally easy and equally prominent, so the
   two buttons are deliberately identical. One click each, same size, same
   weight. Do not make accept the "primary" one. */
.cookie-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.cookie-actions .btn {
  min-height: 46px;
  min-width: 15rem;
  flex: 1 1 auto;
  font-size: .95rem;
  white-space: nowrap;
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.cookie-actions .btn:hover { background: #E7EDF6; color: var(--ink); border-color: #E7EDF6; }

/* ----------------------------------------------------------------- prose -- */

.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.9rem; }
.prose ul { color: var(--ink-muted); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 650; background: var(--paper-alt); }

.notice {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.35rem;
  margin: 1.75rem 0;
}
.notice p:last-child { margin-bottom: 0; }

/* Wide content must scroll in its own box rather than the page. */
.scroll-x { overflow-x: auto; }

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 1020px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--navy-2);
    border-top: 1px solid rgba(255,255,255,.1);
    padding: .85rem 1.25rem 1.5rem;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  .primary-nav.is-open { display: block; }
  .header-inner { position: relative; flex-wrap: wrap; }

  .nav-list { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav-list > li > a { min-height: 48px; }
  .subnav {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 .5rem .85rem;
  }
  .subnav a { color: rgba(255,255,255,.72); min-height: 42px; display: flex; align-items: center; }
  .subnav a:hover { background: rgba(255,255,255,.08); color: #fff; }
  .nav-cta { margin: .75rem 0 0; }
  .nav-cta .btn { width: 100%; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature-reverse .feature-text { order: 0; }
  .spec > div { grid-template-columns: 1fr; gap: .2rem; }
  .cookie-inner { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .grid-4, .module-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .cta-band .btn-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .site-header, .site-footer, .cookie-banner, .btn { display: none !important; }
}
