/* Home page only (/privacy keeps style.css). Tokens come straight from the
   app's Cyan Design System (mobile/lib/theme/colors.dart) and its fonts
   (mobile/assets/fonts), so the site and the app read as one product. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/PlusJakartaSans.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/Manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* Brand */
  --teal-950: #002a31;
  --teal-900: #004753; /* primaryDark */
  --teal-800: #006070; /* primary */
  --teal-700: #007b8e; /* primaryLight */
  --teal-logo: #3c9cb4; /* brandTeal */
  --teal-200: #a0d4dc; /* primaryFixed */
  --teal-wash: #e0f7f9;
  --lime: #aec636; /* brandLime */
  --lime-ink: #55620f;
  --lime-wash: #f2f7dc;

  /* Surfaces & text */
  --bg: #f4f9fa;
  --surface: #ffffff;
  --surface-low: #eef4f5;
  --hairline: #dfe6e7;
  --ink: #181c1d;
  --ink-2: #3f484a;
  --ink-3: #6f797c;

  --display: "Plus Jakarta Sans", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --body: "Manrope", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;

  --r-lg: 28px;
  --r-md: 20px;
  --shadow-1: 0 1px 2px rgb(0 42 49 / 0.06), 0 4px 16px rgb(0 42 49 / 0.05);
  --shadow-2: 0 2px 6px rgb(0 42 49 / 0.08), 0 24px 60px -12px rgb(0 42 49 / 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font: 400 17px/1.65 var(--body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-800); text-underline-offset: 3px; }
a:hover { color: var(--teal-700); }
:focus-visible { outline: 3px solid var(--teal-logo); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--teal-900); color: #fff; padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- Eyebrows, chips, buttons ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 12px/1 var(--display);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-800);
}

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-1);
  font: 600 14px/1.2 var(--body);
  color: var(--ink-2);
}
.chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgb(174 198 54 / 0.25);
}

.btn {
  --btn-bg: var(--teal-800);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1.5px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 700 16px/1 var(--display);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgb(0 71 83 / 0.5);
}
.btn:active { transform: translateY(0); box-shadow: none; }
.btn.primary:hover { background: var(--teal-900); }
.btn.ghost {
  --btn-fg: var(--teal-900);
  background: var(--surface);
  border-color: var(--hairline);
}
.btn.ghost:hover { border-color: var(--teal-200); box-shadow: 0 10px 24px -10px rgb(0 71 83 / 0.3); }
.btn.small { min-height: 42px; padding: 0 18px; font-size: 14px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(244 249 250 / 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled { border-color: var(--hairline); background: rgb(255 255 255 / 0.85); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px;
}
.brand img { height: 30px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  color: var(--ink-2); text-decoration: none;
  font: 600 15px/1 var(--display);
}
.site-nav a:not(.btn):hover { color: var(--teal-800); }

/* ---------- Hero ---------- */

.hero { position: relative; padding: 56px 0 40px; isolation: isolate; overflow-x: clip; }
.hero::before {
  /* soft teal glow behind the phones */
  content: ""; position: absolute; z-index: -1;
  width: 900px; height: 900px; right: -260px; top: -280px;
  background: radial-gradient(closest-side, rgb(160 212 220 / 0.55), rgb(160 212 220 / 0) 70%);
  pointer-events: none;
}
.hero .hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px;
}
.hero h1 {
  margin-top: 22px;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--teal-800) 10%, var(--teal-logo) 55%, #8fb02a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede {
  margin-top: 22px; max-width: 34em;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--ink-2);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-note { margin-top: 16px; font-size: 14px; color: var(--ink-3); }

