/* ============================================================
   WatchTracker – Landing Page
   Apple-style layout: light, generous whitespace, big quiet type.
   Palette: white / #f5f5f7, ink #1d1d1f, deep-indigo accent (#1A237E),
   warm brass = Pro accent only.
   Class names unchanged from the SilverTracker template (HTML retexted).
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;          /* signature light grey */
  --card: #ffffff;
  --card-2: #fbfbfd;
  --line: rgba(0, 0, 0, 0.09);
  --line-2: rgba(0, 0, 0, 0.14);
  --text: #1d1d1f;           /* ink */
  --muted: #6e6e73;          /* secondary text */
  --accent: #1A237E;         /* WatchTracker deep indigo/steel */
  --accent-ink: #121a5c;     /* darker indigo for hovers */
  --amber: #a67c2e;          /* Pro highlight (warm brass, readable on light) */
  --amber-bg: #fbf5e9;
  --silver-1: #3a3f45;       /* phone frame graphite */
  --silver-2: #14171a;
  --green: #1a8f4c;
  --red: #d0402c;
  --radius: 20px;
  --radius-sm: 14px;
  --container: 1120px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.10);
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.06);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.accent { color: var(--accent); }
.brand__accent { color: var(--muted); font-weight: 700; }

/* Scroll reveal (added by script.js; degrades gracefully) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* --- NAV --- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.brand__icon { border-radius: 7px; }
.nav__links { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--muted); }
.nav__links > a { transition: color .15s ease; }
.nav__links > a:hover { color: var(--text); }

.lang { display: flex; gap: 4px; background: rgba(0,0,0,0.05); padding: 3px; border-radius: 10px; }
.lang__btn {
  border: 0; background: transparent; cursor: pointer; line-height: 0;
  padding: 5px 7px; border-radius: 7px; filter: grayscale(0.5); opacity: 0.6; transition: all .15s ease;
}
.lang__btn svg { display: block; border-radius: 2px; }
.lang__btn:hover { opacity: 1; }
.lang__btn--active { background: #fff; filter: none; opacity: 1; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }

.btn { display: inline-block; padding: 8px 18px; border-radius: 980px; font-weight: 600; font-size: 14px;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); transform: translateY(-1px); }

/* --- HERO --- */
.hero { position: relative; padding: 92px 0 64px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.pill {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent);
  background: rgba(26,35,126,0.08); border: 1px solid rgba(26,35,126,0.22);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
}
.pill--amber { background: var(--amber); color: #fff; border: 0; letter-spacing: 0.09em; font-weight: 700; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
.hero h1 .accent { color: var(--text); background: linear-gradient(120deg, #6e7681, #1d1d1f); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lead { color: var(--muted); font-size: 21px; line-height: 1.45; margin: 24px 0 30px; max-width: 32em; }

.ticker {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; max-width: 340px; margin-bottom: 30px; box-shadow: var(--shadow-sm);
}
.ticker__row { display: flex; align-items: center; justify-content: space-between; }
.ticker__label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.ticker__status { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.ticker__status.live { background: var(--green); box-shadow: 0 0 8px rgba(26,143,76,0.6); animation: pulse 1.6s ease-in-out infinite; }
.ticker__status.error { background: var(--red); }
@keyframes pulse { 50% { opacity: .35; } }
.ticker__price { font-size: 38px; font-weight: 700; margin-top: 8px; letter-spacing: -0.02em; }
.ticker__unit { font-size: 15px; color: var(--muted); font-weight: 500; }
.ticker__meta { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Store badges */
.store-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.store-row--center { justify-content: center; margin-top: 34px; }
.store-badge { display: inline-block; transition: transform .15s ease, opacity .2s ease; }
.store-badge img { height: 52px; width: auto; }
.store-badge:hover { transform: translateY(-2px); opacity: 0.85; }
.hero__rating { color: var(--muted); font-size: 13px; margin-top: 16px; }

/* Phone */
.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__glow { position: absolute; inset: -12% -18%; z-index: -1;
  background: radial-gradient(closest-side, rgba(26,35,126,0.12), transparent 70%); filter: blur(24px); }
.phone {
  width: 264px; border-radius: 42px; padding: 11px;
  background: linear-gradient(155deg, var(--silver-1), var(--silver-2));
  border: 1px solid rgba(0,0,0,0.14); box-shadow: var(--shadow);
}
.phone--hero { width: 296px; }
/* .phone__shot: graceful fallback while screenshots are not yet rendered.
   A missing/broken PNG collapses to this indigo gradient placeholder with the
   brand mark instead of a broken-image icon. Once the real PNGs exist they
   simply cover it. min-height keeps the phone frame the right proportion. */
.phone__shot {
  width: 100%; border-radius: 32px; display: block; min-height: 420px;
  background:
    linear-gradient(160deg, #232a86 0%, #1A237E 45%, #0f1550 100%);
  position: relative;
}
.phone__shot::after {
  content: "WatchTracker"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65); font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
}
/* When the real image has loaded it paints over the ::after (which only shows
   on the broken <img> alt/placeholder box). */
.phone--lg .phone__shot { min-height: 560px; }
.phone--hero .phone__shot { min-height: 480px; }

/* --- TRUST STRIP --- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.trust__inner { display: flex; flex-wrap: wrap; gap: 16px 36px; justify-content: center; padding: 20px 24px; }
.trust__item { color: var(--muted); font-size: 14px; font-weight: 500; }

/* --- SECTIONS --- */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section__title { font-size: clamp(30px, 4vw, 48px); font-weight: 700; text-align: center; letter-spacing: -0.025em; line-height: 1.08; }
.section__sub { color: var(--muted); text-align: center; max-width: 34em; margin: 16px auto 0; font-size: 19px; line-height: 1.45; }
.section .grid, .section .steps, .section .showcase, .section .chips, .section .faq { margin-top: 56px; }

/* Features */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon { font-size: 30px; margin-bottom: 14px; }
.feature h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Big alternating feature sections (Apple product-page style) */
.feature-lg { padding: 104px 0; overflow: hidden; }
.feature-lg--alt { background: var(--bg-alt); }
.feature-lg__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature-lg--reverse .feature-lg__visual { order: -1; }
.feature-lg__eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--accent);
  letter-spacing: 0.02em; margin-bottom: 18px; }
.feature-lg__title { font-size: clamp(32px, 4.4vw, 50px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.06; }
.feature-lg__text { color: var(--muted); font-size: 21px; line-height: 1.5; margin-top: 20px; max-width: 20em; }
.feature-lg__visual { position: relative; display: flex; justify-content: center; }
.feature-lg__visual::before { content: ""; position: absolute; inset: -8% -6%; z-index: -1;
  background: radial-gradient(closest-side, rgba(26,35,126,0.09), transparent 72%); filter: blur(24px); }
.phone--lg { width: 348px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); }
.step__num {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 18px;
}
.step h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Showcase */
.showcase { display: flex; gap: 34px; justify-content: center; flex-wrap: wrap; }
.showcase__item { text-align: center; }
.showcase__item figcaption { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  background: var(--card); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 10px 18px; font-size: 15px; font-weight: 500; box-shadow: var(--shadow-sm);
}

/* Fact card */
.fact-card {
  display: flex; align-items: center; gap: 20px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px;
}
.fact-card__icon { font-size: 34px; }
.fact-card__body { flex: 1; }
.fact-card__label { color: var(--accent); font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.fact-card__text { color: var(--text); font-size: 17px; line-height: 1.5; }
.fact-card__next {
  flex-shrink: 0; border: 1px solid var(--line-2); background: #fff; color: var(--text);
  border-radius: 980px; padding: 9px 16px; font-size: 13px; font-weight: 500; cursor: pointer; transition: background .15s ease;
}
.fact-card__next:hover { background: var(--bg-alt); }

/* Pro */
.section--pro { padding: 100px 0; background: linear-gradient(180deg, #fffdf7, #ffffff); }
.pro__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.pro__list { list-style: none; margin: 24px 0 30px; display: grid; gap: 14px; }
.pro__list li { display: flex; align-items: center; gap: 12px; font-size: 17px; }
.check { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(26,143,76,0.12); color: var(--green); font-weight: 700; font-size: 14px; flex-shrink: 0; }
.pro__visual { display: flex; justify-content: center; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq__item summary {
  cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 17px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; letter-spacing: -0.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--accent); font-size: 24px; font-weight: 300; transition: transform .2s ease; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 24px 22px; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* CTA band */
.cta-band { padding: 100px 0; text-align: center; background: var(--bg-alt); }
.cta-band__icon { margin: 0 auto 20px; border-radius: 18px; box-shadow: var(--shadow-sm); }
.cta-band h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; }
.cta-band p { color: var(--muted); font-size: 19px; margin-top: 12px; }

/* Footer */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 48px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer__brand .brand { font-size: 18px; }
.footer__brand p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.footer__links a:hover { color: var(--text); }
.footer__legal { color: #86868b; font-size: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }

/* --- RESPONSIVE --- */
@media (max-width: 960px) {
  .hero { padding: 64px 0 48px; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 44px; }
  .feature-lg { padding: 68px 0; }
  .feature-lg__inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .feature-lg__visual, .feature-lg--reverse .feature-lg__visual { order: -1; }
  .feature-lg__text { margin-left: auto; margin-right: auto; }
  .phone--lg { width: 280px; }
  .hero__copy .lead { margin-left: auto; margin-right: auto; }
  .hero .store-row, .hero .ticker { margin-left: auto; margin-right: auto; }
  .hero__visual { order: -1; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .pro__inner { grid-template-columns: 1fr; }
  .pro__visual { order: -1; }
  .pro__copy .section__title, .pro__copy .section__sub { text-align: center !important; }
  .pro__list { max-width: 380px; margin-left: auto; margin-right: auto; }
  .pro__copy .store-row { justify-content: center; }
  .section { padding: 76px 0; }
}
@media (max-width: 720px) {
  .nav__links > a:not(.btn) { display: none; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .store-row { justify-content: center; }
  .store-badge img { height: 48px; }
  .fact-card { flex-direction: column; text-align: center; }
}
