/* Snap Shut website, 26 Oct 2026.
   Real captures from the app, system fonts, no third-party requests.
   Grounds come from tokens.css (studio, workshop, paper); keys, choices, datasheet and seal from brand.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 60px; background: var(--studio-black); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.55 var(--font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[data-theme] { background: var(--ground); color: var(--ink); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

/* ---------- the bar ---------- */
.bar { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); color: var(--ink);
  background: color-mix(in srgb, var(--studio-black) 94%, transparent); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 52px; }
.wordmark { color: var(--ink); text-decoration: none; white-space: nowrap; }
.wordmark span { font: 600 12.5px/1 var(--font-sans); letter-spacing: .32em; text-transform: uppercase; margin-right: -.32em; }
.bar nav { display: flex; gap: 22px; font-size: 13px; }
.bar nav a { color: var(--ink-muted); text-decoration: none; transition: color .2s ease; }
.bar nav a:hover { color: var(--ink); }

/* ---------- type ---------- */
h1, h2 { margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(46px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -.03em; }
.lede { margin: 22px 0 0; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.42; letter-spacing: -.01em; color: var(--ink-muted); max-width: 30ch; text-wrap: pretty; }
.sub { margin: 18px 0 0; font-size: 19px; line-height: 1.5; letter-spacing: -.008em; color: var(--ink-muted); max-width: 44ch; text-wrap: pretty; }
.sub + .sub { margin-top: 12px; }
.eyebrow { margin: 0 0 14px; font: 600 12px/1.3 var(--font-sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-muted); }
.small-print, .caption { margin: 14px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- sections ---------- */
main > section { padding-block: clamp(88px, 11vw, 150px); }
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .split.flip > :first-child { order: 2; }
}
.head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.head .sub { margin-left: auto; margin-right: auto; }
figure { margin: 0; }

/* ---------- the hero: a phone playing the real app ---------- */
.hero { padding-block: clamp(36px, 6vh, 72px) clamp(64px, 9vh, 110px); overflow: hidden;
  background: radial-gradient(60% 50% at 70% 52%, #1b2236 0%, transparent 70%), var(--studio-black); }
.hero-grid { display: grid; gap: 44px; justify-items: center; text-align: center; }
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero-copy .cta-row { justify-content: center; }
@media (min-width: 960px) {
  .hero { min-height: calc(100svh - 52px); display: grid; align-items: center; background: radial-gradient(42% 60% at 72% 52%, #1b2236 0%, transparent 70%), var(--studio-black); }
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; text-align: left; align-items: center; justify-items: stretch; }
  .hero-copy { align-items: flex-start; }
  .hero-copy .cta-row { justify-content: flex-start; }
  .hero h1 { max-width: 8.4ch; }
}
.hero-art { --w: min(300px, 70vw); position: relative; justify-self: center; }
@media (min-width: 960px) { .hero-art { --w: clamp(280px, min(28vw, calc((100svh - 150px) * .455)), 372px); } }

/* The phone is drawn, front on, so nothing is resampled in 3D: the screen is the app's own pixels. */
.phone { position: relative; width: var(--w); padding: calc(var(--w) * .012); border-radius: calc(var(--w) * .17);
  background: linear-gradient(135deg, #8c9099 0%, #3b3e45 18%, #6a6e77 46%, #2c2e33 72%, #7d818a 100%);
  box-shadow: 0 50px 90px -40px #000000f2, 0 18px 36px -18px #000000cc, inset 0 0 0 .5px #ffffff40; }
.phone::before, .phone::after { content: ""; position: absolute; width: calc(var(--w) * .011); border-radius: 2px; background: linear-gradient(90deg, #2a2c31, #8a8e96 60%, #4a4d54); }
.phone::before { left: calc(var(--w) * -.009); top: 21%; height: 6.5%; box-shadow: 0 calc(var(--w) * .18) 0 #5d6068, 0 calc(var(--w) * .33) 0 #5d6068; }
.phone::after { right: calc(var(--w) * -.009); top: 27%; height: 10%; }
.phone-screen { position: relative; overflow: hidden; aspect-ratio: 1320 / 2868; border-radius: calc(var(--w) * .158); background: #000;
  box-shadow: 0 0 0 calc(var(--w) * .024) #050506; margin: calc(var(--w) * .024); }
.phone-still, .phone-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone-video { opacity: 0; transition: opacity .4s ease; }
.hero-art.is-playing .phone-video { opacity: 1; }
.phone-island { position: absolute; left: 50%; top: 1.46%; width: 21.5%; height: 3.84%; transform: translateX(-50%); border-radius: 999px; background: #000; }
.hero-pause { position: absolute; right: calc(var(--w) * -.02 - 52px); bottom: 6px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: var(--ink); background: #ffffff1f; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .2s ease; }
.hero-pause:hover { background: #ffffff33; }
.hero-pause svg { width: 14px; height: 14px; fill: currentColor; }
.hero-pause .i-play, .hero-pause.is-paused .i-pause { display: none; }
.hero-pause.is-paused .i-play { display: block; }
@media (max-width: 959px) { .hero-pause { right: -44px; } }
@media (max-width: 460px) { .hero-pause { right: auto; left: 50%; bottom: -52px; transform: translateX(-50%); } .hero { padding-bottom: 96px; } }

/* ---------- iPhone Duo ---------- */
.duo { background: var(--studio-black); }
.duo-art { width: 100%; min-width: 0; }
.duo-keys { max-width: 500px; margin: 22px auto 0; }
.duo-keys .sb-choice svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 480px) { .duo-keys .sb-choice { padding: 0 4px; } .duo-keys .sb-choice svg { display: none; } }   /* four keys on a phone: words only */
.duo-art .caption { text-align: center; min-height: 2.9em; max-width: 40ch; margin-left: auto; margin-right: auto; }

/* ---------- the wheel ---------- */
.macro-fig { position: relative; width: min(520px, 86vw); margin: 56px auto 0; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 40px 60px -24px #3b342a8c, 0 0 0 1px #3b342a1f; }
.macro { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .45s ease; }
.macro.is-on { opacity: 1; }
.wheel-keys { max-width: 420px; margin: 36px auto 0; }

/* ---------- finishes ---------- */
.range { padding-top: 0 !important; }
.lids { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
@media (min-width: 900px) { .lids { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; } }
.lids a { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: var(--ink); }
.lids img { width: 100%; height: auto; filter: drop-shadow(0 22px 26px #3b342a6b); transition: transform .35s cubic-bezier(.2, 1.3, .35, 1); }
.lids a:hover img { transform: translateY(-5px); }
.lids b { margin-top: 18px; font: 600 16px/1.25 var(--font-sans); letter-spacing: -.01em; }
.lids span { margin-top: 2px; font-size: 13px; color: var(--ink-muted); }
.more { margin: 48px 0 0; text-align: center; }

/* ---------- snap ---------- */
.card-fig { justify-self: center; width: min(360px, 82vw); }
.card-fig img { width: 100%; height: auto; border-radius: 6px; box-shadow: var(--shadow-object); transform: rotate(-2deg); }

/* ---------- free and Deluxe ---------- */
.deluxe { padding-top: 0 !important; }
.deluxe-list { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--hairline); max-width: 46ch; }
.deluxe-list li { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.deluxe-list b { display: block; font: 600 17px/1.35 var(--font-sans); }
.deluxe-list span { display: block; margin-top: 2px; font-size: 15px; line-height: 1.45; color: var(--ink-muted); }
.icons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; justify-self: center; width: min(360px, 100%); }
.icons figure { display: flex; flex-direction: column; align-items: center; text-align: center; }
.icons img { width: min(120px, 30vw); height: auto; border-radius: 22.5%; box-shadow: 0 16px 28px -14px #3b342a99; }
.icons figcaption { margin-top: 14px; font: 600 15px/1.3 var(--font-sans); }
.icons figcaption span { display: block; margin-top: 2px; font: 400 13px/1.3 var(--font-sans); color: var(--ink-muted); }

/* ---------- specifications ---------- */
.specs { padding-top: 0 !important; }
.specs h2 { margin: 14px 0 40px; max-width: 18ch; }
.ds-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: clamp(64px, 8vw, 110px); border-top: 1px solid var(--hairline); }
.sb-datasheet a { color: var(--ink); }

/* ---------- the end ---------- */
.last { text-align: center; }
.last h2, .last .sub { margin-left: auto; margin-right: auto; }
.last .cta-row { justify-content: center; }

/* ---------- footer ---------- */
footer { padding-block: 48px 56px; border-top: 1px solid var(--hairline); font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
.foot-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: auto minmax(0, 1fr); gap: 40px; } }
footer .sb-seal { width: 132px; height: 132px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
footer nav a { color: var(--ink); text-decoration: none; }
footer nav a:hover { text-decoration: underline; }
footer p { margin: 0 0 6px; max-width: 70ch; }
footer .lickable { margin-left: 1em; opacity: .75; }

/* ---------- the iPhone Duo in 3D (duo3d.js): a drawn phone wearing the app's real screens. Transforms only. ---------- */
.duo3d { position: relative; width: 100%; max-width: 640px; margin: 0 auto; perspective-origin: 50% 36%; }
.duo3d-still { display: block; width: 86%; height: auto; margin: 0 auto; }
.duo3d.is-built .duo3d-still { display: none; }
.d3-cam { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; pointer-events: none; }
.d3-turn, .d3-pos, .d3-dev, .d3-basewrap, .d3-lidwrap, .d3-slab, .d3-hinge { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; }
.d3-cam, .d3-pos, .d3-dev, .d3-floor, .d3-lidwrap, .d3-hinge { transition: transform 1.15s cubic-bezier(.45, .05, .2, 1); }
.duo3d.no-ease .d3-cam, .duo3d.no-ease .d3-pos, .duo3d.no-ease .d3-dev, .duo3d.no-ease .d3-floor, .duo3d.no-ease .d3-lidwrap, .duo3d.no-ease .d3-hinge { transition: none; }
.d3-turn { animation: d3turn 18s ease-in-out infinite alternate; }
.duo3d.is-off .d3-turn { animation-play-state: paused; }
@keyframes d3turn { from { transform: rotateY(-26deg); } to { transform: rotateY(26deg); } }
.d3-face { position: absolute; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.d3-front { background: #070708; }
/* the frame's polished edge round the glass, on every side but the fold */
.d3-front::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1.5px solid hsl(225 5% 33%); }
.d3-base .d3-front::before { border-top-color: transparent; }
.d3-lid .d3-front::before { border-bottom-color: transparent; }
.d3-screen { position: absolute; background-size: 100% 100%; overflow: hidden; }
.d3-screen::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(158deg, rgba(255,255,255,.09), rgba(255,255,255,0) 38%); }
.d3-tex { position: absolute; inset: 0; background-size: 100% 100%; transition: opacity .3s ease .45s; }
.d3-wheel .d3-lap { background-image: url(img/duo-lap-wheel.webp); }
.d3-mirror .d3-lap { background-image: url(img/duo-lap-mirror.webp); }
.d3-wheel .d3-book { background-image: url(img/duo-book-wheel.webp); opacity: 0; }
.d3-mirror .d3-book { background-image: url(img/duo-book-mirror.webp); opacity: 0; }
.duo3d[data-pose="open"] .d3-lap { opacity: 0; }
.duo3d[data-pose="open"] .d3-book { opacity: 1; }
.d3-back { background: linear-gradient(140deg, #45474d, #2a2b2f 52%, #36383d); }
.d3-base .d3-back { background: linear-gradient(150deg, #16171b, #0b0c0e 46%, #121316); box-shadow: inset 0 0 0 1.5px hsl(225 5% 33%), inset 0 0 0 3px #060607; }
.d3-cover { position: absolute; overflow: hidden; transform: rotate(90deg); }
.d3-ctex { position: absolute; inset: 0; background-size: 100% 100%; transition: opacity .3s ease .2s; }
.d3-cfold { background-image: url(img/duo-cover-screen.webp); }
.d3-cfidget { background-image: url(img/duo-cover-fidget.webp); opacity: 0; }
.duo3d[data-pose="fidget"] .d3-cfidget { opacity: 1; }
.d3-cfidget video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; opacity: 0; }
.d3-cfidget.is-playing video { opacity: 1; }
.d3-rim { background: linear-gradient(90deg, #1d1e21, hsl(225 5% calc(26% + var(--lit) * 42%)) 45%, hsl(225 5% calc(22% + var(--lit) * 30%)) 60%, #1d1e21); }
.d3-barrel { background: hsl(225 5% calc(15% + var(--lit) * 24%)); }
.d3-island { position: absolute; background: linear-gradient(145deg, #55585e, #2c2e32 70%); box-shadow: inset 0 1px 1px rgba(255,255,255,.25), inset 0 -1px 2px rgba(0,0,0,.5); }
.d3-lens { position: absolute; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #5b6380 0, #141722 40%, #040406 72%); box-shadow: 0 0 0 2px #686b72, 0 0 0 3.5px #18191c; }
.d3-floor { position: absolute; background: radial-gradient(closest-side, rgba(0,0,0,.62), rgba(0,0,0,.28) 55%, rgba(0,0,0,0)); pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .d3-turn { animation: none; transform: rotateY(-18deg); }
  .d3-cam, .d3-pos, .d3-dev, .d3-floor, .d3-lidwrap, .d3-hinge { transition: none; }
}

/* ---------- inner pages ---------- */
.page main > section { padding-block: 0; }
.page-head { padding-block: clamp(64px, 9vw, 120px) clamp(40px, 5vw, 64px) !important; }
.page-head h1 { font-size: clamp(42px, 5.6vw, 72px); max-width: 16ch; }
.page-head .sub { max-width: 52ch; }
.page-head .cta-row { margin-top: 26px; }
.page-head .small-print { max-width: 60ch; }

/* finishes */
.fin { padding-bottom: clamp(72px, 9vw, 120px); }
.fin-group { padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--hairline); margin-top: clamp(48px, 6vw, 80px); }
.fin-group:first-child { margin-top: 0; }
.fin-head { display: grid; gap: 10px 48px; align-items: baseline; }
@media (min-width: 900px) { .fin-head { grid-template-columns: 260px minmax(0, 1fr); } }
.fin-head h2 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -.025em; }
.fin-head p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-muted); max-width: 56ch; text-wrap: pretty; }
.fin-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
@media (min-width: 600px) { .fin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .fin-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 40px; } }
.fin-grid li { display: flex; flex-direction: column; align-items: center; text-align: center; scroll-margin-top: 90px; }
.fin-grid img { width: min(100%, 230px); height: auto; filter: drop-shadow(0 18px 22px #3b342a5c); }
.fin-grid b { margin-top: 16px; font: 600 16px/1.25 var(--font-sans); letter-spacing: -.01em; }
.fin-grid span { margin-top: 3px; font-size: 13px; line-height: 1.35; color: var(--ink-muted); }
.fin-grid i { margin-top: 3px; font-size: 12px; font-style: italic; color: var(--ink-muted); opacity: .8; }
.fin-grid li:target b { color: var(--index-red); }
.fin-omt .fin-head p { color: var(--ink); }

/* support, privacy and press */
.doc { padding-bottom: clamp(72px, 9vw, 120px) !important; }
.doc .wrap > * { max-width: 760px; }
.doc .wrap > .facts, .doc .wrap > .press-stills { max-width: 900px; }
.doc h2 { font-size: clamp(26px, 2.6vw, 32px); letter-spacing: -.02em; margin: 56px 0 14px; }
.doc .wrap > h2:first-child { margin-top: 0; }
.doc p, .doc li { font-size: 17px; line-height: 1.6; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc a:not(.sb-key) { color: var(--ink); }
.summary { padding: 22px 24px 8px; margin-bottom: 8px; border-radius: 14px; background: color-mix(in srgb, var(--ink) 5%, transparent); border: 1px solid var(--hairline); }
.faq { border-top: 1px solid var(--hairline); margin-top: 24px; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font: 600 17px/1.4 var(--font-sans); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 1.5px solid var(--ink-muted); border-bottom: 1.5px solid var(--ink-muted); transform: rotate(45deg); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { margin: -4px 0 20px; color: var(--ink-muted); max-width: 62ch; }
.press-clip { margin: 0 0 8px; }
.press-clip video { width: min(300px, 70vw); height: auto; border-radius: 12% / 5.5%; background: #000; box-shadow: 0 0 0 1px #0000001f, var(--shadow-object); }
.facts { margin-top: 8px; }
.press-stills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; margin: 8px 0 16px; }
@media (min-width: 700px) { .press-stills { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.press-stills a { display: flex; flex-direction: column; gap: 10px; text-decoration: none; font-size: 14px; color: var(--ink-muted); }
.press-stills img { width: 100%; height: auto; border-radius: 12% / 5.5%; box-shadow: 0 0 0 1px #0000001f, 0 16px 28px -14px #3b342a99; }
.press-stills a.icon img { border-radius: 22.5%; box-shadow: 0 16px 28px -14px #3b342a99; }

/* 404 */
.nf { min-height: calc(100svh - 52px - 220px); display: grid; align-items: center; }
.nf-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .nf-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.nf-lid { width: min(320px, 70vw); height: auto; justify-self: center; filter: drop-shadow(0 30px 40px #000a); transform: rotate(-4deg); }