.hero-art { position: relative; height: 640px; }
.hero-art .swoosh {
  /* echoes the lime arc that crosses the A1C mark in the logo */
  position: absolute; inset: 6% -10% auto -12%; width: 122%; height: auto;
  z-index: 0; pointer-events: none;
}
.phone {
  position: absolute;
  width: 290px;
  padding: 9px;
  border-radius: 48px;
  background: linear-gradient(160deg, #24363a, #0d1a1d);
  box-shadow: var(--shadow-2), inset 0 0 0 1.5px rgb(255 255 255 / 0.08);
}
.phone img {
  width: 100%; height: auto; aspect-ratio: 600 / 1304; object-fit: cover; object-position: top;
  border-radius: 39px;
  background: var(--bg);
}
.phone.front { left: 4%; top: 18px; z-index: 2; transform: rotate(-4deg); }
.phone.back  { right: 0; top: 70px; z-index: 1; transform: rotate(5deg); width: 268px; }
.hero-art .phone { animation: rise 1s var(--ease) both; }
.hero-art .phone.back { animation-delay: 0.12s; }
@keyframes rise {
  from { opacity: 0; translate: 0 40px; }
  to { opacity: 1; translate: 0 0; }
}

/* ---------- Proof strip ---------- */

.facts {
  margin-top: 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
}
.facts li {
  list-style: none;
  display: flex; gap: 14px; align-items: flex-start;
  padding: 22px 24px;
}
.facts li + li { border-left: 1px solid var(--hairline); }
.facts .ico {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--teal-wash); color: var(--teal-800);
}
.facts .ico svg { width: 20px; height: 20px; }
.facts strong { display: block; font: 700 15px/1.3 var(--display); color: var(--ink); }
.facts span { font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.facts { padding: 0; margin-bottom: 0; margin-top: 40px; }

/* ---------- Sections ---------- */

section { position: relative; }
.section { padding: 120px 0 0; }
.section-head { max-width: 760px; }
.section-head h2 {
  margin-top: 16px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.section-head p { margin-top: 18px; font-size: 18px; color: var(--ink-2); max-width: 40em; }

/* Feature rows */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px;
  margin-top: 96px;
}
.feature.flip .feature-copy { order: 2; }
.feature-copy { max-width: 470px; }
.feature-copy h3 {
  margin-top: 14px;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.feature-copy p { margin-top: 16px; color: var(--ink-2); }
.feature-copy ul {
  margin: 22px 0 0; padding: 0; list-style: none;
  display: grid; gap: 12px;
}
.feature-copy li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 16px; color: var(--ink-2);
}
.feature-copy li::before {
  content: ""; flex: none; margin-top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--teal-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-4.8' fill='none' stroke='%23006070' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.sources { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.sources span {
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--hairline);
  font: 600 13px/1.2 var(--display); color: var(--ink-2);
}

