/*
  MYCE website. Same "Metro Line" look as the app (src/app/globals.css):
  asphalt and concrete neutrals, one signal amber, dashed lane-marking dividers,
  Barlow Condensed for headings and big numbers, Barlow for text.
  Fonts are self-hosted (copied from the app build), so the site makes no third-party requests.
*/

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("fonts/barlow-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("fonts/barlow-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --bg: #f2f1ee;
  --surface: #fbfaf8;
  --raised: #ffffff;
  --text: #16181d;
  --text-2: #656a73;
  --border: #e2e0da;
  --divider: #cfccc4;
  --accent: #ffb400;
  --accent-strong: #e09e00;
  --accent-soft: #fff0c7;
  --link: #8a5f00;
  --on-accent: #16181d;
  --go: #25b26a;
  --pro-bg: linear-gradient(135deg, #2b303b 0%, #16181d 100%);
  --on-pro: #ffffff;
  --hero-bg: linear-gradient(160deg, #232832 0%, #171a21 58%, #0e1014 100%);
  --hero-text: #f4f2ec;
  --hero-text-2: #a9aeb7;
  --shadow: 0 1px 2px rgba(22, 24, 29, .05), 0 12px 32px -12px rgba(22, 24, 29, .18);
  --radius: 20px;
  --font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0d0f12;
    --surface: #16191f;
    --raised: #1d2128;
    --text: #f2f1ee;
    --text-2: #9aa0aa;
    --border: #262b33;
    --divider: #343a44;
    --accent-strong: #ffc933;
    --accent-soft: #2a2310;
    --link: #ffc933;
    --go: #3dd68c;
    --pro-bg: linear-gradient(135deg, #f7f6f3 0%, #c9ccd2 100%);
    --on-pro: #16181d;
    --hero-bg: linear-gradient(160deg, #1f232c 0%, #14171c 58%, #0a0c0f 100%);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -.005em; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

/* Small uppercase label above headings, like the app's card titles */
.eyebrow {
  display: inline-block;
  font: 600 13px/1.2 var(--font-body);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--link);
}
/* Three amber dashes: lane markings */
.lane { display: block; width: 72px; height: 4px; margin: 18px 0 0; background: repeating-linear-gradient(90deg, var(--accent) 0 18px, transparent 18px 27px); border-radius: 2px; }
.center .lane { margin-left: auto; margin-right: auto; }
.dashed { border: 0; border-top: 1px dashed var(--divider); margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font: 700 26px/1 var(--font-head); letter-spacing: .02em; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav a:hover { color: var(--text); }
.soon-pill {
  font: 600 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  padding: 9px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--link); white-space: nowrap;
}
@media (max-width: 760px) {
  .site-nav { display: none; }
  .soon-pill { margin-left: auto; }
}

/* ---------- Hero (always asphalt, like the app's tracking card) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--hero-bg);
  color: var(--hero-text);
}
.hero::before { /* amber glow, top right */
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(255, 180, 0, .22), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 0; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { font-size: clamp(48px, 7.4vw, 92px); margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 24px; font-size: clamp(18px, 2vw, 21px); color: var(--hero-text-2); max-width: 32em; }
.hero .lead strong { color: var(--hero-text); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 34px; }
.store-soon {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 20px 11px 16px; border-radius: 14px;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .28);
}
.store-soon svg { width: 26px; height: 28px; flex: none; }
.store-soon small { display: block; font: 600 11px/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: #c7cad0; }
.store-soon b { display: block; font: 600 19px/1.2 var(--font-body); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 14px; text-decoration: none; font-weight: 600;
  color: var(--hero-text); border: 1px solid rgba(255, 255, 255, .22);
}
.btn-ghost:hover { border-color: var(--accent); }
.btn-ghost .play { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.btn-ghost .play::after { content: ""; border-left: 8px solid #16181d; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--hero-text-2); font-size: 15px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.hero-visual { position: relative; justify-self: center; width: min(360px, 100%); padding-bottom: 0; }
.route { /* dotted route line from the app: green start, amber finish */
  position: absolute; left: -56px; top: 120px; width: 2px; height: 300px;
  background: repeating-linear-gradient(180deg, var(--accent) 0 4px, transparent 4px 12px);
}
.route::before, .route::after { content: ""; position: absolute; left: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translateX(-50%); }
.route::before { top: -8px; background: #3dd68c; }
.route::after { bottom: -8px; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 180, 0, .25); }

/* ---------- Phone frame ---------- */
.phone {
  position: relative; border-radius: 44px; padding: 10px;
  background: #2b303b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 40px 80px -30px rgba(0, 0, 0, .65);
}
.phone img { width: 100%; height: auto; aspect-ratio: 540 / 1212; object-fit: cover; object-position: top; border-radius: 35px; background: #f2f1ee; }
.hero .phone { border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 0; }
.hero .phone img { aspect-ratio: 540 / 960; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.notif-float {
  position: absolute; left: -64px; right: 24px; top: 56%;
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .6);
  animation: drop-in .7s cubic-bezier(.2, .8, .2, 1) .35s both;
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .notif-float { animation: none; } }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .hero-visual { width: min(320px, 82%); }
  .route { display: none; }
  .notif-float { left: -9%; right: -9%; }
}

/* ---------- Sections ---------- */
section { scroll-margin-top: 72px; }
.section { padding: 96px 0; }
.section-head { max-width: 640px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 { font-size: clamp(38px, 5vw, 56px); margin-top: 12px; }
.section-head p { margin-top: 18px; color: var(--text-2); font-size: 19px; }
@media (max-width: 700px) { .section { padding: 72px 0; } }

/* Feature rows: text beside a phone, alternating */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 88px; }
.feature:nth-of-type(even) .feature-media { order: -1; }
.feature-media { display: flex; justify-content: center; align-items: flex-start; gap: 20px; }
.feature-media .phone { width: min(290px, 100%); }
.feature-media.pair .phone { width: min(240px, 48%); }
.feature-media.pair .phone:last-child { margin-top: 56px; }
.feature h3 { font-size: clamp(32px, 3.6vw, 44px); margin-top: 12px; }
.feature .tag-pro { margin-left: 10px; vertical-align: 6px; }
.feature p { margin-top: 16px; color: var(--text-2); font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 10px;
  border-left: 3px solid var(--accent-strong); border-bottom: 3px solid var(--accent-strong);
  transform: rotate(-45deg) scale(.8); transform-origin: 30% 60%;
}
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 36px; margin-top: 64px; }
  .feature:nth-of-type(even) .feature-media { order: 0; }
}
.tag-pro {
  display: inline-block; font: 700 12px/1 var(--font-body); letter-spacing: .14em;
  padding: 6px 10px; border-radius: 999px; background: var(--pro-bg); color: var(--on-pro);
}

/* Small feature grid */
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 88px; }
.mini {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.mini .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); border: 2px solid var(--accent); color: var(--link); }
.mini .ico svg { width: 22px; height: 22px; }
.mini h4 { margin: 16px 0 0; font: 700 24px/1.1 var(--font-head); }
.mini p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
@media (max-width: 860px) { .mini-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mini-grid { grid-template-columns: 1fr; } }

/* ---------- Reel ---------- */
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.reel { display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: center; }
.reel video {
  width: min(340px, 100%); height: auto; aspect-ratio: 9 / 16; border-radius: 28px; background: #111318;
  box-shadow: var(--shadow); object-fit: cover;
}
@media (max-width: 860px) { .reel { grid-template-columns: 1fr; gap: 36px; } .reel video { margin: 0 auto; } }

/* ---------- Privacy ---------- */
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.privacy-grid > div { padding: 28px 24px; }
.privacy-grid > div + div { border-left: 1px dashed var(--divider); }
.privacy-grid b { display: block; font: 700 30px/1 var(--font-head); }
.privacy-grid span { display: block; margin-top: 10px; color: var(--text-2); font-size: 16px; }
.privacy-note { margin-top: 24px; color: var(--text-2); max-width: 780px; }
@media (max-width: 860px) {
  .privacy-grid { grid-template-columns: 1fr 1fr; }
  .privacy-grid > div + div { border-left: 0; }
  .privacy-grid > div:nth-child(even) { border-left: 1px dashed var(--divider); }
  .privacy-grid > div:nth-child(n+3) { border-top: 1px dashed var(--divider); }
}
@media (max-width: 480px) {
  .privacy-grid { grid-template-columns: 1fr; }
  .privacy-grid > div:nth-child(even) { border-left: 0; }
  .privacy-grid > div + div { border-top: 1px dashed var(--divider); }
}

/* ---------- Pricing ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.compare-wrap { max-width: 860px; margin: 56px auto 0; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 16px 20px; text-align: center; vertical-align: middle; }
.compare tbody th { text-align: left; font-weight: 400; }
.compare tbody tr + tr > * { border-top: 1px dashed var(--divider); }
.compare thead th, .compare thead td { padding-top: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border); width: 22%; }
.compare thead td { width: auto; }
.compare .pro-col, .compare tbody td:last-child { background: var(--accent-soft); }
.plan-name { display: flex; align-items: center; justify-content: center; gap: 8px; font: 700 26px/1 var(--font-head); }
.plan-name .tag-pro { font-size: 10px; padding: 5px 8px; }
.plan-price { display: block; margin-top: 10px; font: 700 44px/1 var(--font-head); }
.plan-note { display: block; margin-top: 6px; font-size: 14px; font-weight: 400; color: var(--text-2); }
.yes, .no { display: inline-block; width: 28px; height: 28px; border-radius: 50%; position: relative; vertical-align: middle; }
.yes { background: var(--go); }
.yes::after { content: ""; position: absolute; left: 9px; top: 6px; width: 7px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.no::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; border-radius: 1px; background: var(--divider); }
.trial-chip { display: inline-block; margin-bottom: 12px; padding: 8px 12px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 15px; }
.plan-foot { text-align: center; margin-top: 28px; color: var(--text-2); font-size: 15px; }
@media (max-width: 560px) {
  .compare th, .compare td { padding: 14px 8px; }
  .compare tbody th { padding-left: 16px; font-size: 15px; line-height: 1.4; }
  .compare thead th { width: 76px; }
  .plan-name { font-size: 20px; flex-direction: column; gap: 6px; }
  .plan-price { font-size: 30px; }
  .yes, .no { width: 24px; height: 24px; }
  .yes::after { left: 8px; top: 5px; width: 6px; height: 11px; }
  .no::after { top: 11px; left: 7px; right: 7px; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 48px auto 0; border-top: 1px dashed var(--divider); }
.faq details { border-bottom: 1px dashed var(--divider); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font: 700 23px/1.2 var(--font-head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 3px solid var(--accent-strong); border-bottom: 3px solid var(--accent-strong);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq .answer { padding: 0 0 24px; color: var(--text-2); }
.faq .answer p + p { margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 56px; color: var(--text-2); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.site-footer nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { color: var(--link); }
.site-footer p + p { margin-top: 6px; }

/* ---------- Policy pages (Markdown rendered by GitHub Pages) ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 80px; }
.prose .back { display: inline-block; margin-bottom: 28px; font-weight: 600; text-decoration: none; }
.prose h1 { font-size: clamp(40px, 6vw, 56px); }
.prose h1::after { content: ""; display: block; width: 72px; height: 4px; margin-top: 18px; background: repeating-linear-gradient(90deg, var(--accent) 0 18px, transparent 18px 27px); }
.prose h2 { font-size: 32px; margin-top: 48px; padding-top: 28px; border-top: 1px dashed var(--divider); }
.prose h3 { font-size: 24px; margin-top: 32px; }
.prose p, .prose ul, .prose ol { margin: 16px 0 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--accent-strong); }
.prose strong { font-weight: 600; }
.prose code { font-size: .92em; background: var(--surface); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px dashed var(--divider); vertical-align: top; }
