/* Upnex website. Colors, type and spacing come from tokens.css (the Claude Design handoff). */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font-body); background: var(--bg-page); color: var(--text-primary); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--text-accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand-600); color: #fff; }
[hidden] { display: none !important; }
mark { background: var(--brand-100); color: var(--brand-800); border-radius: 4px; padding: 0 4px; font-size: 0.85em; }

.px { padding-left: var(--page-gutter); padding-right: var(--page-gutter); }
.stroke, .stroke-bold, .stroke-check { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.stroke-bold { stroke-width: 2.25; }
.stroke-check { stroke-width: 2.4; }
.stroke.thin { stroke-width: 1.8; }
.logo-on-dark { display: var(--logo-dark); }
.logo-on-light { display: var(--logo-light); }
.icon-sun { display: var(--logo-dark); }
.icon-moon { display: var(--logo-light); }

.h2, .h3, .display, .final-h, .step-card h3, .bento-card h3, .dialog-title, .menu-link, .moment, .phone-title {
  font-family: var(--font-display); font-weight: 500;
}
.display { font-size: 100px; line-height: 0.95; letter-spacing: -0.035em; margin-bottom: 28px; text-wrap: balance; }
.h2 { font-size: 64px; line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
.h3 { font-size: 48px; line-height: 1.05; letter-spacing: -0.03em; }
.muted { font-size: 17px; line-height: 1.6; color: var(--sheet-muted); }

/* Reveals wait for JavaScript; without it everything is simply visible. */
.js [data-reveal]:not([data-shown]) { opacity: 0; }

/* Buttons */
.btn { border: none; cursor: pointer; font-size: 15px; font-weight: 700; min-height: 48px; padding: 0 22px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: transform 0.25s var(--ease-out), background 0.2s; }
.btn:active { transform: scale(0.97); }
.btn-lg { font-size: 16px; min-height: 56px; min-width: 236px; padding: 0 28px; }
.btn-action { color: #fff; background: var(--gradient-action); }
.btn-action:hover { transform: translateY(-1px); background: var(--gradient-action-hover); }
.btn-white { background: #fff; color: var(--brand-800); font-size: 16px; min-height: 52px; padding: 0 26px; margin-top: 40px; align-self: flex-start; }
.btn-white:hover { background: var(--brand-100); transform: translateY(-1px); }
.btn-outline { box-shadow: inset 0 0 0 1.5px var(--brand-200); }
.btn-pro { background: var(--gradient-pro); color: var(--ink-text); box-shadow: var(--shadow-pro); }
.btn-pro:hover { background: var(--gradient-pro); filter: brightness(1.05); }
.btn-ink { background: var(--sheet-fg); color: var(--sheet-bg); }
.btn-ink:hover { background: var(--sheet-fg-hover); transform: translateY(-1px); }
.btn-text { border: none; background: transparent; color: rgba(var(--text-rgb), 0.72); font-size: 14px; font-weight: 700; cursor: pointer; min-height: 44px; padding: 0 4px; }
.btn-text:hover { color: var(--text-primary); }
.icon-btn { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: none; cursor: pointer; background: rgba(var(--overlay-rgb), 0.08); color: var(--text-primary); display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.icon-btn:hover { background: rgba(var(--overlay-rgb), 0.14); }

/* Nav */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 61; pointer-events: none; }
.progress div { height: 100%; background: linear-gradient(90deg, var(--text-accent), var(--brand-600), var(--blue-600)); transform-origin: 0 50%; transform: scaleX(0); }
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; background: var(--surface-chrome); backdrop-filter: var(--blur-chrome); -webkit-backdrop-filter: var(--blur-chrome); border-bottom: 1px solid rgba(var(--overlay-rgb), 0.06); }
.nav-row { max-width: var(--page-max); margin: 0 auto; padding-top: 12px; padding-bottom: 12px; display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); align-items: center; gap: 16px; }
.nav-logo { display: flex; align-items: center; justify-self: start; }
.logo-mark { display: none; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 14px; color: rgba(var(--text-rgb), 0.72); }
.nav-links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; transition: color 0.3s; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--brand-400), var(--blue-500)); transform: scaleX(0); transition: transform 0.4s var(--ease-out); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text-primary); }
.nav-links a[aria-current]::after { transform: scaleX(1); }
.nav-end { display: flex; align-items: center; gap: 12px; justify-self: end; }
.lang-switch { display: inline-flex; flex-shrink: 0; gap: 2px; padding: 3px; border-radius: var(--radius-pill); background: rgba(var(--overlay-rgb), 0.08); font-size: 12px; font-weight: 700; }
.lang-switch > * { position: relative; display: flex; align-items: center; justify-content: center; min-width: 36px; min-height: 34px; border-radius: var(--radius-pill); }
.lang-switch a { color: rgba(var(--text-rgb), 0.72); text-decoration: none; transition: color 0.2s, background 0.2s; }
.lang-switch a::after { content: ''; position: absolute; inset: -3px; }
.lang-switch a:hover { color: var(--text-primary); background: rgba(var(--overlay-rgb), 0.1); }
.lang-switch [aria-current] { background: rgba(var(--overlay-rgb), 0.16); color: var(--text-primary); }
.nav-search { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; width: 180px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--liquid-border); background: var(--liquid-bg); color: rgba(var(--text-rgb), 0.72); font-size: 14px; font-weight: 500; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: background 0.2s, color 0.2s, opacity 0.35s, transform 0.35s var(--ease-out); }
.nav-search.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.nav-search:hover { background: var(--liquid-bg-hover); color: var(--text-primary); }
.nav-search svg { color: var(--text-accent); width: 17px; height: 17px; }
.nav-cta { font-size: 14px; min-height: 44px; padding: 0 18px; white-space: nowrap; }
.nav-burger { display: none; width: 44px; height: 44px; }

