@font-face { font-family: 'Bricolage'; src: url('/fonts/bricolage.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Instrument'; src: url('/fonts/instrument.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --night: #0B1428;
  --ink: #14213F;
  --ink-2: #1E2F5C;
  --paper: #F8FAFD;
  --paper-2: #EEF2F8;
  --gold: #F4B91E;
  --gold-ink: #9A6D00;
  --blue: #3C63D2;
  --text: #141B2E;
  --muted: #5A6377;
  --line: #DFE5EF;
  --line-dark: rgba(248, 250, 253, 0.1);
  --radius: 18px;
  --head: 'Bricolage', 'Instrument', system-ui, sans-serif;
  --body: 'Instrument', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; margin: 0; }
p { margin: 0; }
::selection { background: var(--gold); color: var(--night); }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--night); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border-radius: 999px; font: 600 16px/1 var(--body); text-decoration: none; transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s, color 0.3s; white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-gold { background: var(--gold); color: var(--night); box-shadow: 0 0 0 0 rgba(244, 185, 30, 0.5); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -8px rgba(244, 185, 30, 0.6); }
.btn-ghost { color: var(--paper); box-shadow: inset 0 0 0 1px rgba(248, 250, 253, 0.25); }
.btn-ghost:hover { background: rgba(248, 250, 253, 0.08); }
.btn-line { color: var(--text); box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background 0.4s, box-shadow 0.4s, color 0.4s; color: var(--paper); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 76px; transition: height 0.4s var(--ease); }
.nav.scrolled { background: rgba(11, 20, 40, 0.72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); box-shadow: 0 1px 0 var(--line-dark); }
.nav.scrolled .nav-in { height: 64px; }
.nav.light { background: rgba(248, 250, 253, 0.8); color: var(--text); box-shadow: 0 1px 0 var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 21px/1 var(--head); letter-spacing: -0.03em; }
.logo img { border-radius: 8px; }
.nav-links { display: flex; gap: 34px; }
.nav-links a { text-decoration: none; font-size: 15px; opacity: 0.72; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }

/* Hero */
.hero { position: relative; background: var(--night); color: var(--paper); padding: 168px 0 0; overflow-x: clip; overflow-y: visible; isolation: isolate; }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 32%; background: var(--paper); z-index: -1; }
.seeds { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero .seeds { height: 82%; }
.hero-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: 0.02em; color: rgba(248, 250, 253, 0.72); padding: 7px 14px 7px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(248, 250, 253, 0.14); background: rgba(248, 250, 253, 0.04); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(244, 185, 30, 0.18); }
.hero-title { font-size: clamp(3.2rem, 9vw, 8.2rem); font-weight: 600; letter-spacing: -0.055em; line-height: 0.92; margin-top: 30px; }
.hero-title em { font-style: normal; color: var(--gold); }
.hero-sub { max-width: 600px; margin-top: 30px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(248, 250, 253, 0.72); line-height: 1.55; }
.hero-cta { display: flex; gap: 12px; margin-top: 38px; flex-wrap: wrap; justify-content: center; }
.hero-note { margin-top: 18px; font-size: 14px; color: rgba(248, 250, 253, 0.5); }

