/* ============================================================
   Landing — premium tech/AI. Loaded after tokens.css.
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* atmospheric backdrop */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% -5%, var(--accent-soft), transparent 60%),
    radial-gradient(50% 40% at 0% 30%, color-mix(in oklch, var(--accent-2), transparent 86%), transparent 60%);
}
/* grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}
[data-theme="light"] body::after { opacity: .8; }

.wrap { width: min(1180px, 92vw); margin: 0 auto; }
section { position: relative; }

/* utilities */
.kick {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 9px;
}
.kick::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.muted { color: var(--text-2); }
.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.025em; line-height: 1.02; }

/* =================== NAV =================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(150%);
  background: color-mix(in oklch, var(--bg), transparent 28%);
  border-bottom: 1px solid var(--border-2);
}
.nav .row { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* theme toggle */
.tgl {
  appearance: none; border: 1px solid var(--border); cursor: pointer;
  width: 54px; height: 30px; border-radius: 999px; position: relative; background: var(--surface-2);
}
.tgl i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--text); transition: transform .2s var(--ease); }
[data-theme="dark"] .tgl i { transform: translateX(24px); }
.tgl::before, .tgl::after { position: absolute; top: 50%; transform: translateY(-50%); font-size: 11px; }
.tgl::before { content: "☾"; left: 9px; color: var(--text-3); }
.tgl::after { content: "☀"; right: 9px; color: var(--text-3); }

/* =================== BRAND WORDMARK =================== */
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brandmark {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--accent-bright), var(--accent));
  box-shadow: 0 6px 18px var(--glow);
}
.brandmark svg { width: 19px; height: 19px; display: none; stroke: var(--accent-ink); fill: none; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
[data-brand="geniux"] .brandmark .g-vendly { display: block; }
[data-brand="copilo"] .brandmark .g-copilo { display: block; }
[data-brand="aida"]   .brandmark .g-aida   { display: block; }
.brand .wm { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -.03em; }
.brand .wm b { color: var(--accent); font-weight: 700; }
.brand-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--text-3); text-transform: uppercase; }

/* =================== BUTTONS =================== */
.btn {
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 13px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border-2);
  transition: transform .14s var(--ease), background .15s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 10px 30px var(--glow); }
.btn.lg { padding: 16px 28px; font-size: 16px; border-radius: 15px; }
.btn.ghost { background: transparent; }
.btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; }

/* =================== HERO =================== */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); margin: 22px 0 0; }
.hero h1 .grad {
  background: linear-gradient(110deg, var(--accent-bright), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); margin: 22px 0 30px; max-width: 33ch; }

