/* Landing page */
.wrap { width: 100%; max-width: calc(var(--content-max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color var(--dur-base); }
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: var(--space-6); height: var(--header-h); }
.nav { display: flex; gap: var(--space-1); margin-right: auto; }
.nav a { display: inline-flex; align-items: center; min-height: var(--control-h); padding: 0 var(--space-3); color: var(--text-2); text-decoration: none; font-size: var(--text-sm); font-weight: var(--weight-medium); border-radius: var(--radius-sm); }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.menu-btn { display: none; }
.mobile-nav { display: none; }
@media (max-width: 900px) {
  .nav { display: none; }
  .site-header .wrap { justify-content: space-between; }
  .menu-btn { display: inline-flex; }
  .header-actions .btn-signin { display: none; }
  .mobile-nav[data-open="true"] { display: grid; gap: var(--space-1); padding: var(--space-2) var(--gutter) var(--space-4); border-bottom: 1px solid var(--border); background: var(--bg); }
  .mobile-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 var(--space-3); color: var(--text); text-decoration: none; border-radius: var(--radius-sm); }
  .mobile-nav a:hover { background: var(--surface-2); }
}
@media (max-width: 480px) { .header-actions .btn-cta-text-long { display: none; } }

/* Sections */
section { scroll-margin-top: calc(var(--header-h) + 8px); }
.section { padding: var(--space-24) 0; }
.section-head { max-width: 680px; margin-bottom: var(--space-12); }
.eyebrow { display: inline-block; font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-3); }
.section-title { font-size: var(--text-3xl); }
.section-lede { margin-top: var(--space-4); font-size: var(--text-lg); color: var(--text-2); }
@media (max-width: 600px) { .section { padding: var(--space-16) 0; } .section-head { margin-bottom: var(--space-8); } }

/* Hero */
.hero { padding: var(--space-16) 0 var(--space-20); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--space-12); align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 1.2rem + 2.6vw, 3.5rem); font-weight: var(--weight-semibold); }
.hero-lede { margin-top: var(--space-6); font-size: var(--text-lg); color: var(--text-2); max-width: 520px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero-facts { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-6); padding: 0; list-style: none; font-size: var(--text-sm); color: var(--text-3); }
.hero-facts li { display: inline-flex; align-items: center; gap: 6px; }
.hero-facts .ico { width: 16px; height: 16px; color: var(--success); }
@media (max-width: 1080px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-10); } .hero-lede { max-width: 640px; } }

