/* ============================================================================
   Bona — style.css
   Nike-inspired redesign: pure white canvas, near-black type, one deliberate
   accent color. Mobile-first; min-width media queries layer on larger-screen
   refinements at ~640px and ~1000px.

   ----------------------------------------------------------------------------
   ACCENT SWITCH — the whole point of the custom-property setup below.
   Default accent is turquoise. To ship the red variant, add the attribute
   to the root element — no other file needs to change:

       <html lang="en" data-accent="red">

   Everything accent-colored (buttons, badge, checkmarks, step numbers,
   focus rings, links, kickers) reads from the --accent-* variables, so the
   one attribute flips the whole site.
   ============================================================================ */

:root {
  /* Turquoise (default) */
  --accent: #00bfb3; /* bright turquoise — buttons, icons, large accents */
  --accent-ink: #111111; /* text/icon color ON accent buttons — dark text
                             on this accent passes WCAG AA (~8.2:1) */
  --accent-deep: #0e7c77; /* darker companion: hover states + any accent
                             text ON white (~5.0:1, passes AA) */
  --accent-tint: #e6faf8; /* very light tint for badge / chip backgrounds */

  --color-bg: #ffffff;
  --color-bg-alt: #f6f6f6;
  --color-ink: #111111;
  --color-ink-soft: #6e6e6e;
  --color-border: #e5e5e5;
  --color-error: #c0392b;

  --font-display: "Archivo", system-ui, -apple-system, "Helvetica Neue",
    Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;

  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-soft: 0 1px 2px rgba(17, 17, 17, 0.04), 0 12px 32px rgba(17, 17, 17, 0.06);

  --max-width: 1160px;
}

html[data-accent="red"] {
  /* Confident modern red */
  --accent: #e3242b;
  --accent-ink: #ffffff; /* white text on this red passes AA (~4.6:1) */
  --accent-deep: #b91c1c; /* hover state + accent text on white (~6.5:1) */
  --accent-tint: #fdeaea;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Keep anchor targets clear of the sticky header when scrolled to. */
[id] {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-deep);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--color-ink);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1,
h2 {
  text-wrap: balance; /* avoids single-word widow lines on big headlines */
}

p {
  margin: 0 0 1em;
}

/* Small uppercase eyebrow labels — "WHY BONA", "HOW IT WORKS", etc. */
.kicker {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.9em;
}

.visually-hidden,
.visually-hidden-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
}

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

.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  text-decoration: none;
}

.nav-cta {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  color: #ffffff;
  background: var(--color-ink);
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: #333333;
}

.nav-cta:active {
  transform: translateY(1px);
}

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

.hero {
  padding: 56px 0 64px;
}

.hero-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero-badge svg circle,
.success-icon circle {
  fill: var(--accent);
}

.badge-check {
  stroke: var(--accent-ink);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: 18ch;
  margin: 0 auto 0.45em;
}

.hero .subhead {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  max-width: 34ch;
  margin: 0 auto 0.6em;
}

.hero .lede {
  font-size: 1.05rem;
  color: var(--color-ink-soft);
  max-width: 44ch;
  margin: 0 auto;
}

/* ----------------------------------------------------------------------
   Waitlist form
   ---------------------------------------------------------------------- */

.waitlist-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 28px 22px 26px;
  margin: 40px auto 0;
  max-width: 560px;
  text-align: left;
}

.waitlist-form .form-row {
  margin-bottom: 16px;
}

.waitlist-form label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 7px;
  color: var(--color-ink);
}

.waitlist-form input[type="email"],
.waitlist-form input[type="text"] {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 13px 15px;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg);
  color: var(--color-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.waitlist-form input:focus-visible {
  outline: none;
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.waitlist-form input[aria-invalid="true"] {
  border-color: var(--color-error);
}

.field-help {
  font-size: 0.82rem;
  color: var(--color-ink-soft);
  margin-top: 6px;
}

.field-error {
  font-size: 0.82rem;
  color: var(--color-error);
  margin-top: 6px;
  font-weight: 600;
}

.field-error[hidden] {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.08s ease,
    opacity 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  width: 100%;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-deep);
  /* --accent-deep is dark in both variants, so hover text is always white
     (white on #0e7c77 ≈ 5.0:1, on #b91c1c ≈ 6.5:1 — both pass AA). */
  color: #ffffff;
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: default;
}

.btn-primary:active:not(:disabled) {
  transform: translateY(1px);
}

.trust-line {
  font-size: 0.8rem;
  color: var(--color-ink-soft);
  text-align: center;
  margin: 16px 0 0;
}

/* Success state */

.waitlist-success {
  text-align: left;
}

.waitlist-success .success-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
}