/* waitlist inline form */
.wl-form { display: flex; gap: 10px; max-width: 440px; }
.wl-form input {
  flex: 1; min-width: 0; height: 54px; padding: 0 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-family: var(--font-body); font-size: 15px; outline: none;
}
.wl-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.wl-form .btn { height: 54px; white-space: nowrap; }
.wl-note { margin-top: 14px; font-size: 13px; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.wl-ok { display: none; align-items: center; gap: 10px; font-weight: 600; color: var(--ok); padding: 14px 0; }
.wl-form.sent { display: none; }
.wl-ok.show { display: flex; }
.wl-err { display: none; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 16px; border-radius: 10px; border: 1px solid oklch(from var(--danger) l c h / 0.35); background: oklch(from var(--danger) l c h / 0.12); color: var(--danger); font-size: 14px; font-weight: 500; }
.wl-err.show { display: flex; }

.hero-trust { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust .t { display: flex; flex-direction: column; }
.hero-trust .t b { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.hero-trust .t span { font-size: 12.5px; color: var(--text-3); }

/* =================== PHONE FRAME =================== */
.phone {
  position: relative; width: 300px; aspect-ratio: 300 / 620;
  border-radius: 42px; padding: 11px; flex: 0 0 auto;
  background: linear-gradient(160deg, color-mix(in oklch, var(--surface-hi), #fff 4%), var(--surface-2));
  box-shadow: var(--shadow), 0 0 0 1px var(--border);
}
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 7px; border-radius: 999px; background: rgba(0,0,0,.35); z-index: 3;
}
.phone .scr { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: var(--bg); position: relative; }
.phone iframe { width: 100%; height: 100%; border: 0; display: block; }

.hero-phone { position: relative; display: flex; justify-content: center; }
.hero-phone .phone { width: 320px; rotate: 2.5deg; }
.hero-glow { position: absolute; inset: -10% -5%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 45%, var(--glow), transparent 70%); filter: blur(20px); }

/* floating chips around hero phone */
.fchip {
  position: absolute; z-index: 4;
  background: color-mix(in oklch, var(--surface), transparent 6%);
  border: 1px solid var(--border); border-radius: 14px; padding: 11px 14px;
  box-shadow: var(--shadow); backdrop-filter: blur(10px);
  display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600;
  animation: float 5s var(--ease) infinite;
}
.fchip .d { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.fchip small { display: block; font-weight: 500; color: var(--text-3); font-size: 11px; }
.fchip.a { top: 12%; left: -6%; }
.fchip.b { top: 46%; right: -4%; animation-delay: -1.6s; }
.fchip.c { bottom: 8%; left: -2%; animation-delay: -3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* =================== generic section heading =================== */
.shead { max-width: 620px; margin-bottom: 44px; }
.shead h2 { font-size: clamp(30px, 4vw, 46px); margin: 16px 0 0; }
.shead p { color: var(--text-2); margin-top: 16px; font-size: 18px; }
.section-pad { padding: 76px 0; }

/* band pun line */
.band { padding: 40px 0; text-align: center; }
.band p { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 4vw, 44px); letter-spacing: -.03em; line-height: 1.1; }
.band p .grad { background: linear-gradient(110deg, var(--accent-bright), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* =================== STEPS =================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-lg); padding: 28px; position: relative; overflow: hidden; }
.step .no { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: .1em; }
.step .ico { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 16px 0 14px; }
.step .ico svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.9; }
.step h3 { font-size: 21px; }
.step p { color: var(--text-2); font-size: 15px; margin-top: 8px; }

/* =================== FEATURE SPLIT (JTBD) =================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .split-media { order: -1; }
.split-media { display: flex; justify-content: center; position: relative; }
.split-copy h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 16px 0 0; }
.split-copy .lede { color: var(--text-2); font-size: 18px; margin: 18px 0 24px; }
.flist { display: flex; flex-direction: column; gap: 14px; }
.flist .f { display: flex; gap: 13px; align-items: flex-start; }
.flist .f .ck { width: 24px; height: 24px; border-radius: 8px; flex: 0 0 auto; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-top: 1px; }
.flist .f .ck svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.flist .f b { font-weight: 600; }
.flist .f p { color: var(--text-2); font-size: 14.5px; margin-top: 2px; }

/* two phones cluster */
.duo { display: flex; gap: -40px; align-items: center; }
.duo .phone:nth-child(1) { width: 260px; rotate: -4deg; z-index: 1; }
.duo .phone:nth-child(2) { width: 260px; rotate: 4deg; margin-left: -90px; z-index: 2; }

/* =================== PRICING =================== */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price { background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; }
.price.feat { border-color: var(--accent); box-shadow: 0 24px 60px -24px var(--glow); position: relative; }
.price.feat::after { content: "Più scelto"; position: absolute; top: -12px; right: 24px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); padding: 5px 12px; border-radius: 999px; }
.price .pname { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.price .pdesc { color: var(--text-2); font-size: 14px; margin-top: 6px; min-height: 40px; }
.price .amt { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; }
.price .amt b { font-family: var(--font-display); font-weight: 600; font-size: 46px; letter-spacing: -.03em; }
.price .amt span { color: var(--text-3); font-size: 15px; }
.price .mins { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); letter-spacing: .04em; margin-bottom: 18px; }
.price ul { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 4px 0 26px; }
.price li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.price li svg { width: 17px; height: 17px; flex: 0 0 auto; stroke: var(--accent); fill: none; stroke-width: 2.4; margin-top: 3px; }
.price .pincl { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; color: var(--text); margin-bottom: 26px; }
.price .pincl svg { width: 18px; height: 18px; flex: 0 0 auto; stroke: var(--accent); fill: none; stroke-width: 2.6; }
.price .pextra { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border-radius: 12px; padding: 11px 13px; margin: -14px 0 26px; line-height: 1.35; }
.price .pextra svg { width: 17px; height: 17px; flex: 0 0 auto; fill: var(--accent); stroke: none; }
.price .btn { margin-top: auto; width: 100%; }
.price .plock { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 5px 11px; margin-bottom: 18px; align-self: flex-start; }
.price .plock svg { width: 13px; height: 13px; flex: 0 0 auto; stroke: var(--accent); fill: none; stroke-width: 2.4; }
.price .ptrial { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 16px; }
.price .ptrial svg { width: 17px; height: 17px; flex: 0 0 auto; stroke: var(--accent); fill: none; stroke-width: 2.4; }
.price.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 24px 60px -24px var(--glow); animation: planPulse .42s var(--ease) both; }

/* signup panel — inline below pricing cards */
.signup-panel {
  display: none;
  margin-top: 32px;
  scroll-margin-top: 72px; /* clears sticky nav on scrollIntoView */
}
.signup-panel.active { display: block; animation: fadeSlideUp .45s var(--ease) both; }
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* vertical accent thread connecting price grid → panel */
.sp-connector {
  width: 2px;
  height: 24px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin: 0 auto;
}

/* action container card */
.sp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  padding: 28px 28px 24px;
}

