/* Otis design system — mirrors the iOS app's AppTheme and CustomColors. */

:root {
  --accent: #8b5cf6;
  --accent-deep: #7c3aed;
  --canvas-top: #2d1b69;
  --canvas-bottom: #1a0f3d;
  --light-canvas: #f5f6f8;
  --gen-gradient: linear-gradient(100deg, var(--accent) 0%, #c084fc 26%, #818cf8 50%, #22d3ee 76%, var(--accent) 100%);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow-lg: 0 30px 80px -20px rgba(8, 4, 30, .55);
  --shadow-md: 0 12px 32px -12px rgba(8, 4, 30, .45);
  --maxw: 1180px;
}

html[data-theme="boardroom"] { --accent: #3b82f6; --accent-deep: #1d4ed8; --canvas-top: #13264a; --canvas-bottom: #0b1730; --light-canvas: #f1f5fc; }
html[data-theme="evergreen"] { --accent: #10b981; --accent-deep: #047857; --canvas-top: #0f3b30; --canvas-bottom: #08231c; --light-canvas: #f0f7f4; }
html[data-theme="spotlight"] { --accent: #ea580c; --accent-deep: #c2410c; --canvas-top: #3a1f12; --canvas-bottom: #22120a; --light-canvas: #fbf5ef; }
html[data-theme="graphite"]  { --accent: #64748b; --accent-deep: #334155; --canvas-top: #1f2329; --canvas-bottom: #111316; --light-canvas: #f4f4f5; }
html[data-theme="rose"]      { --accent: #db2777; --accent-deep: #be185d; --canvas-top: #3b1530; --canvas-bottom: #220b1c; --light-canvas: #fbf2f6; }

html, html[data-mode="dark"] {
  color-scheme: dark;
  --bg: linear-gradient(160deg, var(--canvas-top) 0%, var(--canvas-bottom) 100%);
  --bg-solid: var(--canvas-bottom);
  --chrome: color-mix(in srgb, var(--canvas-top) 88%, transparent);
  --text: #fff;
  --text-2: rgba(255, 255, 255, .86);
  --text-3: rgba(255, 255, 255, .66);
  --text-4: rgba(255, 255, 255, .46);
  --card: rgba(255, 255, 255, .07);
  --card-2: rgba(255, 255, 255, .11);
  --card-3: rgba(255, 255, 255, .16);
  --stroke: rgba(255, 255, 255, .14);
  --stroke-2: rgba(255, 255, 255, .08);
  --input: rgba(0, 0, 0, .26);
  --bubble-otis: rgba(255, 255, 255, .11);
  --overlay: rgba(6, 3, 20, .6);
  --sheet: color-mix(in srgb, var(--canvas-top) 92%, #000 8%);
  --accent-text: color-mix(in srgb, var(--accent) 70%, #fff 30%);
  --success: #34d399;
  --danger: #f87171;
}

html[data-mode="light"] {
  color-scheme: light;
  --bg: linear-gradient(180deg, var(--light-canvas) 0%, #ffffff 100%);
  --bg-solid: #ffffff;
  --chrome: rgba(255, 255, 255, .86);
  --text: #111827;
  --text-2: #374151;
  --text-3: #6b7280;
  --text-4: #9ca3af;
  --card: #ffffff;
  --card-2: #f3f4f6;
  --card-3: #e5e7eb;
  --stroke: rgba(0, 0, 0, .1);
  --stroke-2: rgba(0, 0, 0, .06);
  --input: #ffffff;
  --bubble-otis: #ffffff;
  --overlay: rgba(17, 24, 39, .4);
  --sheet: #ffffff;
  --accent-text: var(--accent-deep);
  --success: #059669;
  --danger: #dc2626;
  --shadow-md: 0 12px 32px -14px rgba(17, 24, 39, .22);
  --shadow-lg: 0 30px 80px -24px rgba(17, 24, 39, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-solid);
  background-image: var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; }
.skip-link:focus { top: 12px; }
.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.muted { color: var(--text-3); }
.accent-text { color: var(--accent-text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 12px;
  font-weight: 600; font-size: 15px; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s, box-shadow .18s, opacity .18s;
}
.btn:active { transform: scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-primary:hover { box-shadow: 0 14px 32px -10px color-mix(in srgb, var(--accent) 90%, transparent); transform: translateY(-1px); }
.btn-gen { width: 100%; min-height: 52px; border-radius: 14px; background: var(--gen-gradient); background-size: 200% 100%; animation: genShift 6s linear infinite; color: #fff; font-size: 16px; text-shadow: 0 1px 2px rgba(0, 0, 0, .18); box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--accent) 85%, transparent); }
@keyframes genShift { to { background-position: -200% 0; } }
.btn-gen:hover { filter: brightness(1.06); }
.btn-glass { background: var(--card-2); color: var(--text); border: 1px solid var(--stroke); }
.btn-glass:hover { background: var(--card-3); }
.btn-ghost { color: var(--accent-text); padding: 0 12px; }
.btn-ghost:hover { background: var(--card); }
.btn-danger { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--text-2); transition: background .15s; }
.icon-btn:hover { background: var(--card-2); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }

.appstore-badge { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 20px 0 16px; border-radius: 14px; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .22); transition: transform .18s var(--ease), border-color .18s; }
.appstore-badge:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, .45); }
.appstore-badge svg { width: 24px; height: 24px; }
.appstore-badge small { display: block; font-size: 11px; line-height: 1.1; opacity: .85; }
.appstore-badge strong { display: block; font-size: 18px; line-height: 1.1; letter-spacing: -.01em; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--card); font-size: 14px; font-weight: 500; color: var(--text-2); }
.pill svg { width: 15px; height: 15px; color: var(--accent-text); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }

/* Cards and inputs */
.card { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r-lg); }
html[data-mode="light"] .card { box-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 8px 24px -16px rgba(17, 24, 39, .14); }
.field { display: grid; gap: 8px; }
.field label, .label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.input, .textarea, .select {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  background: var(--input); border: 1px solid var(--stroke); color: var(--text);
  transition: border-color .15s, box-shadow .15s; outline: none;
}
.textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--text-4); }
.input:focus, .textarea:focus, .select:focus { border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.form-error { color: var(--danger); font-size: 14px; }
.form-note { color: var(--text-3); font-size: 13px; }

/* Otis avatar */
.otis-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #0b2242 url("/assets/img/otis-icon.webp") center / 118% no-repeat; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .5); }
.otis-avatar.sm { width: 26px; height: 26px; }
.otis-avatar.lg { width: 44px; height: 44px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: #0b2242 url("/assets/img/otis-icon.webp") center / 112% no-repeat; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 6px 16px -6px rgba(0, 0, 0, .6); }

/* Spinner */
.spinner { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 30%, transparent); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.spinner.white { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.burst { width: 20px; height: 20px; flex: none; color: var(--accent); animation: spin 1.6s steps(8) infinite; }

/* Toasts */
.toasts { position: fixed; z-index: 900; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 10px; width: min(92vw, 440px); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; background: var(--sheet); border: 1px solid var(--stroke); color: var(--text); box-shadow: var(--shadow-md); font-size: 14px; animation: toastIn .3s var(--ease); }
.toast.error { border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.toast.success { border-color: color-mix(in srgb, var(--success) 45%, transparent); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* Modal sheet */
.modal { position: fixed; inset: 0; z-index: 700; display: grid; place-items: center; padding: 20px; background: var(--overlay); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .2s ease; }
.modal-card { width: min(100%, 480px); max-height: calc(100vh - 40px); overflow: auto; padding: 28px; border-radius: 24px; background: var(--sheet); border: 1px solid var(--stroke); box-shadow: var(--shadow-lg); animation: rise .28s var(--ease); }
.modal-card h2 { font-size: 24px; margin-bottom: 8px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* Menus */
.menu { position: absolute; z-index: 60; min-width: 200px; padding: 6px; border-radius: 14px; background: var(--sheet); border: 1px solid var(--stroke); box-shadow: var(--shadow-md); animation: fadeIn .15s ease; }
.menu button, .menu a { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--text); text-align: left; }
.menu button:hover, .menu a:hover { background: var(--card-2); }
.menu svg { width: 17px; height: 17px; color: var(--text-3); }
.menu .danger { color: var(--danger); }
.menu .danger svg { color: var(--danger); }

/* Cookie choice */
.consent { position: fixed; z-index: 800; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; max-width: min(560px, calc(100vw - 32px)); padding: 14px 16px; border-radius: 16px; background: var(--sheet); border: 1px solid var(--stroke); box-shadow: var(--shadow-lg); font-size: 14px; color: var(--text-2); animation: rise .3s var(--ease); }
.consent p { flex: 1; min-width: 220px; }
.consent a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.consent div { display: flex; gap: 8px; }

/* Theme swatches (Settings → Appearance → App Theme in the iOS app) */
.sw-otis      { --swatch-a: #8b5cf6; --swatch-b: #7c3aed; --swatch-c: #2d1b69; --swatch-d: #1a0f3d; }
.sw-boardroom { --swatch-a: #3b82f6; --swatch-b: #1d4ed8; --swatch-c: #13264a; --swatch-d: #0b1730; }
.sw-evergreen { --swatch-a: #10b981; --swatch-b: #047857; --swatch-c: #0f3b30; --swatch-d: #08231c; }
.sw-spotlight { --swatch-a: #ea580c; --swatch-b: #c2410c; --swatch-c: #3a1f12; --swatch-d: #22120a; }
.sw-graphite  { --swatch-a: #64748b; --swatch-b: #334155; --swatch-c: #1f2329; --swatch-d: #111316; }
.sw-rose      { --swatch-a: #db2777; --swatch-b: #be185d; --swatch-c: #3b1530; --swatch-d: #220b1c; }

/* Chat bubbles and progress card (Otis chat in the app and the homepage demo) */
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 92%; animation: msgIn .3s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.msg.user { align-self: flex-end; justify-content: flex-end; }
.msg .bubble { padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.5; word-wrap: break-word; overflow-wrap: anywhere; }
.msg.user .bubble { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 80%, var(--accent-deep))); color: #fff; border-bottom-right-radius: 6px; }
.msg.otis .bubble { background: var(--bubble-otis); border: 1px solid var(--stroke-2); border-bottom-left-radius: 6px; color: var(--text); }
html[data-mode="light"] .msg.otis .bubble { box-shadow: 0 2px 10px -6px rgba(17, 24, 39, .2); }
.bubble p { margin: 0 0 8px; }
.bubble p:last-child, .bubble ol:last-child, .bubble ul:last-child { margin-bottom: 0; }
.bubble ol, .bubble ul { margin: 0 0 8px; padding-left: 20px; }
.bubble li { margin: 3px 0; }
.bubble a { text-decoration: underline; text-underline-offset: 2px; }
.bubble .att { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bubble .att span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; background: rgba(255, 255, 255, .18); font-size: 12.5px; }
.bubble .att svg { width: 14px; height: 14px; }
.deck-ready { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--stroke); }
.deck-ready .ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-text); }
.deck-ready .ic svg { width: 18px; height: 18px; }
.deck-ready strong { flex: 1; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.progress-card { margin-left: 44px; max-width: min(560px, 88%); padding: 14px 16px; border-radius: 16px; background: var(--bubble-otis); border: 1px solid var(--stroke-2); animation: msgIn .3s var(--ease); }
.progress-card .head { display: flex; align-items: center; gap: 10px; }
.progress-card .head strong { flex: 1; font-size: 15px; }
.progress-card .head time { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.progress-card ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.progress-card li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); animation: msgIn .3s var(--ease); }
.progress-card li .tick { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--accent); color: #fff; }
.progress-card li .tick svg { width: 11px; height: 11px; }
.progress-card .foot { display: flex; align-items: flex-end; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--text-3); }
.progress-card .foot span { flex: 1; }
.progress-card .foot button { color: var(--accent-text); font-weight: 600; font-size: 12.5px; }

/* Header theme picker */
.theme-menu { position: fixed; z-index: 120; width: min(290px, calc(100vw - 20px)); padding: 10px; }
.theme-menu-head { padding: 4px 6px 10px; }
.theme-menu-head strong { display: block; font-size: 14px; }
.theme-menu-head span { display: block; font-size: 12px; color: var(--text-3); }
.theme-menu .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.theme-menu .grid i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--swatch-a), var(--swatch-c)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.theme-menu .grid button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 18%, transparent); font-weight: 600; }
.theme-menu .grid button[aria-pressed="true"]::after { content: "✓"; margin-left: auto; color: var(--accent-text); }
.theme-btn[aria-expanded="true"] { background: var(--card-2); color: var(--accent-text); }

/* ===================== Marketing site ===================== */

.site-header { position: sticky; top: 0; z-index: 100; backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); background: color-mix(in srgb, var(--canvas-top) 72%, transparent); border-bottom: 1px solid var(--stroke-2); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--text-2); transition: color .15s, background .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--card); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }
.mobile-nav { display: none; }

.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.hero h1 .soft { color: color-mix(in srgb, var(--accent) 45%, #fff 55%); }
.hero-sub { margin-top: 22px; max-width: 540px; font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; align-items: center; }
.hero-ctas .btn-gen { width: auto; padding: 0 28px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--text-3); font-size: 14px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 16px; height: 16px; color: var(--success); }

.orb { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(60px); opacity: .55; }
.orb.one { width: 520px; height: 520px; right: -140px; top: -160px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 80%, transparent), transparent 70%); }
.orb.two { width: 420px; height: 420px; left: -160px; bottom: -200px; background: radial-gradient(circle, rgba(78, 166, 238, .55), transparent 70%); }
.glass-shape { position: absolute; pointer-events: none; opacity: .9; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }

/* Live demo chat in the hero */
.demo { position: relative; justify-self: center; width: min(100%, 470px); }
.demo-window { position: relative; z-index: 2; border-radius: 26px; padding: 0 0 14px; overflow: hidden; background: linear-gradient(170deg, color-mix(in srgb, var(--canvas-top) 92%, #fff 8%), var(--canvas-bottom)); border: 1px solid rgba(255, 255, 255, .16); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .12); }
.demo-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--stroke-2); }
.demo-head strong { display: block; font-size: 15px; }
.demo-head small { display: block; font-size: 12px; color: var(--text-3); }
.demo-body { display: grid; gap: 12px; padding: 16px; min-height: 410px; align-content: start; }
.demo-msg { opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.demo-msg.in { opacity: 1; transform: none; }
.demo-composer { margin: 0 14px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid var(--stroke-2); color: var(--text-4); font-size: 14px; }
.demo-composer .send { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .85); color: var(--canvas-bottom); }
.demo-composer .send svg { width: 16px; height: 16px; }
.demo-deck { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; }
.demo-slide { position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 16 / 9; padding: 10px 12px; font-family: var(--font-serif); }
.demo-slide.cover { grid-row: span 2; aspect-ratio: auto; background: #2a1d16; color: #f6e7d8; }
.demo-slide.cover::before, .demo-slide.cover::after { content: ""; position: absolute; border-radius: 50%; }
.demo-slide.cover::before { width: 120%; height: 120%; right: -70%; top: -55%; background: #6e3117; }
.demo-slide.cover::after { width: 80%; height: 80%; right: -38%; bottom: -36%; background: #a65b22; opacity: .9; }
.demo-slide .k { position: relative; z-index: 1; font-family: var(--font); font-size: 8px; letter-spacing: .2em; color: #e3954a; font-weight: 700; }
.demo-slide .t { position: relative; z-index: 1; font-size: 21px; line-height: 1.05; margin-top: 18px; max-width: 70%; }
.demo-slide .s { position: relative; z-index: 1; font-size: 9px; font-style: italic; margin-top: 8px; color: #e7d3c0; max-width: 70%; }
.demo-slide.menu-slide { background: #f6ebdf; color: #2a1d16; }
.demo-slide.menu-slide .t { font-size: 12px; margin-top: 4px; max-width: none; }
.demo-slide .items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 6px; }
.demo-slide .items i { display: block; height: 22px; border-radius: 3px; background: #fff; border-top: 2px solid #9a3f1c; }
.demo-float { position: absolute; z-index: 3; border-radius: 16px; box-shadow: var(--shadow-md); }
.demo-float.progress { left: -56px; bottom: 76px; width: 250px; }
.demo-float.slide { right: -46px; top: 64px; width: 190px; transform: rotate(4deg); }

.section { position: relative; padding: 104px 0; }
.section-tight { padding: 72px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.03em; }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--text-2); }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { padding: 28px; }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; font-weight: 700; font-size: 15px; }
.step-card h3 { margin-top: 18px; font-size: 21px; }
.step-card p { margin-top: 8px; color: var(--text-2); }
.step-card .shot { margin-top: 22px; border-radius: 14px; overflow: hidden; border: 1px solid var(--stroke-2); aspect-ratio: 4 / 3; background: rgba(0, 0, 0, .2); }
.step-card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; padding: 56px 0; }
.feature.flip .feature-media { order: -1; }
.feature-copy h3 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.03em; }
.feature-copy p { margin-top: 16px; font-size: 18px; color: var(--text-2); max-width: 500px; }
.feature-list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; color: var(--text-2); }
.feature-list svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--accent-text); }
.feature-media { position: relative; display: grid; place-items: center; min-height: 460px; }
.feature-media::before { content: ""; position: absolute; inset: 10% 6%; border-radius: 40px; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 70%); filter: blur(30px); }

.device { position: relative; z-index: 1; width: 260px; aspect-ratio: 1320 / 2868; padding: 9px; border-radius: 44px; background: linear-gradient(145deg, #2b2640, #0c0a16); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.device img { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }
.device.tilt-l { transform: rotate(-4deg); }
.device.tilt-r { transform: rotate(4deg); }
.float-frag { position: absolute; z-index: 2; border-radius: 14px; box-shadow: var(--shadow-md); }

.themes-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.theme-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--card); font-size: 14px; font-weight: 500; transition: border-color .15s, background .15s; }
.theme-chip i { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--swatch-a), var(--swatch-b)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.theme-chip[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }

.gallery { display: flex; gap: 18px; overflow-x: auto; padding: 8px 20px 26px; scroll-snap-type: x mandatory; scrollbar-width: thin; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.gallery img { flex: none; width: 230px; aspect-ratio: 1320 / 2868; border-radius: 22px; scroll-snap-align: center; box-shadow: var(--shadow-md); border: 1px solid var(--stroke-2); object-fit: cover; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 30px; }
.price-card.featured { border-color: color-mix(in srgb, var(--accent) 70%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 18%, transparent), var(--card)); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--accent) 70%, transparent); }
.price-badge { position: absolute; top: -12px; left: 30px; padding: 4px 12px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.price-card h3 { font-size: 20px; }
.price-card .desc { margin-top: 6px; color: var(--text-3); font-size: 15px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 22px; }
.price strong { font-size: 46px; font-weight: 800; letter-spacing: -.03em; }
.price s { color: var(--text-4); font-size: 18px; }
.price span { color: var(--text-3); }
.price-note { margin-top: 4px; font-size: 14px; color: var(--accent-text); min-height: 21px; }
.price-card ul { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 12px; flex: 1; }
.price-card li { display: flex; gap: 10px; color: var(--text-2); font-size: 15px; }
.price-card li svg { width: 19px; height: 19px; flex: none; margin-top: 2px; color: var(--accent-text); }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { padding: 0 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--stroke); transition: background .15s; }
.faq details[open] { background: var(--card-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--text-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--text-2); }