.stage {
  position: relative;
  display: grid; place-items: center;
  min-height: 600px;
  border-radius: 36px;
  background: linear-gradient(160deg, var(--teal-wash), #f7fbfb 70%);
  border: 1px solid var(--hairline);
  overflow: hidden;
  isolation: isolate;
}
.stage::after {
  content: ""; position: absolute; z-index: -1;
  width: 140%; aspect-ratio: 1; left: -20%; top: 55%;
  border-radius: 50%;
  border: 46px solid rgb(174 198 54 / 0.18);
}
.stage.lime { background: linear-gradient(160deg, var(--lime-wash), #fbfcf6 70%); }
.stage.lime::after { border-color: rgb(60 156 180 / 0.12); }
.stage .phone { position: relative; width: 270px; transform: translateY(70px); margin-bottom: -10px; }
.stage .float {
  position: absolute; z-index: 3;
  width: 250px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-2);
  border: 1px solid var(--hairline);
}
.stage .float.right { right: 5%; bottom: 10%; }
.stage.has-float .phone { translate: -18% 0; }
.stage .float.left { left: 6%; top: 12%; }

/* Bento: smaller features */
.bento {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 96px;
}
.tile {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 36px 36px 0;
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.tile h3 { margin-top: 12px; font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.tile p { margin-top: 12px; color: var(--ink-2); }
.tile .crop {
  margin-top: 32px;
  margin-inline: auto;
  width: min(360px, 100%);
  height: 360px;
  border-radius: 24px 24px 0 0;
  border: 1px solid var(--hairline);
  border-bottom: 0;
  overflow: hidden;
  background: var(--bg);
}
.tile .crop img { width: 100%; height: auto; }
.tile.teal { background: linear-gradient(165deg, var(--teal-800), var(--teal-950)); border-color: transparent; }
.tile.teal h3 { color: #fff; }
.tile.teal p { color: rgb(255 255 255 / 0.78); }
.tile.teal .eyebrow { color: var(--lime); }
.tile.teal .crop { border-color: rgb(255 255 255 / 0.12); }
.tile .crop.offset img { margin-top: -96px; }

/* ---------- Install ---------- */

.install {
  margin-top: 140px;
  padding: 110px 0 120px;
  background:
    radial-gradient(900px 500px at 85% 0%, rgb(60 156 180 / 0.35), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgb(174 198 54 / 0.16), transparent 60%),
    linear-gradient(170deg, var(--teal-900), var(--teal-950));
  color: #fff;
  overflow: hidden;
}
.install .section-head h2 { color: #fff; }
.install .section-head p { color: rgb(255 255 255 / 0.75); }
.install .eyebrow { color: var(--lime); }

.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.platform {
  display: flex; flex-direction: column;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.5);
}
.platform.is-mine { outline: 3px solid var(--lime); outline-offset: 4px; }
.platform-top { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.platform .os {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 13px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}
.platform .os svg { width: 18px; height: 18px; color: var(--ink); }
.platform h3 { margin-top: 14px; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.platform .sub { margin-top: 8px; color: var(--ink-3); font-size: 15px; }
.qr {
  flex: none;
  width: 116px; padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  background: #fff;
  text-align: center;
}
.qr img { width: 100%; height: auto; }
.qr span { display: block; margin-top: 6px; font: 600 11px/1.2 var(--display); color: var(--ink-3); }

ol.steps {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; gap: 18px;
  counter-reset: step;
  flex: 1;
}
ol.steps li {
  position: relative; padding-left: 48px; counter-increment: step;
  font-size: 15px; color: var(--ink-2);
}
ol.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal-wash); color: var(--teal-800);
  font: 800 14px/1 var(--display);
}
ol.steps strong { display: block; color: var(--ink); font: 700 16px/1.4 var(--display); }
.platform .btn { margin-top: 32px; width: 100%; }
.platform .after { margin-top: 14px; text-align: center; font-size: 13px; color: var(--ink-3); }

/* ---------- Privacy ---------- */

.privacy-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start;
}
.privacy-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.privacy-list li {
  display: grid; grid-template-columns: 44px 1fr; gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
}
.privacy-list .ico {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--lime-wash); color: var(--lime-ink);
}
.privacy-list .ico svg { width: 22px; height: 22px; }
.privacy-list h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.privacy-list p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.privacy-grid .more { display: inline-flex; margin-top: 28px; font: 700 16px/1 var(--display); }

/* ---------- Footer ---------- */

.disclaimer {
  margin-top: 120px;
  padding: 20px 24px;
  border-radius: var(--r-md);
  background: var(--lime-wash);
  color: var(--lime-ink);
  font-size: 14px;
  display: flex; gap: 14px; align-items: flex-start;
}
.disclaimer svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }

.site-footer { padding: 48px 0 56px; font-size: 14px; color: var(--ink-3); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  border-top: 1px solid var(--hairline); padding-top: 32px;
}
.site-footer img { height: 24px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--teal-800); }

/* ---------- Scroll reveal ---------- */

.js .reveal { opacity: 0; translate: 0 28px; transition: opacity 0.9s var(--ease), translate 0.9s var(--ease); }
.js .reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; translate: none; transition: none; }
  .hero-art .phone { animation: none; }
  .btn { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { text-align: center; }
  .hero .lede { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .hero-art { height: 560px; max-width: 560px; width: 100%; margin-inline: auto; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 40px; margin-top: 80px; }
  .feature.flip .feature-copy { order: 0; }
  .feature-copy { max-width: 620px; }
  .privacy-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 820px) {
  .site-nav a:not(.btn) { display: none; }
  .facts { grid-template-columns: 1fr; }
  .facts li + li { border-left: 0; border-top: 1px solid var(--hairline); }
  .bento, .platforms { grid-template-columns: 1fr; }
  .section { padding-top: 96px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 32px; }
  .cta-row .btn { width: 100%; }
  .hero-art { height: 460px; }
  .phone { width: 220px; border-radius: 38px; padding: 7px; }
  .phone img { border-radius: 31px; }
  .phone.front { left: 0; }
  .phone.back { width: 200px; top: 50px; }
  .stage { min-height: 500px; border-radius: 28px; }
  .stage .phone { width: 230px; }
  .stage .float { width: 190px; border-radius: 18px; }
  .stage .float.right { right: 4%; bottom: 8%; }
  .stage .float.left { left: 4%; top: 8%; }
  .tile { padding: 28px 24px 0; }
  .tile .crop { height: 240px; }
  .platform { padding: 28px 24px; }
  .qr { display: none; }
  .disclaimer { margin-top: 96px; }
}

/* QR codes are for people reading on a computer; on a phone, tap the button. */
@media (hover: none) and (pointer: coarse) { .qr { display: none; } }
