/* ==========================================================================
   Whistle Keyboard — landing page styles
   All colors/spacing live in the :root custom properties below — that's the
   one place to touch for a palette or scale change instead of hunting
   through rules. Section-by-section after that, in the same order as the
   markup in index.html.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg:          oklch(0.97 0.006 75);
  --surface:     oklch(0.995 0.004 75);
  --ink:         oklch(0.17 0.006 75);
  --on-dark:     oklch(0.98 0.006 75);

  /* Text — greyscale steps, darkest to lightest */
  --ink-70:      oklch(0.35 0.006 75);
  --ink-60:      oklch(0.4 0.006 75);
  --ink-50:      oklch(0.45 0.006 75);
  --ink-40:      oklch(0.5 0.006 75);

  /* Accents */
  --coral:        oklch(0.62 0.16 25);
  --coral-dark:   oklch(0.5 0.16 25);
  --coral-soft:   oklch(0.62 0.16 25 / 0.12);
  --coral-link:       oklch(0.55 0.16 30);
  --coral-link-hover: oklch(0.45 0.16 30);
  --teal:         oklch(0.62 0.16 220);
  --gold:         oklch(0.72 0.12 70);

  /* Lines */
  --line:         oklch(0.17 0.006 75 / 0.08);
  --line-strong:  oklch(0.17 0.006 75 / 0.1);
  --line-cta:     oklch(0.17 0.006 75 / 0.2);

  /* Shadows */
  --shadow-card:  0 10px 24px -12px oklch(0.17 0.006 75 / 0.18);
  --shadow-media: 0 24px 48px -16px oklch(0.17 0.006 75 / 0.3);
  --shadow-hero:  0 40px 80px -20px oklch(0.17 0.006 75 / 0.35);

  --font-display: 'Anton', sans-serif;
  --font-body:    'Inter', sans-serif;

  --max-width: 1280px;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: oklch(0.62 0.16 25 / 0.25); }

/* ── Shared bits ───────────────────────────────────────────────────────── */
.eyebrow {
  color: var(--coral-dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.eyebrow--gold { color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
}
.btn--sm { padding: 11px 22px; font-size: 14px; }
.btn--dark  { background: var(--ink); color: var(--on-dark); }
.btn--light { background: var(--on-dark); color: var(--ink); }
.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-cta);
}
.btn__play-icon {
  width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--on-dark);
}
.btn--outline .btn__play-icon,
.btn__play-icon--dark { border-left-color: var(--ink); }

.section { max-width: var(--max-width); margin: 0 auto; padding: 0 48px; }
.section--pad    { padding-top: 80px; padding-bottom: 80px; }
.section--pad-sm { padding-top: 20px; padding-bottom: 96px; }
.section--narrow { max-width: 900px; }