.sp-plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  text-align: center;
}

.sp-step-header {
  display: flex;
  align-items: center;
  gap: 11px;
}

.sp-step-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  flex: 0 0 auto;
  line-height: 1;
}

.sp-step-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -.022em;
  color: var(--text);
  line-height: 1.1;
  margin: 0;
}

.sp-plan-pill {
  display: inline-flex;
  align-items: center;
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 7px 16px;
}

/* pulse on card selection — confirms tap before eye moves to panel */
@keyframes planPulse {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.018); box-shadow: 0 0 0 7px var(--accent-soft), 0 24px 60px -24px var(--glow); }
  100% { transform: scale(1);   box-shadow: 0 0 0 3px var(--accent-soft), 0 24px 60px -24px var(--glow); }
}

.sp-change { font-size: 13px; padding: 6px 14px; border-radius: 8px; height: auto; display: inline-flex; align-items: center; gap: 7px; }
.sp-change svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }

.sp-form { max-width: 500px; margin: 0 auto; }
.sp-row { display: flex; gap: 10px; }
.sp-row input[type="email"] {
  flex: 1; min-width: 0; height: 54px; padding: 0 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-family: var(--font-body); font-size: 15px; outline: none;
}
.sp-row input[type="email"]:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.sp-row .btn { height: 54px; white-space: nowrap; }
.sp-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; cursor: pointer; font-size: 13.5px; color: var(--text-2); line-height: 1.4; }
.sp-check input[type="checkbox"] { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--accent); cursor: pointer; }
.sp-check a { color: var(--accent); }
.sp-form.sent { display: none; }

/* early-adopter promise banner */
.ea-promise { display: flex; align-items: center; justify-content: center; gap: 13px; max-width: 620px; margin: 0 auto 36px; padding: 15px 22px; background: var(--accent-soft); border: 1px solid var(--border-2); border-radius: var(--r-md, 16px); }
.ea-promise svg { width: 22px; height: 22px; flex: 0 0 auto; stroke: var(--accent); fill: none; stroke-width: 2.2; }
.ea-promise p { font-size: 14.5px; color: var(--text); line-height: 1.45; text-align: left; margin: 0; }
.ea-promise b { color: var(--accent); }
@media (max-width: 560px) { .ea-promise { flex-direction: column; text-align: center; } .ea-promise p { text-align: center; } }

