/* versoapps.com, built from the Verso SMS app's own design language.
   Layout: a 72rem column; the hero pairs the headline with the real inbox; a scroll story keeps one phone in place while its
   screen changes; one full-bleed blue band closes the page.
   Tokens are the app's (app/src/main/java/com/verso/sms/ui/theme/Color.kt, Shape.kt, Type.kt): Roboto, Material 3 surfaces,
   primary #2B5BD7, the warm Quarantine tone, radii 12/16/20/28. No web font is loaded: Roboto is the system face on Android. */
:root {
  --surface: #FDFBFF;
  --surface-low: #F5F2F9;
  --surface-mid: #EFEBF3;
  --outline-variant: #EAE5EF;
  --outline: #CFC9D3;
  --on-surface: #1B1B1F;
  --on-surface-variant: #46464F;
  --faint: #6A6873;
  --primary: #2B5BD7;
  --on-primary: #FFFFFF;
  --primary-container: #DDE1FF;
  --on-primary-container: #123383;
  --warm: #F6EEE4;
  --warm-strong: #F8E9D7;
  --on-warm: #6B4A1E;
  --success: #1F6F5C;
  --error: #BA1A1A;
  --badge-bg: #0B0B0E;
  --badge-fg: #FFFFFF;
  --frame: #101114;
  --font: Roboto, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Roboto Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(0.2, 0, 0, 1);          /* Material's emphasized easing */
  --ease-out: cubic-bezier(0.05, 0.7, 0.1, 1); /* emphasized decelerate */
  --r-s: 12px; --r-m: 16px; --r-l: 20px; --r-xl: 28px;
  --t-body: 1.0625rem;
  --t-title: 1.375rem;
  --t-headline: clamp(1.9rem, 3.6vw, 2.75rem);
  --t-display: clamp(2.5rem, 5.2vw, 4.1rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #1B1A1F; --surface-low: #201F25; --surface-mid: #26242B; --outline-variant: #2E2B33; --outline: #4A4753;
    --on-surface: #E5E1E9; --on-surface-variant: #CAC4D0; --faint: #9B96A3;
    --primary: #B4C5FF; --on-primary: #0E2A6B; --primary-container: #2A4478; --on-primary-container: #DDE4FF;
    --warm: #2E2720; --warm-strong: #3A3026; --on-warm: #F1D9B8; --success: #7FD6BD;
    --badge-bg: #FFFFFF; --badge-fg: #0B0B0E; --frame: #000000;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface: #1B1A1F; --surface-low: #201F25; --surface-mid: #26242B; --outline-variant: #2E2B33; --outline: #4A4753;
  --on-surface: #E5E1E9; --on-surface-variant: #CAC4D0; --faint: #9B96A3;
  --primary: #B4C5FF; --on-primary: #0E2A6B; --primary-container: #2A4478; --on-primary-container: #DDE4FF;
  --warm: #2E2720; --warm-strong: #3A3026; --on-warm: #F1D9B8; --success: #7FD6BD;
  --badge-bg: #FFFFFF; --badge-fg: #0B0B0E; --frame: #000000;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--on-surface); font: 400 var(--t-body)/1.6 var(--font); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 400; letter-spacing: -0.015em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-mid); padding: 0.05em 0.35em; border-radius: 6px; }
.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

.wrap { max-width: 72rem; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* The Google Play button (badge layout; swap in Google's official badge image at launch if preferred) */
.play { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; background: var(--badge-bg); color: var(--badge-fg);
  border-radius: 12px; padding: 0.55rem 1.2rem 0.6rem 0.95rem; border: 1px solid rgb(166 166 166 / 0.6); min-height: 56px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); box-shadow: 0 1px 2px rgb(0 0 0 / 0.25); }
.play:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgb(0 0 0 / 0.45); }
.play svg { width: 26px; height: 28px; flex: none; }
.play .t { display: grid; line-height: 1.1; text-align: left; }
.play .t small { font-size: 0.66rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.play .t b { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.01em; }
.play.lg { min-height: 64px; padding: 0.7rem 1.4rem 0.75rem 1.1rem; }
.play.lg svg { width: 32px; height: 35px; }
.play.lg .t b { font-size: 1.6rem; }
.play.sm { min-height: 42px; padding: 0.35rem 0.85rem 0.4rem 0.65rem; border-radius: 10px; gap: 0.5rem; }
.play.sm svg { width: 19px; height: 21px; }
.play.sm .t small { font-size: 0.55rem; }
.play.sm .t b { font-size: 1rem; }

/* Top app bar */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--surface); z-index: 31; }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.2s var(--ease); }
html.scrolled .top { border-bottom-color: var(--outline-variant); }
.top .wrap { display: flex; align-items: center; gap: 1rem 1.6rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--on-surface); font-size: 1.3rem; font-weight: 500; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.nav > a:not(.play) { color: var(--on-surface-variant); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.nav > a:not(.play):hover, .nav > a[aria-current="page"] { color: var(--on-surface); }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(2rem, 5vw, 4rem) clamp(3.5rem, 8vw, 6rem); }
.hero h1 { font-size: var(--t-display); line-height: 1.04; letter-spacing: -0.03em; }
.hero h1 b { font-weight: 500; color: var(--primary); }
.lede { margin-top: 1.4rem; font-size: 1.25rem; line-height: 1.55; color: var(--on-surface-variant); max-width: 32rem; }
.cta { margin-top: 2rem; display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.4rem; }
.cta .note { font-size: 0.95rem; color: var(--faint); max-width: 15rem; line-height: 1.45; }
.points { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.points li { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.92rem; font-weight: 500; color: var(--on-surface-variant); border: 1px solid var(--outline); border-radius: 8px; padding: 0.3rem 0.7rem 0.3rem 0.55rem; }
.points .icon { width: 18px; height: 18px; color: var(--primary); }

.stage { position: relative; justify-self: center; width: min(100%, 440px); aspect-ratio: 440 / 600; }
.stage .field { position: absolute; inset: 6% 0 0 8%; border-radius: 40px; background: var(--primary-container); }
.device { position: absolute; left: 22%; top: 0; width: 60%; border-radius: 36px; padding: 9px; background: var(--frame);
  box-shadow: 0 30px 60px -28px rgb(18 51 131 / 0.45), 0 8px 20px -10px rgb(0 0 0 / 0.3);
  transform: perspective(1400px) rotateY(var(--ry, 0deg)) rotateZ(var(--rz, 0deg)); will-change: transform; }
.device img { border-radius: 28px; }
.shot-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .shot-light { display: none; } :root:not([data-theme="light"]) .shot-dark { display: block; } }
:root[data-theme="dark"] .shot-light { display: none; }
:root[data-theme="dark"] .shot-dark { display: block; }