.section__head { max-width: 600px; margin-bottom: 16px; }
.section__head--center { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.05;
  margin: 0 0 16px;
}
.section__lede {
  font-size: 17px;
  color: var(--ink-70);
  line-height: 1.6;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: oklch(0.97 0.006 75 / 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__logo { width: 30px; height: 30px; object-fit: contain; }
.nav__name { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 36px; font-weight: 600; font-size: 15px; }
.nav__links a:hover { color: var(--coral-link); }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 6px; cursor: pointer; }
.nav__toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { padding: 96px 48px 80px; max-width: var(--max-width); margin: 0 auto; }
.hero__inner { text-align: center; max-width: 760px; margin: 0 auto; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral-soft);
  color: var(--coral-dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 76px;
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  min-height: 150px;
}
.cursor {
  display: inline-block;
  width: 4px;
  height: 0.7em;
  background: currentColor;
  margin-left: 6px;
  vertical-align: -0.05em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.hero__subtitle { font-size: 19px; line-height: 1.55; color: var(--ink-70); max-width: 560px; margin: 0 auto 36px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero__stats { display: flex; gap: 40px; margin-top: 56px; justify-content: center; }
.stat__value { font-family: var(--font-display); font-size: 30px; }
.stat__label { font-size: 13px; color: var(--ink-50); font-weight: 600; }

.hero__shot { max-width: 1040px; margin: 56px auto 0; }
.hero__shot img { width: 100%; border-radius: 28px; box-shadow: var(--shadow-hero); }

/* ── Features (2-up card grid) ──────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feature-card__media {
  background: var(--bg);
  padding: 28px 28px 0;
  display: flex;
  justify-content: center;
}
.feature-card__media img { width: 100%; max-width: 240px; border-radius: 16px 16px 0 0; box-shadow: var(--shadow-media); }
.feature-card__body { padding: 24px 26px 28px; }
.feature-card__numeral { font-family: var(--font-display); font-size: 20px; margin-bottom: 10px; }
.feature-card__body h3 { font-size: 20px; font-weight: 800; line-height: 1.25; margin: 0 0 10px; }
.feature-card__body p { font-size: 14.5px; color: var(--ink-60); line-height: 1.6; }

/* ── App marquee ───────────────────────────────────────────────────────── */
.marquee { overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent); mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent); }
.marquee__track { display: flex; gap: 28px; width: max-content; animation: marquee 26s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee__icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.marquee__icon img { width: 38px; height: 38px; object-fit: contain; }
.marquee__note { text-align: center; font-size: 14px; color: var(--ink-40); margin-top: 36px; }

/* ── Step cards ────────────────────────────────────────────────────────── */
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.step-card__number { font-family: var(--font-display); font-size: 40px; color: var(--coral); margin-bottom: 20px; }
.step-card h3 { font-size: 20px; font-weight: 800; margin: 0 0 10px; }
.step-card p { font-size: 15px; color: var(--ink-60); line-height: 1.6; }

/* ── Trust / privacy ───────────────────────────────────────────────────── */
.trust__head { max-width: 640px; margin-bottom: 40px; }
.trust-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.trust-card h3 { font-size: 17px; font-weight: 800; margin: 0 0 10px; }
.trust-card p { font-size: 14.5px; color: var(--ink-60); line-height: 1.6; }

/* ── Pricing ───────────────────────────────────────────────────────────── */
.pricing { background: var(--ink); border-radius: 32px; padding: 64px; text-align: center; color: var(--on-dark); }
.section__head--on-dark .section__lede { color: oklch(0.85 0.006 75); }

/* Billing-period segmented control */
.billing-toggle {
  display: inline-flex;
  gap: 4px;
  background: oklch(0.24 0.006 75);
  border: 1px solid oklch(1 0 0 / 0.08);
  border-radius: 100px;
  padding: 4px;
  margin: 8px 0 40px;
}
.billing-toggle__opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: oklch(0.75 0.006 75);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 100px;
  cursor: pointer;
}
.billing-toggle__opt.is-active { background: var(--on-dark); color: var(--ink); }
.billing-toggle__save {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--gold);
  color: var(--ink);
}
.billing-toggle__opt:not(.is-active) .billing-toggle__save { background: oklch(0.72 0.12 70 / 0.22); color: var(--gold); }

.pricing__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 340px));
  gap: 24px;
  justify-content: center;
  margin: 0 0 28px;
  text-align: left;
}
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: oklch(0.22 0.006 75);
  border: 1px solid oklch(1 0 0 / 0.08);
  border-radius: 20px;
  padding: 28px;
}
.pricing-card--highlight { border-color: var(--gold); background: oklch(0.24 0.03 70); }
.pricing-card__ribbon {
  position: absolute;
  top: -13px; left: 24px;
  background: var(--gold);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 14px;
  border-radius: 100px;
}
.pricing-card__name { font-weight: 700; font-size: 14px; color: oklch(0.75 0.006 75); margin-bottom: 10px; }
.pricing-card__price { font-family: var(--font-display); font-size: 34px; }
.pricing-card__price span { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: oklch(0.75 0.006 75); }
.pricing-card__billed { font-size: 12.5px; color: oklch(0.65 0.006 75); margin-bottom: 12px; margin-top: 2px; }
.pricing-card__desc { font-size: 14px; color: oklch(0.8 0.006 75); line-height: 1.55; margin: 12px 0 18px; }
.pricing-card__list { display: flex; flex-direction: column; gap: 9px; font-size: 14px; margin-bottom: 24px; }
.pricing-card__list li { padding-left: 20px; position: relative; }
.pricing-card__list li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.pricing-card__cta { justify-content: center; margin-top: auto; }
.pricing-card .btn--outline { border-color: oklch(1 0 0 / 0.2); color: var(--on-dark); }
.pricing__note { font-size: 13px; color: oklch(0.6 0.006 75); }