/* Product window */
.window { margin: 80px auto 0; max-width: 1060px; border-radius: 20px; background: #fff; color: var(--text); box-shadow: 0 0 0 1px rgba(20, 33, 63, 0.08), 0 50px 100px -30px rgba(11, 20, 40, 0.55), 0 30px 60px -40px rgba(11, 20, 40, 0.4); overflow: hidden; transform-origin: 50% 0; }
.window-bar { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; background: var(--paper-2); border-bottom: 1px solid var(--line); position: relative; }
.window-bar > span { width: 11px; height: 11px; border-radius: 50%; background: #D5DCE8; }
.window-url { position: absolute; left: 50%; transform: translateX(-50%); font-size: 12.5px; color: var(--muted); background: #fff; padding: 4px 40px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--line); }
.app { display: grid; grid-template-columns: 210px 1fr; min-height: 440px; }
.app-side { border-right: 1px solid var(--line); padding: 18px 12px; background: #FBFCFE; }
.app-acct { display: flex; gap: 10px; align-items: center; padding: 6px 8px 18px; }
.app-acct b { font-size: 13.5px; display: block; line-height: 1.2; }
.app-acct small { font-size: 12px; color: var(--muted); }
.app-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.app-side li { font-size: 13.5px; padding: 8px 10px; border-radius: 8px; color: var(--muted); }
.app-side li.on { background: rgba(60, 99, 210, 0.09); color: var(--blue); font-weight: 600; }
.app-main { padding: 24px 26px 26px; display: grid; gap: 18px; align-content: start; background: #fff; }
.app-head { display: flex; justify-content: space-between; align-items: center; }
.app-head small { font-size: 12.5px; color: var(--muted); }
.app-head h3 { font-size: 22px; letter-spacing: -0.025em; margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 999px; }
.pill-live { background: #E8F6EE; color: #17794A; }
.pill-live i { width: 7px; height: 7px; border-radius: 50%; background: #22A563; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 165, 99, 0.5); } 70% { box-shadow: 0 0 0 7px rgba(34, 165, 99, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 165, 99, 0); } }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.tile small { font-size: 12.5px; color: var(--muted); }
.tile b { display: block; font: 600 30px/1.15 var(--head); letter-spacing: -0.03em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tile em { font-style: normal; font-size: 12px; color: var(--muted); }
.tile:first-child em { color: #17794A; }
.app-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; }
.card { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.card-h { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px 6px; }
.card-h b { font-size: 14px; }
.card-h small { font-size: 12px; color: var(--muted); }
.chart { width: 100%; height: 150px; padding: 8px 0 0; }
.chart-line { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2.2s var(--ease) 0.4s; }
.chart-area { fill: rgba(60, 99, 210, 0.07); opacity: 0; transition: opacity 1.2s 1.4s; }
.window.in .chart-line { stroke-dashoffset: 0; }
.window.in .chart-area { opacity: 1; }
.feed { list-style: none; margin: 0; padding: 4px 10px 10px; height: 160px; overflow: hidden; display: flex; flex-direction: column; gap: 2px; }
.feed li { display: flex; gap: 10px; align-items: center; padding: 7px 6px; border-radius: 10px; font-size: 13px; line-height: 1.3; animation: feedIn 0.7s var(--ease) both; }
.feed li .av { width: 26px; height: 26px; }
.feed li span { color: var(--muted); }
.feed li time { margin-left: auto; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-10px); background: rgba(244, 185, 30, 0.14); } 60% { background: rgba(244, 185, 30, 0.1); } to { opacity: 1; transform: none; background: transparent; } }

/* Avatars: plain colour discs with a soft shape; no photos of real people. */
.av { display: inline-block; flex: none; width: 34px; height: 34px; border-radius: 50%; position: relative; overflow: hidden; }
.av::after { content: ''; position: absolute; width: 56%; height: 56%; border-radius: 50%; left: 22%; top: 18%; background: rgba(255, 255, 255, 0.55); box-shadow: 0 16px 0 6px rgba(255, 255, 255, 0.55); }
.av-1 { background: #D98E5C; } .av-2 { background: #6C8FD8; } .av-3 { background: #5BAA8C; } .av-4 { background: #B07CC9; } .av-5 { background: #D9A93C; } .av-6 { background: #7A8BA6; }
.ic { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--paper-2); font: 600 15px var(--head); color: var(--muted); }

/* Statement */
.statement { padding: 180px 0 160px; }
.big-words { font: 600 clamp(2rem, 4.6vw, 4rem)/1.12 var(--head); letter-spacing: -0.04em; max-width: 1040px; }
.big-words span { color: #C9D1DE; transition: color 0.35s; }
.big-words span.lit { color: var(--text); }
.big-words span.gold.lit { color: var(--gold-ink); }

/* Section heads */
.section-head { max-width: 680px; margin-bottom: 64px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -0.045em; }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.section-head.center .kicker { justify-content: center; }
.kicker::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.kicker-light { color: var(--gold); }
.lead { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 560px; }
.lead a { color: var(--text); text-underline-offset: 3px; }

/* How it works: sticky story */
.how { padding: 40px 0 140px; }
.story { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.28; transition: opacity 0.6s var(--ease); }
.step:first-child { min-height: 56vh; justify-content: flex-start; padding-top: 10vh; }
.step:last-child { min-height: 64vh; }
.step.on { opacity: 1; }
.step-n { font: 600 15px var(--head); color: var(--gold-ink); letter-spacing: 0.04em; }
.step h3 { font-size: clamp(2rem, 3.4vw, 2.9rem); letter-spacing: -0.04em; margin: 14px 0 18px; }
.step p { font-size: 18.5px; color: var(--muted); max-width: 440px; }
.story-stage { position: relative; }
.stage { position: sticky; top: calc(50vh - 230px); height: 460px; border-radius: 28px; background: var(--ink); overflow: hidden; display: grid; place-items: center; box-shadow: 0 40px 80px -40px rgba(11, 20, 40, 0.5); }
.stage::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(248, 250, 253, 0.09) 1px, transparent 1px); background-size: 22px 22px; }
.scene { position: absolute; inset: 0; display: grid; place-items: center; padding: 36px; opacity: 0; transform: translateY(24px) scale(0.98); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); pointer-events: none; }
.scene.on { opacity: 1; transform: none; }
.scene-card { width: min(440px, 100%); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); padding-bottom: 8px; }
.stage-dots { position: sticky; top: calc(50vh + 250px); display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.stage-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--line); transition: width 0.5s var(--ease), background 0.5s; }
.stage-dots i.on { width: 26px; background: var(--ink); }

.sources { list-style: none; margin: 0; padding: 4px 8px; }
.sources li { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; }
.sources li + li { border-top: 1px solid var(--paper-2); }
.sources b { font-size: 14px; display: block; line-height: 1.3; }
.sources small { font-size: 12.5px; color: var(--muted); }
.sources li > div { flex: 1; min-width: 0; }
.tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: 0.03em; padding: 3px 8px; border-radius: 6px; background: var(--paper-2); color: var(--muted); white-space: nowrap; }
.tag-gold { background: #FDF1CF; color: #7A5600; }
.bar { width: 54px; height: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; flex: none; }
.bar i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: inherit; transition: width 1.2s var(--ease) 0.3s; }
.scene.on .bar i { width: var(--w); }
.add-source { margin: 6px 16px 10px; padding: 11px; border: 1.5px dashed var(--line); border-radius: 12px; text-align: center; font-size: 13.5px; color: var(--muted); }
.add-source span { color: var(--blue); font-weight: 700; }

.day { padding: 14px 16px 8px; }
.day-track { position: relative; height: 54px; border-radius: 12px; background: var(--paper-2); }
.day-track i { position: absolute; left: var(--x); top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--blue); transform: scale(0); transition: transform 0.5s var(--ease); }
.scene.on .day-track i { transform: scale(1); }
.day-track i:nth-child(3n) { background: var(--gold); }
.away { position: absolute; left: var(--x); width: var(--w); top: 8px; bottom: 8px; border-radius: 8px; background: repeating-linear-gradient(135deg, #DDE3EE 0 4px, transparent 4px 8px); display: grid; place-items: center; font-size: 11px; color: var(--muted); font-weight: 600; }
.day-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 8px; padding: 0 2px; }
.checks { list-style: none; margin: 6px 0 4px; padding: 0 16px; display: grid; gap: 4px; }
.checks li { display: grid; gap: 1px; padding: 10px 0 10px 28px; position: relative; border-top: 1px solid var(--paper-2); }
.checks li::before { content: ''; position: absolute; left: 2px; top: 13px; width: 16px; height: 16px; border-radius: 50%; background: #E8F6EE url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2317794A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.checks b { font-size: 13.5px; }
.checks span { font-size: 12.5px; color: var(--muted); }

.growth { display: flex; align-items: end; gap: 18px; padding: 12px 16px 10px; }
.growth small { font-size: 12.5px; color: var(--muted); }
.growth b { display: block; font: 600 34px/1.1 var(--head); letter-spacing: -0.03em; }
.growth em { font-style: normal; font-size: 12.5px; color: #17794A; font-weight: 600; }
.spark { flex: 1; height: 70px; }
.spark path { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.6s var(--ease) 0.2s; }
.scene.on .spark path { stroke-dashoffset: 0; }
.insights { list-style: none; margin: 4px 0 6px; padding: 0 16px; }
.insights li { display: flex; gap: 10px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--paper-2); font-size: 13.5px; line-height: 1.4; }

/* Pollenly AI */
.ai { padding: 140px 0; background: #fff; border-block: 1px solid var(--line); }
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ai-card { border-radius: 24px; background: var(--paper); border: 1px solid var(--line); padding: 14px 14px 30px; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.ai-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(20, 33, 63, 0.28); }
.ai-card h3 { font-size: 24px; letter-spacing: -0.03em; margin: 28px 14px 10px; }
.ai-card > p { color: var(--muted); font-size: 16px; margin: 0 14px; }
.ai-demo { height: 270px; border-radius: 16px; background: var(--ink); padding: 18px; display: flex; flex-direction: column; justify-content: center; gap: 10px; overflow: hidden; position: relative; }
.ai-demo::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(248, 250, 253, 0.08) 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; }
.post, .draft { position: relative; background: #fff; border-radius: 12px; padding: 12px; font-size: 13px; line-height: 1.45; }
.post { display: flex; gap: 10px; }
.post .av { width: 28px; height: 28px; }
.post small { color: var(--muted); font-size: 12px; }
.post p { margin-top: 3px; }
.draft { margin-left: 22px; box-shadow: inset 3px 0 0 var(--gold); }
.draft > small { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-ink); }
.type { min-height: 57px; margin-top: 4px; }
.type::after { content: ''; display: inline-block; width: 2px; height: 1em; background: var(--text); margin-left: 1px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.type.done::after { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.draft-actions { display: flex; gap: 6px; justify-content: flex-end; margin-top: 8px; }
.mini-btn { font-size: 11.5px; font-weight: 600; padding: 5px 10px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--line); }
.mini-dark { background: var(--ink); color: #fff; box-shadow: none; }
.ideas { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ideas li { background: #fff; border-radius: 12px; padding: 11px 13px; display: grid; gap: 1px; opacity: 0; transform: translateX(-16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.ideas li:nth-child(2) { transition-delay: 0.15s; margin-left: 14px; }
.ideas li:nth-child(3) { transition-delay: 0.3s; margin-left: 28px; }
.ai-card.in .ideas li { opacity: 1; transform: none; }
.ideas b { font-size: 13.5px; }
.ideas span { font-size: 12px; color: var(--muted); }
.score { position: relative; width: 96px; height: 96px; align-self: center; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: rgba(248, 250, 253, 0.12); stroke-width: 7; }
.ring .ring-v { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 213.6; stroke-dashoffset: 213.6; transition: stroke-dashoffset 1.6s var(--ease) 0.3s; }
.ai-card.in .ring-v { stroke-dashoffset: 42.7; }
.score b { position: absolute; inset: 0; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; align-items: baseline; color: #fff; font: 600 30px/1 var(--head); letter-spacing: -0.03em; }
.score b small { font-size: 13px; font-weight: 500; opacity: 0.6; margin-left: 2px; letter-spacing: 0; }
.ticks { position: relative; list-style: none; margin: 6px auto 0; padding: 0; display: grid; gap: 7px; }
.ticks li { color: rgba(248, 250, 253, 0.85); font-size: 13.5px; display: flex; align-items: center; gap: 9px; }
.ticks li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px rgba(248, 250, 253, 0.35); }
.ticks li.ok::before { box-shadow: none; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230B1428' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* Safety */
.safety { background: var(--night); color: var(--paper); padding: 150px 0; }
.safety h2 { color: var(--paper); }
.safety .lead { color: rgba(248, 250, 253, 0.65); }
.safe-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.safe { padding: 38px 34px 42px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); transition: background 0.4s; }
.safe:hover { background: rgba(248, 250, 253, 0.03); }
.num { display: block; font: 600 clamp(3rem, 5vw, 4.4rem)/1 var(--head); letter-spacing: -0.05em; color: var(--gold); }
.safe h3 { font-size: 20px; letter-spacing: -0.02em; margin: 18px 0 10px; }
.safe p { color: rgba(248, 250, 253, 0.62); font-size: 15.5px; }

/* Pricing */
.pricing { padding: 150px 0 120px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; border-radius: 24px; background: #fff; border: 1px solid var(--line); padding: 34px 30px 30px; }
.plan h3 { font-size: 22px; letter-spacing: -0.02em; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 22px; }
.price b { font: 600 56px/1 var(--head); letter-spacing: -0.05em; }
.price span { color: var(--muted); font-size: 15px; }
.plan-sub { margin-top: 8px; font-size: 15px; color: var(--muted); }
.plan ul { list-style: none; padding: 26px 0 0; margin: 26px 0 30px; border-top: 1px solid var(--line); display: grid; gap: 12px; flex: 1; align-content: start; }
.plan li { font-size: 15.5px; display: flex; gap: 11px; align-items: center; }
.plan li::before { content: ''; width: 18px; height: 18px; flex: none; border-radius: 50%; background: #FDF1CF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%239A6D00' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.plan li.no { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(90, 99, 119, 0.5); }
.plan li.no::before { background: var(--paper-2); }
.plan .btn { width: 100%; }
.plan-hi { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: 0 40px 80px -40px rgba(11, 20, 40, 0.6); transform: translateY(-12px); }
.plan-hi .price span, .plan-hi .plan-sub { color: rgba(248, 250, 253, 0.62); }
.plan-hi ul { border-color: var(--line-dark); }
.plan-tag { position: absolute; top: 30px; right: 26px; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 99px; background: rgba(244, 185, 30, 0.16); color: var(--gold); }

/* FAQ */
.faq { padding: 80px 0 150px; }
.faq-in { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start; }
.faq .section-head { position: sticky; top: 120px; margin: 0; }
.qs details { border-bottom: 1px solid var(--line); }
.qs details:first-child { border-top: 1px solid var(--line); }
.qs summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font: 600 21px/1.3 var(--head); letter-spacing: -0.02em; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: ''; width: 32px; height: 32px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M11 16h10M16 11v10' stroke='%23141B2E' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center/32px no-repeat; transition: transform 0.4s var(--ease), background-color 0.3s; }
.qs details[open] summary::after { transform: rotate(45deg); background-color: var(--paper-2); }
.qs details p { padding: 0 56px 28px 0; color: var(--muted); font-size: 17px; }

/* Final */
.final { position: relative; background: var(--night); color: var(--paper); padding: 170px 0; text-align: center; overflow: hidden; isolation: isolate; }
.final-in { display: flex; flex-direction: column; align-items: center; }
.final-mark { width: 88px; height: 88px; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(3deg); } }
.final h2 { font-size: clamp(3rem, 7.5vw, 6.6rem); letter-spacing: -0.055em; margin-top: 30px; }
.final p { margin: 24px 0 40px; font-size: 19px; color: rgba(248, 250, 253, 0.68); max-width: 480px; }

/* Footer */
.foot { background: var(--night); color: rgba(248, 250, 253, 0.6); border-top: 1px solid var(--line-dark); }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 0; flex-wrap: wrap; }
.foot .logo { color: var(--paper); font-size: 18px; }
.foot nav { display: flex; gap: 26px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; font-size: 14.5px; }
.foot nav a:hover { color: var(--paper); }
.foot small { font-size: 13.5px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.window.reveal { transform: perspective(1400px) rotateX(14deg) translateY(60px) scale(0.96); transition-duration: 1.4s; }
.window.reveal.in { transform: perspective(1400px) rotateX(0) translateY(0) scale(1); }

/* Responsive */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .app { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-stage { display: none; }
  .step, .step:first-child, .step:last-child { min-height: 0; opacity: 1; padding: 0 0 56px; }
  .step .scene-mobile { margin-top: 26px; }
  .ai-grid, .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan-hi { transform: none; }
  .safe-grid { grid-template-columns: 1fr 1fr; }
  .faq-in { grid-template-columns: 1fr; gap: 40px; }
  .faq .section-head { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 36px); }
  .hero { padding-top: 130px; }
  .hero::after { height: 22%; }
  .window { margin-top: 56px; border-radius: 14px; }
  .window-url { padding: 4px 18px; }
  .app-main { padding: 16px; }
  .tiles { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .tile { padding: 10px; }
  .tile b { font-size: 21px; }
  .tile em { display: none; }
  .app-row { grid-template-columns: 1fr; }
  .chart-card { display: none; }
  .statement { padding: 110px 0 90px; }
  .how, .ai, .safety, .pricing { padding-block: 96px; }
  .safe-grid { grid-template-columns: 1fr; }
  .safe { padding: 30px 24px; }
  .final { padding: 120px 0; }
  .qs details p { padding-right: 0; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}

/* On small screens each step shows its picture inline (cloned by main.js). */
.scene-mobile { display: none; }
@media (max-width: 980px) {
  .scene-mobile { display: block; position: relative; border-radius: 22px; background: var(--ink); padding: 22px; overflow: hidden; }
  .scene-mobile .scene { position: relative; inset: auto; opacity: 1; transform: none; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .window.reveal { opacity: 1; transform: none; }
}

/* The hero plays on load, without waiting for scroll. */
.hero-in .reveal { animation: rise 1.2s var(--ease) both; animation-delay: calc(var(--d, 0s) * 1.6 + 0.1s); }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.ai .section-head { max-width: 860px; }

/* Grids never grow wider than the screen. */
html, body { overflow-x: clip; }
.story, .faq-in, .app, .app-row, .plans, .ai-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 981px) {
  .story { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .faq-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .app { grid-template-columns: 210px minmax(0, 1fr); }
  .app-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .plans, .ai-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .nav .btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
  .tile small { font-size: 11px; line-height: 1.3; display: block; }
  .scene-mobile { padding: 14px; }
}

/* Platform logos */
.works { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 26px; font-size: 15px; font-weight: 500; color: rgba(248, 250, 253, 0.78); }
.works li { display: inline-flex; align-items: center; gap: 9px; }
.works svg { width: 20px; height: 20px; opacity: 0.9; }
.works .works-label { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(248, 250, 253, 0.42); }
.plan li.acc .nets { margin-left: auto; display: inline-flex; gap: 7px; color: var(--muted); }
.plan-hi li.acc .nets { color: rgba(248, 250, 253, 0.6); }
.nets svg { width: 15px; height: 15px; }
.plans-note { margin: 44px auto 0; text-align: center; font-size: 15px; color: var(--muted); line-height: 2; }
.plans-note svg { display: inline-block; width: 15px; height: 15px; vertical-align: -2px; margin: 0 5px 0 3px; color: var(--text); }
@media (max-width: 640px) { .works { gap: 10px 18px; } .works .works-label { flex-basis: 100%; justify-content: center; } }

/* Plan tabs and AI group */
.tabs { display: flex; width: fit-content; margin: -20px auto 56px; padding: 5px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.tabs button { font: 600 15px/1 var(--body); color: var(--muted); background: none; border: 0; padding: 12px 24px; border-radius: 999px; cursor: pointer; transition: background 0.3s var(--ease), color 0.3s; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tabs button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.plans[hidden] { display: none; }
.plan li.grp { margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #9A6D00; }
.plan li.grp::before { display: none; }
.plan-hi li.grp { color: var(--gold); }
.plan li b { font-weight: 700; }
.plan-tag-soft { background: var(--paper-2); color: var(--text); }
.plans-note a { color: var(--text); font-weight: 600; text-underline-offset: 3px; margin-left: 4px; white-space: nowrap; }
.plans-note a::after { content: ' →'; }
.price b { white-space: nowrap; }

/* Billing switch and prices */
.switches { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; margin: -20px auto 56px; }
.switches .tabs { margin: 0; }
.billing { display: flex; padding: 5px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.billing button { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--body); color: var(--muted); background: none; border: 0; padding: 12px 20px; border-radius: 999px; cursor: pointer; transition: background 0.3s var(--ease), color 0.3s; }
.billing button[aria-checked="true"] { background: var(--paper-2); color: var(--text); }
.billing button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.billing em { font-style: normal; font-size: 12px; padding: 4px 8px; border-radius: 99px; background: #FDF1CF; color: #7A5600; }
.price s { font-size: 22px; font-weight: 500; color: var(--muted); margin-right: 8px; text-decoration-thickness: 1.5px; align-self: center; }
.plan-hi .price s { color: rgba(248, 250, 253, 0.5); }
.price s:empty { display: none; }
.plan-sub .bill, .plan-sub .per { display: block; }
.plan-sub .bill:empty { display: none; }
.plan-sub .per { margin-top: 2px; }

/* Compare every feature */
.compare { margin: 40px auto 0; max-width: 1060px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.compare summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 22px; font: 600 16px/1 var(--body); color: var(--text); }
.compare summary::-webkit-details-marker { display: none; }
.compare summary::after { content: ''; width: 9px; height: 9px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform 0.3s var(--ease); }
.compare[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.compare-scroll { overflow-x: auto; padding: 0 22px 8px; }
.compare table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 12px 10px; border-top: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare thead th { border-top: 0; font: 600 14px/1.2 var(--body); color: var(--text); position: sticky; top: 0; background: #fff; }
.compare tbody th { text-align: left; font-weight: 400; color: var(--text); }
.compare tr.sec th { text-align: left; padding-top: 26px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #9A6D00; border-top: 0; }
.compare td.y, .compare td.n { font-size: 0; }
.compare td.y::before { content: ''; display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: #FDF1CF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%239A6D00' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.compare td.n::before { content: ''; display: inline-block; width: 10px; height: 1.5px; background: var(--line); vertical-align: middle; }
.compare td:nth-child(3) { background: rgba(244, 185, 30, 0.06); }
.compare .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.compare-foot { padding: 6px 32px 26px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* Launch discount */
.price .off { font-style: normal; align-self: center; margin-left: 2px; font: 600 13px/1 var(--body); padding: 5px 8px; border-radius: 99px; background: #FDF1CF; color: #7A5600; white-space: nowrap; }
.plan-hi .price .off { background: rgba(244, 185, 30, 0.18); color: var(--gold); }
.price b small { font-size: 0.5em; letter-spacing: -0.02em; vertical-align: 0.75em; margin-left: 1px; }
.price { flex-wrap: wrap; row-gap: 6px; }
.plan-sub .per:empty { display: none; }

/* AI: reply -> visit -> follow */
.ai-chain { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 30px; margin: 24px 0 0; padding: 0; }
.ai-chain li { position: relative; font: 600 14px/1 var(--body); padding: 9px 14px; border-radius: 99px; border: 1px solid #EBD9A6; color: #7A5600; }
.ai-chain li + li::before { content: "→"; position: absolute; left: -22px; top: 50%; transform: translateY(-50%); color: #B08A2E; font-weight: 400; }
.ai-chain li:last-child { background: #FDF1CF; border-color: #FDF1CF; }
@media (max-width: 480px) {
  .ai-chain { flex-wrap: nowrap; gap: 18px; }
  .ai-chain li { font-size: 12.5px; padding: 8px 10px; white-space: nowrap; }
  .ai-chain li + li::before { left: -14px; }
}

/* Legal pages: /terms, /privacy, /refunds */
.legal-page { background: var(--paper); }
.legal-page .nav { position: sticky; }
.legal { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; color: var(--text); }
.legal h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); letter-spacing: -0.045em; }
.legal .updated { margin: 14px 0 0; color: var(--muted, #5A6780); font-size: 15px; }
.legal .summary { margin: 36px 0 8px; padding: 22px 24px; border-radius: 16px; background: #FDF6E1; border: 1px solid #F2E2B0; }
.legal .summary h2 { font-size: 18px; letter-spacing: -0.01em; margin: 0 0 10px; }
.legal .summary ul { margin: 0; padding-left: 20px; }
.legal .summary li { margin: 6px 0; }
.legal h2 { font-size: 24px; letter-spacing: -0.025em; margin: 48px 0 12px; scroll-margin-top: 90px; }
.legal h3 { font-size: 18px; letter-spacing: -0.015em; margin: 28px 0 8px; }
.legal p, .legal li { font-size: 16.5px; line-height: 1.65; }
.legal p { margin: 12px 0; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); line-height: 1.5; }
.legal th { font-weight: 600; }
.legal .table-scroll { overflow-x: auto; }
.legal mark.todo { background: #FFE08A; padding: 0 4px; border-radius: 4px; }
.legal .es { margin-top: 56px; padding: 24px; border-radius: 16px; border: 1px solid var(--line); }
.legal .es h2 { margin-top: 0; }
.legal-nav { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; font-size: 15px; }
.legal-nav a { text-decoration: none; opacity: .7; }
.legal-nav a[aria-current] { opacity: 1; font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.legal section[id] { scroll-margin-top: 90px; }

/* Language switcher */
.lang { position: relative; display: inline-flex; align-items: center; gap: 6px; color: rgba(248, 250, 253, 0.7); }
.lang select { appearance: none; -webkit-appearance: none; background: transparent; color: inherit; border: 1px solid var(--line-dark); border-radius: 8px; padding: 6px 26px 6px 8px; font: 14px var(--body); cursor: pointer; }
.lang::after { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.lang select option { color: #141B2E; }
.lang:hover { color: var(--paper); }

/* Referral: a friend's discount above the plans */
.ref-note { margin: 22px auto 0; width: fit-content; max-width: 100%; padding: 10px 16px; border-radius: 99px; background: #FDF1CF; color: #5C4300; font-size: 15px; text-align: center; }
.ref-note b { color: #3D2C00; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .lead { word-break: auto-phrase; }
