@import url("fonts.css");

/* =========================================================================
   renovio — waitlist landing
   Design system: terracotta + slate, Manrope, light + dark.
   Dials: VARIANCE 6 / MOTION 4 / DENSITY 3. Trust-first, conversion-focused.
   ========================================================================= */

:root {
  /* ---- Light theme (default) ---- */
  /* Refined "clay + warm charcoal" premium palette (OKLCH).
     Muted clay accent (low chroma) + warm-charcoal darks + near-neutral lights.
     Inspired by studio-pilate / meraki restraint; avoids cream/beige + loud-orange tells. */
  --bg:          oklch(0.977 0.002 60);   /* clean near-neutral, faint warmth (not cream) */
  --surface:     oklch(0.996 0.001 60);   /* white surface */
  --surface-2:   oklch(0.955 0.004 55);   /* soft neutral-greige, alt sections */
  --ink:         oklch(0.275 0.012 50);   /* warm charcoal — body/headings */
  --ink-soft:    oklch(0.452 0.014 50);   /* muted, >=4.5:1 on --bg */
  --ink-faint:   oklch(0.49 0.013 50);    /* captions/microcopy, >=4.5:1 small text */
  --line:        oklch(0.905 0.005 55);
  --line-strong: oklch(0.82 0.008 52);

  --brand:       oklch(0.565 0.103 42);   /* muted clay terracotta — accents */
  --brand-deep:  oklch(0.45 0.098 40);    /* clay text on light / hover */
  --brand-cta:   oklch(0.475 0.11 41);    /* solid CTA bg, white text >=4.5:1 */
  --brand-tint:  oklch(0.95 0.02 44);     /* soft clay wash */
  --on-brand:    #ffffff;

  --slate-deep:  oklch(0.245 0.018 45);   /* warm charcoal drenched band */

  --shadow-sm:  0 1px 2px oklch(0.3 0.02 45 / .07), 0 2px 6px oklch(0.3 0.02 45 / .05);
  --shadow-md:  0 4px 14px oklch(0.3 0.02 45 / .09), 0 14px 34px oklch(0.3 0.02 45 / .08);
  --shadow-cta: 0 7px 20px oklch(0.475 0.11 41 / .3);

  --radius:     14px;
  --radius-sm:  10px;
  --radius-lg:  20px;
  --radius-pill: 999px;

  --maxw: 1120px;

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur: 220ms;

  /* z-scale */
  --z-header: 50;
  --z-toast: 80;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          oklch(0.215 0.01 45);    /* warm charcoal */
    --surface:     oklch(0.265 0.012 45);
    --surface-2:   oklch(0.245 0.012 45);
    --ink:         oklch(0.95 0.005 70);     /* warm bone */
    --ink-soft:    oklch(0.78 0.01 60);
    --ink-faint:   oklch(0.665 0.012 52);
    --line:        oklch(0.36 0.01 45);
    --line-strong: oklch(0.43 0.012 45);

    --brand:       oklch(0.7 0.108 46);      /* lighter clay for dark */
    --brand-deep:  oklch(0.77 0.10 48);
    --brand-cta:   oklch(0.53 0.122 42);     /* darker clay so white text >=4.5:1 */
    --brand-tint:  oklch(0.31 0.028 40);
    --on-brand:    #ffffff;

    --slate-deep:  oklch(0.16 0.01 45);

    --shadow-sm:  0 1px 2px oklch(0 0 0 / .32);
    --shadow-md:  0 6px 20px oklch(0 0 0 / .42);
    --shadow-cta: 0 7px 20px oklch(0.53 0.122 42 / .4);
    color-scheme: dark;
  }
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.62;
  font-size: 17px;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Brand-tinted selection + scrollbar (studio-pilate-inspired polish) */
::selection { background: var(--brand); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ink) 24%, transparent); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--ink) 38%, transparent); }

/* Very subtle warm film grain — fixed overlay only (never on scroll containers) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.03; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { body::after { opacity: 0.05; mix-blend-mode: screen; } }

img, svg { display: block; max-width: 100%; }
a { color: var(--brand-deep); text-underline-offset: 3px; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

/* ---- Skip link ---- */
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top var(--dur) var(--ease-out);
}
.skip:focus { top: 16px; }

/* ---- Typography ---- */
.display {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.99;
  text-wrap: balance;
  font-size: clamp(2.35rem, 1.35rem + 4.5vw, 4.75rem);
}
.h2 {
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.06;
  font-size: clamp(1.75rem, 1.2rem + 2.3vw, 2.85rem);
  text-wrap: balance;
}
/* tabular figures for any numeric block — architectural precision */
.tnum, .price-card__num, .opt__price, .price-card__meta { font-variant-numeric: tabular-nums; font-feature-settings: "ss01", "tnum"; }
.h3 { font-weight: 700; letter-spacing: -0.015em; font-size: 1.18rem; line-height: 1.25; }
.lead { font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.22rem); color: var(--ink-soft); max-width: 56ch; text-wrap: pretty; }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-deep);
}
.muted { color: var(--ink-soft); }
.fine { font-size: .85rem; color: var(--ink-faint); line-height: 1.55; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: inherit; font-weight: 700; font-size: 1.02rem;
  padding: .92em 1.5em; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 140ms var(--ease-out), background-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out), border-color var(--dur);
  will-change: transform;
}
.btn:active { transform: scale(.975); }
.btn--primary { background: var(--brand-cta); color: var(--on-brand); box-shadow: var(--shadow-cta); }
.btn--primary:hover { background: var(--brand-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-deep); }
.btn--lg { padding: 1.05em 1.8em; font-size: 1.08rem; }
.btn--block { width: 100%; }

