/* Harmovio: illuminated hardware, quiet black surfaces, purposeful color. */
:root{--bg:#020303;--surface:#0b0d10;--line:#ffffff14;--muted:#969ba4;--accent:#bba1ec;--chapter-space:100px}
body{background:var(--bg)}
.header{background:#020303e8;border-bottom-color:#ffffff0c}
.header.is-scrolled{background:#080a0ce8}
.brand img{border-radius:0}
.button,.header .nav-download,.hero-stage .actions .button{background:#f5f5f7;background-image:linear-gradient(#fff,#ececf0);color:#111216;border:1px solid #ffffff80;border-radius:11px;box-shadow:inset 0 1px #fff,0 3px 12px #0005;gap:10px}
.button:hover,.header .nav-download:hover{background:#fff;box-shadow:0 5px 24px #ffffff15;transform:translateY(-2px)}
.hero-stage .actions .hero-learn,.free-plan .button{background:#ffffff04;color:#e5e5eb;border-color:#ffffff30;box-shadow:inset 0 1px #ffffff08}
.hero-stage{position:relative;isolation:isolate;grid-template-columns:minmax(0,.85fr) minmax(0,1.4fr);gap:48px;min-height:650px;overflow:hidden}
.hero-stage:before{content:'';position:absolute;z-index:-1;inset:-15% -5% 0 25%;background:conic-gradient(from 163deg at 52% 0%,transparent 0deg,#a1b4c018 12deg,transparent 23deg,#c5d0da12 32deg,transparent 46deg);filter:blur(22px);pointer-events:none}
.hero-stage h1.hero-direct{font-size:clamp(46px,4.6vw,76px);letter-spacing:-3px}
.hero-stage .hero-copy{font-size:17px;line-height:1.7;color:#afb2ba;max-width:370px}
.hero-stage .download-context{color:#80858e;font-size:11px;max-width:360px}
.hero-stage .rendered-mac{position:relative;margin:0;width:100%;filter:drop-shadow(0 0 24px #a8bac214)}
.hero-stage .mac-film{width:100%;aspect-ratio:1.85;mix-blend-mode:normal;mask-image:none;-webkit-mask-image:none;border:1px solid #aeb8c35c;border-radius:13px;box-shadow:0 -1px 1px #ffffff66,0 -7px 35px #becdd412;background:#050608}
.hero-stage .mac-film>img{width:106%;max-width:none;height:auto;object-fit:initial;transform:none;margin-left:-3%;margin-top:-12.7%}
.mac-pending .mac-film>img{opacity:1}
#mix,#academy,#workspace,#pricing,#faq{scroll-margin-top:100px}
#mix .section-top{text-align:center;display:block;margin-bottom:24px}
#mix h2{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap}
#mix .ai-handwriting{width:330px;margin:0}
#mix .mode-tabs{width:max-content;max-width:100%;margin:0 auto;padding:5px;background:#101115;border:1px solid #ffffff18;border-radius:13px;gap:5px}
#mix .mode-tabs button{padding:10px 24px;min-width:0;border:0;border-radius:9px;background:transparent;color:#949aa5}
#mix .mode-tabs button[aria-selected=true]{background:linear-gradient(#bda3ec30,#bda3ec16);color:#d5baff;box-shadow:inset 0 0 0 1px #bba1ec55}
#mix .mode-tabs:after{display:none}
#mix .mode-panel{display:flex;flex-direction:column;gap:30px;margin-top:28px;min-height:0}
#mix .mode-copy{max-width:550px;text-align:center;padding:0}
#mix .mode-copy h3{font-size:24px;margin-bottom:10px}
#mix .mode-copy p{font-size:16px;margin:0;color:var(--muted)}
#mix .mode-visual{width:100%;aspect-ratio:1.95;overflow:hidden;border:1px solid #b0bbc044;border-radius:14px;box-shadow:0 -1px 1px #ffffff50,0 -12px 45px #bacbd00c}
#mix .mode-visual img,#mix .mode-panel[data-current-mode] .mode-visual img{width:106%;max-width:none;height:auto;transform:none;filter:none;margin-left:-3%;margin-top:-12.7%}
#academy{position:relative}
#academy .section-top{max-width:720px}
#academy .academy-visual{height:auto;aspect-ratio:1.74;border:1px solid #ffffff20;border-radius:14px;background:#000;box-shadow:0 -1px #ffffff30,0 -20px 80px #b7c6d00a}
#academy .academy-visual img,.motion-enabled #academy .academy-visual:hover>img{width:100%;height:100%;object-fit:contain;transform:none;object-position:center}
#academy .three-columns{margin-top:34px;text-align:left}
#academy .three-columns h3{font-size:17px;font-weight:550}
#academy .three-columns p{color:var(--muted)}
#workspace{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:56px;align-items:center}
#workspace .workspace-image{aspect-ratio:1.55;overflow:hidden;border-radius:14px;border:1px solid #ffffff26;box-shadow:0 -1px #ffffff35}
#workspace .workspace-image img,#workspace .workspace-image:hover img{width:100%;height:auto;max-width:none;transform:none;margin-top:-12.7%}
#workspace .workspace-copy>p{font-size:16px;line-height:1.8;color:var(--muted)}
#pricing .pricing-plans{gap:20px;border:0}
#pricing .price-card{padding:32px;border:1px solid #ffffff20;border-radius:16px;background:linear-gradient(145deg,#14161b70,#050607);box-shadow:inset 0 1px #ffffff08}
#pricing .price-card+.price-card{border-left:1px solid #bba1ec55}
#pricing .paid-plan{background:radial-gradient(ellipse at 100% 0,#bba1ec12,transparent 65%),#07080a}
#pricing .price-top h3{font-size:20px}
#faq details{border-color:#ffffff16}
#faq .faq-toggle{border-radius:8px;background:#ffffff05;border-color:#ffffff20}
.site-footer{border-color:#ffffff12;background:#020303}
.document-page{background:radial-gradient(ellipse at 50% 0,#bccbd00c,transparent 55%),#020303}
@media(min-width:751px) and (max-height:750px){.hero-stage{min-height:560px}.hero-stage h1.hero-direct{font-size:48px}.hero-stage .hero-copy{font-size:15px}}
@media(max-width:750px){
.hero-stage{grid-template-columns:1fr;gap:30px;height:auto;min-height:calc(100svh - 104px);padding:40px 24px 74px}
.hero-stage:before{inset:0 -40% 0 -40%}
.hero-stage .hero-stage-copy{grid-column:1;grid-row:1}
.hero-stage .rendered-mac{grid-column:1;grid-row:2;max-width:560px}
.hero-stage h1.hero-direct{font-size:48px;letter-spacing:-2px}
.hero-stage .hero-copy{font-size:15px}
.hero-stage .download-context{margin:0 auto 18px}
#mix,#academy,#workspace,#pricing,#faq{padding-left:24px;padding-right:24px;scroll-margin-top:125px}
#mix h2{gap:0}#mix .ai-handwriting{width:265px}
#mix .mode-tabs button{padding:9px 18px}
#mix .mode-copy h3{font-size:21px}
#mix .mode-visual{aspect-ratio:1.35}
#mix .mode-visual img,#mix .mode-panel[data-current-mode] .mode-visual img{width:145%;margin-left:-22.5%;margin-top:-17.5%}
#academy .academy-visual{aspect-ratio:1.15}
#academy .academy-visual img,.motion-enabled #academy .academy-visual:hover>img{width:150%;max-width:none;margin-left:-25%;object-fit:cover}
#workspace{display:flex;flex-direction:column-reverse;gap:28px}
#workspace .workspace-image{width:100%;aspect-ratio:1.5}
#pricing .price-card{padding:26px}
}
/* Keep the promotional corner mark outside the product crop. */
.hero-stage .mac-film,#mix .mode-visual{aspect-ratio:2.2}
#mix .mode-copy{width:100%}
#mix .mode-copy p{max-width:550px}
@media(max-width:750px){#mix .mode-visual{aspect-ratio:1.6}}

/* Port of WorkspaceModeSelector.swift's soft treatment: capsule housing,
   4px inset, 2px spacing, and accent tint fading from 25% to 10%. */
#mix .mode-tabs{
  gap:2px;padding:4px;border-radius:999px;
  border:1px solid transparent;
  background:linear-gradient(180deg,#1a1c20,#0e1013) padding-box,
    linear-gradient(135deg,#f3f3f647,#27272fa6,#f3f3f61a) border-box;
  box-shadow:inset 0 1px 0 #ffffff06;
}
#mix .mode-tabs button{
  min-width:84px;min-height:44px;padding:9px 16px;border-radius:999px;
  color:#a4acb8;background:transparent;border:1px solid transparent;
  box-shadow:none;transform:none;transition:color .18s,background .18s;
}
#mix .mode-tabs button strong{font-size:14px;font-weight:600}
#mix .mode-tabs button[aria-selected=true]{
  color:#c5a8f4;
  background:linear-gradient(180deg,#bba1ec40,#bba1ec1a) padding-box,
    linear-gradient(180deg,#bba1ec52,#bba1ec14) border-box;
  border:1px solid transparent;box-shadow:inset 0 1px 0 #ffffff04;
}
#mix .mode-tabs button:hover:not([aria-selected=true]){color:#e5e5ee;background:#ffffff05}
#mix .mode-tabs button:focus-visible{outline:2px solid #c5a8f4;outline-offset:2px}
@media(prefers-contrast:more){#mix .mode-tabs{border-color:#f3f3f6}#mix .mode-tabs button[aria-selected=true]{border-color:#f3f3f6;color:#fff}}
@media(prefers-reduced-motion:reduce){#mix .mode-tabs button{transition:none}}

/* Center short mode labels inside equal-width pill targets. */
#mix .mode-tabs button{justify-content:center;text-align:center;gap:0;line-height:1}
#mix .mode-tabs button strong{display:block;line-height:1;margin:0}