/* Product preview window */
.preview { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-3); overflow: hidden; }
.preview-bar { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); font-size: var(--text-sm); }
.preview-dots { display: flex; gap: 6px; } .preview-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.file-chip { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 10px; border-radius: var(--radius-full); background: var(--surface-2); color: var(--text-2); font-size: var(--text-xs); }
.file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip .ico { width: 14px; height: 14px; color: var(--success); }
.preview-bar .badge-sample { margin-left: auto; }
.preview-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--space-4); padding: var(--space-4); background: var(--surface-2); }
.mini-sheet { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 11px; overflow: hidden; align-self: start; }
.mini-sheet-tabs { display: flex; gap: 2px; padding: 6px 6px 0; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mini-sheet-tabs span { padding: 4px 8px; border-radius: 5px 5px 0 0; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-sheet-tabs span.on { background: var(--surface); color: var(--text); font-weight: 600; }
.mini-sheet table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mini-sheet td, .mini-sheet th { padding: 4px 8px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.mini-sheet th { color: var(--text-3); font-weight: 500; }
.mini-sheet .col-on { background: var(--accent-soft); color: var(--accent-soft-ink); }
.preview-stage { display: grid; gap: var(--space-3); min-width: 0; }
.preview-stage .eng { box-shadow: var(--shadow-2); }
.preview-caption { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); font-size: var(--text-sm); color: var(--text-2); min-height: 32px; }
.preview-caption [data-step-label] { display: inline-flex; align-items: center; gap: var(--space-2); }
.preview-caption [data-step-label] .ico { width: 16px; height: 16px; color: var(--accent); }
.preview-dotsnav { display: flex; gap: 4px; }
.preview-dotsnav button { width: 28px; height: 28px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; border-radius: 6px; }
.preview-dotsnav button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); transition: background var(--dur-fast), width var(--dur-base) var(--ease-standard); }
.preview-dotsnav button[aria-current="true"]::before { background: var(--accent); width: 18px; border-radius: 4px; }
@media (max-width: 640px) {
  .preview-body { grid-template-columns: 1fr; padding: var(--space-3); }
  .mini-sheet { display: none; }
  .preview-bar .preview-dots { display: none; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { padding: var(--space-6); display: grid; gap: var(--space-3); align-content: start; }
.step-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-soft-ink); font-weight: var(--weight-semibold); font-size: var(--text-sm); }
.step h3 { font-size: var(--text-xl); }
.step p { color: var(--text-2); }
.step-meta { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--text-3); display: flex; flex-wrap: wrap; gap: var(--space-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* PPTX proof */
.proof { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.proof-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-12); align-items: center; }
.compare { display: grid; gap: var(--space-4); min-width: 0; }
.compare > * { min-width: 0; }
.compare-label { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); font-size: var(--text-sm); color: var(--text-2); margin-bottom: var(--space-2); font-weight: 500; }
.ppt-window { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-2); }
.ppt-toolbar { display: flex; gap: var(--space-2); padding: 8px 12px; border-bottom: 1px solid var(--border); background: var(--surface); font-size: 11px; color: var(--text-3); overflow: hidden; }
.ppt-toolbar span { padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.ppt-toolbar span.on { background: var(--accent-soft); color: var(--accent-soft-ink); font-weight: 600; }
.ppt-canvas { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; padding: 12px; }
.ppt-canvas .eng { border-radius: 4px; }
.sel { position: absolute; border: 1.5px solid var(--focus); pointer-events: none; }
.sel::before, .sel::after { content: ""; position: absolute; width: 7px; height: 7px; background: #fff; border: 1.5px solid var(--focus); }
.sel::before { left: -4px; top: -4px; } .sel::after { right: -4px; bottom: -4px; }
.sel-tag { position: absolute; top: -22px; left: -1px; font: 600 10px/1 var(--font-ui); background: var(--focus); color: var(--accent-ink); padding: 4px 6px; border-radius: 3px 3px 3px 0; white-space: nowrap; }
.ppt-data { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; font-size: 10.5px; overflow: hidden; align-self: start; }
.ppt-data header { padding: 6px 8px; font-weight: 600; border-bottom: 1px solid var(--border); color: var(--text-2); }
.ppt-data table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ppt-data td { padding: 3px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ppt-data td + td { text-align: right; }
.checklist { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; gap: var(--space-4); }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: var(--space-3); }
.checklist .tick { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--success-soft); color: var(--success); }
.checklist .tick .ico { width: 16px; height: 16px; }
.checklist strong { display: block; font-weight: var(--weight-semibold); }
.checklist span { color: var(--text-2); font-size: var(--text-md); }
.honest { margin-top: var(--space-6); padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface-2); color: var(--text-2); font-size: var(--text-sm); }
@media (max-width: 1080px) { .proof-grid { grid-template-columns: minmax(0, 1fr); } .proof-grid > :last-child { order: -1; } }
@media (max-width: 560px) { .ppt-canvas { grid-template-columns: 1fr; } .ppt-data { display: none; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.g-card { padding: var(--space-3); display: grid; gap: var(--space-3); }
.g-card .eng { border-radius: var(--radius-sm); box-shadow: var(--shadow-1); }
.g-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 0 var(--space-2) var(--space-1); }
.g-meta h3 { font-size: var(--text-md); font-family: var(--font-ui); letter-spacing: 0; font-weight: var(--weight-semibold); }
.g-meta p { font-size: var(--text-sm); color: var(--text-3); }
.gallery-note { margin-top: var(--space-6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); color: var(--text-3); font-size: var(--text-sm); }
@media (max-width: 1080px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }

/* Principles strip */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.principles li { padding-top: var(--space-4); border-top: 2px solid var(--text); }
.principles h3 { font-size: var(--text-lg); font-family: var(--font-ui); letter-spacing: 0; }
.principles p { margin-top: var(--space-2); color: var(--text-2); font-size: var(--text-md); }
@media (max-width: 900px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .principles { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); align-items: stretch; }
.plan { padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-5); }
.plan.is-featured { border: 2px solid var(--accent); box-shadow: var(--shadow-2); position: relative; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.plan h3 { font-size: var(--text-xl); }
.price { display: flex; align-items: baseline; gap: var(--space-2); }
.price strong { font-family: var(--font-display); font-size: 44px; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.price span { color: var(--text-3); font-size: var(--text-sm); }
.plan-desc { color: var(--text-2); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); font-size: var(--text-md); }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: var(--space-2); }
.plan li .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--success); }
.plan li.muted { color: var(--text-3); }
.plan li.muted .ico { color: var(--text-3); }
.plan .btn { margin-top: auto; }
.pricing-note { margin-top: var(--space-6); display: flex; gap: var(--space-3); align-items: center; justify-content: center; text-align: center; color: var(--text-2); font-size: var(--text-md); flex-wrap: wrap; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* FAQ */
.faq { max-width: 820px; display: grid; gap: var(--space-2); }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); min-height: 56px; padding: var(--space-3) var(--space-5); font-weight: var(--weight-semibold); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; flex: none; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg) translateY(-3px); transition: transform var(--dur-base) var(--ease-standard); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:focus-visible { border-radius: var(--radius-md); }
.faq .answer { padding: 0 var(--space-5) var(--space-5); color: var(--text-2); max-width: 680px; }

