/*
 * Public landing page (/welcome). Brand tokens follow public/css/admin.css.
 * Shape rule: buttons, chips and swatches are full pills; frames and cells use --radius.
 */

:root {
  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-ui: "Plus Jakarta Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --bg: #faf9fb;
  --surface: #ffffff;
  --tint: #f3f0f6;
  --ink: #1d1530;
  --ink-2: #4a4458;
  --muted: #645e70;
  --line: #e6e1ec;
  --accent: #e8475f;
  --accent-ink: #b8233c;
  --accent-soft: #fff0f1;
  --btn: #1d1530;
  --btn-text: #ffffff;
  --shadow: 0 1px 2px rgba(29, 21, 48, .05), 0 18px 40px -18px rgba(29, 21, 48, .28);

  --radius: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141019;
    --surface: #1c1724;
    --tint: #211b2b;
    --ink: #f4f1f7;
    --ink-2: #d3ccdc;
    --muted: #a9a1b6;
    --line: #2f2839;
    --accent: #ff6b7f;
    --accent-ink: #ff8f9e;
    --accent-soft: #2e1820;
    --btn: #f4f1f7;
    --btn-text: #1d1530;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; }
p { margin: 0; }

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

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 15px/1 var(--font-ui);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--primary { background: var(--btn); color: var(--btn-text); }
.btn--primary:hover { background: color-mix(in srgb, var(--btn) 86%, var(--accent)); }
.btn--primary .ph { transition: transform .2s var(--ease); }
.btn--primary:hover .ph { transform: translateX(3px); }
.btn--ghost { color: var(--ink); }
.btn--ghost:hover { background: var(--tint); }
.btn--outline { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--outline:hover { border-color: var(--ink-2); }

/* ---------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none; }
.nav__links a:hover { color: var(--ink); }
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 32px; height: 32px; }
.brand__name { font: 700 17px/1 var(--font-display); letter-spacing: -.01em; }
.brand__name span { color: var(--muted); font-weight: 600; }
@media (max-width: 420px) { .brand__name span { display: none; } }

/* --------------------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
  min-height: calc(100dvh - 68px);
  padding-top: 48px;
  padding-bottom: 64px;
}
.hero__title { font-size: clamp(40px, 5.4vw, 66px); line-height: 1.04; letter-spacing: -.035em; max-width: 12ch; }
.hero__lead { margin-top: 22px; max-width: 40ch; color: var(--ink-2); font-size: 19px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

.hero__visual { position: relative; padding-left: 64px; }
.hero__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: calc(100dvh - 180px);
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--tint);
}
.hero__widget {
  position: absolute;
  left: 0;
  bottom: 28px;
  width: min(380px, 80%);
  padding: 18px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
}
.hero__widget .gf-root { margin: 0; }
.hero__widget .gf-root > :first-child { margin-top: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 40px; padding-top: 40px; }
  .hero__visual { padding-left: 0; }
  .hero__photo { aspect-ratio: 4 / 3; max-height: none; }
  .hero__widget { position: relative; width: auto; margin: -56px 16px 0; }
}

/* ----------------------------------------------------- shared headings */

.section-title { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; max-width: 22ch; }
.section-lead { margin-top: 14px; max-width: 58ch; color: var(--ink-2); font-size: 17px; }
.eyebrow { margin-bottom: 12px; color: var(--accent-ink); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

section.wrap { padding-top: 112px; }
@media (max-width: 640px) { section.wrap { padding-top: 80px; } }

/* -------------------------------------------------------------- offers */

.offers__grid { display: grid; grid-template-columns: 360px 1fr; gap: 40px; margin-top: 48px; align-items: start; }

.offers__tabs { display: flex; flex-direction: column; gap: 4px; }
.tab {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s;
}
.tab:hover { background: var(--tint); }
.tab[aria-selected="true"] { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tab__icon { margin-top: 2px; font-size: 22px; color: var(--muted); transition: color .2s; }
.tab[aria-selected="true"] .tab__icon { color: var(--accent); }
.tab__body { display: grid; gap: 2px; }
.tab__name { font-weight: 700; font-size: 16px; }
.tab__text { color: var(--muted); font-size: 14px; line-height: 1.5; }

.stage {
  display: grid;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--tint);
}
.stage__controls { display: flex; flex-wrap: wrap; gap: 20px 32px; }
.control { display: grid; gap: 8px; }
.control__label { color: var(--muted); font-size: 13px; font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font: 600 13px/1 var(--font-ui);
  cursor: pointer;
}
.chip:hover { border-color: var(--ink-2); }
.chip[aria-checked="true"] { background: var(--btn); border-color: var(--btn); color: var(--btn-text); }

.swatches { display: flex; gap: 8px; }
.swatch {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--swatch);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
}
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--ink); }