/* =================== CTA / waitlist final =================== */
.cta-final { text-align: center; padding: 84px 0; }
.cta-card {
  border-radius: var(--r-xl); padding: 64px 40px; position: relative; overflow: hidden;
  background:
    radial-gradient(80% 120% at 50% 0%, var(--accent-soft), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
}
.cta-card h2 { font-size: clamp(30px, 4.5vw, 52px); }
.cta-card p { color: var(--text-2); margin: 18px auto 30px; max-width: 46ch; }
.cta-card .wl-form { margin: 0 auto; }
.cta-card .wl-ok { justify-content: center; }

/* contact block under final CTA */
.cta-contact { margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--border-2); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta-contact p { font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 2vw, 22px); color: var(--text); margin: 0; letter-spacing: -.02em; }

/* =================== CONTACT MODAL =================== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: color-mix(in oklch, #000, transparent 40%);
  backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .2s var(--ease);
}
.modal-backdrop[hidden] { display: none; }
.modal-backdrop.show { opacity: 1; }
.modal {
  position: relative; width: min(460px, 100%); text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 40px 34px 34px; box-shadow: var(--shadow);
  transform: translateY(14px) scale(.98); transition: transform .22s var(--ease);
}
.modal-backdrop.show .modal { transform: none; }
.modal h3 { font-size: clamp(22px, 3vw, 28px); margin: 14px 0 0; }
.modal > p { color: var(--text-2); font-size: 15px; margin: 12px auto 24px; max-width: 34ch; }
.modal-x {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface-2); color: var(--text-2);
  transition: color .15s, background .15s;
}
.modal-x:hover { color: var(--text); background: var(--bg-2); }
.modal-x svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; }

.mail-row { display: flex; align-items: stretch; gap: 8px; max-width: 360px; margin: 0 auto 20px; }
.mail-addr {
  flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 15px; font-weight: 500; color: var(--text);
  text-decoration: none; padding: 0 16px; height: 50px; border-radius: 13px;
  background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mail-copy {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  padding: 0 16px; height: 50px; border-radius: 13px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid transparent;
  transition: transform .14s var(--ease), background .15s;
}
.mail-copy:hover { transform: translateY(-2px); }
.mail-copy svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.mail-copy.copied { background: var(--ok); color: var(--accent-ink); }
.modal-cta { width: 100%; }

@media (max-width: 420px) {
  .mail-row { flex-direction: column; }
  .mail-copy { height: 46px; justify-content: center; }
}

/* =================== FOOTER =================== */
.footer { border-top: 1px solid var(--border-2); padding: 40px 0; }
.footer .row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer .ph-note { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); border: 1px dashed var(--border); border-radius: 8px; padding: 7px 11px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =================== RESPONSIVE ===================
   Driven by [data-narrow] / [data-narrow520] on <html>.
   landing.js sets these from the viewport width in "auto" mode,
   or forces them when the Desktop/Mobile tweak is used — so the
   mobile layout can be previewed at any window width. */
html[data-narrow] .hero-grid {
  display: flex; flex-direction: column; gap: 20px;
}
/* flatten hero-copy so its children can be ordered around the phone */
html[data-narrow] .hero-copy { display: contents; }
html[data-narrow] .hero-copy > .kick { order: 1; }
html[data-narrow] #heroHead     { order: 2; margin-top: 0; }
html[data-narrow] .hero-copy > .lede      { order: 3; }
html[data-narrow] .hero-phone   { order: 4; margin: 4px 0; }
html[data-narrow] .hero-copy > .hero-cta  { order: 5; width: 100%; margin-top: 24px; }
html[data-narrow] .hero-copy > .wl-form   { order: 5; }
html[data-narrow] .hero-copy > .wl-ok     { order: 6; }
html[data-narrow] .hero-copy > .wl-note   { order: 7; }
html[data-narrow] .hero-copy > .hero-trust{ order: 8; }