.waitlist-success h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.referral-block {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.referral-block p {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.referral-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.referral-row input {
  flex: 1 1 200px;
  font: inherit;
  font-size: 0.85rem;
  padding: 11px 13px;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg-alt);
  color: var(--color-ink-soft);
}

.btn-secondary {
  background: var(--accent-tint);
  color: var(--accent-deep);
  padding: 11px 18px;
  font-size: 0.85rem;
  flex: 0 0 auto;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ----------------------------------------------------------------------
   Sections — shared rhythm
   ---------------------------------------------------------------------- */

.section {
  padding: 80px 0;
}

.section-heading {
  text-align: center;
  max-width: 44ch;
  margin: 0 auto 44px;
}

.section-heading h2 {
  font-size: 2rem;
  font-weight: 800;
}

/* ----------------------------------------------------------------------
   Benefit blocks — open columns, no boxed cream cards
   ---------------------------------------------------------------------- */

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.benefit-card {
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.benefit-card .icon {
  width: 26px;
  height: 26px;
  /* --accent-deep stays dark in both variants (accent-ink flips to white
     in the red variant, which would vanish on the pale tint). */
  color: var(--accent-deep);
  padding: 13px;
  background: var(--accent-tint);
  border-radius: 50%;
  box-sizing: content-box;
  margin-bottom: 20px;
}

.benefit-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.benefit-card p {
  color: var(--color-ink-soft);
  font-size: 1rem;
  margin-bottom: 0;
  max-width: 42ch;
}

/* ----------------------------------------------------------------------
   How it works — steps
   ---------------------------------------------------------------------- */

.steps-section {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 56px 24px;
}

.steps-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.step-number {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent-deep);
  min-width: 1.4ch;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.step p {
  color: var(--color-ink-soft);
  font-size: 0.98rem;
  margin-bottom: 0;
}

/* ----------------------------------------------------------------------
   Second CTA
   ---------------------------------------------------------------------- */

.cta-section {
  text-align: center;
  padding: 80px 0;
  border-top: 1px solid var(--color-border);
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-section p {
  max-width: 44ch;
  margin: 0 auto 32px;
  color: var(--color-ink-soft);
  font-size: 1.05rem;
}

.cta-section .btn-primary {
  width: auto;
  padding: 16px 34px;
}

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

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 0 48px;
}

.footer-promise {
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-ink);
  margin-bottom: 12px;
}

.footer-name-note {
  color: var(--color-ink-soft);
  font-size: 0.9rem;
  max-width: 56ch;
}

.footer-name-note em {
  font-style: italic;
}

.footer-copyright {
  color: var(--color-ink-soft);
  font-size: 0.82rem;
  margin: 20px 0 0;
}

/* ----------------------------------------------------------------------
   Fade-in (subtle, respects reduced motion)
   ---------------------------------------------------------------------- */

.fade-in {
  animation: bona-fade-in 0.5s ease both;
}

@keyframes bona-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .fade-in {
    animation: none;
  }
  * {
    scroll-behavior: auto !important;
  }
}

/* ----------------------------------------------------------------------
   Breakpoints
   ---------------------------------------------------------------------- */

@media (min-width: 640px) {
  .container {
    padding: 0 32px;
  }

  .hero {
    padding: 72px 0 88px;
  }

  .hero h1 {
    font-size: 3.4rem;
    max-width: 22ch;
  }

  .hero .subhead {
    font-size: 1.3rem;
  }

  .hero .lede {
    font-size: 1.1rem;
  }

  .waitlist-card {
    padding: 40px 44px 42px;
  }

  .waitlist-form .form-row-group {
    display: flex;
    gap: 18px;
  }

  .waitlist-form .form-row-group .form-row {
    flex: 1;
  }

  .btn-primary {
    width: auto;
    padding: 16px 32px;
  }

  .waitlist-form .btn-primary {
    width: 100%;
  }

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

  .benefit-card {
    padding-top: 36px;
  }

  .steps-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  .section-heading h2 {
    font-size: 2.5rem;
  }

  .cta-section h2 {
    font-size: 2.5rem;
  }

  .section {
    padding: 96px 0;
  }

  .steps-section {
    padding: 72px 56px;
  }
}

@media (min-width: 1000px) {
  .hero {
    padding: 112px 0 128px;
  }

  .hero-intro {
    max-width: 860px;
  }

  .hero h1 {
    font-size: 4.6rem;
    max-width: 20ch;
    letter-spacing: -0.03em;
  }

  .hero .subhead {
    font-size: 1.5rem;
  }

  .hero .lede {
    font-size: 1.15rem;
  }

  .waitlist-card {
    margin-top: 56px;
  }

  .section {
    padding: 128px 0;
  }

  .section-heading {
    margin-bottom: 56px;
  }

  .section-heading h2 {
    font-size: 3rem;
  }

  .cta-section {
    padding: 128px 0;
  }

  .cta-section h2 {
    font-size: 3rem;
  }

  .footer-promise {
    font-size: 1.2rem;
  }
}