.cta-band { position: relative; overflow: hidden; padding: 64px; border-radius: 32px; text-align: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 55%, var(--canvas-top)), var(--canvas-bottom)); border: 1px solid var(--stroke); }
.cta-band h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: -.03em; }
.cta-band p { margin-top: 14px; color: var(--text-2); font-size: 18px; }
.cta-band .hero-ctas { justify-content: center; }

.page-hero { padding: 80px 0 40px; text-align: center; }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; letter-spacing: -.035em; }
.page-hero p { margin: 18px auto 0; max-width: 640px; font-size: 19px; color: var(--text-2); }

.prose { max-width: 780px; margin: 0 auto; padding: 40px 0 96px; color: var(--text-2); font-size: 17px; }
.prose h2 { margin: 42px 0 14px; font-size: 26px; color: var(--text); }
.prose h3 { margin: 26px 0 10px; font-size: 19px; color: var(--text); }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--stroke); font-size: 14px; color: var(--text-3); }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.team-card { padding: 26px; text-align: center; }
.team-avatar { width: 84px; height: 84px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); font-weight: 700; font-size: 24px; color: #fff; }
.team-card h3 { font-size: 18px; }
.team-card .role { margin-top: 4px; color: var(--accent-text); font-weight: 600; font-size: 14px; }
.team-card p { margin-top: 10px; color: var(--text-3); font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 28px; text-align: center; }
.stat strong { display: block; font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.stat span { color: var(--text-3); }
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.value-card { padding: 28px; }
.value-card h3 { font-size: 20px; }
.value-card p { margin-top: 8px; color: var(--text-2); }
.icon-tile { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-text); }
.icon-tile svg { width: 22px; height: 22px; }

