/* Cloza – public site styles */
/* Self-hosted fonts (SIL Open Font License): no third-party requests, latin subset only. */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/site/fonts/plus-jakarta-sans-var-latin.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-display: swap; font-weight: 400; src: url(/site/fonts/instrument-serif-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --tint: #f4f2ee;
  --ink: #0d0f14;
  --ink-2: #2a2e38;
  --muted: #5d6372;
  --line: #e9e6e0;
  --line-2: #dcd8d0;
  --brand: #2563eb;
  --brand-2: #7c3aed;
  --brand-3: #ec4899;
  --brand-soft: #eaf0ff;
  --ok: #10b981;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 18, 27, .06), 0 2px 8px rgba(16, 18, 27, .04);
  --shadow: 0 10px 30px -12px rgba(16, 18, 27, .18), 0 2px 6px rgba(16, 18, 27, .05);
  --shadow-lg: 0 40px 80px -30px rgba(30, 35, 80, .35), 0 12px 30px -12px rgba(16, 18, 27, .18);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.025em; margin: 0; font-weight: 800; }
p { margin: 0; }
svg { flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons & store badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 15px; text-decoration: none; border-radius: 999px; padding: 12px 22px; border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; white-space: nowrap; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 6px 16px -6px rgba(13, 15, 20, .5); }
.btn-dark:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(13, 15, 20, .55); }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; min-width: 176px; padding: 10px 20px 10px 16px; border-radius: 16px; background: var(--ink); color: #fff; text-decoration: none; border: 1px solid var(--ink); transition: transform .25s var(--ease), box-shadow .25s var(--ease); box-shadow: 0 10px 24px -12px rgba(13, 15, 20, .6); }
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(13, 15, 20, .6); }
.store-btn .store-ico { width: 24px; height: 24px; }
.store-txt { display: flex; flex-direction: column; line-height: 1.1; }
.store-txt small { font-size: 11px; font-weight: 500; opacity: .8; letter-spacing: .02em; }
.store-txt b { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.store-btn.is-soon { background: var(--surface); color: var(--muted); border-color: var(--line-2); box-shadow: none; cursor: default; }
.store-btn.is-soon:hover { transform: none; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled, .nav.is-open { background: rgba(251, 250, 248, .82); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); border-bottom-color: var(--line); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; box-shadow: 0 4px 12px -4px rgba(37, 99, 235, .5); }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.03em; }
.brand-name span { background: linear-gradient(100deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.nav-links a:hover { background: rgba(13, 15, 20, .05); color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 24px; }
.nav.is-open .nav-toggle span:first-child { top: 20px; transform: rotate(45deg); }
.nav.is-open .nav-toggle span:last-child { top: 20px; transform: rotate(-45deg); }
.mobile-menu { background: rgba(251, 250, 248, .97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.mobile-menu nav { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 24px; }
.mobile-menu nav > a { padding: 14px 4px; font-size: 18px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu .store-row { margin-top: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 48px 0 32px; overflow: hidden; margin-top: calc(var(--nav-h) * -1); padding-top: calc(var(--nav-h) + 48px); }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.b1 { width: 520px; height: 520px; background: #c7d7ff; top: -140px; right: -80px; }
.b2 { width: 420px; height: 420px; background: #ead9ff; top: 180px; right: 320px; opacity: .5; }
.b3 { width: 360px; height: 360px; background: #ffd9ea; top: 360px; right: -60px; opacity: .45; }
.grid-fade { position: absolute; inset: 0; background-image: linear-gradient(rgba(13, 15, 20, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(13, 15, 20, .045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; min-height: min(720px, calc(100vh - 140px)); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); background: rgba(255, 255, 255, .75); border: 1px solid var(--line); padding: 7px 14px 7px 10px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(16, 185, 129, .18); }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); margin: 22px 0 20px; letter-spacing: -.045em; line-height: 1.02; }
.hero h1 em, .cta h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; background: linear-gradient(100deg, var(--brand) 10%, var(--brand-2) 55%, var(--brand-3)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.lead { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: 14.5px; font-weight: 600; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg, .ok svg { width: 18px; height: 18px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual { position: relative; perspective: 1400px; display: flex; justify-content: center; padding: 20px 0 40px; }
.tilt-stage { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 4deg)) rotateY(var(--ry, -10deg)); transition: transform .6s var(--ease); will-change: transform; }
.halo { position: absolute; inset: 8% -18% -6%; border-radius: 48px; background: conic-gradient(from 200deg, #c7d7ff, #e5d4ff, #ffd3e6, #c7d7ff); filter: blur(40px); opacity: .7; transform: translateZ(-80px); }
.phone { position: relative; width: 300px; aspect-ratio: 300 / 620; border-radius: 46px; background: #0d0f14; padding: 10px; box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #2b2f3a; transform: translateZ(20px); }
.phone-notch { position: absolute; top: 18px; left: 50%; width: 92px; height: 26px; margin-left: -46px; background: #0d0f14; border-radius: 20px; z-index: 3; }
.phone-screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: #f7f6f3; display: flex; flex-direction: column; }
.app-bar { display: flex; align-items: center; gap: 8px; padding: 54px 16px 10px; font-size: 13px; }
.app-bar b { font-weight: 700; }
.app-dot { width: 22px; height: 22px; border-radius: 7px; background: url(/site/img/logo-96.webp) center/cover; }
.app-chip { margin-left: auto; font-size: 11px; font-weight: 700; color: #047857; background: #d1fae5; padding: 3px 9px; border-radius: 999px; }
.compare-hero { flex: 1; margin: 0 10px; border-radius: 22px; }
.app-actions { display: flex; gap: 6px; padding: 10px; }
.app-actions span { flex: 1; text-align: center; font-size: 11.5px; font-weight: 700; padding: 10px 0; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.app-actions .primary { flex: 1.4; background: var(--ink); color: #fff; border-color: var(--ink); }

.float { position: absolute; display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .9); border-radius: 18px; padding: 10px 14px 10px 10px; box-shadow: var(--shadow); font-size: 13px; white-space: nowrap; }
.float b { display: block; font-weight: 700; font-size: 13.5px; }
.float small { display: block; color: var(--muted); font-size: 11.5px; }
.f-garment { top: 70px; left: -96px; transform: translateZ(90px); }
.f-garment img { width: 52px; height: 62px; object-fit: cover; border-radius: 10px; background: #eee; }
.f-identity { top: 46%; right: -110px; transform: translateZ(120px); }
.ok { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #d1fae5; }
.f-link { bottom: 64px; left: -70px; transform: translateZ(70px); font-weight: 600; padding: 10px 14px; }
.f-link svg, .url-pill svg { width: 18px; height: 18px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; }

.trust { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.trust li { padding: 20px 24px; display: flex; flex-direction: column; }
.trust li + li { border-left: 1px solid var(--line); }
.trust b { font-size: 16px; letter-spacing: -.01em; }
.trust span { font-size: 14px; color: var(--muted); }

/* ---------- Compare slider ---------- */
.compare { position: relative; overflow: hidden; background: #efeeea; isolation: isolate; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.compare > img, .compare-before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .25); pointer-events: none; }
.compare-knob { position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.compare-knob::before, .compare-knob::after { content: ''; position: absolute; top: 50%; width: 0; height: 0; margin-top: -5px; border: 5px solid transparent; }
.compare-knob::before { left: 7px; border-right-color: var(--ink); }
.compare-knob::after { right: 7px; border-left-color: var(--ink); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; z-index: 4; }
.compare-range:focus-visible ~ .compare-line .compare-knob, .compare:focus-within .compare-knob { outline: 3px solid var(--brand); outline-offset: 2px; }
.tag { position: absolute; top: 12px; z-index: 2; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(13, 15, 20, .72); color: #fff; pointer-events: none; }
.tag-l { left: 12px; }
.tag-r { right: 12px; background: rgba(255, 255, 255, .9); color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 112px 0; position: relative; }
.section-tint { background: var(--tint); }
.section-tint::before, .section-tint::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.section-tint::before { top: 0; }
.section-tint::after { bottom: 0; }
.section-head { text-align: center; max-width: 820px; margin: 0 auto 56px; }
.section-head.left { text-align: left; margin: 0; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); margin: 14px 0 16px; letter-spacing: -.04em; }
.section-head p:not(.kicker) { color: var(--muted); font-size: 18px; }
.section-head a { color: var(--brand); font-weight: 600; }
.kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.note { font-size: 13.5px; color: var(--muted); }
.note.center { text-align: center; margin-top: 28px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-weight: 600; font-size: 15.5px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #d1fae5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23059669' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* Answer block */
.answer { padding: 72px 0 24px; }
.answer-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.kicker-title { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.035em; }
.kicker-title .kicker { display: block; margin-bottom: 12px; }
.answer-text { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.6; color: var(--ink-2); }
.answer-text strong { color: var(--ink); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 28px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-art { position: relative; height: 220px; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #f2f4fb, #f7f1fb); margin-bottom: 24px; display: grid; place-items: center; }
.art-photo img, .art-result img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.scan { position: absolute; left: 0; right: 0; height: 40%; top: -40%; background: linear-gradient(180deg, transparent, rgba(37, 99, 235, .25), transparent); border-bottom: 2px solid rgba(37, 99, 235, .7); animation: scan 3.2s var(--ease) infinite; }
@keyframes scan { 0% { top: -40%; } 60%, 100% { top: 100%; } }
.art-garment { gap: 14px; align-content: center; }
.art-garment img { width: 88px; height: 104px; border-radius: 14px; box-shadow: var(--shadow); object-fit: cover; }
.url-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; background: #fff; border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.spark { position: absolute; width: 14px; height: 14px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 2.4s ease-in-out infinite; }
.s1 { top: 22%; left: 24%; }
.s2 { top: 52%; right: 22%; width: 10px; height: 10px; animation-delay: 1.1s; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }
.step-num { font-size: 13px; font-weight: 800; color: var(--brand); letter-spacing: .08em; padding: 0 6px; }
.step h3 { font-size: 22px; margin: 8px 6px 10px; }
.step p { color: var(--muted); font-size: 15.5px; padding: 0 6px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-lg { grid-row: span 2; display: flex; flex-direction: column; background: linear-gradient(170deg, #fff 40%, #eef2ff); }
.card-wide { grid-column: 1 / -1; display: flex; gap: 20px; align-items: flex-start; }
.card-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); margin-bottom: 18px; flex-shrink: 0; }
.card-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -.02em; }
.card-lg h3 { font-size: 26px; }
.card p { color: var(--muted); font-size: 15.5px; }
.identity-viz { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.identity-viz span { font-size: 13px; font-weight: 700; background: #fff; border: 1px solid var(--line); padding: 7px 12px 7px 30px; border-radius: 999px; position: relative; box-shadow: var(--shadow-sm); }
.identity-viz span::before { content: ''; position: absolute; left: 10px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 4px; background: var(--brand); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 11V8a5 5 0 0 1 10 0v3h1v10H6V11z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 11V8a5 5 0 0 1 10 0v3h1v10H6V11z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* Examples */
.examples-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.examples-copy h2 { font-size: clamp(32px, 4vw, 48px); margin: 14px 0 16px; letter-spacing: -.04em; }
.examples-copy > p:not(.kicker):not(.note) { color: var(--muted); font-size: 18px; }
.examples-copy .note { margin-top: 24px; }
.showcase { margin: 0; justify-self: center; width: 100%; max-width: 440px; }
.compare-xl { aspect-ratio: 420 / 600; border-radius: 28px; box-shadow: var(--shadow-lg); }
.showcase figcaption { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 14px; }

/* Use cases */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.use { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.use:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.use-emoji { display: grid; place-items: center; width: 52px; height: 52px; font-size: 26px; border-radius: 16px; background: var(--tint); margin-bottom: 18px; }
.use h3 { font-size: 20px; margin-bottom: 8px; }
.use p { color: var(--muted); font-size: 15.5px; }

/* Coins */
.coins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.coin-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.coin-card h3 { font-size: 24px; margin: 16px 0 10px; }
.coin-card > p { color: var(--muted); font-size: 15.5px; }
.coin-badge { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: #d1fae5; color: #047857; }
.coin-card-dark { background: radial-gradient(120% 90% at 100% 0%, #2a3b8f 0%, #141a33 45%, #0d0f14 100%); color: #fff; border-color: #0d0f14; box-shadow: var(--shadow-lg); }
.coin-card-dark > p { color: rgba(255, 255, 255, .72); }
.coin-card-dark .coin-badge { background: rgba(255, 255, 255, .14); color: #fff; }
.coin-card-dark .checks li::before { background-color: rgba(16, 185, 129, .25); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 64px; align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--nav-h) + 32px); }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 60px 22px 24px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 17.5px; letter-spacing: -.015em; font-weight: 700; line-height: 1.35; }
.faq summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' stroke='%230d0f14' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); font-size: 16px; }
.faq details a { color: var(--brand); font-weight: 600; }

/* CTA */
.cta-section { padding-top: 96px; }
.cta { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 32px; padding: 64px; border-radius: 36px; background: radial-gradient(90% 120% at 100% 0%, #dbe6ff 0%, transparent 60%), radial-gradient(80% 120% at 0% 100%, #f6dcff 0%, transparent 55%), var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cta h2 { font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -.04em; margin-bottom: 16px; }
.cta p { color: var(--muted); font-size: 18px; margin-bottom: 28px; }
.cta-mascot { width: 100%; max-width: 280px; justify-self: center; border-radius: 40px; box-shadow: var(--shadow-lg); transform: rotate(4deg); }

/* Footer */
.footer { margin-top: 96px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer-brand p { color: var(--muted); font-size: 15px; margin: 16px 0 22px; max-width: 360px; }
.footer-brand .store-btn { min-width: 0; padding: 8px 16px 8px 12px; }
.footer-brand .store-txt b { font-size: 15px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; font-weight: 800; }
.footer-col a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.footer-col a:hover { color: var(--brand); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- Article / document pages ---------- */
.page-hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.page-hero .hero-bg .b1 { top: -260px; right: -120px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); list-style: none; padding: 0; margin: 0 0 18px; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs li + li::before { content: '/'; margin-right: 8px; opacity: .5; }
.page-hero h1 { font-size: clamp(36px, 5.2vw, 62px); letter-spacing: -.045em; max-width: 900px; }
.page-hero .lead { margin: 20px 0 0; max-width: 720px; }
.meta { font-size: 14px; color: var(--muted); margin-top: 18px; }
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; padding-bottom: 32px; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; border-left: 2px solid var(--line); }
.toc b { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 0 8px 16px; }
.toc a { text-decoration: none; color: var(--ink-2); padding: 5px 0 5px 16px; margin-left: -2px; border-left: 2px solid transparent; font-weight: 600; }
.toc a:hover { color: var(--brand); border-left-color: var(--brand); }
.prose { max-width: 760px; font-size: 17.5px; color: var(--ink-2); }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin: 56px 0 16px; color: var(--ink); letter-spacing: -.03em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; margin: 32px 0 10px; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--brand); font-weight: 600; }
.prose strong { color: var(--ink); }
.prose .callout { background: var(--brand-soft); border: 1px solid #d6e2ff; border-radius: 18px; padding: 22px 24px; margin: 24px 0; }
.prose .callout p:last-child { margin-bottom: 0; }
.prose .table-wrap { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.prose table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15.5px; }
.prose th, .prose td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--tint); font-size: 13.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.prose tr:last-child td { border-bottom: 0; }
.prose figure { margin: 28px 0; }
.prose .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.prose .pair img { border-radius: 18px; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 15%; width: 100%; background: var(--tint); }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center; }
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 28px; box-shadow: var(--shadow-sm); margin: 36px 0; }
.inline-cta b { font-size: 19px; color: var(--ink); display: block; }
.inline-cta span { color: var(--muted); font-size: 15px; }
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 8px 0 28px; }
.contact-cards .card h2 { font-size: 19px; margin: 0 0 8px; letter-spacing: -.02em; }
.contact-cards .card p { margin-bottom: 8px; }
.contact-cards .card a { color: var(--brand); font-weight: 700; word-break: break-all; }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound h1 { font-size: clamp(40px, 6vw, 64px); margin: 12px 0 14px; }
.notfound p { color: var(--muted); margin-bottom: 26px; }

/* ---------- Reveal animations (progressive enhancement) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .hero [data-hero-item] { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.js .hero [data-hero-item]:nth-child(2) { animation-delay: .08s; }
.js .hero [data-hero-item]:nth-child(3) { animation-delay: .16s; }
.js .hero [data-hero-item]:nth-child(4) { animation-delay: .24s; }
.js .hero [data-hero-item]:nth-child(5) { animation-delay: .32s; }
.js .hero-visual { animation: rise-3d 1.2s var(--ease) .1s both; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes rise-3d { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
.float { animation: bob 6s ease-in-out infinite; }
.f-identity { animation-delay: -2s; }
.f-link { animation-delay: -4s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal], .js .hero [data-hero-item] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; min-height: 0; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .store-row { justify-content: center; }
  .hero-points { justify-content: center; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust li:nth-child(3) { border-left: 0; }
  .trust li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-lg { grid-row: auto; grid-column: span 2; }
  .uses, .coins { grid-template-columns: repeat(2, 1fr); }
  .coin-card-dark { grid-column: span 2; }
  .examples-grid, .faq-grid, .answer-grid { grid-template-columns: 1fr; gap: 36px; }
  .faq-grid .section-head { position: static; text-align: center; margin: 0 auto; }
  .examples-copy { text-align: center; }
  .examples-copy .checks { justify-content: center; text-align: left; width: max-content; margin-left: auto; margin-right: auto; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand .store-row { justify-content: flex-start; }
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .toc { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .btn-sm.btn-dark { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 28px); }
  .hero h1 { margin: 18px 0 16px; }
  .store-btn { min-width: 0; flex: 1 1 150px; justify-content: center; padding: 10px 14px; }
  .hero-visual { padding: 24px 0 24px; }
  .tilt-stage { transform: none; }
  .phone { width: 248px; border-radius: 40px; }
  .phone-screen { border-radius: 31px; }
  .f-garment { left: -40px; top: 40px; }
  .f-identity { right: -44px; }
  .f-link { left: -30px; bottom: auto; top: 66%; }
  .float { padding: 8px 10px 8px 8px; font-size: 12px; }
  .float b { font-size: 12.5px; }
  .f-garment img { width: 40px; height: 48px; }
  .trust li { padding: 16px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head p:not(.kicker) { font-size: 16.5px; }
  .answer { padding: 56px 0 8px; }
  .steps, .bento, .uses, .coins { grid-template-columns: 1fr; }
  .card-lg, .card-wide, .coin-card-dark { grid-column: auto; }
  .card-wide { flex-direction: column; gap: 0; }
  .cta { grid-template-columns: 1fr; padding: 36px 22px; text-align: center; border-radius: 28px; }
  .cta-mascot { max-width: 180px; grid-row: 1; }
  .footer { margin-top: 64px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 48px; }
  .footer-brand .store-row { justify-content: stretch; }
  .prose { font-size: 16.5px; }
  .contact-cards { grid-template-columns: 1fr; }
  .page-hero { padding: 48px 0 28px; }
}
@media (max-width: 380px) {
  .f-identity { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .store-row { flex-wrap: nowrap; width: 100%; }
  .store-btn { flex: 1 1 0; gap: 10px; padding: 10px 12px; border-radius: 14px; }
  .store-btn .store-ico { width: 22px; height: 22px; }
  .store-txt small { font-size: 10.5px; white-space: nowrap; }
  .store-txt b { font-size: 16px; white-space: nowrap; }
  .hero-points { flex-direction: column; align-items: center; }
  .hero-points li { text-align: left; }
}
@media (max-width: 720px) {
  .hero-points { align-items: flex-start; width: max-content; max-width: 100%; margin-left: auto; margin-right: auto; }
}

/* Fact tables (About) */
.prose table.facts { min-width: 0; }
.prose .facts th { width: 34%; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); font-weight: 700; }
@media (max-width: 720px) {
  .prose .facts th, .prose .facts td { display: block; width: auto; padding: 10px 16px; }
  .prose .facts th { border-bottom: 0; padding-bottom: 0; background: none; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
}
/* Tablet: give the hero phone room and keep floating cards inside the viewport */
@media (min-width: 721px) and (max-width: 1080px) {
  .hero-visual { padding: 32px 0 48px; }
  .f-garment { left: -120px; }
  .f-identity { right: -150px; }
  .f-link { left: -110px; }
}
/* Large screens */
@media (min-width: 1600px) {
  .wrap { max-width: 1280px; }
  .phone { width: 320px; }
}
/* Short landscape phones */
@media (max-height: 520px) and (orientation: landscape) {
  .hero-grid { min-height: 0; }
}

/* Never let long content (emails, URLs, nowrap labels) widen a grid column past the viewport */
.hero-grid > *, .doc > *, .examples-grid > *, .faq-grid > *, .answer-grid > *, .footer-grid > *, .cta > * { min-width: 0; }
.prose a, .footer a, .card a { overflow-wrap: anywhere; }
@media (max-width: 1080px) {
  .hero-grid, .doc, .examples-grid, .faq-grid, .answer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .hero-points { width: auto; }
  .hero-points li { justify-content: center; }
}
@media (max-width: 400px) {
  .store-row { flex-wrap: wrap; }
  .store-btn { flex: 1 1 100%; }
}

/* ---------- Scroll depth (CSS scroll-driven, no JS libraries) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .step-art img, .cta-mascot, .guide-card-art img { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    .hero .blob { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
}
@keyframes settle { from { scale: 1.08; } to { scale: 1; } }
@keyframes drift { to { translate: 0 22vh; } }

/* ---------- Guides grid (internal links to topic pages) ---------- */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.guide-card .kicker { font-size: 12px; margin-bottom: 10px; }
.guide-card h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -.02em; }
.guide-card p { color: var(--muted); font-size: 15px; }
.guide-card .more { margin-top: auto; padding-top: 18px; font-weight: 700; font-size: 14.5px; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
.guide-card .more::after { content: '→'; transition: transform .3s var(--ease); }
.guide-card:hover .more::after { transform: translateX(4px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.chips li { font-size: 14px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px; }
.related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.related h2 { margin-top: 0 !important; }
.related .guides { grid-template-columns: repeat(2, 1fr); margin-top: 18px; }
.prose .related .guide-card { color: inherit; font-weight: 400; }
.prose .related .guide-card h3 { margin: 0 0 8px; font-size: 18px; }
.prose .guide-card .more { color: var(--brand); }

/* ---------- Sticky download bar (phones) ---------- */
.dock { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: none; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 20px; background: rgba(13, 15, 20, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; box-shadow: 0 18px 40px -16px rgba(13, 15, 20, .7); transform: translateY(140%); transition: transform .45s var(--ease); }
.dock.is-on { transform: none; }
.dock img { width: 40px; height: 40px; border-radius: 12px; }
.dock-txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.dock-txt b { font-size: 15px; }
.dock-txt small { font-size: 12.5px; opacity: .72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock .btn { margin-left: auto; background: #fff; color: var(--ink); padding: 10px 16px; font-size: 14px; }
@media (max-width: 720px) {
  .dock { display: flex; }
  .footer { padding-bottom: 84px; }
}

@media (max-width: 1080px) {
  .guides { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .guides, .related .guides { grid-template-columns: 1fr; }
}
.page-store { margin-top: 26px; justify-content: flex-start !important; }
/* Two-column tables fit the screen; only wider comparison tables scroll sideways */
.prose table:not(:has(th:nth-child(3))) { min-width: 0; }
/* Store buttons inside articles keep their own colours (not the prose link / muted text colours) */
.prose a.store-btn { color: #fff; font-weight: inherit; }
.inline-cta .store-btn span, .inline-cta .store-btn small, .inline-cta .store-btn b { color: inherit; }
.inline-cta .store-btn b { font-size: 18px; display: inline; }
@media (max-width: 720px) { .inline-cta .store-btn b { font-size: 16px; } }
