/* CycleWingman landing page. Self-contained: no imports, no remote fonts.
   Colours and type follow the app (app/globals.css, tailwind.config.ts). */

:root {
  --ink: #183153;
  --ink-soft: #46597a;
  --ink-faint: #596a84;
  --cream: #f7f6f1;
  --cream-warm: #faf5e6;
  --surface: #ffffff;
  --line: rgba(24, 49, 83, .09);
  --mint: #75d6aa;
  --sun: #ffd166;
  --coral: #f47e68;
  --sky: #8ecae6;
  --green: #3dba79;
  --yellow: #efb52e;
  --orange: #ee8741;
  --red: #e45d52;
  --shadow-card: 0 12px 35px rgba(24, 49, 83, .08);
  --shadow-float: 0 18px 50px rgba(24, 49, 83, .14);
  --radius: 28px;
  --wrap: 1120px;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }

h1, h2, h3, h4 { font-weight: 900; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 9.6vw, 4rem); line-height: .98; letter-spacing: -.04em; text-wrap: wrap; }
h1 span { display: block; }
h2 { font-size: clamp(1.85rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h4 { font-size: 1.0625rem; letter-spacing: -.015em; line-height: 1.25; }

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

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

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  padding: .75rem 1rem; border-radius: 12px;
  background: var(--ink); color: #fff; font-weight: 800; text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap-narrow { max-width: 800px; }

.eyebrow {
  font-size: .75rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase;
  color: var(--ink-faint);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.4rem; border-radius: 16px;
  background: var(--ink); color: #fff;
  font-weight: 800; font-size: .95rem; text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 22px rgba(24, 49, 83, .16);
}
.btn-small { padding: .6rem 1rem; border-radius: 13px; font-size: .875rem; }
.btn:hover { background: #21406b; }

/* Header */
.top { padding: 1.1rem 0; }
.top-row { display: flex; align-items: center; gap: 1.5rem; }
.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  font-weight: 900; font-size: 1.15rem; letter-spacing: -.03em; text-decoration: none;
}
.brand img { width: 40px; height: 40px; }
.top-nav { display: none; margin-left: auto; gap: 1.6rem; }
.top-nav a { font-size: .9rem; font-weight: 700; color: var(--ink-soft); text-decoration: none; }
.top-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.top .btn { margin-left: auto; }

/* Hero */
.hero {
  overflow: hidden;
  padding: 2rem 0 3.5rem;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 209, 102, .26), transparent 26rem),
    radial-gradient(circle at 96% 70%, rgba(142, 202, 230, .22), transparent 26rem);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: center; }
.hero-copy > * + * { margin-top: 1.25rem; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.5; color: var(--ink-soft); max-width: 34rem; }

.stores { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; padding-top: .4rem; }
.stores-center { justify-content: center; }
.store { display: block; border-radius: 10px; transition: transform .15s ease; }
.store img { height: 48px; width: auto; }
.store:hover { transform: translateY(-2px); }

.proof { display: flex; flex-wrap: wrap; gap: .5rem; }
.proof li {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem .8rem .4rem .65rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .85rem; font-weight: 700;
}
.proof li::before {
  content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--green); flex: none;
}
.fine { font-size: .875rem; color: var(--ink-faint); }

.hero-art { position: relative; width: min(74vw, 310px); margin: 0 auto; }
.sun {
  position: absolute; z-index: 0; top: -7%; right: -24%;
  width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--sun) 0 46%, rgba(255, 209, 102, .35) 47% 68%, rgba(255, 209, 102, .14) 69% 100%);
}

.phone {
  position: relative; z-index: 1;
  padding: 9px; border-radius: 46px;
  background: var(--ink);
  box-shadow: var(--shadow-float), 0 2px 0 rgba(255, 255, 255, .12) inset;
}
.phone img { border-radius: 38px; background: var(--cream-warm); }

