/* VIU AI website — Theme A "Warm Cream" (matches the desktop app) */
:root {
  --bg: #FBF7F2;
  --bg-2: #F7EFE7;
  --surface: #FFFDFB;
  --border: #EEE3D8;
  --border-strong: #E2D3C5;
  --text: #2A1B14;
  --muted: #6F6058;
  --faint: #9A8B82;
  --accent: #C2502F;
  --accent-600: #A8411F;
  --accent-50: #FCEDE6;
  --accent-100: #F8DCCD;
  --peach: #FBE3D4;
  --green: #2E9E5B;
  --blue: #2F5BD8;
  --amber: #E0A030;
  --shadow-sm: 0 1px 2px rgba(80, 40, 20, .06);
  --shadow: 0 10px 30px -12px rgba(120, 60, 30, .18), 0 2px 6px rgba(80, 40, 20, .05);
  --shadow-lg: 0 30px 60px -20px rgba(120, 60, 30, .28);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-600); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--text); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.center { text-align: center; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: .85em 1.5em; border-radius: 12px; font: 600 1rem/1.2 var(--font); border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--accent-100); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(194, 80, 47, .6); }
.btn-primary:hover { background: var(--accent-600); color: #fff; }
.btn-outline { background: var(--surface); color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent-50); color: var(--accent-600); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.btn-lg { padding: 1.05em 1.8em; font-size: 1.08rem; border-radius: 14px; }
.btn-sm { padding: .55em 1em; font-size: .9rem; border-radius: 10px; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn .icon { width: 1.2em; height: 1.2em; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 242, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 46px; height: 46px; border-radius: 50%; background: var(--peach); object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--border); }
.brand-name { font: 800 1.45rem/1 var(--font-display); letter-spacing: -.02em; }
.brand-tag { display: block; font-size: .78rem; color: var(--muted); font-weight: 500; margin-top: 3px; }
.nav-links { display: flex; gap: 6px; margin: 0 auto; list-style: none; padding: 0; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 10px; color: var(--text); font-weight: 500; font-size: .96rem; }
.nav-links a:hover { background: var(--bg-2); color: var(--text); }
.nav-links a.is-active { color: var(--accent); }
.nav-cta { margin-left: 0; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border-strong); border-radius: 10px; padding: 8px; color: var(--text); cursor: pointer; }

