/* Landing page: warm ivory, sage, and Deep Slate Green, with botanical accents. */
:root {
  --ivory: #f7f5ee;
  --ivory-2: #f2f0e6;
  --sage: #e8eee3;
  --sage-2: #dce7d6;
  --card: #fffefa;
  --ink: #18201b;
  --text-primary: #18201b;
  --text-secondary: #4b5850;
  --text-muted: #687469;
  --line: #e3e5da;
  --line-strong: #cfd8c9;
  --green-deep: #173a32;
  --green-deep-hover: #0f2b24;
  --green: #2a7a4c;
  --mint: #00e963;
  --primary: #2a7a4c;
  --primary-dark: #173a32;
  --accent: #2a7a4c;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --wave-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 40' preserveAspectRatio='none'%3E%3Cg fill='black'%3E%3Crect x='0' y='14' width='4' height='12' rx='2'/%3E%3Crect x='6' y='9' width='4' height='22' rx='2'/%3E%3Crect x='12' y='4' width='4' height='32' rx='2'/%3E%3Crect x='18' y='12' width='4' height='16' rx='2'/%3E%3Crect x='24' y='7' width='4' height='26' rx='2'/%3E%3Crect x='30' y='15' width='4' height='10' rx='2'/%3E%3Crect x='36' y='10' width='4' height='20' rx='2'/%3E%3Crect x='42' y='2' width='4' height='36' rx='2'/%3E%3Crect x='48' y='11' width='4' height='18' rx='2'/%3E%3Crect x='54' y='16' width='4' height='8' rx='2'/%3E%3Crect x='60' y='6' width='4' height='28' rx='2'/%3E%3Crect x='66' y='13' width='4' height='14' rx='2'/%3E%3Crect x='72' y='8' width='4' height='24' rx='2'/%3E%3Crect x='78' y='3' width='4' height='34' rx='2'/%3E%3Crect x='84' y='12' width='4' height='16' rx='2'/%3E%3Crect x='90' y='17' width='4' height='6' rx='2'/%3E%3Crect x='96' y='9' width='4' height='22' rx='2'/%3E%3Crect x='102' y='5' width='4' height='30' rx='2'/%3E%3Crect x='108' y='13' width='4' height='14' rx='2'/%3E%3Crect x='114' y='8' width='4' height='24' rx='2'/%3E%3Crect x='120' y='15' width='4' height='10' rx='2'/%3E%3Crect x='126' y='4' width='4' height='32' rx='2'/%3E%3Crect x='132' y='10' width='4' height='20' rx='2'/%3E%3Crect x='138' y='16' width='4' height='8' rx='2'/%3E%3Crect x='144' y='7' width='4' height='26' rx='2'/%3E%3Crect x='150' y='12' width='4' height='16' rx='2'/%3E%3Crect x='156' y='2' width='4' height='36' rx='2'/%3E%3Crect x='162' y='11' width='4' height='18' rx='2'/%3E%3Crect x='168' y='15' width='4' height='10' rx='2'/%3E%3Crect x='174' y='6' width='4' height='28' rx='2'/%3E%3Crect x='180' y='12' width='4' height='16' rx='2'/%3E%3Crect x='186' y='9' width='4' height='22' rx='2'/%3E%3Crect x='192' y='4' width='4' height='32' rx='2'/%3E%3Crect x='198' y='14' width='4' height='12' rx='2'/%3E%3Crect x='204' y='10' width='4' height='20' rx='2'/%3E%3Crect x='210' y='16' width='4' height='8' rx='2'/%3E%3Crect x='216' y='7' width='4' height='26' rx='2'/%3E%3Crect x='222' y='12' width='4' height='16' rx='2'/%3E%3Crect x='228' y='15' width='4' height='10' rx='2'/%3E%3Crect x='234' y='13' width='4' height='14' rx='2'/%3E%3C/g%3E%3C/svg%3E");
}
html { scroll-behavior: smooth; }
body { background: var(--ivory); color: var(--ink); font-family: var(--font-body); }
h1, h2, h3, .section-title { font-family: var(--font-display); font-variation-settings: "SOFT" 60; color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
section { position: relative; scroll-margin-top: 76px; }

/* Shared pieces */
.kicker, .hero .kicker { margin: 0 0 14px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--green); }
.archive .kicker-dark { color: #6fe39c; }
.hero .kicker-hero { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.kicker-wave { display: inline-flex; align-items: center; gap: 2px; height: 14px; }
.kicker-wave i { width: 3px; border-radius: 2px; background: var(--green); animation: kicker-bars 1.4s var(--ease-out) infinite alternate; }
.kicker-wave i:nth-child(1) { height: 6px; animation-delay: -.2s; }
.kicker-wave i:nth-child(2) { height: 12px; animation-delay: -.6s; }
.kicker-wave i:nth-child(3) { height: 9px; animation-delay: -.4s; }
.kicker-wave i:nth-child(4) { height: 5px; animation-delay: -.9s; }
@keyframes kicker-bars { to { transform: scaleY(.45); } }
.section-title { margin: 0 0 14px; text-align: left; font-size: clamp(32px, 3.1vw, 46px); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
.section-lede { margin: 0 0 28px; max-width: 560px; font-size: 16.5px; line-height: 1.65; color: var(--text-secondary); }
.plant { position: absolute; z-index: 0; height: auto; pointer-events: none; user-select: none; }
.hand-note, .hero .hand-note { position: absolute; z-index: 3; display: flex; align-items: flex-end; gap: 8px; margin: 0; font-family: var(--font-hand); font-size: 25px; font-weight: 600; line-height: 1.05; color: var(--green-deep); }
.hand-arrow { width: 54px; height: 50px; flex: none; fill: none; stroke: var(--green-deep); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.section-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; width: 100%; height: 70px; fill: var(--ivory); }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js .reveal.in-view { opacity: 1; transform: none; }
.features-grid .reveal:nth-child(2), .pricing-grid .reveal:nth-child(2) { transition-delay: 60ms; }
.features-grid .reveal:nth-child(3), .pricing-grid .reveal:nth-child(3) { transition-delay: 120ms; }
.features-grid .reveal:nth-child(4) { transition-delay: 60ms; }
.features-grid .reveal:nth-child(5) { transition-delay: 120ms; }
.features-grid .reveal:nth-child(6) { transition-delay: 180ms; }

/* Navigation */
.nav { height: 76px; padding: 10px clamp(20px, 4vw, 64px); background: rgba(247, 245, 238, .9); border-bottom: 1px solid rgba(207, 216, 201, .6); backdrop-filter: blur(12px); }
.nav-brand { text-decoration: none; }
.nav-brand img { height: 48px; }
.nav-brand-text { font-family: var(--font-body); font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.nav-center { display: flex; align-items: center; gap: 32px; margin-right: auto; margin-left: 52px; }
.nav-center a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; transition: color .15s ease; }
.nav-center a:hover { color: var(--green); }
.nav-dropdown svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.nav-actions { gap: 18px; }
.nav-link { font-size: 14px; font-weight: 600; color: var(--ink); }
.nav-link:hover { background: transparent; color: var(--green); transform: none; }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 8px; background: var(--green-deep); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 6px 16px rgba(23, 58, 50, .18); transition: background .15s ease, transform .16s var(--ease-out); }
.nav-cta svg { width: 16px; height: 16px; }
.nav-cta:hover { background: var(--green-deep-hover); transform: none; box-shadow: 0 6px 16px rgba(23, 58, 50, .18); }
.nav-cta:active, .download-btn:active, .pricing-cta:active, .archive-cta:active, .ed-btn:active { transform: scale(.97); }

/* Hero */
/* The sunlit scene is scaled to ~80% width and anchored bottom right, so the laptop sits back
   in the room (like the reference). Its left edge fades into a backdrop sampled from the wall and desk. */
.hero { overflow: hidden; height: calc(76px + max(31vw, 470px)); padding: 0; text-align: left; background: #fbf4e8; }
.hero-scene { position: absolute; inset: 76px 0 0; z-index: 0; overflow: hidden; background: linear-gradient(180deg, #f9eee0 0%, #fdf9f0 25%, #fefbf4 45%, #fcf4ea 72%, #f6e4cc 79%, #f8ead6 90%, #e8d3bf 100%); }
.hero-scene-media { position: absolute; right: 0; bottom: 0; height: 100%; aspect-ratio: 8 / 3; }
.hero-scene-media picture { display: contents; }
.hero-scene-photo { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.hero-plant { position: absolute; left: -70px; bottom: -40px; z-index: 1; width: 340px; height: 340px; object-fit: contain; filter: blur(1.5px) saturate(.9); opacity: .92; pointer-events: none; }
.hero-inner { --gutter: max(clamp(20px, 4vw, 64px), calc((100% - 1320px) / 2)); position: relative; z-index: 2; height: 100%; display: flex; align-items: center; padding: 76px var(--gutter) 0; }
.hero-copy { position: relative; z-index: 2; width: min(600px, 47vw); }
.hero-title { position: relative; }
.hero-wave { position: absolute; left: -58px; top: 4%; bottom: 4%; z-index: -1; display: flex; align-items: center; gap: 5px; }
.hero-wave span { width: 4px; border-radius: 4px; background: linear-gradient(180deg, rgba(42, 122, 76, .08), rgba(42, 122, 76, .55), rgba(42, 122, 76, .08)); transform-origin: center; animation: hero-bars 2.4s ease-in-out infinite alternate; }
.hero-wave span:nth-child(1) { height: 24%; animation-delay: -.3s; } .hero-wave span:nth-child(2) { height: 44%; animation-delay: -1.1s; }
.hero-wave span:nth-child(3) { height: 66%; animation-delay: -.7s; } .hero-wave span:nth-child(4) { height: 52%; animation-delay: -1.6s; }
.hero-wave span:nth-child(5) { height: 88%; animation-delay: -.2s; } .hero-wave span:nth-child(6) { height: 100%; animation-delay: -1.3s; }
.hero-wave span:nth-child(7) { height: 74%; animation-delay: -.9s; } .hero-wave span:nth-child(8) { height: 58%; animation-delay: -1.8s; }
.hero-wave span:nth-child(9) { height: 80%; animation-delay: -.5s; } .hero-wave span:nth-child(10) { height: 46%; animation-delay: -1.4s; }
.hero-wave span:nth-child(11) { height: 28%; animation-delay: -.8s; }
@keyframes hero-bars { to { transform: scaleY(.55); } }
.hero h1 { margin: 0 0 24px; font-size: clamp(44px, 4vw, 64px); text-wrap: balance; font-weight: 600; line-height: 1.02; letter-spacing: -.025em; }
.hero h1 em { font-style: normal; color: var(--green); }
.h1-line { display: block; white-space: nowrap; }
.hero .hero-lede { max-width: 590px; margin: 0 0 30px; font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.65; color: var(--text-secondary); }
.download-section { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 14px; margin: 0 0 20px; }
.download-btn, .download-btn.recommended { flex: 0 1 270px; min-width: 0; min-height: 66px; display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-radius: 10px; border: 1px solid var(--green-deep); background: var(--green-deep); color: #fff; text-decoration: none; box-shadow: 0 10px 24px rgba(23, 58, 50, .16); transition: background .15s ease, transform .16s var(--ease-out); }
.download-btn:hover, .download-btn.recommended:hover { background: var(--green-deep-hover); color: #fff; transform: none; box-shadow: 0 10px 24px rgba(23, 58, 50, .16); }
.download-btn-light, .download-btn-light.recommended { background: var(--card); color: var(--ink); border-color: var(--line-strong); box-shadow: 0 6px 18px rgba(24, 32, 27, .06); }
.download-btn-light:hover, .download-btn-light.recommended:hover { background: #fff; color: var(--ink); }
.download-icon { width: 28px; height: 28px; flex: none; }
.download-icon img { filter: brightness(0) invert(1); }
.download-btn-light .download-icon img { filter: none; }
.download-info strong { display: block; font-size: 14.5px; font-weight: 600; }
.download-info small { display: block; margin-top: 2px; font-size: 11.5px; white-space: nowrap; opacity: .78; }
.hero .system-req { position: relative; max-width: 600px; margin: 0; padding: 0 0 0 26px; background: none; border: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-secondary); text-align: left; }
.system-req::before { content: ""; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; background: var(--green-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E") center/contain no-repeat; }
.system-req strong { color: var(--ink); }
.hero .hand-note-hero { left: calc(100% - max(31vw, 470px) * 2.667 * .64); top: calc(76px + max(31vw, 470px) * .1); transform: rotate(-5deg); font-size: 23px; }
.hand-note-hero .hand-arrow { order: 2; margin: 0 0 -34px 4px; transform: scaleX(-1) rotate(-10deg); }

/* Features */
.features { padding: 70px clamp(20px, 4vw, 64px) 90px; background: var(--ivory); }
.section-head { max-width: 1320px; margin: 0 auto 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.section-head .section-title { max-width: 620px; margin: 0; }
.section-head > p { max-width: 430px; margin: 0; font-size: 16px; line-height: 1.65; color: var(--text-secondary); }
.features-grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 18px; padding: 26px 26px 58px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(24, 32, 27, .04), 0 10px 30px -18px rgba(24, 32, 27, .18); transition: opacity .6s var(--ease-out), border-color .2s ease, box-shadow .2s ease, transform .6s var(--ease-out); }
.feature-icon { width: 48px; height: 48px; margin: 0; display: grid; place-items: center; border-radius: 12px; background: var(--sage); color: var(--green-deep); font-size: 0; }
.feature-icon svg { width: 23px; height: 23px; stroke-width: 1.8; }
.feature-card h3 { margin: 10px 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.feature-card p { font-size: 14px; line-height: 1.65; color: var(--text-secondary); }
.feature-arrow { position: absolute; right: 22px; bottom: 20px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s var(--ease-out); }
.feature-arrow svg { width: 15px; height: 15px; }
@media (hover: hover) and (pointer: fine) {
  .feature-card.in-view:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 1px 2px rgba(24, 32, 27, .04), 0 18px 40px -20px rgba(24, 32, 27, .28); transition-delay: 0ms; }
  .feature-card:hover .feature-arrow { background: var(--green-deep); border-color: var(--green-deep); color: #fff; transform: translateX(2px); }
}

/* Audio Editor */
.editor-showcase { overflow: hidden; padding: 96px clamp(20px, 4vw, 64px) 110px; background: radial-gradient(ellipse 46% 60% at 18% 55%, rgba(205, 222, 196, .55), transparent 72%), linear-gradient(180deg, #f6f2e8 0%, #f3efe4 100%); }
.editor-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 80px; align-items: center; }
.editor-stage { position: relative; }
.plant-editor-a { left: -190px; bottom: -150px; width: 380px; transform: rotate(18deg) scaleX(-1); }
.plant-editor-b { right: -70px; top: -150px; width: 300px; transform: rotate(-14deg); opacity: .85; }
.editor-demo { position: relative; z-index: 2; padding: 20px; border-radius: 13px; background: #0e1611; border: 1px solid #1c3226; box-shadow: 0 28px 54px -25px rgba(23, 58, 50, .42); color: #f1f5f2; }
.ed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid #1c3226; }
.ed-title { display: flex; align-items: center; gap: 12px; }
.ed-title img { width: 34px; height: 34px; object-fit: contain; }
.ed-title strong { display: block; font-size: 16px; font-weight: 700; }
.ed-title small { font-size: 12px; color: #9fb2a6; }
.ed-head-right { display: flex; align-items: center; gap: 14px; }
.ed-version-box { padding: 6px 12px; border: 1px solid #2c4b3a; border-radius: 8px; background: #131d17; font-size: 12.5px; font-weight: 700; color: #f1f5f2; font-variant-numeric: tabular-nums; }
.ed-generating { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #0a110c; border: 1px solid #1d5b3b; }
.ed-generating[hidden] { display: none; }
.ed-gen-copy { display: flex; justify-content: space-between; margin-bottom: 9px; font-size: 13px; color: #cfe0d5; font-variant-numeric: tabular-nums; }
.ed-gen-copy span:last-child { font-weight: 700; color: #f1f5f2; }
.ed-gen-bar { height: 6px; overflow: hidden; border-radius: 99px; background: #1c3226; }
.ed-gen-bar span { display: block; height: 100%; border-radius: inherit; background: #00ff6a; transform: scaleX(0); transform-origin: left center; }
.ed-history { display: flex; gap: 14px; margin: 0; font-size: 12.5px; font-weight: 600; color: #7f8d84; }
.ed-history span { padding-bottom: 3px; border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease; }
.ed-history span.current { color: #f1f5f2; border-bottom-color: #00ff6a; }
.ed-history span[hidden] { display: none; }
.editor-track { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 8px; }
.editor-section { position: relative; overflow: hidden; padding: 10px 10px 8px; border-radius: 10px; background: #0a110c; border: 1px solid #1c3226; transition: border-color .25s ease, background .25s ease; }
.editor-section b { display: block; margin-bottom: 8px; font-size: 11.5px; color: #b7c0b9; }
.editor-section small { display: block; margin-top: 6px; font-size: 10.5px; color: #6f7f75; }
.editor-section.target { border-color: #1d5b3b; }
.editor-demo[data-state="generating"] .target, .editor-demo[data-state="ready"] .target, .editor-demo[data-state="accepted"] .target { border-color: #00ff6a; background: #0f261f; }
.editor-section em { position: absolute; top: 8px; right: 8px; padding: 2px 7px; border-radius: 4px; background: #00ff6a; color: #06130a; font-size: 10.5px; font-weight: 700; font-style: normal; }
.editor-section em[hidden] { display: none; }
.ed-progress { position: absolute; left: 0; bottom: 0; width: 0; height: 3px; background: #00ff6a; }
.editor-demo[data-state="generating"] .ed-progress { animation: ed-progress 1.6s ease-in-out forwards; }
@keyframes ed-progress { to { width: 100%; } }
.wave, .mini-wave { display: block; height: 42px; background: #2d5a44; -webkit-mask: var(--wave-mask) center/100% 100% no-repeat; mask: var(--wave-mask) center/100% 100% no-repeat; transition: background-color .25s ease; }
.editor-demo[data-state="ready"] .target .wave, .editor-demo[data-state="accepted"] .target .wave,
.candidate .mini-wave, .editor-demo[data-state="accepted"] #ed-compare > div:first-child .mini-wave { background: #00ff6a; }
.ed-script { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #0a110c; border: 1px dashed #2c4b3a; }
.ed-label { display: block; margin-bottom: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9fb2a6; }
.ed-script p { margin: 0; font-size: 14.5px; line-height: 1.55; color: #e6ece8; }
.ed-script del { color: #ff8a8a; text-decoration-thickness: 2px; }
.ed-script ins { padding: 0 4px; border-radius: 4px; background: rgba(0, 255, 106, .18); color: #6dffaa; text-decoration: none; }
.editor-demo[data-state="accepted"] .ed-script del,
.editor-demo[data-state="kept"] .ed-script ins,
.editor-demo[data-state="restored"] .ed-script ins { display: none; }
.editor-demo[data-state="accepted"] .ed-script ins { padding: 0; background: none; color: inherit; }
.editor-demo[data-state="kept"] .ed-script del,
.editor-demo[data-state="restored"] .ed-script del { color: inherit; text-decoration: none; }
.editor-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.editor-compare > div { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 12px; border-radius: 10px; background: #0a110c; border: 1px solid #1c3226; }
.editor-compare > div[hidden] { display: none; }
.editor-compare small { grid-column: 1 / -1; font-size: 11.5px; color: #b7c0b9; }
.editor-compare .mini-wave { height: 28px; }
.editor-compare .candidate { border-color: #1d5b3b; animation: fade-up .3s var(--ease-out); }
@keyframes fade-up { from { opacity: 0; transform: translateY(4px); } }
.ed-time { font-size: 11.5px; color: #9fb2a6; font-variant-numeric: tabular-nums; }
.ed-status { min-height: 44px; margin: 14px 0 0; font-size: 14px; line-height: 1.55; color: #cfe0d5; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 10px; min-height: 42px; margin-top: 4px; }
.ed-btn { padding: 11px 18px; border-radius: 9px; border: 1px solid #2c4b3a; background: #131d17; color: #f1f5f2; font: 700 13.5px var(--font-body); cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .16s var(--ease-out); }
.ed-btn:hover { border-color: #00ff6a; }
.ed-btn.primary { background: #00ff6a; border-color: #00ff6a; color: #06130a; box-shadow: 0 8px 20px rgba(0, 255, 106, .2); }
.ed-btn.primary:hover { background: #00d75b; }
.ed-btn.ghost { background: transparent; }
.ed-btn[hidden] { display: none; }
.ed-btn:focus-visible { outline: 2px solid #00ff6a; outline-offset: 3px; }
.ed-caption { margin: 14px 0 0; font-size: 11.5px; color: #6f7f75; }
.hand-note-editor { right: 4px; bottom: -78px; transform: rotate(-5deg); }
.hand-note-editor .hand-arrow { order: -1; margin-bottom: 22px; transform: scaleX(-1) rotate(-8deg); }
.numbered { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.numbered li { display: flex; align-items: flex-start; gap: 17px; padding: 10px 0; }
.numbered li > span { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; background: #e1ede0; color: var(--green-deep); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.numbered h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.numbered p { margin: 0; font-size: 14px; line-height: 1.52; color: var(--text-secondary); }

/* Product tour */
.tour { overflow: hidden; padding: 100px clamp(20px, 4vw, 64px) 120px; background: var(--ivory); }
.tour-shell { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); gap: 64px; align-items: center; }
.tour-tabs { display: flex; flex-direction: column; border-left: 1px solid var(--line-strong); }
.tour-tab { position: relative; display: flex; align-items: flex-start; gap: 20px; padding: 14px 16px 14px 24px; border: 0; border-radius: 0 10px 10px 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background .2s ease; }
.tour-tab::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: transparent; transition: background .2s ease; }
.tour-tab.active::before { background: var(--sage-2); }
.tour-tab::after { content: ""; position: absolute; left: -1px; top: 0; width: 2px; height: 0; background: var(--green); }
.tour-tab.active::after { height: 100%; }
.tour-shell.rotating .tour-tab.active::after { height: 0; animation: tour-progress var(--rotate-ms, 6000ms) linear forwards; }
@keyframes tour-progress { to { height: 100%; } }
.tour-num { flex: none; width: 26px; padding-top: 2px; font-size: 13px; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.tour-tab.active .tour-num { color: var(--green); }
.tour-tab strong { display: block; margin-bottom: 3px; font-family: var(--font-display); font-variation-settings: "SOFT" 60; font-size: 19px; font-weight: 600; color: var(--text-secondary); }
.tour-tab.active strong { color: var(--ink); }
.tour-tab small { display: block; font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }
@media (hover: hover) and (pointer: fine) { .tour-tab:hover { background: rgba(220, 231, 214, .45); } }
.tour-stage { position: relative; }
.plant-tour { left: -150px; bottom: -110px; width: 280px; }
.tour-frame { position: relative; z-index: 2; overflow: hidden; border-radius: 14px; background: #fff; border: 1px solid var(--line-strong); box-shadow: 0 1px 2px rgba(24, 32, 27, .05), 0 40px 80px -30px rgba(23, 58, 50, .35); }
.tour-frame .browser-dots { position: absolute; top: 10px; left: 12px; z-index: 1; display: flex; gap: 6px; }
.tour-frame .browser-dots span { width: 8px; height: 8px; border-radius: 50%; background: #ff6b6b; }
.tour-frame .browser-dots span:nth-child(2) { background: #f5c84c; }
.tour-frame .browser-dots span:nth-child(3) { background: #3ddc84; }
.tour-frame img { display: block; width: 100%; height: auto; transition: opacity .16s ease; }
.tour-frame img.swapping { opacity: 0; }
.hand-note-tour { right: -10px; bottom: -86px; transform: rotate(-6deg); }
.hand-note-tour .hand-arrow { order: -1; margin-bottom: 26px; transform: rotate(-100deg); }

/* Pricing */
.pricing { overflow: hidden; padding: 96px clamp(20px, 4vw, 64px) 72px; background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-2) 100%); text-align: left; }
.plant-pricing { right: -120px; top: 40px; width: 360px; transform: scaleX(-1) rotate(-12deg); }
.pricing-head { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto 36px; }
.pricing-head .section-title { max-width: 720px; margin: 0; }
.pricing-grid { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; text-align: left; }
.pricing-card { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(24, 32, 27, .04), 0 14px 34px -22px rgba(24, 32, 27, .22); }
.pricing-card:hover { box-shadow: 0 1px 2px rgba(24, 32, 27, .04), 0 14px 34px -22px rgba(24, 32, 27, .22); }
.pricing-card.featured { border: 1.5px solid var(--green); box-shadow: 0 0 0 4px rgba(42, 122, 76, .08), 0 24px 50px -26px rgba(23, 58, 50, .4); }
.pricing-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; font-size: 22px; font-weight: 600; }
.pricing-flag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--green); }
.pricing-flag svg { width: 18px; height: 18px; }
.pricing-price { margin: 0 0 22px; font-family: var(--font-display); font-variation-settings: "SOFT" 60; font-size: 42px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.pricing-card.featured .pricing-price { color: var(--green); }
.pricing-price span { margin-left: 6px; font-family: var(--font-body); font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--text-muted); }
.pricing-for { margin: -10px 0 18px; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.pricing-benefits { flex: 1; margin: 0 0 26px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pricing-benefits li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.pricing-cta { width: 100%; padding: 13px; border: 1px solid var(--green-deep); border-radius: 9px; background: var(--green-deep); color: #fff; font: 600 15px var(--font-body); cursor: pointer; transition: background .15s ease, transform .16s var(--ease-out); }
.pricing-cta:hover { background: var(--green-deep-hover); }
.pricing-cta-soft { background: var(--sage); border-color: var(--sage-2); color: var(--green-deep); }
.pricing-cta-soft:hover { background: var(--sage-2); }
.pricing-cta-outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.pricing-cta-outline:hover { background: var(--ivory); }
.pricing-trial { margin-top: 12px; padding: 0; background: none; border: 0; color: var(--green); font: 600 13.5px var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pricing-trial-note { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-muted); text-align: center; }
.pricing-compare { position: relative; z-index: 1; max-width: 1320px; margin: 26px auto 0; }
.pricing-compare summary { display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--green-deep); text-decoration: underline; text-underline-offset: 4px; }
.pricing-compare summary::-webkit-details-marker { display: none; }
.pricing-compare summary::after { content: ""; width: 8px; height: 8px; margin-top: -4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease-out); }
.pricing-compare[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.pricing-table-wrap { margin-top: 16px; overflow-x: auto; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.pricing-table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13.5px; }
.pricing-table-wrap th, .pricing-table-wrap td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.pricing-table-wrap thead th { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.pricing-table-wrap tbody th { font-weight: 600; color: var(--ink); }
.pricing-table-wrap td { color: var(--text-secondary); }
.pricing-table-wrap p { margin: 0; padding: 12px 16px; font-size: 12.5px; line-height: 1.6; color: var(--text-muted); }
.pricing-table-wrap a { color: var(--green-deep); }

/* Searchable Library (closing) */
.archive { overflow: hidden; padding: 96px clamp(20px, 4vw, 64px); background: radial-gradient(ellipse 60% 70% at 85% 30%, rgba(0, 233, 99, .12), transparent 70%), #0b1813; color: #eef4f0; border-bottom: 1px solid #1d2621; }
.plant-archive { right: -110px; bottom: -150px; width: 400px; transform: rotate(-20deg); opacity: .24; }
.archive-inner { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.archive h2 { margin: 0 0 14px; font-size: clamp(32px, 3vw, 44px); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; color: #f4f8f5; }
.archive-copy > p { margin: 0 0 28px; font-size: 16.5px; line-height: 1.65; color: #b4c4ba; }
.archive-steps { position: relative; display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.archive-steps::before { content: ""; position: absolute; left: 21px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(#00e963, rgba(0, 233, 99, .15)); }
.archive-steps li { position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 10px 0; }
.archive-steps li > span { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #0f2a1d; border: 1px solid #1d5b3b; color: #3dff8f; }
.archive-steps svg { width: 20px; height: 20px; }
.archive-steps strong { display: block; margin: 2px 0 3px; font-size: 15.5px; }
.archive-steps small { font-size: 13.5px; line-height: 1.5; color: #9fb2a6; }
.archive-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 12px 20px; border-radius: 9px; background: var(--mint); color: #06160c; font-size: 14.5px; font-weight: 700; text-decoration: none; box-shadow: 0 8px 20px rgba(0, 201, 90, .25); transition: background .15s ease, transform .16s var(--ease-out); }
.archive-cta:hover { background: #00c857; }
.archive-cta svg { width: 17px; height: 17px; }
.demo-window { padding: 18px; border-radius: 16px; background: #0e1611; border: 1px solid #1c3226; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.demo-toolbar { display: flex; flex-wrap: wrap; gap: 4px; width: max-content; max-width: 100%; margin-bottom: 12px; padding: 4px; border-radius: 10px; background: #0a110c; border: 1px solid #1c3226; }
.demo-toolbar span { padding: 7px 14px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: #b7c0b9; }
.demo-toolbar span.active { background: #00ff6a; color: #06130a; }
.demo-search { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 0 14px; border: 1px solid #2c4b3a; border-radius: 10px; background: #0a110c; }
.demo-search svg { width: 18px; height: 18px; flex: none; color: #c9d3cc; }
.demo-search input { flex: 1; height: 46px; border: 0; outline: 0; background: transparent; color: #f1f5f2; font: 500 14.5px var(--font-body); }
.demo-search input::placeholder { color: #7f8d84; }
.demo-search:focus-within { border-color: #00ff6a; box-shadow: 0 0 0 3px rgba(0, 255, 106, .12); }
.demo-list { min-height: 300px; margin: 0; padding: 0; list-style: none; }
.demo-list li { display: flex; align-items: flex-start; gap: 14px; padding: 12px 6px; border-top: 1px solid #1c3226; animation: fade-up .25s var(--ease-out); }
.demo-list li:first-child { border-top: 0; }
.demo-list li[hidden] { display: none; }
.demo-play { position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; background: #0f261f; }
.demo-play::after { content: ""; position: absolute; left: 14px; top: 11px; border-left: 11px solid #00ff6a; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.demo-list strong { display: block; font-size: 14.5px; color: #f1f5f2; }
.demo-list small { display: block; margin-top: 2px; font-size: 12.5px; color: #9fb2a6; }
.demo-list em { display: block; margin-top: 5px; font-size: 13px; font-style: normal; color: #c8d3cc; }
.demo-list mark { padding: 0 2px; border-radius: 3px; background: rgba(0, 255, 106, .22); color: #6dffaa; }
.demo-empty { padding: 30px 6px; font-size: 13.5px; text-align: center; color: #9fb2a6; }
.demo-caption { margin: 10px 0 0; font-size: 11.5px; text-align: right; color: #6f7f75; }

/* FAQ */
.faq { padding: 96px clamp(20px, 4vw, 64px); background: var(--ivory); }
.faq-inner { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq-head .section-title { margin-bottom: 14px; }
.faq-head > p:last-child { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text-secondary); }
.faq-head a { color: var(--green-deep); text-underline-offset: 3px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 2px; list-style: none; cursor: pointer; font-size: 16.5px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 9px; height: 9px; margin: -5px 6px 0 0; border-right: 1.75px solid var(--green); border-bottom: 1.75px solid var(--green); transform: rotate(45deg); transition: transform .2s var(--ease-out); }
.faq-item[open] summary::after { margin-top: 5px; transform: rotate(-135deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.faq-item p { max-width: 68ch; margin: -4px 0 0; padding: 0 2px 22px; font-size: 15px; line-height: 1.65; color: var(--text-secondary); }

/* Footer */
.footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px 36px; padding: 28px clamp(20px, 4vw, 64px) 22px; background: #0a0f0c; color: #fff; text-align: left; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin: 0; }
.footer-logo img { width: auto; height: 50px; filter: none; }
.footer-logo strong { display: block; font-size: 16.5px; }
.footer-logo span { display: block; font-size: 12px; color: #9fb2a6; }
.footer-links { justify-content: center; gap: 24px; margin: 0; }
.footer-links a { color: #e6ece8; font-size: 13px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #1b231e; color: #fff; transition: background .2s ease; }
.footer-social a:hover { background: #244333; }
.footer-social svg { width: 17px; height: 17px; }
.footer-copyright { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid #1d2621; font-size: 12px; color: #9fb2a6; }
.footer-copyright p { margin: 0; }
.footer-copyright a { color: var(--mint); }
.footer-tagline { color: #c8d5cc; }
.footer-preferred { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; font-size: 13px; color: #c8d5cc; }
.footer-preferred-fallback { display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid #2c4b3a; border-radius: 999px; color: #e6ece8; font-size: 13px; text-decoration: none; }
.footer-preferred-fallback:hover { border-color: var(--mint); color: #fff; }

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: none; transition: opacity .3s ease; }
  .kicker-wave i, .hero-wave span, .demo-list li, .editor-compare .candidate { animation: none !important; }
  .editor-demo[data-state="generating"] .ed-progress { animation: none; width: 100%; }
  .tour-shell.rotating .tour-tab.active::after { animation: none; height: 100%; }
  .tour-frame img { transition: none; }
}

/* Responsive */
@media (max-width: 1180px) {
  .nav-center { gap: 20px; margin-left: 28px; }
  .editor-grid, .tour-shell { gap: 48px; }
}
@media (min-width: 1241px) and (max-width: 1350px) {
  .hero .hand-note-hero { display: none; }
}
@media (max-width: 1240px) {
  .hero { height: auto; }
  .hero-scene { inset: 0; background: #f6eee2; }
  .hero-scene-media { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; transform: none; left: 0; top: 0; }
  .hero-scene-photo { object-fit: cover; object-position: 78% 100%; -webkit-mask-image: none; mask-image: none; }
  .hero-plant, .hero .hand-note-hero { display: none; }
  .hero-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(250, 244, 233, .55) 0%, rgba(250, 244, 233, .35) 45%, transparent 68%); pointer-events: none; }
  .hero-inner { padding: 136px var(--gutter) clamp(190px, 30vw, 300px); }
  .hero-copy { width: min(640px, 100%); }
}
@media (max-width: 1024px) {
  .features-grid, .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* minmax(0, …) lets the column shrink below wide children such as the demo toolbar. */
  .editor-grid, .tour-shell, .archive-inner, .faq-inner { grid-template-columns: minmax(0, 1fr); }
  .faq-inner { gap: 28px; }
  .editor-copy { order: -1; }
  .hand-note-editor, .hand-note-tour { display: none; }
  .footer { grid-template-columns: 1fr auto; }
  .footer-links { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; justify-content: flex-start; }
}
@media (max-width: 860px) {
  .nav-center { display: none; }
  .hero-wave { left: -14px; opacity: .55; }
  .section-head { display: block; }
  .section-head .section-title { margin-bottom: 14px; }
  .features-grid, .pricing-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .nav { height: 64px; }
  .nav-brand img { height: 38px; }
  .nav-brand-text { font-size: 16px; }
  .nav-link { display: none; }
  .nav-brand-text { display: inline; }
  .nav-actions { flex: 0 0 auto; margin-left: auto; }
  .nav-cta { flex: 0 0 auto; padding: 9px 14px; font-size: 13px; }
  .hero h1 { font-size: clamp(30px, 8.7vw, 40px); }
  .hero-scene-photo { object-position: 58% 100%; }
  .hero-inner { --gutter: 16px; padding-top: 104px; padding-bottom: 64px; }
  /* Taller photo anchored at the bottom: the desk sits behind the download buttons
     instead of filling an empty band below them. */
  .hero-scene-media { top: auto; bottom: 0; height: 150%; }
  .hero-scene::after { background: linear-gradient(180deg, rgba(250, 244, 233, .86) 0%, rgba(250, 244, 233, .66) 34%, rgba(250, 244, 233, 0) 50%); }
  .hero .system-req { display: inline-block; padding: 7px 12px 7px 36px; border-radius: 8px; background: rgba(251, 246, 238, .84); }
  .hero .system-req::before { left: 11px; top: 9px; }
  .download-btn, .download-btn.recommended { flex: 1 1 100%; }
  .features, .editor-showcase, .tour, .pricing, .archive, .faq { padding: 64px 16px; }
  .faq-item summary { font-size: 15.5px; }
  .editor-demo { padding: 16px; }
  .ed-history { display: none; }
  .editor-track { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .editor-section { padding: 8px 7px 6px; }
  .editor-section .wave { height: 30px; }
  .editor-section em { position: static; display: inline-block; margin-top: 6px; font-size: 9.5px; }
  .editor-section small { display: none; }
  .editor-compare { grid-template-columns: 1fr; }
  .plant { opacity: .35; }
  .plant-editor-b, .plant-tour { display: none; }
  .footer { grid-template-columns: minmax(0, 1fr); }
  .footer-links { grid-row: auto; }
  .footer-copyright { display: block; }
}