/* App components, drawn at size from the app's own rows */
.chipcard { position: absolute; background: var(--surface); border-radius: var(--r-l); padding: 0.75rem 0.9rem; box-shadow: 0 14px 30px -14px rgb(18 27 61 / 0.35), 0 2px 6px -2px rgb(18 27 61 / 0.15); display: grid; gap: 0.15rem; font-size: 0.9rem; line-height: 1.35; }
.chipcard.held { left: -2%; top: 46%; width: 54%; background: var(--warm); color: var(--on-warm); }
.chipcard.held .h { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; font-size: 0.98rem; color: var(--on-surface); }
.chipcard.held .h .shield { width: 30px; height: 30px; border-radius: 50%; background: var(--warm-strong); display: grid; place-items: center; color: var(--on-warm); }
.chipcard.held .h .shield .icon { width: 17px; height: 17px; }
.chipcard.held .sub { font-size: 0.8rem; display: flex; gap: 0.35rem; align-items: center; }
.chipcard.code { right: -4%; top: 15%; width: auto; white-space: nowrap; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.6rem; }
.chipcard.code .who { font-weight: 500; font-size: 0.92rem; color: var(--on-surface); }
.chipcard.code .otp { font: 500 1.05rem/1 var(--mono); letter-spacing: 0.1em; color: var(--on-primary-container); background: var(--primary-container); border-radius: 10px; padding: 0.4rem 0.55rem; display: inline-flex; align-items: center; gap: 0.45rem; }
.chipcard.code .otp .icon { width: 16px; height: 16px; }
.chipcard.tabs { left: 4%; bottom: 3%; display: flex; gap: 0.35rem; padding: 0.5rem; border-radius: 999px; }
.chipcard.tabs span { border: 1px solid var(--outline); border-radius: 8px; padding: 0.25rem 0.6rem; font-size: 0.8rem; font-weight: 500; color: var(--on-surface-variant); white-space: nowrap; }
.chipcard.tabs span.on { background: var(--primary-container); border-color: transparent; color: var(--on-primary-container); }
@media (prefers-reduced-motion: no-preference) {
  .js .chipcard { animation: rise 0.9s var(--ease-out) both; }
  .js .chipcard.code { animation-delay: 0.25s; }
  .js .chipcard.held { animation-delay: 0.45s; }
  .js .chipcard.tabs { animation-delay: 0.65s; }
  .js .device { animation: turn-in 1.1s var(--ease-out) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.96); } to { opacity: 1; transform: none; } }
  @keyframes turn-in { from { opacity: 0; transform: perspective(1400px) rotateY(-24deg) rotateZ(-3deg) translateY(24px); } to { opacity: 1; transform: perspective(1400px) rotateY(var(--ry, 0deg)) rotateZ(var(--rz, 0deg)); } }
}