/* ---- Sections ---- */
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--accent-50); color: var(--accent); font-size: .82rem; font-weight: 600; letter-spacing: .02em; margin-bottom: 18px; }
.sparkle { position: relative; }
.sparkle::after { content: ""; position: absolute; width: 34px; height: 34px; right: -40px; top: -18px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23C2502F' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M8 30 16 22M20 6v10M34 14l-9 5'/%3E%3C/svg%3E"); }
.glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; z-index: 0; background: radial-gradient(circle, #F9CDB4 0%, rgba(249, 205, 180, 0) 70%); }
.section > .container, .hero > .container, .page-hero > .container, .section-tight > .container { position: relative; z-index: 1; }
.hero, .page-hero { position: relative; }
[hidden] { display: none !important; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.icon-badge { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-50); color: var(--accent); flex-shrink: 0; }
.icon-badge .icon { width: 26px; height: 26px; }
.icon-badge.sm { width: 44px; height: 44px; }
.icon-badge.sm .icon { width: 20px; height: 20px; }

/* Speech bubble used by the mascot */
.bubble { position: absolute; z-index: 3; background: #fff; border: 1.5px solid var(--border-strong); border-radius: 22px; padding: 14px 18px; font: 600 .98rem/1.35 var(--font); color: var(--text); box-shadow: var(--shadow); max-width: 240px; }
.bubble::after { content: ""; position: absolute; width: 18px; height: 18px; background: #fff; border-right: 1.5px solid var(--border-strong); border-bottom: 1.5px solid var(--border-strong); bottom: -10px; left: 34px; transform: rotate(45deg); border-radius: 0 0 4px 0; }
.bubble.tail-right::after { left: auto; right: 34px; }
.bubble.hand { font-family: "Caveat", "Segoe Print", cursive; font-size: 1.35rem; font-weight: 700; transform: rotate(-3deg); }
.mascot { position: relative; z-index: 2; filter: drop-shadow(0 24px 30px rgba(120, 60, 30, .18)); }
.mascot-wrap { position: relative; }
.mascot-wrap::before { content: ""; position: absolute; inset: 12% 8% 4%; border-radius: 50%; background: radial-gradient(circle, #FADCCB 0%, rgba(250, 220, 203, 0) 68%); z-index: 0; }

/* ---- Hero ---- */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1.25fr; gap: 24px; align-items: center; }
.hero-copy .lead { font-size: 1.18rem; color: var(--muted); max-width: 520px; margin: 18px 0 30px; }
.hero-cta { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.hero-cta .btn { justify-content: center; }
.hero-note { font-size: .88rem; color: var(--muted); margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .85rem; color: var(--text); font-weight: 500; }
.chip .icon { color: var(--accent); width: 16px; height: 16px; }
.hero-visual { position: relative; min-height: 560px; }
.hero-visual .mascot { position: absolute; left: -4%; bottom: 0; width: 38%; max-width: 270px; }
.hero-visual .bubble { left: 4%; top: 2%; }
.hero-visual .app-window { position: absolute; right: 0; top: 56px; width: 68%; }

/* App window mock (rebuilds the real app UI in HTML) */
.app-window { background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; font-size: .8rem; }
.app-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: #FFFCF9; }
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #F26B5E; display: block; }
.dots i:nth-child(2) { background: #F5BE4F; }
.dots i:nth-child(3) { background: #5DC466; }
.app-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; margin-left: 8px; }
.app-title img { width: 26px; height: 26px; border-radius: 50%; }
.app-status { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #EEF8F1; color: #23794A; font-weight: 600; font-size: .72rem; }
.live-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }
.stop-pill { background: var(--accent); color: #fff; border-radius: 8px; padding: 5px 12px; font-weight: 600; font-size: .74rem; }
.app-tabs { display: flex; gap: 4px; padding: 10px 16px 0; }
.app-tabs span { padding: 7px 14px; border-radius: 8px 8px 0 0; color: var(--muted); font-weight: 500; }
.app-tabs span.on { color: var(--accent); background: var(--accent-50); font-weight: 600; }
.app-body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; padding: 12px 16px; background: #FFFCF9; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.panel-title { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .84rem; margin-bottom: 10px; }
.panel-title .icon { color: var(--accent); width: 16px; height: 16px; }
.msg { display: flex; gap: 10px; margin-bottom: 12px; }
.msg:last-child { margin-bottom: 0; }
.avatar-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .66rem; font-weight: 700; background: #FBE1E4; color: #C2416A; flex-shrink: 0; }
.avatar-dot.you { background: #E3ECFF; color: var(--blue); }
.msg b { font-size: .76rem; }
.msg time { color: var(--faint); font-size: .68rem; margin-left: 6px; }
.msg p { margin: 2px 0 0; color: #4A3B33; line-height: 1.45; }
.suggest { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 9px; margin-bottom: 8px; color: #4A3B33; background: #FFFDFB; line-height: 1.35; }
.suggest .icon { width: 14px; height: 14px; color: var(--faint); }
.summary-bar { display: flex; align-items: center; gap: 10px; margin: 0 16px 14px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.summary-bar .icon-badge { width: 32px; height: 32px; }
.summary-bar .icon-badge .icon { width: 16px; height: 16px; }
.summary-bar b { display: block; font-size: .8rem; }
.summary-bar span { color: var(--muted); font-size: .72rem; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---- Problem ---- */
.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: center; }
.split.reverse { grid-template-columns: 1.6fr 1fr; }
.split-visual { position: relative; display: flex; justify-content: center; }
.split-visual .mascot { width: 100%; max-width: 340px; }
.split-visual .bubble { top: 0; right: 0; }
.pain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0 22px; }
.pain { display: flex; gap: 16px; align-items: center; padding: 22px; }
.pain p { margin: 0; font-weight: 500; font-size: 1.02rem; line-height: 1.4; }
.callout { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-radius: var(--radius); background: linear-gradient(90deg, var(--accent-50), #FFF6F0); border: 1px solid var(--accent-100); font: 700 1.15rem/1.4 var(--font-display); }
.callout .icon { color: var(--accent); }

/* ---- Meet VIU ---- */
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.promise { padding: 24px 20px; text-align: center; }
.promise .icon-badge { margin: 0 auto 14px; width: 64px; height: 64px; }
.promise h3 { font-size: 1.05rem; }
.promise p { color: var(--muted); font-size: .92rem; margin: 0; }
.lang-chips { display: flex; justify-content: center; gap: 6px; margin: 4px 0 10px; }
.lang-chips span { padding: 3px 10px; border-radius: 999px; background: var(--accent-50); color: var(--accent); font-size: .78rem; font-weight: 700; }

/* ---- Features ---- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 24px; display: flex; flex-direction: column; }
.feature-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.feature-head h3 { margin-bottom: 4px; }
.feature-head p { color: var(--muted); font-size: .92rem; margin: 0; line-height: 1.45; }
.feature .mini { margin-top: auto; background: #FFFCF9; border: 1px solid var(--border); border-radius: 12px; padding: 12px; font-size: .78rem; }
.toggle-pills { display: flex; background: var(--bg-2); border-radius: 9px; padding: 3px; margin-bottom: 10px; }
.toggle-pills span { flex: 1; text-align: center; padding: 5px; border-radius: 7px; font-weight: 600; color: var(--muted); }
.toggle-pills span.on { background: var(--accent); color: #fff; }
.mini ul { margin: 0; padding-left: 18px; color: #4A3B33; }
.mini li { margin: 2px 0; }
.ask-input { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border); border-radius: 9px; padding: 9px 10px; color: var(--faint); background: #fff; margin-bottom: 8px; }
.ask-input .icon { color: var(--accent); width: 16px; height: 16px; }
.ask-actions { display: flex; gap: 8px; }
.ask-actions span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--border); border-radius: 9px; padding: 7px; color: var(--accent); font-weight: 600; background: #fff; }
.ask-actions .icon { width: 14px; height: 14px; }
.file-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.file-chip { background: #fff; border: 1px solid var(--border); border-radius: 9px; padding: 10px 6px; text-align: center; font-weight: 700; font-size: .72rem; }
.file-chip i { display: block; width: 26px; height: 32px; margin: 0 auto 6px; border-radius: 4px; background: #E5484D; position: relative; }
.file-chip i::after { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 8px 8px 0; border-color: transparent #fff transparent transparent; }
.file-chip.docx i { background: #2F6FE4; }
.file-chip.xlsx i { background: #21A366; }
.history-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 4px; border-bottom: 1px solid var(--border); }
.history-row:last-child { border-bottom: 0; }
.history-row b { display: block; font-size: .78rem; }
.history-row span { color: var(--faint); font-size: .7rem; }
.feature-cta { display: flex; justify-content: center; margin-top: 40px; }

/* ---- How it works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.step { padding: 28px 24px 0; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.step-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-50); color: var(--accent); font: 800 1.15rem var(--font-display); margin-bottom: 14px; }
.step p { color: var(--muted); font-size: .96rem; }
.step-visual { margin-top: auto; display: flex; align-items: flex-end; justify-content: center; gap: 0; min-height: 220px; position: relative; }
.step-visual .mascot { width: 52%; max-width: 190px; }
.step-visual .mini-ui { position: absolute; right: 8px; bottom: 26px; width: 52%; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 10px; font-size: .74rem; z-index: 3; }
.mini-ui .btn-fake { display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--accent); color: #fff; border-radius: 8px; padding: 7px; font-weight: 600; margin: 6px 0; }
.mini-ui .field-fake { border: 1px solid var(--border); border-radius: 7px; padding: 6px 8px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.mini-ui .row-fake { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); font-weight: 600; }
.mini-ui .row-fake:last-child { border: 0; }
.mini-ui .row-fake .icon { color: var(--accent); width: 15px; height: 15px; }
.step-arrow { position: absolute; top: 50px; color: var(--accent); width: 28px; height: 28px; z-index: 2; }
.works-with { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 36px; padding: 18px 24px; text-align: center; }
.works-with .icon { color: var(--accent); }
.works-with p { margin: 0; }

/* ---- Benefits ---- */
.benefit-list { display: grid; gap: 14px; }
.benefit { display: flex; align-items: center; gap: 18px; padding: 18px 22px; }
.benefit .check { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 0 0 6px var(--accent-50); }
.benefit .check .icon { width: 20px; height: 20px; }
.benefit h3 { margin: 0 0 2px; font-size: 1.1rem; }
.benefit p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---- Who it's for ---- */
.persona-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.persona { padding: 26px; display: flex; gap: 18px; align-items: flex-start; transition: transform .2s, box-shadow .2s; }
.persona:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.persona h3 { margin-bottom: 6px; font-size: 1.08rem; }
.persona p { margin: 0; color: var(--muted); font-size: .94rem; }
.who-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: 40px; }
.who-head .mascot-wrap { width: 190px; }
.who-head .mascot { max-height: 290px; width: auto; margin: 0 auto; }
.who-head .bubble { right: -30px; top: 10px; }

/* ---- Languages ---- */
.lang-bubbles { position: relative; height: 0; }
.say { display: inline-block; background: #fff; border: 1.5px solid var(--border-strong); border-radius: 18px; padding: 10px 18px; font: 700 1.1rem var(--font-display); box-shadow: var(--shadow-sm); margin: 6px 8px 6px 0; }
.say:nth-child(2) { transform: rotate(-3deg); }
.say:nth-child(3) { transform: rotate(2deg); }
.transcript-card { padding: 22px; }
.transcript-card .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.transcript-card .head b { font: 700 1.15rem var(--font-display); }
.rec { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #FDF0EC; color: var(--accent); font-weight: 600; font-size: .82rem; }
.rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #E5484D; animation: pulse 1.4s infinite; }
.tline { display: flex; gap: 12px; margin-bottom: 14px; }
.tline .avatar-dot { width: 38px; height: 38px; font-size: .85rem; }
.tline .text { background: #FDF1F2; border-radius: 4px 14px 14px 14px; padding: 10px 14px; flex: 1; }
.tline.you .text { background: #EEF3FF; }
.tline small { display: block; font-weight: 700; font-size: .85rem; }
.tline small time { color: var(--faint); font-weight: 400; margin-left: 6px; }
.tline span.t { display: block; color: #3B2C24; margin-top: 2px; }
.summary-box { display: flex; gap: 14px; padding: 14px 16px; border-radius: 12px; background: #FFF6F0; border: 1px solid var(--accent-100); margin-top: 6px; }
.lang-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.lang-row span { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: #fff; font-weight: 600; font-size: .86rem; }
.lang-row span.on { border-color: var(--accent); color: var(--accent); background: var(--accent-50); }

/* ---- Privacy ---- */
.privacy-list { display: grid; gap: 14px; }
.privacy-item { display: flex; align-items: center; gap: 18px; padding: 18px 22px; }
.privacy-item p { margin: 0; font-weight: 500; }
.switch-row { display: flex; align-items: center; gap: 18px; padding: 16px 22px; }
.switch-row b { flex: 1; }
.switch { width: 52px; height: 30px; border-radius: 999px; background: var(--accent); position: relative; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; width: 24px; height: 24px; border-radius: 50%; background: #fff; top: 3px; right: 3px; box-shadow: var(--shadow-sm); }

/* ---- FAQ ---- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.faq-side { position: sticky; top: 110px; }
.faq-side .mascot { max-width: 300px; margin: 0 auto; }
.faq-side .bubble { right: 6%; top: 6%; }
.ask-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-top: 20px; }
.ask-card div { flex: 1; }
.ask-card b { display: block; }
.ask-card span { color: var(--muted); font-size: .9rem; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; list-style: none; font: 600 1.04rem var(--font); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-50); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.faq summary .q-icon .icon { width: 18px; height: 18px; }
.faq summary .toggle { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-50); color: var(--accent); flex-shrink: 0; transition: transform .2s, background .2s; }
.faq details[open] summary .toggle { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq .answer { padding: 0 20px 18px 70px; color: var(--muted); }
.faq .answer p:last-child { margin: 0; }

/* ---- CTA + Feedback ---- */
.cta-band { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 24px; padding: 48px 56px 0; overflow: hidden; background: linear-gradient(110deg, #FFF7F1 0%, #FBE3D4 100%); border: 1px solid var(--accent-100); border-radius: 28px; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 10px; }
.cta-band .copy { padding-bottom: 48px; }
.cta-band .mascot-wrap { align-self: end; display: flex; justify-content: center; }
.cta-band .mascot { max-width: 380px; }
.cta-band .bubble { right: 4%; top: 6%; }
.feedback-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: center; margin-top: 40px; padding: 32px; }
.feedback-wrap .mascot-wrap .bubble { left: 50%; top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field .opt { color: var(--faint); font-weight: 400; }
.input, .select, .textarea { width: 100%; font: 400 .98rem var(--font); color: var(--text); background: #fff; border: 1.5px solid var(--border-strong); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-50); }
.textarea { min-height: 120px; resize: vertical; }
.field-error { color: #B42318; font-size: .85rem; margin-top: 5px; }
.has-error .input, .has-error .textarea, .has-error .select { border-color: #E5484D; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { cursor: pointer; color: #E7D9CC; margin: 0; transition: transform .1s, color .1s; }
.stars label .icon { width: 32px; height: 32px; fill: currentColor; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--accent); }
.stars label:hover { transform: scale(1.1); }
.stars input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 6px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Alerts ---- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 500; }
.alert-success { background: #EEF8F1; border: 1px solid #BFE5CC; color: #1D6B3E; }
.alert-error { background: #FEF1F0; border: 1px solid #F7C9C4; color: #9B2C1F; }
.flash-floating { position: fixed; z-index: 100; top: 90px; left: 50%; transform: translateX(-50%); max-width: 560px; width: calc(100% - 32px); box-shadow: var(--shadow-lg); animation: drop .35s ease; }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -10px); } }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font: 700 .95rem var(--font); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--muted); font-size: .95rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-about p { color: var(--muted); font-size: .94rem; margin-top: 14px; max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--faint); font-size: .88rem; }

/* ---- Download page ---- */
.page-hero { padding: 56px 0 24px; }
.dl-hero { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 24px; }
.dl-hero .mascot-wrap { display: flex; justify-content: center; }
.dl-hero .mascot { max-width: 320px; }
.dl-hero .bubble { left: 0; top: 4%; }
.detected { display: inline-flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-weight: 500; margin-top: 10px; }
.detected .icon { color: var(--accent); width: 22px; height: 22px; }
.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.platform { padding: 32px; display: flex; gap: 24px; align-items: flex-start; transition: box-shadow .2s, border-color .2s; }
.platform.is-recommended { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-50), var(--shadow); }
.platform .os-badge { width: 84px; height: 84px; border-radius: 50%; background: var(--accent-50); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.platform .os-badge .icon { width: 40px; height: 40px; }
.platform h3 { font-size: 1.4rem; margin-bottom: 2px; }
.platform .sub { color: var(--muted); margin-bottom: 18px; }
.platform .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.platform .meta { color: var(--muted); font-size: .88rem; margin: 0; }
.rec-tag { display: inline-block; margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; vertical-align: middle; letter-spacing: .02em; }
.unavailable { padding: 14px 16px; border-radius: 12px; background: var(--bg-2); color: var(--muted); font-size: .92rem; }
.tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px; margin: 0 auto 28px; }
.tabs button { border: 0; background: transparent; padding: 9px 26px; border-radius: 9px; font: 600 .95rem var(--font); color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--accent); color: #fff; }
.install-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.install-step { padding: 24px; }
.install-step .n { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-50); color: var(--accent); display: grid; place-items: center; font: 800 1rem var(--font-display); margin-bottom: 12px; }
.install-step h3 { font-size: 1.08rem; }
.install-step p { color: var(--muted); font-size: .94rem; margin: 0; }
.install-step code { background: var(--bg-2); padding: 1px 6px; border-radius: 6px; font-size: .88em; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.box { padding: 28px; }
.box-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.box-head h3 { margin: 0; }
.box-head p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.notes ul { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; }
.notes li { position: relative; padding-left: 28px; }
.notes li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.req-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.req-table th, .req-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.req-table th { background: var(--bg-2); font-weight: 600; }
.req-table tr:last-child td { border-bottom: 0; }
.empty-state { text-align: center; padding: 48px 24px; }
.empty-state .mascot { max-width: 200px; margin: 0 auto 12px; }

/* ---- Releases page ---- */
.timeline { position: relative; max-width: 860px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--border-strong); }
.rel { position: relative; padding-left: 60px; margin-bottom: 28px; }
.rel-dot { position: absolute; left: 8px; top: 26px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 3px solid var(--border-strong); }
.rel.is-latest .rel-dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 6px var(--accent-50); }
.rel .card { padding: 26px 28px; }
.rel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 10px; }
.rel-head h3 { margin: 0; font-size: 1.35rem; }
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; background: var(--bg-2); color: var(--muted); }
.tag.latest { background: var(--accent); color: #fff; }
.rel-date { color: var(--muted); font-size: .9rem; margin-left: auto; }
.rel .notes { color: #4A3B33; }
.rel-dl { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border-strong); }

/* ---- Simple pages ---- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose p, .prose li { color: #4A3B33; }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .live-pill::before, .rec::before { animation: none; }
}

/* ---- Responsive ---- */
@media (max-width: 1080px) {
  .hero-grid, .split, .split.reverse, .faq-grid, .dl-hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 520px; }
  .split-visual .mascot { max-width: 260px; }
  .faq-side { position: static; }
  .feature-grid, .persona-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .step-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 32px 0; }
  .feedback-wrap { grid-template-columns: 1fr; }
  .feedback-wrap .mascot-wrap { max-width: 240px; margin: 0 auto; }
  .split.reverse .split-visual { order: -1; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.is-open .nav-links { display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 16px 16px; box-shadow: var(--shadow); }
  .site-header.is-open .nav-cta { display: inline-flex; position: absolute; top: 330px; left: 16px; right: 16px; }
  .site-header.is-open .nav-links { padding-bottom: 80px; }
  .platform-grid, .two-col, .install-steps, .promise-grid { grid-template-columns: 1fr; }
  .who-head { grid-template-columns: 1fr; }
  .who-head .mascot-wrap { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero { padding-top: 32px; }
  .hero-visual { min-height: 0; display: flex; flex-direction: column; gap: 16px; }
  .hero-visual .mascot, .hero-visual .bubble { display: none; }
  .hero-visual .app-window { position: static; width: 100%; }
  .app-body { grid-template-columns: 1fr; }
  .hero-cta { max-width: none; }
  .pain-grid, .feature-grid, .persona-grid, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .platform { flex-direction: column; padding: 24px; }
  .cta-band { padding: 32px 20px 0; border-radius: 20px; }
  .feedback-wrap { padding: 22px; }
  .faq .answer { padding-left: 20px; }
  .sparkle::after { display: none; }
  .rel { padding-left: 44px; }
  .timeline::before { left: 13px; }
  .rel-dot { left: 2px; }
  .rel-date { margin-left: 0; width: 100%; }
}