/* ---- Header ---- */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur), background-color var(--dur);
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name { font-weight: 800; font-size: 1.32rem; letter-spacing: -0.03em; }
.brand__name b { color: var(--brand); font-weight: 800; }
.header__cta { font-size: .95rem; padding: .62em 1.15em; }
@media (max-width: 560px) { .header__cta { display: none; } }

/* ---- Hero ---- */
.hero { position: relative; isolation: isolate; padding: clamp(56px, 8.5vw, 104px) 0 clamp(44px, 6vw, 80px); }
.hero::before {
  content: ""; position: absolute; inset: -10% 0 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(58% 46% at 80% 12%, color-mix(in srgb, var(--brand) 13%, transparent), transparent 68%),
    radial-gradient(64% 56% at 4% 4%, color-mix(in srgb, var(--brand) 6%, transparent), transparent 62%);
}
.hero__grid {
  display: grid; grid-template-columns: 1.25fr minmax(300px, 0.8fr); gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
@media (max-width: 880px) { .hero__grid { grid-template-columns: 1fr; gap: 32px; } }

.hero__status {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .85rem; font-weight: 600; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line);
  padding: .4em .9em; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
  margin-bottom: 1.3rem;
}
.hero__status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.hero h1 { margin-bottom: 1.1rem; }
.hero__sub { margin-bottom: 1.6rem; }
.hero__sub strong { color: var(--ink); font-weight: 800; }
.hero__cta-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero__timeline { display: flex; align-items: flex-start; gap: .6rem; margin-top: 1.3rem; font-size: .96rem; font-weight: 500; color: var(--ink-soft); max-width: 48ch; line-height: 1.5; }
.hero__timeline svg { width: 21px; height: 21px; color: var(--brand); flex: none; margin-top: .1rem; }
.hero__timeline strong { color: var(--ink); font-weight: 800; }
.hero__micro { margin-top: .65rem; }

/* price aside card */
.price-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.price-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), color-mix(in oklch, var(--brand), white 32%));
}
.price-card__label { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.price-card__from { font-size: .95rem; color: var(--ink-soft); margin-top: .9rem; }
.price-card__num { font-weight: 800; letter-spacing: -0.042em; font-size: clamp(2.6rem, 2rem + 2vw, 3.2rem); line-height: 1; color: var(--ink); margin: .15rem 0 .2rem; white-space: nowrap; }
.price-card__num span { color: var(--brand); font-size: .5em; font-weight: 800; vertical-align: .62em; margin-left: .06em; letter-spacing: 0; }
.price-card__meta { display: grid; gap: .55rem; margin-top: 1.3rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.price-card__meta div { display: flex; align-items: center; gap: .6rem; font-size: .96rem; color: var(--ink-soft); }
.price-card__meta svg { width: 19px; height: 19px; color: var(--brand); flex: none; }

/* ---- Section frame ---- */
.section { padding: clamp(64px, 9vw, 124px) 0; }
.section__head { max-width: 46ch; margin-bottom: clamp(34px, 4.5vw, 60px); }
.section__head .h2 { margin-bottom: .85rem; }

/* ---- Why list (feature list, not cards) ---- */
.why { background: var(--surface-2); }
.why__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
@media (max-width: 720px) { .why__grid { grid-template-columns: 1fr; } }
.why__item {
  background: var(--surface); padding: clamp(18px, 2.4vw, 24px);
  display: flex; gap: .9rem; align-items: flex-start;
}
.why__item .ico {
  width: 30px; height: 30px; flex: none; border-radius: 8px;
  background: var(--brand-tint); color: var(--brand-deep);
  display: grid; place-items: center;
}
.why__item .ico svg { width: 18px; height: 18px; }
.why__item h3 { font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; margin-bottom: .2rem; }
.why__item p { font-size: .94rem; color: var(--ink-soft); line-height: 1.5; }

/* ---- Two options ---- */
.options__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 24px); }
@media (max-width: 760px) { .options__grid { grid-template-columns: 1fr; } }
.opt {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 3.8vw, 38px); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .35s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .opt:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
  .opt--feature:hover { border-color: var(--brand-deep); }
}
@media (prefers-reduced-motion: reduce) { .opt { transition: none; } }
.opt--feature { border-color: var(--brand); box-shadow: var(--shadow-md); position: relative; }
.opt__tag {
  align-self: flex-start; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-deep); background: var(--brand-tint); padding: .35em .8em; border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