.site-footer { padding: 72px 0 40px; border-top: 1px solid var(--stroke-2); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-grid h4 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 14px; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--text-3); font-size: 14px; transition: color .15s; }
.footer-grid a:hover { color: var(--text); }
.footer-about p { margin-top: 14px; color: var(--text-3); font-size: 14px; max-width: 300px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--stroke-2); color: var(--text-4); font-size: 13px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1040px) {
  .hero-grid, .feature { grid-template-columns: 1fr; gap: 48px; }
  .feature.flip .feature-media { order: 0; }
  .hero { padding-top: 48px; }
  .demo-float.progress { left: -10px; }
  .demo-float.slide { right: -10px; }
  .steps-grid, .price-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .team-grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-links, .nav-actions .hide-sm { display: none; }
  .nav-toggle { display: inline-grid; }
  .mobile-nav { position: fixed; inset: 68px 0 auto 0; z-index: 99; padding: 12px 20px 22px; background: var(--sheet); border-bottom: 1px solid var(--stroke); box-shadow: var(--shadow-md); }
  .mobile-nav.open { display: grid; gap: 4px; }
  .mobile-nav a { padding: 12px 10px; border-radius: 10px; font-weight: 500; }
  .mobile-nav a:hover { background: var(--card); }
  .mobile-nav .btn { margin-top: 8px; }
  .section { padding: 72px 0; }
  .cta-band { padding: 44px 22px; }
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .demo-float { display: none; }
  .team-grid, .stats { grid-template-columns: 1fr 1fr; }
  .device { width: 220px; }
  .feature-media { min-height: 400px; }
  .gallery img { width: 190px; }
  .hero-ctas .btn, .hero-ctas .appstore-badge { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .demo-msg { opacity: 1; transform: none; }
}