.stage__frame {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 32px;
  border-radius: 14px;
  background: var(--surface);
}
.stage__frame .gf-root { width: 100%; max-width: 520px; margin: 0; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.stage__frame.is-switching .gf-root { opacity: 0; transform: translateY(6px); }

@media (prefers-color-scheme: dark) {
  /* The widgets keep the store's light design; give them a light frame. */
  .stage__frame { background: #ffffff; }
}

@media (max-width: 960px) {
  .offers__grid { grid-template-columns: 1fr; gap: 20px; }
  .offers__tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; }
  .tab { flex: 0 0 auto; scroll-snap-align: start; padding: 10px 14px; }
  .tab__text { display: none; }
  .stage { padding: 16px; }
  .stage__frame { min-height: 0; padding: 20px 12px; }
}

/* ------------------------------------------------------------ placement */

.bento {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  margin-top: 48px;
}
.cell { position: relative; overflow: hidden; border-radius: var(--radius); padding: 28px; }
.cell h3 { font-size: 21px; line-height: 1.25; }
.cell p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

.cell--product { grid-row: span 2; display: flex; flex-direction: column; padding: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.cell--product img { flex: 1; width: 100%; min-height: 300px; object-fit: cover; }
.cell--product .cell__body { padding: 24px 28px 28px; }

.cell--cart { grid-column: span 2; display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; background: var(--tint); }
.cell__widget .gf-root { margin: 0; border-radius: 12px; box-shadow: var(--shadow); }

.cell--popup { background: var(--accent-soft); }
.cell__icon { display: block; margin-bottom: 18px; font-size: 30px; color: var(--accent-ink); }

.cell--scope {
  background:
    radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0) 0 0 / 16px 16px,
    var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.scope { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.scope li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.scope .ph { font-size: 20px; color: var(--accent-ink); }

@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .cell--product { grid-row: auto; grid-column: span 2; }
  .cell--product img { min-height: 0; aspect-ratio: 16 / 10; }
  .cell--cart { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .cell--product, .cell--cart { grid-column: auto; }
  .cell--cart { grid-template-columns: 1fr; }
  .cell { padding: 22px; }
}

/* ---------------------------------------------------------------- steps */

.steps__list { margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps__list li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  padding: 30px 0;
}
.steps__list li + li { border-top: 1px solid var(--line); }
.steps__list h3 { font-size: clamp(24px, 2.6vw, 32px); }
.steps__list p { max-width: 52ch; color: var(--ink-2); font-size: 17px; }
@media (max-width: 760px) {
  .steps__list li { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
}

/* ------------------------------------------------------------- checkout */

.checkout { margin-top: 112px; padding: 88px 0; background: var(--tint); }
.checkout__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 28px; margin: 0; }
.facts dt { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.facts dt .ph { font-size: 22px; color: var(--accent-ink); }
.facts dd { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 860px) {
  .checkout { margin-top: 80px; padding: 64px 0; }
  .checkout__inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- pricing */

.billing-toggle {
  display: inline-flex;
  gap: 4px;
  margin-top: 32px;
  padding: 4px;
  border-radius: 999px;
  background: var(--tint);
}
.billing-toggle button {
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: 600 14px/1 var(--font-ui);
  cursor: pointer;
}
.billing-toggle button span { color: var(--accent-ink); font-weight: 700; }
.billing-toggle button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(29, 21, 48, .12); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.plan {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.plan--featured { box-shadow: inset 0 0 0 2px var(--ink), var(--shadow); }
.plan__name { font-size: 20px; }
.plan__limit { margin-top: 6px; color: var(--muted); font-size: 14px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-top: 24px; }
.plan__amount { font: 700 46px/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan__per { color: var(--muted); font-size: 15px; }
.plan__note { margin: 8px 0 24px; color: var(--muted); font-size: 14px; }
.plan .btn { justify-content: center; margin-top: auto; }

.included { margin-top: 40px; }
.included h3 { font-size: 18px; }
.included ul { columns: 3 220px; column-gap: 32px; margin: 16px 0 0; padding: 0; list-style: none; }
.included li { display: flex; gap: 10px; break-inside: avoid; padding: 6px 0; color: var(--ink-2); font-size: 15px; }
.included .ph { margin-top: 4px; color: var(--accent-ink); }

@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ faq */

.faq__list { max-width: 820px; margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-weight: 700;
  font-size: 17px;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 22px; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 68ch; padding-bottom: 22px; color: var(--ink-2); }

/* ------------------------------------------------------------------ cta */

.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 112px; }
.cta h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; max-width: 16ch; }

.footer { border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 28px; padding-bottom: 28px; }
.footer nav { display: flex; gap: 24px; }
.footer nav a { color: var(--ink-2); font-size: 14px; text-decoration: none; }
.footer p { margin-left: auto; color: var(--muted); font-size: 14px; }
@media (max-width: 640px) { .footer p { margin-left: 0; width: 100%; } }

/* --------------------------------------------------------------- motion */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .hero .reveal:nth-child(2) { transition-delay: .08s; }
  .js .hero .reveal:nth-child(3) { transition-delay: .16s; }
  .js .hero__visual.reveal { transition-delay: .12s; }
  .js .steps__list .reveal:nth-child(2) { transition-delay: .06s; }
  .js .steps__list .reveal:nth-child(3) { transition-delay: .12s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Privacy policy */
.legal { max-width: 760px; padding-top: 56px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.legal h2 { margin-top: 36px; font-size: 22px; }
.legal p, .legal ul { margin-top: 12px; color: var(--ink-2); line-height: 1.65; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 8px; }
.legal strong { color: var(--ink); }
.legal__meta { font-size: 14px; }