html[data-narrow] .split { grid-template-columns: 1fr; gap: 32px; }
html[data-narrow] .split.rev .split-media { order: 0; }
html[data-narrow] .steps  { grid-template-columns: 1fr; }
html[data-narrow] .prices { grid-template-columns: 1fr; }
html[data-narrow] .nav-links { display: none; }

html[data-narrow520] .wl-form { flex-direction: column; }
html[data-narrow520] .wl-form .btn { width: 100%; }
html[data-narrow520] .sp-row { flex-direction: column; }
html[data-narrow520] .sp-row .btn { width: 100%; }
html[data-narrow520] .hero-trust { gap: 18px; }
html[data-narrow520] .duo .phone { width: 220px !important; }

/* mobile email inputs — larger target, iOS zoom fix, visible border */
html[data-narrow520] .wl-form input,
html[data-narrow520] .sp-row input[type="email"] {
  width: 100%;
  height: 76px;
  font-size: 16px;
  padding: 5px 22px;
  border-color: oklch(1 0 0 / 0.24);
}

html[data-narrow520] .wl-form input:focus,
html[data-narrow520] .sp-row input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 0 6px var(--accent-soft);
}

html[data-narrow520] .wl-form .btn,
html[data-narrow520] .sp-row .btn {
  height: 76px;
  font-size: 18px;
}

/* =================== MOBILE DEVICE PREVIEW ===================
   The page keeps the normal window scroll (so review comments stay
   anchored to the document) and is reframed as a real phone: dark
   stage, hardware bezel, 390px logical width and a sticky status bar.
   Crucially, in forced mobile we re-base layout widths on the phone
   body (%) instead of the viewport (vw) — otherwise content stays
   ~1180px wide inside a 408px shell and overflows. */
html[data-view="mobile"] {
  height: 100vh;
  overflow: hidden;                 /* lock the viewport so BODY becomes the scroll container */
  background:
    radial-gradient(120% 80% at 50% -10%, #15151d, transparent 60%),
    #07070a;
}
html[data-view="mobile"] body {
  width: 408px;
  max-width: calc(100vw - 24px);
  height: calc(100vh - 56px);
  margin: 28px auto;
  border: 12px solid #16161c;
  border-radius: 50px;
  background: var(--bg);
  overflow-y: auto;                 /* the phone screen scrolls internally */
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  box-shadow:
    0 0 0 2px #000,
    0 0 0 13px #16161c,
    0 60px 120px -24px rgba(0,0,0,.85);
}
html[data-view="mobile"] body::-webkit-scrollbar { width: 0; height: 0; }

/* re-base every fluid width on the phone, not the window */
html[data-view="mobile"] .wrap { width: auto; margin-inline: 20px; }

/* sticky status bar / camera island */
.device-bar { display: none; }
html[data-view="mobile"] .device-bar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  height: 34px; padding: 0 26px;
  background: var(--bg);
  font: 600 13px/1 var(--font-ui, system-ui);
  color: var(--text);
}
html[data-view="mobile"] .device-bar .db-notch {
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 104px; height: 22px; border-radius: 999px;
  background: #000;
}
html[data-view="mobile"] .device-bar .db-ind {
  display: inline-flex; align-items: center; gap: 4px;
}
html[data-view="mobile"] .device-bar .db-ind i {
  width: 6px; height: 6px; border-radius: 999px; background: currentColor; opacity: .85;
}
/* let the nav sit just below the status bar */
html[data-view="mobile"] .nav { top: 34px; }

/* =================== VIEW TWEAK (desktop / mobile) =================== */
.viewtweak {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-family: var(--font-ui, inherit);
}
.viewtweak button {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; cursor: pointer; background: transparent;
  color: var(--text-2); padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  transition: background .15s ease, color .15s ease;
}
.viewtweak button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.viewtweak button[aria-pressed="true"] { background: var(--bg-2); color: var(--text); }
.viewtweak button:hover { color: var(--text); }