/* Final CTA + footer */
.cta-band { text-align: center; padding: var(--space-20) 0; }
.cta-band h2 { font-size: var(--text-3xl); max-width: 720px; margin: 0 auto; }
.cta-band p { margin: var(--space-4) auto 0; color: var(--text-2); max-width: 560px; }
.cta-band .hero-ctas { justify-content: center; }
.site-footer { border-top: 1px solid var(--border); padding: var(--space-12) 0 var(--space-10); font-size: var(--text-sm); color: var(--text-3); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--space-8); }
.footer-grid h4 { font-family: var(--font-ui); font-size: var(--text-sm); letter-spacing: 0; color: var(--text); margin-bottom: var(--space-3); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.footer-grid a { color: var(--text-2); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.footer-grid a:hover { color: var(--text); text-decoration: underline; }
.footer-base { margin-top: var(--space-10); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---- scroll story (Three.js): sheet → chart → deck ---- */
.story { position: relative; height: 320vh; border-top: 1px solid var(--border); }
.story-stick { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: var(--space-8);
  max-width: var(--content-max); margin: 0 auto; padding: var(--header-h) var(--gutter) var(--space-8); }
.story-copy { display: grid; gap: var(--space-6); align-content: center; }
.story-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.story-steps li { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-4); border-radius: var(--radius-lg); border: 1px solid transparent; opacity: .45; transition: opacity var(--dur-base) var(--ease-standard), background var(--dur-base), border-color var(--dur-base); }
.story-steps li.is-on { opacity: 1; background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-1); }
.story-steps h3 { font-size: var(--text-lg); margin: 0 0 2px; }
.story-steps p { margin: 0; color: var(--text-2); }
.story-stage { position: relative; align-self: stretch; min-height: 0; border-radius: var(--radius-xl); overflow: hidden;
  background: radial-gradient(120% 90% at 70% 20%, var(--accent-soft), transparent 60%), var(--surface); border: 1px solid var(--border); }
.story-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.story-fallback { position: absolute; inset: 0; display: none; place-items: center; }
.story.no-3d { height: auto; }
.story.no-3d .story-stick { position: static; height: auto; padding-top: var(--space-16); }
.story.no-3d .story-stage { min-height: 260px; }
.story.no-3d .story-canvas { display: none; }
.story.no-3d .story-fallback { display: grid; }
.story.no-3d .story-steps li { opacity: 1; }
.sf-card { width: 62%; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--border-strong); box-shadow: var(--shadow-2); display: flex; align-items: flex-end; gap: 6%; padding: 8%; }
.sf-card i { flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; }
.sf-card i:nth-child(1) { height: 35%; } .sf-card i:nth-child(2) { height: 60%; } .sf-card i:nth-child(3) { height: 45%; } .sf-card i:nth-child(4) { height: 80%; } .sf-card i:nth-child(5) { height: 55%; }
@media (max-width: 860px) {
  .story-stick { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-items: stretch; gap: var(--space-4); padding-top: calc(var(--header-h) + var(--space-3)); }
  .story-steps li { padding: var(--space-3); } .story-steps p { display: none; } .story-steps li.is-on p { display: block; }
}