/* ── Testimonials ──────────────────────────────────────────────────────── */
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stars { color: var(--gold); font-size: 15px; letter-spacing: 2px; }
.testimonial-card p { font-size: 15px; font-style: italic; color: var(--ink-60); line-height: 1.6; }
.testimonial-card__name { font-size: 13px; font-weight: 700; color: oklch(0.3 0.006 75); }

/* ── Repeat CTA ────────────────────────────────────────────────────────── */
.repeat-cta {
  text-align: center;
  background: var(--coral-soft);
  border-radius: 32px;
  padding: 64px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.repeat-cta h2 { font-family: var(--font-display); font-weight: 400; font-size: 38px; max-width: 640px; }
.repeat-cta p { font-size: 16px; color: var(--ink-60); }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 22px 24px;
  background: var(--surface);
  cursor: pointer;
}
.faq-item__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item__question { font-weight: 700; font-size: 16px; }
.faq-item__icon { font-size: 20px; color: var(--ink-40); flex: 0 0 auto; }
.faq-item__answer { font-size: 15px; color: var(--ink-60); line-height: 1.6; margin-top: 14px; display: none; }
.faq-item.is-open .faq-item__answer { display: block; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer { padding: 64px 48px 40px; max-width: var(--max-width); margin: 0 auto; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  border-top: 1px solid var(--line-strong);
  padding-top: 48px;
}
.footer__brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer__logo { width: 26px; height: 26px; object-fit: contain; }
.footer__brand-row span { font-weight: 800; font-size: 17px; }
.footer__brand p { font-size: 14px; color: var(--ink-50); line-height: 1.6; max-width: 280px; }
.footer__col-title { font-weight: 700; font-size: 13px; letter-spacing: 0.04em; color: var(--ink-60); margin-bottom: 16px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__col a { color: oklch(0.3 0.006 75); }
.footer__col a:hover { color: var(--coral-link); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-40);
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav { padding: 16px 20px; }
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav__links.is-open { max-height: 260px; }
  .nav__links a { padding: 14px 20px; border-top: 1px solid var(--line); }
  .nav__toggle { display: flex; }

  .hero { padding-top: 64px; }
  .hero, .section { padding-left: 20px; padding-right: 20px; }
  .hero__title { font-size: 44px !important; min-height: 96px; }
  .hero__stats { gap: 28px; }
  .section__title { font-size: 32px; }
  .section--pad { padding-top: 56px; padding-bottom: 56px; }

  .grid-3 { grid-template-columns: 1fr; }

  .feature-grid { grid-template-columns: 1fr; gap: 20px; }
  .feature-card__media img { max-width: 200px; }

  .marquee__icon { width: 60px; height: 60px; border-radius: 16px; }
  .marquee__icon img { width: 30px; height: 30px; }

  .pricing { padding: 40px 20px; border-radius: 24px; }
  .billing-toggle { display: flex; width: 100%; margin-left: 0; margin-right: 0; }
  .billing-toggle__opt { flex: 1; justify-content: center; padding: 10px 8px; font-size: 13px; }
  .pricing__cards { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }

  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { padding-top: 48px; padding-bottom: 56px; }
  .badge { font-size: 11px; padding: 7px 13px; }
  .hero__title { font-size: 34px !important; min-height: 76px; letter-spacing: -0.02em; }
  .hero__subtitle { font-size: 16px; }
  .hero__stats { gap: 20px; margin-top: 40px; }
  .stat__value { font-size: 24px; }
  .stat__label { font-size: 11px; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }

  .section__title { font-size: 26px; }
  .section__lede { font-size: 15.5px; }
  .section--pad { padding-top: 44px; padding-bottom: 44px; }
  .section--pad-sm { padding-bottom: 64px; }

  .feature-card__body { padding: 20px 20px 22px; }
  .feature-card__body h3 { font-size: 18px; }

  .step-card, .trust-card { padding: 22px; }

  .pricing-card { padding: 22px; }
  .pricing-card__price { font-size: 28px; }

  .repeat-cta { padding: 44px 22px; }
  .repeat-cta h2 { font-size: 28px; }

  .faq-item { padding: 18px 18px; }
}