.opt__tag--plain { color: var(--ink-faint); background: var(--surface-2); }
.opt__name { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.opt__price { font-weight: 800; font-size: clamp(2.1rem, 1.7rem + 1.4vw, 2.6rem); letter-spacing: -0.04em; margin: .4rem 0 1rem; }
.opt__price small { font-size: 1rem; font-weight: 600; color: var(--ink-faint); }
.opt__desc { color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }
.opt__desc em { color: var(--ink-faint); font-style: italic; font-size: .92rem; display: inline-block; margin-top: .5rem; }
.options__note { margin-top: 1.3rem; }

/* ---- Form ---- */
.signup { background: var(--surface-2); }
.signup__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: clamp(26px, 4vw, 46px);
  max-width: 600px; margin-inline: auto;
}
.signup__card .h2 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 1.85rem); }
.form { display: grid; gap: 1.05rem; margin-top: 1.6rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 700; font-size: .92rem; }
.field .req { color: var(--brand); }
.field input {
  font: inherit; font-size: 1rem; padding: .8em .95em; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong); background: var(--bg); color: var(--ink);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.field input::placeholder { color: var(--ink-faint); }
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.field.is-invalid input { border-color: #c0392b; }
.field__err { font-size: .82rem; color: #c0392b; display: none; }
.field.is-invalid .field__err,
fieldset.is-invalid .field__err { display: block; }
fieldset.is-invalid .radio { border-color: #c0392b; }

fieldset { border: 0; padding: 0; display: grid; gap: .55rem; }
legend { font-weight: 700; font-size: .92rem; margin-bottom: .15rem; }
.radios { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
@media (max-width: 460px) { .radios { grid-template-columns: 1fr; } }
.radio {
  display: flex; align-items: center; gap: .6rem; cursor: pointer;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: .75em .9em; font-weight: 600; font-size: .96rem;
  transition: border-color var(--dur), background-color var(--dur);
}
.radio:hover { border-color: var(--brand); }
.radio input { accent-color: var(--brand); width: 18px; height: 18px; }
.radio:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }

/* honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__note { margin-top: .3rem; }
.btn.is-loading { color: transparent; pointer-events: none; position: relative; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.success { display: grid; gap: .8rem; text-align: center; padding: clamp(10px, 2vw, 24px) 0; }
.success__check {
  width: 56px; height: 56px; margin-inline: auto; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand-deep); display: grid; place-items: center;
}
.success__check svg { width: 28px; height: 28px; }

/* ---- Scarcity band ---- */
.scarcity { background: var(--slate-deep); color: oklch(0.93 0.008 70); padding: clamp(56px, 9vw, 104px) 0; text-align: center; }
.scarcity .h2 { color: oklch(0.985 0.004 70); max-width: 18ch; margin-inline: auto; }
.scarcity p { color: oklch(0.8 0.012 65); max-width: 50ch; margin: 1rem auto 2rem; }
.scarcity .btn--primary { box-shadow: 0 6px 22px rgba(0,0,0,.35); }

/* ---- Footer ---- */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 40px 0; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.footer__links { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer__links a { color: var(--ink-soft); text-decoration: none; font-size: .92rem; }
.footer__links a:hover { color: var(--brand-deep); }
.footer .fine { max-width: 60ch; margin-top: 1rem; }

/* ---- Hero headline line-mask reveal (studio-pilate-inspired) ---- */
.hl { display: block; overflow: hidden; padding-bottom: .08em; }
.hl > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .hl > span { transform: translateY(112%); animation: hlUp .95s var(--ease-expo) both; }
  .hl:nth-child(1) > span { animation-delay: .06s; }
  .hl:nth-child(2) > span { animation-delay: .18s; }
  .hl:nth-child(3) > span { animation-delay: .30s; }
}
@keyframes hlUp { to { transform: translateY(0); } }

/* ---- CTA arrow badge (slides on hover) ---- */
.btn--arrow { padding-right: .5em; }
.btn__badge {
  display: grid; place-items: center; width: 1.85em; height: 1.85em; flex: none;
  border-radius: 50%; background: rgba(255,255,255,.22); margin-left: .2em;
  font-size: .85em; line-height: 1; transition: transform .4s var(--ease-expo);
}
.btn:hover .btn__badge { transform: translateX(3px); }
.btn--ghost .btn__badge { background: color-mix(in srgb, var(--brand) 15%, transparent); color: var(--brand-deep); }

/* ---- Magnetic wrapper (hero CTA) ---- */
.magnetic { display: inline-block; transition: transform .45s var(--ease-spring); will-change: transform; }
@media (prefers-reduced-motion: reduce) { .magnetic { transition: none; } }

/* ---- Curved section dividers (architectural hand-off) ---- */
.wave { position: relative; width: 100%; height: 6.5vw; max-height: 88px; min-height: 40px; line-height: 0; margin-bottom: -1px; }
.wave svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---- Reveal motion (enhances already-visible content) ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
  .reveal.is-in { opacity: 1; transform: none; }
  .reveal[data-d="1"] { transition-delay: .06s; }
  .reveal[data-d="2"] { transition-delay: .12s; }
  .reveal[data-d="3"] { transition-delay: .18s; }
}