/* Section rhythm */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section.tint { background: var(--surface-low); }
.section h2 { font-size: var(--t-headline); line-height: 1.12; max-width: 22ch; }
.section .intro { margin-top: 1rem; font-size: 1.15rem; color: var(--on-surface-variant); max-width: 40rem; }

/* Scroll story: one phone stays while its screen changes */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(2rem, 6vw, 5rem); margin-top: clamp(2rem, 5vw, 3.5rem); }
.steps { display: grid; }
.step { min-height: 66vh; display: grid; align-content: center; gap: 1rem; padding-block: 2rem; }
.step:first-child { min-height: 56vh; }
.step h3 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); line-height: 1.15; font-weight: 400; }
.step p { color: var(--on-surface-variant); font-size: 1.1rem; max-width: 30rem; }
.step ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; color: var(--on-surface-variant); max-width: 30rem; }
.step .tag { justify-self: start; display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 500; color: var(--on-primary-container); background: var(--primary-container); border-radius: 8px; padding: 0.2rem 0.6rem; }
.step .inline { display: none; }
.sticky { position: sticky; top: calc(68px + env(safe-area-inset-top, 0px) + 3vh); display: grid; justify-items: center; align-self: start; }
.screens { position: relative; width: min(100%, 330px, calc((100vh - 68px - 9vh - 2.5rem) * 600 / 1336)); aspect-ratio: 600 / 1336; border-radius: 38px; padding: 9px; background: var(--frame);
  box-shadow: 0 30px 60px -28px rgb(18 51 131 / 0.45), 0 8px 20px -10px rgb(0 0 0 / 0.3);
  transform: perspective(1400px) rotateY(var(--sy, 0deg)); will-change: transform; }
.screens .screen { position: absolute; inset: 9px; opacity: 0; transform: translateY(16px) scale(0.98); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease-out); }
.screens .screen.on { opacity: 1; transform: none; }
.screens .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; }
.dots { display: flex; gap: 6px; justify-content: center; margin-top: 1rem; }
.dots { gap: 0; }
.dots i { width: 20px; height: 7px; border-radius: 4px; background: var(--outline); transform: scaleX(0.35); transition: background 0.3s var(--ease), transform 0.3s var(--ease); }
.dots i.on { background: var(--primary); transform: none; }

/* Proof: the permission list */
.proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.proof ul.claims { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.9rem; }
.proof ul.claims li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0.7rem; color: var(--on-surface-variant); }
.proof ul.claims .icon { width: 24px; height: 24px; color: var(--success); margin-top: 0.1rem; }
.perms { background: var(--surface); border: 1px solid var(--outline-variant); border-radius: var(--r-xl); padding: 1.4rem 1.5rem 1.2rem; box-shadow: 0 20px 40px -30px rgb(18 27 61 / 0.4); }
.perms .ph { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--outline-variant); }
.perms .ph b { font-weight: 500; font-size: 1.05rem; }
.perms .ph span { font-size: 0.85rem; color: var(--faint); font-family: var(--mono); }
.perms ol { list-style: none; margin: 0.6rem 0 0; padding: 0; columns: 2; column-gap: 1.5rem; font: 400 0.82rem/2 var(--mono); color: var(--on-surface-variant); }
.perms ol li { break-inside: avoid; }
.perms .none { margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px dashed var(--outline); display: flex; align-items: center; gap: 0.6rem; font: 500 0.9rem/1.3 var(--mono); color: var(--error); }
.perms .none s { text-decoration-thickness: 2px; }
.perms .none span { font-family: var(--font); font-weight: 500; color: var(--success); margin-left: auto; font-size: 0.9rem; }

/* Free and Plus */
.plans { margin-top: 2.4rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.2rem; align-items: stretch; }
.plan { border-radius: var(--r-xl); padding: 1.6rem 1.7rem 1.7rem; display: grid; gap: 1rem; align-content: start; }
.plan.free { border: 1px solid var(--outline); }
.plan.plus { background: var(--primary-container); color: var(--on-primary-container); }
.plan h3 { font-size: 1.6rem; font-weight: 400; }
.plan .sub { font-size: 0.98rem; opacity: 0.85; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.plan li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0.6rem; }
.plan li .icon { width: 20px; height: 20px; margin-top: 0.2rem; }
.fine { margin-top: 1.4rem; font-size: 0.92rem; color: var(--faint); max-width: 48rem; }