.watch {
  position: absolute; z-index: 2; left: -13%; bottom: 9%;
  width: 43%; padding: 7px; border-radius: 26%/22%;
  background: #0d1420;
  box-shadow: var(--shadow-float);
}
.watch img { border-radius: 22%/18%; }

/* The four colours */
.colours { padding: 3rem 0 1rem; }
.h-small { font-size: clamp(1.35rem, 2.6vw, 1.75rem); text-align: center; }
.colour-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1.75rem; }
.colour {
  display: flex; flex-direction: column; gap: .2rem;
  padding: 1.15rem 1.15rem 1.25rem; border-radius: 24px;
  font-size: .9rem; line-height: 1.4;
}
.colour strong { font-size: 1.3rem; font-weight: 900; letter-spacing: -.03em; }
.colour-emoji { font-size: 1.75rem; line-height: 1.2; }
.colour-green { background: linear-gradient(140deg, #b9ead2, #e2f4d9); }
.colour-yellow { background: linear-gradient(140deg, #fde6a6, #fdf3d3); }
.colour-orange { background: linear-gradient(140deg, #fbcfa9, #fde8d2); }
.colour-red { background: linear-gradient(140deg, #f7bdb5, #fbe0da); }
.disclaimer { margin: 1.5rem auto 0; max-width: 38rem; text-align: center; font-size: .875rem; color: var(--ink-faint); }

/* Sections */
.section { padding: 4.5rem 0; }
.section-head { max-width: 44rem; margin-bottom: 2.75rem; }
.section-head > * + * { margin-top: .9rem; }
.section-head p:not(.eyebrow) { font-size: 1.125rem; color: var(--ink-soft); }

/* Steps */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.step {
  padding: 1.75rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 14px; margin-bottom: 1.1rem;
  background: var(--ink); color: #fff; font-weight: 900; font-size: 1.05rem;
}
.step:nth-child(2) .step-n { background: var(--sun); color: var(--ink); }
.step:nth-child(3) .step-n { background: var(--mint); color: var(--ink); }
.step h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.step p { color: var(--ink-soft); font-size: 1rem; }

/* Feature rows */
.section-features { padding-top: 2rem; }
.row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.25rem; align-items: center; padding: 2.75rem 0; }
.row + .row { border-top: 1px solid var(--line); }
.row-copy > * + * { margin-top: 1rem; }
.row-copy p { color: var(--ink-soft); }
.tag {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint) !important;
}
.new {
  padding: .22rem .6rem; border-radius: 999px;
  background: var(--sun); color: var(--ink);
  letter-spacing: .06em;
}
.ticks { display: grid; gap: .6rem; padding-top: .25rem; }
.ticks li { position: relative; padding-left: 1.7rem; font-weight: 600; font-size: 1rem; line-height: 1.45; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: .85rem; height: .85rem; border-radius: 50%;
  background: var(--mint); box-shadow: inset 0 0 0 3px #d9f3e6;
}

.row-art { display: flex; justify-content: center; }
.row-art .phone { width: min(68vw, 280px); }
.row-art-pair { gap: .9rem; align-items: flex-start; }
.row-art-pair .phone { width: min(43vw, 240px); padding: 7px; border-radius: 34px; }
.row-art-pair .phone img { border-radius: 28px; }
.row-art-pair .phone:last-child { margin-top: 2.5rem; }
.row-art-stack { flex-direction: column; align-items: center; }
.crop img {
  border-radius: 22px; border: 1px solid var(--line);
  box-shadow: var(--shadow-card); background: var(--cream-warm);
}
.crop-float { position: relative; z-index: 2; width: min(86vw, 350px); margin-top: -4.5rem; }
.row-art-crops { flex-direction: column; align-items: center; gap: 1rem; }
.row-art-crops .crop { width: min(100%, 400px); }

.notes { display: grid; gap: .75rem; width: min(100%, 400px); }
.note {
  display: grid; gap: .15rem;
  padding: 1rem 1.15rem; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  font-size: .925rem; line-height: 1.4; color: var(--ink-soft);
}
.note strong { color: var(--ink); font-weight: 800; font-size: 1rem; }
.note-kind {
  justify-self: start; margin-bottom: .2rem; padding: .1rem .55rem; border-radius: 999px;
  background: #e6f6ee; color: #1c6b45;
  font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.note-plus, .chip { background: #fff0c9; color: #6d4c00; }
.chip {
  display: inline-block; vertical-align: middle; margin-left: .25rem;
  padding: .1rem .5rem; border-radius: 999px;
  font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}

.tablet {
  width: 100%; padding: 8px; border-radius: 26px;
  background: var(--ink); box-shadow: var(--shadow-float);
}
.tablet img { border-radius: 19px; background: var(--cream-warm); }

.grid-head { padding: 3rem 0 1.5rem; border-top: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; }
.tile {
  padding: 1.4rem 1.5rem; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line);
}
.tile p { margin-top: .5rem; font-size: .95rem; color: var(--ink-soft); line-height: 1.5; }

/* Privacy */
.privacy {
  background:
    radial-gradient(circle at 100% 0%, rgba(142, 202, 230, .2), transparent 28rem),
    var(--ink);
  color: #fff;
}
.privacy .eyebrow { color: #a9bdd6; }
.privacy h2 { margin-top: .9rem; }
.privacy-lead { margin-top: 1.25rem; font-size: 1.125rem; color: #cfdbea; max-width: 30rem; }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.privacy-list { display: grid; gap: .75rem; }
.privacy-list li {
  padding: 1.05rem 1.25rem; border-radius: 20px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
  color: #d5e0ee; font-size: 1rem; line-height: 1.5;
}
.privacy-list strong { color: #fff; font-weight: 800; }
.privacy :focus-visible { outline-color: var(--sun); }

/* Comparison */
.compare { width: 100%; border-collapse: collapse; }
.compare thead { display: none; }
.compare tbody tr {
  display: block; padding: 1.15rem 1.25rem; margin-bottom: .75rem; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
}
.compare th[scope="row"] {
  display: block; padding: 0 0 .6rem; text-align: left;
  font-weight: 900; font-size: 1.05rem; letter-spacing: -.02em;
}
.compare td { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); gap: .5rem; align-items: baseline; padding: .3rem 0; font-size: .95rem; line-height: 1.45; color: var(--ink-soft); }
.compare td::before {
  content: attr(data-label);
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
}
.terms { margin-top: 1.75rem; max-width: 52rem; font-size: .875rem; line-height: 1.6; color: var(--ink-faint); }
.terms a, .foot a { text-decoration: underline; text-underline-offset: 3px; }

/* FAQ */
.section-faq { padding-top: 1rem; }
.faq { display: grid; gap: .65rem; }
.faq details {
  border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.35rem; cursor: pointer; list-style: none;
  font-weight: 800; font-size: 1.0625rem; letter-spacing: -.015em; line-height: 1.3;
  border-radius: 22px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: .6rem; height: .6rem; margin-right: .2rem;
  border-right: 2.5px solid var(--ink-faint); border-bottom: 2.5px solid var(--ink-faint);
  transform: translateY(-2px) rotate(45deg);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq details p { padding: 0 1.35rem 1.3rem; color: var(--ink-soft); font-size: 1rem; }

/* Final call */
.cta {
  padding: 4.5rem 0 5rem; text-align: center;
  background:
    radial-gradient(circle at 50% 120%, rgba(117, 214, 170, .28), transparent 30rem),
    radial-gradient(circle at 12% 0%, rgba(255, 209, 102, .22), transparent 22rem),
    var(--cream-warm);
}
.cta-inner > * + * { margin-top: 1.25rem; }
.cta-icon { width: 72px; height: 72px; margin: 0 auto; filter: drop-shadow(0 10px 18px rgba(24, 49, 83, .2)); }
.cta h2 { max-width: 16ch; margin-left: auto; margin-right: auto; }
.cta p { color: var(--ink-soft); font-size: 1.125rem; }
.cta .stores { padding-top: .75rem; }

/* Footer */
.foot { padding: 2.75rem 0 3rem; background: var(--cream); border-top: 1px solid var(--line); }
.foot .wrap > * + * { margin-top: 1.1rem; }
.foot-note { max-width: 46rem; font-size: .875rem; color: var(--ink-soft); }
.foot-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.foot-nav a { font-weight: 800; font-size: .95rem; padding: .25rem 0; }
.foot-small { font-size: .78rem; color: var(--ink-faint); max-width: 46rem; }

/* From 640px */
@media (min-width: 640px) {
  .wrap { padding: 0 2rem; }
  .store img { height: 56px; }
  .colour-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-art-pair .phone { width: 240px; }

  .compare thead { display: table-header-group; }
  .compare { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
  .table-wrap { border-radius: var(--radius); border: 1px solid var(--line); }
  .compare tbody tr { display: table-row; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; }
  .compare th, .compare td { display: table-cell; padding: 1rem 1.25rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
  .compare thead th { border-top: 0; padding: 1.1rem 1.25rem; font-weight: 900; font-size: 1.05rem; letter-spacing: -.02em; }
  .compare thead th:last-child, .compare td:last-child { background: #fff8e1; }
  .compare { table-layout: fixed; }
  .compare th[scope="row"] { display: table-cell; width: 24%; padding: 1rem 1.25rem; font-size: .975rem; font-weight: 800; }
  .compare td { width: 38%; }
  .compare td::before { content: none; }
}

/* From 920px */
@media (min-width: 920px) {
  .top-nav { display: flex; }
  .top .btn { margin-left: 0; }
  .hero { padding: 3rem 0 5.5rem; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 2rem; }
  .hero-art { width: 330px; margin-right: 3rem; }
  .watch { left: -30%; bottom: 12%; }
  .section { padding: 6.5rem 0; }
  .section-features { padding-top: 3rem; }
  .section-faq { padding-top: 1rem; }
  .colours { padding: 4rem 0 1rem; }

  .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; padding: 4.5rem 0; }
  .row:nth-of-type(even) .row-art { order: -1; }
  .row-art .phone { width: 290px; }
  .row-art-pair .phone { width: 232px; }
  .row-wide { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .crop-float { align-self: flex-end; margin-right: -1rem; }
  .row:nth-of-type(even) .crop-float { align-self: flex-start; margin-right: 0; margin-left: -1rem; }

  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .privacy-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
  .cta { padding: 6.5rem 0 7rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .store { transition: none; }
  .store:hover { transform: none; }
}

@media print {
  .top-nav, .top .btn, .stores, .sun { display: none; }
  .privacy { background: none; color: var(--ink); }
}

/* Cookie consent (analytics.js). Hidden until <html> has .consent-pending. */
.consent {
  display: none;
  position: fixed;
  z-index: 50;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 26rem;
  margin-left: auto;
  padding: 1.1rem 1.2rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-float);
}
.consent-pending .consent { display: block; }
.consent-title { margin: 0 0 .35rem; font-weight: 800; font-size: 1rem; }
.consent-text { margin: 0 0 .9rem; font-size: .88rem; line-height: 1.45; color: var(--ink-soft); }
.consent-text a { color: var(--ink); font-weight: 700; }
.consent-actions { display: flex; gap: .6rem; }
.consent-btn {
  flex: 1;
  padding: .65rem 1rem;
  border: 0;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
}
.consent-btn:hover { background: #21406b; }
.consent-btn:focus-visible, .link-btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.link-btn {
  padding: .25rem 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 800;
  font-size: .95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