/* ---- hero 3D layer ---- */
.hero { position: relative; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; animation: heroFade 1.6s var(--ease-enter) .1s forwards; }
.hero-grid { position: relative; z-index: 1; }
.preview { will-change: transform; transition: transform .12s linear; }
@keyframes heroFade { to { opacity: .38; } }
@media (prefers-reduced-motion: reduce) { .hero-canvas { display: none; } .preview { transform: none !important; } }

/* ---- a little neon ---- */
:root { --neon-1: #8b7bff; --neon-2: #22d3ee; --neon-3: #f472b6; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 60%; height: 80%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--neon-1) 28%, transparent), transparent 70%), radial-gradient(closest-side at 70% 60%, color-mix(in srgb, var(--neon-2) 18%, transparent), transparent 70%); filter: blur(30px); }
.hero .btn-primary { box-shadow: 0 0 0 1px color-mix(in srgb, var(--neon-1) 60%, transparent), 0 0 24px color-mix(in srgb, var(--neon-1) 45%, transparent); }
.hero .btn-primary:hover { box-shadow: 0 0 0 1px var(--neon-1), 0 0 34px color-mix(in srgb, var(--neon-1) 70%, transparent); }
.hero .preview { box-shadow: var(--shadow-3), 0 0 0 1px color-mix(in srgb, var(--neon-2) 35%, transparent), 0 0 40px color-mix(in srgb, var(--neon-1) 25%, transparent); }
.story-stage { box-shadow: 0 0 0 1px color-mix(in srgb, var(--neon-1) 35%, transparent), 0 0 50px color-mix(in srgb, var(--neon-1) 18%, transparent); }
:root[data-theme="light"] .hero::before { opacity: .45; }
@media (prefers-reduced-motion: reduce) { .hero .btn-primary:hover { box-shadow: 0 0 0 1px var(--neon-1); } }

.gallery-more { display: flex; justify-content: center; margin-top: var(--space-8); }
.gallery-more[hidden], .gallery-more [hidden] { display: none; }

/* ---- template cards: a soft neon glows up from the bottom and the frame drifts from our blue through violet and teal ---- */
@property --gh { syntax: '<number>'; inherits: false; initial-value: 225; }
.g-card { --gh: 225; position: relative; isolation: isolate; transition: border-color .35s var(--ease-standard), box-shadow .35s var(--ease-standard), transform .35s var(--ease-standard); }
.g-card > * { position: relative; z-index: 1; }
.g-card::before { content: ""; position: absolute; inset: auto 0 0 0; height: 62%; border-radius: inherit; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .45s var(--ease-standard);
  background: radial-gradient(80% 100% at 50% 125%, hsl(var(--gh) 95% 66% / .30), transparent 72%); }
.g-card::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -1px; height: 2px; border-radius: 2px; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease-standard);
  background: linear-gradient(90deg, transparent, hsl(var(--gh) 95% 72%), transparent); box-shadow: 0 0 12px hsl(var(--gh) 95% 68% / .7); }
.g-card:hover, .g-card:focus-visible, .g-card:focus-within {
  border-color: hsl(var(--gh) 80% 68% / .55); transform: translateY(-3px);
  box-shadow: var(--shadow-2), 0 14px 36px -14px hsl(var(--gh) 95% 62% / .5), 0 0 0 1px hsl(var(--gh) 80% 68% / .22);
  animation: ghShift 7s ease-in-out infinite; }
.g-card:hover::before, .g-card:focus-visible::before, .g-card:focus-within::before,
.g-card:hover::after, .g-card:focus-visible::after, .g-card:focus-within::after { opacity: 1; }
@keyframes ghShift { 0%, 100% { --gh: 225; } 35% { --gh: 272; } 70% { --gh: 192; } }
@media (prefers-reduced-motion: reduce) { .g-card:hover, .g-card:focus-visible, .g-card:focus-within { animation: none; transform: none; } }

.g-card { cursor: pointer; }