/* Closing band */
.closing { background: #2B5BD7; color: #FFFFFF; }
.closing .wrap { padding-block: clamp(4rem, 9vw, 6.5rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 3rem; align-items: center; }
.closing h2 { font-size: var(--t-display); line-height: 1.04; letter-spacing: -0.03em; max-width: 14ch; font-weight: 400; }
.closing p { margin-top: 1rem; font-size: 1.15rem; color: #E3E8FF; max-width: 34rem; }
.closing .play { background: #FFFFFF; color: #0B0B0E; border-color: transparent; }

/* Phone bar with the Play button */
.dockbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--outline-variant);
  padding: 0.6rem max(16px, env(safe-area-inset-right, 0px)) calc(0.6rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  display: none; align-items: center; justify-content: space-between; gap: 0.8rem; transform: translateY(110%); transition: transform 0.35s var(--ease); }
.dockbar .name { display: flex; align-items: center; gap: 0.55rem; font-weight: 500; }
.dockbar .name img { width: 32px; height: 32px; border-radius: 9px; }
html.show-dock .dockbar { transform: none; }

/* Documents: privacy and support */
.doc .wrap { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3.5rem, 7vw, 5rem); }
.doc article { max-width: 44rem; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.08; letter-spacing: -0.025em; }
.doc h2 { font-size: 1.45rem; margin-top: 2.4rem; font-weight: 400; }
.doc article > * + * { margin-top: 1rem; }
.doc ul { padding-left: 1.2rem; display: grid; gap: 0.5rem; margin-bottom: 0; }
.doc .meta { color: var(--on-surface-variant); font-size: 0.97rem; }
.short { border: 1px solid var(--outline); background: var(--surface-low); padding: 1.1rem 1.3rem; border-radius: var(--r-l); }
.short h2 { margin-top: 0; font-size: 1.25rem; }
.short > * + * { margin-top: 0.6rem; }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; background: var(--surface-low); border: 1px solid var(--outline-variant); border-radius: var(--r-l); padding: 1rem 1.2rem; }
.contact .addr { font: 500 1.05rem/1.2 var(--mono); user-select: all; word-break: break-all; }
.copy { font: 500 0.92rem/1 var(--font); border: 1px solid var(--outline); background: var(--surface); color: var(--primary); border-radius: 999px; padding: 0.55rem 1rem; cursor: pointer; min-height: 40px; }
.copy .done { display: none; }
.copy[data-done] .idle { display: none; }
.copy[data-done] .done { display: inline; }
details { border-bottom: 1px solid var(--outline-variant); padding-block: 1rem; }
details summary { cursor: pointer; font-size: 1.1rem; font-weight: 500; }
details p { margin-top: 0.7rem; color: var(--on-surface-variant); }
.steplist { list-style: none; padding: 0; display: grid; gap: 0.8rem; counter-reset: s; }
.steplist li { counter-increment: s; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.7rem; align-items: start; }
.steplist li::before { content: counter(s); font-weight: 500; text-align: center; line-height: 2rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary-container); color: var(--on-primary-container); }

/* Footer */
.foot { color: var(--faint); font-size: 0.9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; align-items: center; padding-block: 2rem 2.4rem; }
.foot a { color: var(--on-surface-variant); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .tm { flex-basis: 100%; font-size: 0.82rem; }

@media (max-width: 56rem) {
  .hero .wrap, .proof, .plans, .closing .wrap { grid-template-columns: minmax(0, 1fr); }
  .stage { width: min(100%, 380px); }
  .nav > a:not(.play) { display: none; }
  .story { grid-template-columns: minmax(0, 1fr); }
  .story .sticky { display: none; }
  .step, .step:first-child { min-height: 0; padding-block: 1.5rem 2.5rem; }
  .step .inline { display: block; width: min(78%, 300px); justify-self: center; border-radius: 34px; padding: 8px; background: var(--frame); margin-top: 0.5rem; }
  .step .inline img { border-radius: 27px; }
  .dockbar { display: flex; }
  .top .play.sm { display: none; }
  .foot .wrap { padding-bottom: 6.5rem; }
}
@media (max-width: 26rem) {
  .chipcard.held { width: 64%; }
  .perms ol { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .play, .dockbar, .screens .screen, .top { transition: none; }
}

/* Without the script the first screen of the story shows */
html:not(.js) .screens .screen:first-child { opacity: 1; transform: none; }
.sticky > div { width: 100%; display: grid; justify-items: center; }
/* Scroll story on wide screens: the text that matches the phone's screen is full strength, the others step back. */
@media (min-width: 56.01rem) {
  .js .story .step { opacity: 0.38; transition: opacity 0.45s var(--ease); }
  .js .story .step.on { opacity: 1; }
}