.search-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 55; display: none; align-items: center; gap: 12px; min-height: 56px; padding: 0 8px 0 18px; border-radius: var(--radius-pill); border: 1px solid var(--liquid-border); background: var(--surface-chrome); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 18px 40px -18px rgba(14, 13, 22, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12); color: var(--text-primary); font-size: 15px; font-weight: 500; text-align: left; cursor: pointer; transform: translateY(140%); opacity: 0; pointer-events: none; transition: transform 0.5s var(--ease-out), opacity 0.35s; }
.search-bar.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.search-bar > svg { color: var(--text-accent); }
.search-bar-label { flex: 1; min-width: 0; color: rgba(var(--text-rgb), 0.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-bar-bell { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gradient-action); color: #fff; }

/* Hero */
.hero { position: sticky; top: 0; height: 100vh; min-height: 680px; z-index: 0; overflow: hidden; background: radial-gradient(ellipse 60% 70% at 82% 55%, rgba(98, 86, 255, 0.26), transparent 70%), radial-gradient(ellipse 50% 40% at 10% 0%, rgba(76, 107, 255, 0.12), transparent 70%), var(--bg-page); }
.hero-grid { height: 100%; max-width: var(--page-max); margin: 0 auto; padding-top: 96px; padding-bottom: 48px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: center; transform-origin: 50% 60%; will-change: transform, opacity; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; margin-bottom: 28px; border-radius: var(--radius-pill); background: linear-gradient(110deg, rgba(139, 123, 255, 0.26), rgba(76, 107, 255, 0.12), rgba(201, 194, 255, 0.24), rgba(110, 99, 255, 0.12), rgba(139, 123, 255, 0.26)); background-size: 300% 100%; border: 1px solid rgba(169, 159, 255, 0.32); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); font-size: 14px; font-weight: 500; color: var(--text-pill); }
.pill svg { color: var(--text-accent); }
.hero-sub { font-size: 19px; line-height: 1.55; color: rgba(var(--text-rgb), 0.72); max-width: 500px; margin-bottom: 36px; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 700; color: var(--text-accent); transition: color 0.2s; }
.hero-link:hover { color: var(--text-primary); }
.hero-notif { position: relative; width: 100%; max-width: 420px; justify-self: end; }
.notif-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; padding: 0 4px; font-size: 13px; color: rgba(var(--text-rgb), 0.6); }
.notif-head span:first-child { font-weight: 700; color: rgba(var(--text-rgb), 0.8); }
.notif-stack { position: relative; display: flex; flex-direction: column; gap: 10px; }
.js .notif-stack { display: block; height: 348px; }
.ring-bell { position: absolute; left: 50%; top: 110px; width: 96px; height: 96px; margin-left: -48px; opacity: 0; pointer-events: none; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(139, 123, 255, 0.7); }
.ring-icon { position: absolute; inset: 0; border-radius: 50%; background: var(--gradient-tile); display: flex; align-items: center; justify-content: center; color: #fff; transform-origin: 50% 20%; }
.toast { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--surface-toast); border: 1px solid var(--border-toast); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-toast); transition: transform 0.9s var(--ease-out), opacity 0.9s var(--ease-out); }
.js .toast { position: absolute; top: 0; left: 0; right: 0; opacity: 0; will-change: transform, opacity; }
.toast-art { width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0; }
.toast-text { flex: 1; min-width: 0; }
.toast-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.toast-top span { color: rgba(var(--text-rgb), 0.6); }
.toast-line { font-size: 14px; color: rgba(var(--text-rgb), 0.78); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.art-0 { background: linear-gradient(160deg, #2B3A67, #141A33); }
.art-1 { background: linear-gradient(160deg, #6B3A4A, #2A1520); }
.art-2 { background: linear-gradient(160deg, #2F5A55, #12241F); }
.art-3 { background: linear-gradient(160deg, #5A4A2A, #221A0E); }
.art-4 { background: linear-gradient(160deg, #3A2F6B, #16122E); }
.art-5 { background: linear-gradient(160deg, #6B5A3A, #2A2012); }

/* Sheets slide over the sticky hero */
.sheet { position: relative; z-index: 3; border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; box-shadow: var(--shadow-sheet); }
.sheet-paper { background: var(--sheet-bg); color: var(--sheet-fg); }

/* Search */
.try { z-index: 2; }
.try-inner { position: relative; min-height: 100vh; padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.try-inner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 45% at 50% 58%, rgba(110, 99, 255, 0.16), transparent 70%); pointer-events: none; }
.try-inner > * { position: relative; }
.try-inner .h2 { max-width: 600px; margin-bottom: 16px; }
.try-inner .muted { margin-bottom: 40px; }
.try-card { width: 100%; max-width: 600px; text-align: left; padding: 36px 36px 40px; border-radius: var(--radius-lg); background: var(--bg-page); border: 1px solid var(--border-toast); box-shadow: 0 40px 80px -40px rgba(14, 13, 22, 0.45); color: var(--text-primary); }
.try-live { position: absolute; right: 18px; bottom: 12px; font-size: 11px; color: rgba(var(--text-rgb), 0.6); pointer-events: none; }
.search-field { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 8px 0 20px; border-radius: var(--radius-pill); background: linear-gradient(120deg, rgba(139, 123, 255, 0.1), rgba(76, 107, 255, 0.06)); border: 1.5px solid rgba(139, 123, 255, 0.28); cursor: text; transition: border-color 0.25s, box-shadow 0.3s, background 0.25s; }
.search-field:hover { background: linear-gradient(120deg, rgba(139, 123, 255, 0.16), rgba(76, 107, 255, 0.1)); }
.search-field:focus-within { border-color: var(--brand-400); box-shadow: 0 0 0 4px rgba(110, 99, 255, 0.22), 0 12px 32px -16px rgba(91, 75, 245, 0.6); }
.search-field svg { color: var(--text-accent); }
.search-field input { flex: 1; min-width: 0; height: 56px; border: none; outline: none; background: transparent; color: var(--text-primary); font-family: inherit; font-size: 17px; font-weight: 500; appearance: none; -webkit-appearance: none; }
.search-field input::placeholder { color: rgba(var(--text-rgb), 0.6); }
.search-clear { width: 40px; height: 40px; flex-shrink: 0; border: none; border-radius: 50%; background: rgba(139, 123, 255, 0.16); color: var(--text-primary); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.spinner { width: 18px; height: 18px; margin-right: 12px; flex-shrink: 0; border-radius: 50%; border: 2px solid rgba(139, 123, 255, 0.22); border-top-color: var(--brand-300); }
.search-results { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; max-height: 296px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.search-results:empty { display: none; }
.result { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: none; border-radius: var(--radius-md); background: transparent; color: var(--text-primary); cursor: pointer; text-align: left; transition: background 0.2s; }
.result:hover { background: rgba(139, 123, 255, 0.12); }
.result-text { flex: 1; min-width: 0; }
.result-text strong { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-text span { display: block; font-size: 13px; color: rgba(var(--text-rgb), 0.65); margin-top: 2px; }
.poster { width: 64px; height: 90px; border-radius: var(--radius-sm); flex-shrink: 0; overflow: hidden; background: linear-gradient(160deg, #2B3A67, #141A33); }
.poster-sm { width: 36px; height: 50px; border-radius: 6px; }
.poster img, .suggest-art img { width: 100%; height: 100%; object-fit: cover; }
.search-note { font-size: 13px; color: rgba(var(--text-rgb), 0.62); margin-top: 8px; min-height: 1em; }
.suggest { position: relative; isolation: isolate; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(139, 123, 255, 0.18); }
.suggest::before { content: ''; position: absolute; inset: 24px -24px -24px; z-index: -1; background: var(--liquid-glow); pointer-events: none; }
.suggest-label { width: 100%; font-size: 12px; font-weight: 700; color: rgba(var(--text-rgb), 0.62); }
.suggest-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 16px 4px 4px; border-radius: var(--radius-pill); border: 1px solid var(--liquid-border); background: var(--liquid-bg); backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass); box-shadow: var(--liquid-shadow); color: var(--text-primary); font-size: 13px; font-weight: 700; cursor: pointer; transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, background 0.3s; }
.suggest-chip:hover { transform: translateY(-2px) scale(1.03); background: var(--liquid-bg-hover); box-shadow: var(--liquid-shadow-hover); }
.suggest-chip:active { transform: scale(0.96); }
.suggest-art { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; overflow: hidden; background: linear-gradient(160deg, #2B3A67, #141A33); box-shadow: 0 0 0 1px var(--liquid-ring); }
.pick-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.pick-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.pick-last { font-size: 13px; color: rgba(var(--text-rgb), 0.65); margin-bottom: 10px; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: var(--radius-pill); }
.chip-plain { background: rgba(var(--overlay-rgb), 0.1); color: var(--text-primary); }
.chip-set { background: var(--status-renewed-bg); color: var(--status-renewed-fg); }
.chip-wait { background: var(--status-airing-bg); color: var(--status-airing-fg); }
.pick-msg { font-size: 16px; line-height: 1.55; color: rgba(var(--text-rgb), 0.85); margin-bottom: 22px; text-wrap: pretty; }
.pick-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pick-actions .btn-action { flex: 1 1 240px; min-height: 56px; font-size: 16px; }

/* Moments */
.moments { margin-top: calc(-1 * var(--radius-sheet)); overflow: hidden; background: linear-gradient(120deg, var(--brand-600) 0%, var(--blue-600) 100%); color: #fff; padding: 128px 0; }
.moments .h2 { margin: 0 auto 80px; max-width: 860px; text-align: center; }
.drift-rows { display: flex; flex-direction: column; gap: 20px; }
.drift { display: flex; gap: 20px; width: max-content; will-change: transform; }
.moment { flex-shrink: 0; padding: 26px 34px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); font-weight: 400; font-size: 32px; letter-spacing: -0.01em; white-space: nowrap; }
.drift:nth-child(2) .moment { background: var(--ink-950); border-color: transparent; }

/* Notifications panel */
.spo { position: relative; z-index: 3; height: 240vh; background: var(--bg-page); }
.spo-inner { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.spo-grid { width: 100%; max-width: var(--page-max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.spo-kicker { font-size: 13px; font-weight: 700; color: var(--text-accent); margin-bottom: 16px; }
.spo .h3 { margin-bottom: 20px; }
.spo-body { font-size: 18px; line-height: 1.65; color: rgba(var(--text-rgb), 0.72); margin-bottom: 28px; max-width: 440px; }
.spo-points { display: flex; flex-direction: column; gap: 12px; font-size: 16px; color: rgba(var(--text-rgb), 0.85); }
.spo-points div { display: flex; gap: 12px; align-items: center; }
.spo-points svg { color: var(--text-accent); }
.spo-panel { position: relative; height: 72vh; min-height: 460px; border-radius: 28px; overflow: hidden; background: radial-gradient(ellipse 70% 60% at 30% 20%, rgba(91, 75, 245, 0.7), transparent 70%), radial-gradient(ellipse 60% 60% at 80% 90%, rgba(63, 91, 232, 0.6), transparent 70%), #1A1740; display: flex; align-items: center; justify-content: center; transform-origin: 50% 50%; will-change: transform; }
.spo-card { width: min(400px, 84%); display: flex; flex-direction: column; gap: 12px; }
.spo-push { border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.95); color: var(--ink-text); padding: 20px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.spo-push-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 14px; }
.spo-push-head img { border-radius: 8px; }
.spo-push-head span { margin-left: auto; font-size: 12px; color: var(--text-muted-light); }
.spo-push-title { font-family: var(--font-display); font-weight: 500; font-size: 26px; letter-spacing: -0.02em; margin-bottom: 6px; }
.spo-push-body { font-size: 15px; color: var(--text-body-light); margin-bottom: 14px; }
.spo-chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--brand-100); color: var(--brand-700); }
.spo-row { border-radius: 16px; padding: 14px 18px; font-size: 14px; display: flex; justify-content: space-between; gap: 12px; color: #fff; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18); }
.spo-row-2 { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.72); }

/* Phones */
.phone { position: relative; border-radius: var(--radius-device); padding: 10px; background: var(--ink-800); box-shadow: 0 50px 90px -30px rgba(14, 13, 22, 0.45); will-change: transform; }
.phone-screen { width: 100%; height: 100%; border-radius: 38px; background: var(--ink-900); color: #F4F3F8; padding: 22px 18px; overflow: hidden; }
.phone-bar { font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, 0.7); margin-bottom: 18px; }
.phone-title { font-size: 26px; letter-spacing: -0.02em; margin-bottom: 4px; }
.phone-sub { font-size: 11px; color: rgba(244, 243, 248, 0.62); margin-bottom: 16px; }
.phone-search { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); font-size: 13px; margin: 10px 0 16px; }
.phone-search svg { width: 14px; height: 14px; }
.caret { width: 1.5px; height: 14px; background: var(--brand-300); }
.phone-list { display: flex; flex-direction: column; gap: 8px; }
.phone-row { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.05); }
.mini-poster { width: 38px; height: 52px; border-radius: 7px; flex-shrink: 0; }
.phone-row-text { flex: 1; min-width: 0; }
.phone-row-text strong { display: block; font-size: 13px; }
.phone-row-text span { display: block; font-size: 11px; color: rgba(244, 243, 248, 0.62); margin-top: 2px; }
.phone-add { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; }
.phone-add.is-on { background: var(--brand-600); }
.phone-day { margin-bottom: 14px; }
.phone-day-label { font-size: 11px; font-weight: 700; color: var(--brand-300); margin-bottom: 8px; }
.phone-status { font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: var(--radius-pill); white-space: nowrap; }
.tone-violet { background: rgba(110, 99, 255, 0.22); color: var(--brand-200); }
.tone-green { background: rgba(74, 222, 160, 0.16); color: #7DEBBE; }
.tone-grey { background: rgba(255, 255, 255, 0.1); color: rgba(244, 243, 248, 0.78); }

/* Why */
.why { margin-top: -40px; overflow: hidden; }
.why-grid { max-width: var(--page-max); margin: 0 auto; padding-top: 140px; padding-bottom: 120px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.why-stage { position: relative; display: flex; justify-content: center; min-height: 600px; align-items: center; }
.why-phone { width: 280px; height: 580px; transform: rotate(-8deg); }
.why-chips { position: absolute; right: -150px; top: 150px; display: flex; flex-direction: column; gap: 12px; transform: rotate(8deg); }
.glass-chip { display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 16px; color: var(--glass-chip-fg); font-size: 15px; font-weight: 700; white-space: nowrap; border: 1px solid var(--glass-chip-border); backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass); box-shadow: 0 18px 32px -18px rgba(14, 13, 22, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.9); }
.glass-chip-1 { background: var(--glass-chip-1); }
.glass-chip-2 { background: var(--glass-chip-2); margin-left: 24px; }
.glass-chip-3 { background: var(--glass-chip-3); margin-left: 48px; }
.glass-tile { width: 32px; height: 32px; border-radius: var(--radius-sm); flex-shrink: 0; background: var(--glass-chip-tile); border: 1px solid var(--glass-chip-border); display: flex; align-items: center; justify-content: center; }
.glass-tile svg { width: 16px; height: 16px; }
.glass-chip-1 .glass-tile { color: var(--glass-chip-ring-1); }
.glass-chip-2 .glass-tile { color: var(--glass-chip-ring-2); }
.glass-chip-3 .glass-tile { color: var(--glass-chip-ring-3); }
.mask { display: block; overflow: hidden; padding-bottom: 6px; margin-bottom: 22px; }
.mask span { display: block; }
.why-p { font-size: 18px; line-height: 1.65; color: var(--sheet-body); margin-bottom: 20px; max-width: 480px; text-wrap: pretty; }
.why-p-last { margin-bottom: 40px; }

/* How it works */
.sheet-continue { position: relative; z-index: 3; background: var(--sheet-bg); color: var(--sheet-fg); }
.how-grid { max-width: var(--page-max); margin: 0 auto; padding-top: 128px; padding-bottom: 140px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 80px; align-items: start; }
.how-left { position: sticky; top: 140px; }
.how-left .h2 { margin-bottom: 20px; }
.how-left .muted { margin-bottom: 40px; max-width: 380px; }
.how-progress { display: flex; align-items: center; gap: 16px; }
.how-progress > span { font-family: var(--font-display); font-weight: 500; font-size: 28px; letter-spacing: -0.02em; min-width: 52px; }
.how-progress > div { display: flex; gap: 6px; flex: 1; max-width: 220px; }
.how-progress > div > span { flex: 1; height: 4px; border-radius: 2px; background: var(--sheet-track); overflow: hidden; }
.how-progress > div > span > span { display: block; height: 100%; background: var(--brand-600); transform-origin: 0 50%; transform: scaleX(0); }
.stack-cards { display: flex; flex-direction: column; gap: 32px; padding-bottom: 40px; }
.stack-card { position: sticky; top: 140px; }
.stack-card-1 { top: 168px; }
.stack-card-2 { top: 196px; }
.step-card { position: relative; display: flex; gap: 36px; align-items: center; padding: 48px; min-height: 300px; border-radius: var(--radius-lg); background: var(--sheet-card); border: 1px solid var(--sheet-line); transform-origin: 50% 0; will-change: transform; }
.stack-card-1 .step-card, .stack-card-2 .step-card { box-shadow: 0 -20px 40px -24px rgba(14, 13, 22, 0.18); }
.step-card h3 { font-size: 36px; letter-spacing: -0.02em; margin-bottom: 10px; }
.step-card p { font-size: 17px; line-height: 1.6; color: var(--sheet-muted); }
.step-n { position: absolute; top: 24px; right: 32px; font-family: var(--font-display); font-weight: 500; font-size: 56px; line-height: 1; letter-spacing: -0.03em; color: var(--brand-500); }
.step-icon { width: 104px; height: 104px; border-radius: 50%; flex-shrink: 0; background: var(--sheet-selected); color: var(--sheet-accent-strong); display: flex; align-items: center; justify-content: center; transition: background 0.6s var(--ease-out), color 0.6s var(--ease-out); }
.step-icon.is-active { background: var(--gradient-tile); color: #fff; }
.step-icon-swing { transform-origin: 50% 15%; }

/* Stats */
.stats { position: relative; z-index: 3; background: var(--sheet-bg); color: var(--sheet-fg); overflow: hidden; }
.stats-grid { max-width: var(--page-max); margin: 0 auto; padding-top: 120px; padding-bottom: 160px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.stats-stage { display: flex; justify-content: center; min-height: 620px; align-items: center; }
.stats-phone { width: 290px; height: 600px; }
.stats-title { max-width: 520px; margin-bottom: 40px; }
.stat-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stat-card { position: relative; padding: 28px; border-radius: var(--radius-lg); background: var(--sheet-card); }
.stat-card-wide { grid-column: span 2; }
.stat-icon { position: absolute; top: 22px; right: 22px; width: 48px; height: 48px; border-radius: 16px; background: var(--icon-tile-bg); border: 1px solid var(--icon-tile-border); box-shadow: var(--icon-tile-shadow); display: flex; align-items: center; justify-content: center; color: var(--sheet-accent); }
.stat-n { font-family: var(--font-display); font-weight: 500; font-size: 88px; line-height: 1; letter-spacing: -0.03em; margin-bottom: 12px; display: flex; align-items: flex-start; }
.stat-n.is-accent { color: var(--sheet-accent-strong); }
.stat-suffix { font-size: 0.55em; margin: 0.1em 0 0 0.04em; }
.stat-label { font-size: 15px; line-height: 1.5; color: var(--sheet-muted); }

/* Bento */
.bento-section { position: relative; z-index: 3; background: var(--bg-page); }
.bento-wrap { max-width: var(--page-max); margin: 0 auto; padding-top: 128px; padding-bottom: 128px; }
.bento-wrap > .h2 { margin: 0 auto 64px; max-width: 760px; text-align: center; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(320px, auto)); gap: 16px; }
.bento-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-card); border: 1px solid var(--border-subtle); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045); }
.bento-card h3 { letter-spacing: -0.02em; }
.bento-card p { color: rgba(var(--text-rgb), 0.72); }
.bento-big { grid-column: span 2; grid-row: span 2; padding: 40px 40px 0; display: flex; flex-direction: column; min-height: 660px; }
.bento-big h3 { position: relative; font-size: 34px; margin-bottom: 8px; }
.bento-big > p { position: relative; font-size: 16px; line-height: 1.55; margin-bottom: 40px; max-width: 420px; }
.bento-glow { position: absolute; left: -10%; right: -10%; bottom: -30%; height: 80%; background: radial-gradient(ellipse at 50% 60%, rgba(110, 99, 255, 0.55), transparent 65%); pointer-events: none; }
.bento-phone-wrap { position: relative; margin: auto auto 0; will-change: transform; }
.bento-phone { width: 310px; height: 500px; border-radius: 46px 46px 0 0; padding: 10px 10px 0; background: #1F1C2C; border: 1px solid rgba(255, 255, 255, 0.05); border-bottom: none; box-shadow: 0 -20px 60px -20px rgba(110, 99, 255, 0.5); }
.bento-phone .phone-screen { border-radius: 36px 36px 0 0; padding-bottom: 0; text-align: left; }
.bento-wide { grid-column: span 2; padding: 36px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px; align-items: center; }
.bento-wide h3 { font-size: 28px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bento-wide p { font-size: 15px; line-height: 1.55; }
.pro-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--gradient-pro); font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--ink-text); }
.remind-list { display: flex; flex-direction: column; gap: 8px; }
.remind-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius-md); background: rgba(var(--overlay-rgb), 0.05); font-size: 15px; font-weight: 500; }
.tick { width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0; border: 1.5px solid rgba(var(--overlay-rgb), 0.3); color: var(--check-mark); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.tick.is-on { background: var(--check-bg); border-color: var(--check-border); }
.bento-sm { padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.bento-sm h3 { font-size: 26px; margin-bottom: 6px; }
.bento-sm p { font-size: 15px; line-height: 1.5; }
.bento-bell { position: absolute; top: 8px; right: 8px; transform: rotate(16deg); color: var(--brand-400); }
.bento-bell > div { transform-origin: 50% 10%; }
.bento-num { font-family: var(--font-display); font-weight: 500; font-size: 128px; line-height: 0.8; letter-spacing: -0.05em; color: var(--text-accent); }
.bento-dl { background: linear-gradient(140deg, var(--brand-600) 0%, var(--blue-600) 100%); color: #fff; }
.bento-dl p { color: rgba(255, 255, 255, 0.92); }
.badges { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.badges-row { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; }
.badge { display: inline-flex; border-radius: var(--radius-sm); transition: transform 0.25s var(--ease-out), opacity 0.2s; }
.badge:hover { transform: translateY(-1px); opacity: 0.88; }
.badge img { height: 48px; width: auto; }

/* Pricing */
#pricing { margin-top: -40px; }
.price-wrap { max-width: var(--page-max); margin: 0 auto; padding-top: 160px; padding-bottom: 96px; }
.price-wrap > .h2 { margin: 0 auto 16px; max-width: 780px; text-align: center; }
.price-wrap > .muted { margin: 0 auto 64px; max-width: 520px; text-align: center; }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.price-frame { position: relative; display: flex; padding: 4px; border-radius: 23px; overflow: hidden; isolation: isolate; box-shadow: 0 0 0 1px rgba(169, 159, 255, 0.25), 0 24px 60px -24px rgba(91, 75, 245, 0.65); }
.price-spin { position: absolute; left: 50%; top: 50%; width: 200%; aspect-ratio: 1; margin-left: -100%; transform: translateY(-50%); z-index: -1; background: conic-gradient(from 0deg, var(--blue-600) 0deg, var(--blue-600) 140deg, var(--brand-400) 200deg, #fff 255deg, #fff 275deg, var(--brand-200) 300deg, #7DA0FF 330deg, var(--blue-600) 360deg); }
.price-card { flex: 1; display: flex; flex-direction: column; padding: 44px; border-radius: 19px; }
.price-free { background: linear-gradient(140deg, var(--brand-600) 0%, var(--blue-600) 100%); color: #fff; }
.price-pro { padding: 48px; border-radius: var(--radius-lg); background: var(--sheet-card); color: var(--sheet-fg); }
.price-label { font-size: 15px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.price-big { font-family: var(--font-display); font-weight: 500; font-size: 56px; letter-spacing: -0.03em; margin-bottom: 28px; }
.price-amount { font-family: var(--font-display); font-weight: 500; font-size: 36px; letter-spacing: -0.02em; margin-bottom: 8px; line-height: 1.15; color: var(--sheet-body); }
.price-note { font-size: 14px; color: var(--sheet-muted); margin-bottom: 28px; }
.price-list { flex: 1; display: flex; flex-direction: column; gap: 12px; font-size: 16px; color: var(--sheet-body); }
.price-free .price-list { color: rgba(255, 255, 255, 0.92); }

/* FAQ */
.faq-grid { max-width: var(--page-max); margin: 0 auto; padding-top: 64px; padding-bottom: 180px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 80px; align-items: start; }
.faq-left { position: sticky; top: 140px; }
.faq-left .h2 { margin-bottom: 20px; }
.faq-left .muted { margin-bottom: 28px; max-width: 320px; }
.faq-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.faq-more { font-size: 15px; font-weight: 700; color: var(--sheet-accent); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border-radius: var(--radius-lg); background: var(--sheet-card); color: var(--sheet-fg); transition: background 0.5s var(--ease-out); }
.faq-item.is-open { background: var(--sheet-selected); }
.faq-item button { width: 100%; border: none; background: transparent; color: inherit; cursor: pointer; font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: -0.01em; text-align: left; padding: 28px 28px 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.faq-plus { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; background: var(--sheet-bg); color: var(--sheet-fg); display: flex; align-items: center; justify-content: center; transition: transform 0.5s var(--ease-out); }
.faq-item.is-open .faq-plus { transform: rotate(45deg); }
.faq-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.5s var(--ease-out); }
.js .faq-body { grid-template-rows: 0fr; }
.js .faq-item.is-open .faq-body { grid-template-rows: 1fr; }
.faq-body > div { overflow: hidden; }
.faq-body p { font-size: 17px; line-height: 1.65; padding: 0 96px 30px 32px; color: var(--sheet-body); }
.js .faq-item:not(.is-open) .faq-body > div { visibility: hidden; }

/* Final + footer */
.final { z-index: 4; margin-top: -40px; background: var(--bg-page); color: var(--text-primary); overflow: hidden; }
.final-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 45% at 50% 42%, rgba(98, 86, 255, 0.28), transparent 72%); pointer-events: none; }
.final-inner { position: relative; max-width: var(--page-max); margin: 0 auto; padding-top: 160px; padding-bottom: 128px; text-align: center; }
.final-h { font-size: 96px; line-height: 0.95; letter-spacing: -0.035em; margin: 0 auto 28px; max-width: 900px; text-wrap: balance; }
.final-inner p { font-size: 18px; color: rgba(var(--text-rgb), 0.72); margin-bottom: 40px; }
.foot { position: relative; max-width: var(--page-max); margin: 0 auto; padding-top: 64px; padding-bottom: 40px; border-top: 1px solid rgba(var(--overlay-rgb), 0.1); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-bottom: 64px; }
.foot-brand img { margin-bottom: 16px; }
.foot-brand p { font-size: 15px; line-height: 1.6; color: rgba(var(--text-rgb), 0.72); margin-bottom: 24px; max-width: 320px; }
.foot-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.social { display: flex; gap: 8px; flex-wrap: wrap; }
.social a { width: 44px; height: 44px; border-radius: var(--radius-pill); display: flex; align-items: center; justify-content: center; background: rgba(var(--overlay-rgb), 0.06); color: rgba(var(--text-rgb), 0.72); }
.social span { width: 18px; height: 18px; background: currentColor; }
.social-instagram { -webkit-mask: url(/assets/social/instagram.svg) center / contain no-repeat; mask: url(/assets/social/instagram.svg) center / contain no-repeat; }
.social-tiktok { -webkit-mask: url(/assets/social/tiktok.png) center / contain no-repeat; mask: url(/assets/social/tiktok.png) center / contain no-repeat; }
.social-x { -webkit-mask: url(/assets/social/x.svg) center / contain no-repeat; mask: url(/assets/social/x.svg) center / contain no-repeat; }
.social-linkedin { -webkit-mask: url(/assets/social/linkedin.png) center / contain no-repeat; mask: url(/assets/social/linkedin.png) center / contain no-repeat; }
.foot-title { font-size: 13px; font-weight: 700; color: rgba(var(--text-rgb), 0.6); margin-bottom: 16px; }
.foot-links { display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: rgba(var(--text-rgb), 0.85); }
.foot-links a:hover { opacity: 0.8; }
.foot-mark { margin: 24px 0 32px; opacity: 0.16; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%); mask-image: linear-gradient(180deg, #000 30%, transparent 100%); }
.foot-mark div { width: 100%; aspect-ratio: 287.1 / 82.8; background: linear-gradient(120deg, var(--brand-400) 0%, var(--brand-600) 45%, var(--blue-600) 100%); -webkit-mask: url(/assets/logo/upnex-wordmark-gradient.svg) center / contain no-repeat; mask: url(/assets/logo/upnex-wordmark-gradient.svg) center / contain no-repeat; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 8px; font-size: 13px; color: rgba(var(--text-rgb), 0.6); }
.foot-bottom a:not(.icon-btn) { text-decoration: underline; text-underline-offset: 2px; }

/* Dialogs */
dialog { border: none; padding: 0; color: var(--text-primary); }
dialog::backdrop { background: rgba(8, 7, 14, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet-dialog { background: var(--bg-page); }
.search-dialog { width: min(600px, calc(100vw - 40px)); max-height: 80vh; margin: 12vh auto auto; overflow-y: auto; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--border-toast); box-shadow: var(--shadow-modal); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.dialog-title { font-size: 26px; letter-spacing: -0.02em; }
.search-dialog .icon-btn { width: 44px; height: 44px; }
.menu-dialog { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 85vh; overflow-y: auto; padding: 10px 24px calc(28px + env(safe-area-inset-bottom)); border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; background: var(--surface-card); }
.menu-dialog[open] { display: flex; flex-direction: column; gap: 4px; }
.menu-grip { width: 40px; height: 5px; border-radius: 3px; background: rgba(var(--overlay-rgb), 0.2); margin: 0 auto 14px; flex-shrink: 0; }
.menu-link { font-size: 28px; letter-spacing: -0.02em; padding: 10px 0; }
.menu-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 20px; border-top: 1px solid rgba(var(--overlay-rgb), 0.06); }
.menu-row .lang-switch { font-size: 14px; }
.menu-row .lang-switch > * { min-width: 44px; min-height: 38px; }
.menu-promo { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 18px; border-radius: 24px; background: linear-gradient(135deg, var(--brand-600) 0%, var(--blue-600) 100%); border: 1px solid rgba(255, 255, 255, 0.28); color: #fff; }
.menu-promo img { border-radius: 12px; flex-shrink: 0; }
.menu-promo > div { flex: 1; min-width: 0; }
.menu-promo strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: -0.01em; line-height: 1.15; }
.menu-promo span { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.9); margin-top: 2px; }
.btn-promo { flex-shrink: 0; min-height: 44px; padding: 0 18px; font-size: 14px; background: linear-gradient(180deg, #fff, var(--brand-100)); color: var(--brand-700); }

.download-dialog { width: min(820px, calc(100vw - 40px)); max-height: calc(100vh - 40px); margin: auto; border-radius: 28px; background: var(--ink-text); color: var(--ink-text); overflow: auto; box-shadow: var(--shadow-modal); }
.download-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--mist-50); color: var(--ink-text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.download-close:hover { background: var(--mist-100); }
.download-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.download-main { padding: 48px 44px; background: #fff; }
.download-app { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.download-app img { border-radius: var(--radius-md); }
.download-app strong { display: block; font-size: 16px; }
.download-app span { display: block; font-size: 13px; color: var(--text-muted-light); }
.download-main h2 { font-family: var(--font-display); font-weight: 500; font-size: 36px; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 28px; }
.download-features { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.download-features > div { display: flex; gap: 14px; align-items: flex-start; }
.download-features svg { width: 36px; height: 36px; padding: 9px; border-radius: var(--radius-sm); background: var(--brand-100); color: var(--brand-700); }
.download-features strong { display: block; font-size: 16px; margin-bottom: 2px; }
.download-features span { display: block; font-size: 14px; line-height: 1.5; color: var(--text-muted-light); }
.download-main .badges-row { justify-content: flex-start; }
.download-soon { font-size: 14px; color: var(--text-muted-light); margin-top: 14px; }
.download-qr { background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(91, 75, 245, 0.55), transparent 70%), var(--ink-text); color: #F4F3F8; padding: 48px 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.qr { width: 220px; height: 220px; padding: 14px; border-radius: var(--radius-lg); background: #fff; margin-bottom: 20px; }
.qr img { width: 100%; height: 100%; }
.download-qr-title { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin-bottom: 6px; }
.download-qr p { font-size: 14px; color: rgba(244, 243, 248, 0.72); max-width: 220px; }

/* Legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: 24px 24px 64px; }
.doc-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; margin-bottom: 56px; }
.doc-nav > div { display: flex; align-items: center; gap: 8px; }
.doc-body { font-size: 17px; line-height: 1.7; color: rgba(var(--text-rgb), 0.85); }
.doc-body h1 { font-family: var(--font-display); font-weight: 500; font-size: 56px; line-height: 1.02; letter-spacing: -0.03em; color: var(--text-primary); margin-bottom: 20px; text-wrap: balance; }
.doc-body h2 { font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; color: var(--text-primary); margin: 44px 0 12px; }
.doc-body h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--text-primary); margin: 32px 0 10px; }
.doc-body p, .doc-body ul, .doc-body ol { margin: 0 0 16px; }
.doc-body ul, .doc-body ol { padding-left: 22px; }
.doc-body li { margin-bottom: 6px; }
.doc-body strong { color: var(--text-primary); }
.doc-body a { color: var(--text-accent); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.table { overflow-x: auto; margin: 0 0 20px; border: 1px solid rgba(var(--overlay-rgb), 0.1); border-radius: var(--radius-md); }
.table table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; line-height: 1.5; }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid rgba(var(--overlay-rgb), 0.08); }
.table th { color: var(--text-primary); font-weight: 700; background: rgba(var(--overlay-rgb), 0.04); }
.table tr:last-child td { border-bottom: none; }
.doc-foot { margin-top: 56px; padding-top: 20px; border-top: 1px solid rgba(var(--overlay-rgb), 0.1); font-size: 13px; color: rgba(var(--text-rgb), 0.6); }

/* Breakpoints follow the handoff prototype */
@media (max-width: 1200px) {
  .nav-links, .nav-theme { display: none; }
  .nav-burger { display: flex; }
  .nav-row { grid-template-columns: auto 1fr; }
}
@media (max-width: 1439px) {
  .nav-search { width: 44px; padding: 0; justify-content: center; }
  .nav-search span { display: none; }
}
@media (max-width: 1180px) {
  .bento-wide { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 1024px) {
  .display { font-size: 72px; }
  .h2 { font-size: 48px; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .bento-big, .bento-wide { grid-column: span 2; grid-row: auto; }
  .hero { height: auto; min-height: 100vh; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; padding-top: 140px; }
  .how-grid, .why-grid, .stats-grid, .faq-grid { grid-template-columns: 1fr; gap: 56px; }
  .how-left, .faq-left { position: relative; top: 0; }
}
@media (max-width: 900px) {
  .hero { position: relative; }
  .hero-grid { padding-top: 120px; padding-bottom: 72px; gap: 48px; justify-items: center; }
  .hero-text { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-notif { justify-self: center; }
  .spo { height: auto; }
  .spo-inner { position: relative; height: auto; padding-top: 96px; padding-bottom: 96px; }
  .spo-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .nav-search { display: none; }
  .search-bar { display: flex; }
  .search-dialog { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 92vh; border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; text-align: center; }
  .foot-links { align-items: center; }
  .foot-brand { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; }
  .foot-actions { align-items: center; }
  .foot-bottom { align-items: center; justify-content: center; text-align: center; }
  .download-grid { grid-template-columns: 1fr; }
  .download-qr { display: none; }
}
@media (max-width: 640px) {
  :root { --page-gutter: 20px; --radius-sheet: 28px; }
  .display { font-size: 50px; }
  .h2 { font-size: 36px; }
  .h3 { font-size: 36px; }
  .logo-full { display: none; }
  .logo-mark { display: block; }
  .nav-row { gap: 8px; }
  .nav-end { gap: 6px; }
  .nav-cta { font-size: 13px; padding: 0 14px; }
  .step-card { flex-direction: column; align-items: flex-start; gap: 24px; padding: 28px; min-height: 0; }
  .step-card h3 { font-size: 28px; }
  .stat-n { font-size: 60px; }
  .moment { font-size: 17px; padding: 12px 18px; }
  .drift, .drift-rows { gap: 10px; }
  .suggest::before { right: 24%; }
  .moments { padding: 96px 0; }
  .moments .h2 { margin-bottom: 48px; }
  .final-h { font-size: 46px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bento-big, .bento-wide { grid-column: span 2; }
  .bento-sm { padding: 20px; gap: 16px; min-height: 0; }
  .bento-sm h3 { font-size: 19px; }
  .bento-sm p { font-size: 13px; }
  .bento-sm .badge img { height: 36px; }
  .bento-dl { align-items: center; text-align: center; justify-content: center; }
  .bento-dl .badges { align-items: center; }
  .bento-num { font-size: 80px; }
  .bento-bell { transform: rotate(16deg) scale(0.62); transform-origin: 100% 0; top: 6px; right: 6px; }
  .bento-big { padding: 28px 24px 0; min-height: 0; align-items: center; text-align: center; }
  .bento-big > p { margin-bottom: 28px; }
  .bento-phone { width: 270px; height: 380px; }
  .bento-phone .phone-screen { padding-left: 12px; padding-right: 12px; }
  .bento-phone .phone-row { gap: 8px; padding: 8px; }
  .bento-phone .mini-poster { width: 30px; height: 42px; }
  .bento-wide { padding: 24px; }
  .bento-wrap, .price-wrap { padding-top: 96px; padding-bottom: 72px; }
  .bento-wrap > .h2 { margin-bottom: 40px; }
  .price-wrap > .muted { margin-bottom: 40px; }
  .price-card, .price-pro { padding: 28px; }
  .why-grid { padding-top: 96px; padding-bottom: 96px; }
  .why-stage { min-height: 600px; padding-bottom: 40px; }
  .why-chips { right: auto; left: 50%; top: auto; bottom: -36px; transform: translateX(calc(-50% - 40px)) rotate(8deg); transform-origin: 50% 100%; }
  .how-grid { padding-top: 72px; padding-bottom: 72px; }
  .stats-grid { padding-top: 72px; padding-bottom: 96px; }
  .faq-grid { padding-top: 32px; padding-bottom: 96px; gap: 40px; }
  .faq-item button { font-size: 20px; padding: 22px 20px 22px 22px; gap: 16px; }
  .faq-body p { padding: 0 22px 24px; font-size: 16px; }
  .final-inner { padding-top: 96px; padding-bottom: 80px; }
  .foot-bottom { flex-direction: column; gap: 12px; }
  .doc-body h1 { font-size: 40px; }
  .doc-body h2 { font-size: 24px; }
  .doc { padding: 16px 20px 48px; }
  .doc-nav { margin-bottom: 36px; }
}
@media (max-width: 400px) {
  .display { font-size: 42px; }
  .stat-n { font-size: 48px; }
  .bento-sm .badge img { height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast { transition: opacity 0.3s; }
  .drift-rows { overflow-x: auto; }
}
