/* TanCool website v2 — editorial landing. Tokens from website-tokens.css (Obsidian Web). */

@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --font-serif: "Instrument Serif", "New York", "Iowan Old Style", Georgia, serif;
  --glow-violet: 0 0 0 1px var(--accent-line), 0 24px 80px -12px rgba(139, 92, 246, 0.45), 0 0 120px -20px rgba(139, 92, 246, 0.35);
  --card-r: 24px;
  --shell-r: 28px;
}
:root[data-theme="light"] { --glow-violet: 0 0 0 1px var(--accent-line), 0 24px 60px -16px rgba(109, 40, 217, 0.28); }

body { background: var(--bg-0); }
.serif-i { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--text-2); }
:lang(zh-CN) .serif-i { font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", serif; font-style: normal; }
:lang(zh-CN) :is(.hero h1, .sec-title, .start-title) { letter-spacing: -0.06em; line-height: 1.16; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Page shell (the framed canvas from the reference) ---------- */
.shell {
  width: min(100% - 24px, 1280px); margin: 12px auto;
  background: var(--bg-1); border: 1px solid var(--line-1); border-radius: var(--shell-r);
  overflow: clip;
}
@media (min-width: 768px) { .shell { width: min(100% - 48px, 1280px); margin: 24px auto; } }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg-1) 82%, transparent); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.top-inner { height: 72px; padding-inline: clamp(16px, 3vw, 32px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-1); text-decoration: none; border-radius: var(--r-sm); }
.brand img { width: 28px; height: 28px; display: block; }
.brand-word { font: 600 19px/1 var(--font-display); letter-spacing: -0.02em; }
.brand-word em { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 21px; letter-spacing: 0; }
.nav-pill { display: none; padding: 4px; border-radius: var(--r-full); border: 1px solid var(--line-2); background: var(--bg-3); gap: 2px; }
.nav-pill a {
  height: 34px; padding: 0 14px; border-radius: var(--r-full); display: inline-flex; align-items: center;
  font: 500 13px/1 var(--font-ui); letter-spacing: 0.02em; color: var(--text-2); text-decoration: none;
  border: 1px solid transparent; transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.nav-pill a[aria-current="true"] { background: var(--bg-5); color: var(--text-1); border-color: var(--line-2); }
@media (hover: hover) { .nav-pill a:hover { color: var(--text-1); } }
.top-actions .btn { height: 38px; border-radius: var(--r-full); padding: 0 16px; font-size: 13px; letter-spacing: 0.02em; }
.top-actions .btn-ghost { display: none; }
.top-actions .desktop-language { display: none; }
.language-switch .od-icon { --od-icon-size: 14px; }
.menu-btn { width: 44px; height: 44px; border-radius: var(--r-full); border: 1px solid var(--line-2); background: var(--bg-3); color: var(--text-1); display: inline-grid; place-items: center; cursor: pointer; }
.menu-btn .od-icon { --od-icon-size: 18px; }
.mobile-nav { padding: 8px 16px 20px; display: grid; gap: 4px; border-top: 1px solid var(--line-1); }
.mobile-nav a { min-height: 48px; display: flex; align-items: center; padding: 0 14px; border-radius: var(--r-md); color: var(--text-1); text-decoration: none; font-size: var(--fs-16); }
.mobile-nav .language-switch { gap: 8px; }
.mobile-nav .btn { margin-top: 8px; border-radius: var(--r-full); }
@media (min-width: 1024px) {
  .nav-pill { display: flex; }
  .top-actions :is(.btn-ghost, .desktop-language) { display: inline-flex; }
  .menu-btn, .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(72px, 10vw, 128px) 20px 40px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: -72px 0 auto 0; height: 720px; pointer-events: none;
  background: radial-gradient(48% 55% at 50% 0%, rgba(139, 92, 246, 0.20) 0%, rgba(139, 92, 246, 0) 72%);
}
:root[data-theme="light"] .hero::before { background: radial-gradient(48% 55% at 50% 0%, rgba(124, 58, 237, 0.09) 0%, rgba(124, 58, 237, 0) 72%); }
.hero-inner { position: relative; display: grid; justify-items: center; gap: 24px; }
.hero-inner > * { display: block; }
.tag-pill { display: inline-flex !important; align-items: center; gap: 8px; height: 30px; padding: 0 14px; border-radius: var(--r-full); border: 1px solid var(--line-2); background: var(--bg-3); font: 500 12px/1 var(--font-ui); letter-spacing: 0.02em; color: var(--text-2); }
.tag-pill .od-icon { --od-icon-size: 14px; color: var(--accent-text); }
.hero h1 {
  margin: 0; max-width: 13ch; font: 500 clamp(44px, 7.2vw, 96px)/1.02 var(--font-display);
  letter-spacing: -0.04em; color: var(--text-1); text-wrap: balance;
}
.hero h1 .serif-i { font-size: 1.08em; letter-spacing: -0.015em; }
.hero-sub { max-width: 46ch; margin: 0; font-size: var(--fs-18); line-height: 1.6; color: var(--text-2); }
.hero-ctas { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-ctas .btn { border-radius: var(--r-full); }
.hero-note { font-size: 13px; color: var(--text-3); margin: 0; }
.sparkle { position: absolute; color: var(--text-4); pointer-events: none; }
.sparkle .od-icon, .sparkle svg { display: block; }
.sp-1 { top: 18%; left: 12%; width: 22px; } .sp-2 { top: 12%; right: 16%; width: 14px; }
.sp-3 { top: 54%; left: 22%; width: 12px; } .sp-4 { top: 48%; right: 24%; width: 24px; }
.sp-5 { top: 30%; left: 47%; width: 10px; }
@media (max-width: 700px) { .sp-3, .sp-4, .sp-5 { display: none; } }

/* ---------- Feature carousel ---------- */
.features { position: relative; padding: 24px 0 72px; }
.carousel { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-inline: clamp(12px, 3vw, 32px); }
.car-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-3); color: var(--text-1); display: grid; place-items: center; cursor: pointer; transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out); }
.car-btn { position: relative; z-index: 1; }
.car-btn .od-icon { --od-icon-size: 18px; }
@media (hover: hover) { .car-btn:hover { background: var(--bg-5); border-color: var(--line-3); } }
.car-track { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: stretch; }
@media (min-width: 900px) { .car-track { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr) minmax(0, 0.92fr); } }
.fcard {
  position: relative; border-radius: var(--card-r); border: 1px solid var(--line-2);
  background: var(--panel-sheen), var(--bg-2); padding: 20px; display: grid; gap: 16px; align-content: start;
  transition: opacity var(--dur-4) var(--ease-out), box-shadow var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out);
}
.fcard > * { min-width: 0; }
.fcard.is-side { opacity: 0.42; display: none; }
@media (min-width: 900px) { .fcard.is-side { display: grid; transform: scale(0.96); } }
.fcard.is-active {
  background: radial-gradient(120% 70% at 50% 100%, rgba(139, 92, 246, 0.22) 0%, rgba(139, 92, 246, 0) 70%), var(--panel-sheen), var(--bg-3);
  box-shadow: var(--glow-violet);
}
:root[data-theme="light"] .fcard.is-active { background: radial-gradient(120% 70% at 50% 100%, rgba(124, 58, 237, 0.10) 0%, rgba(124, 58, 237, 0) 70%), var(--bg-3); }
.fcard-icons { display: flex; gap: 6px; }
.icon-dot { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text-2); background: var(--bg-3); }
.icon-dot .od-icon { --od-icon-size: 14px; }
.fcard-head { display: grid; justify-items: center; text-align: center; gap: 6px; }
.fcard-head > * { display: block; }
.fcard-title { font: 500 22px/1.25 var(--font-display); letter-spacing: -0.02em; color: var(--text-1); margin: 0; }
.fcard-title .serif-i { font-size: 1.1em; }
.fcard-handle { font: 500 12px/1 var(--font-mono); color: var(--text-3); letter-spacing: 0.04em; }
.fcard-text { margin: 0; text-align: center; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.fcard-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.stat-pill { height: 26px; padding: 0 10px; border-radius: var(--r-full); border: 1px solid var(--line-2); font-size: 12px; color: var(--text-2); display: inline-flex; align-items: center; white-space: nowrap; }
.stat-pill b { color: var(--text-1); font-weight: 600; margin-right: 4px; }
.fvis { border-radius: 16px; border: 1px solid var(--line-1); background: var(--bg-1); padding: 10px; display: grid; gap: 8px; align-content: start; min-height: 196px; }
.car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.car-dots button { width: 28px; height: 28px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.car-dots button::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: var(--text-4); transition: width var(--dur-3) var(--ease-out), background-color var(--dur-3) var(--ease-out); display: block; }
.car-dots button[aria-current="true"]::before { width: 18px; background: var(--accent-text); }

/* Mini UI inside cards */
.mini-row { min-height: 34px; padding: 4px 10px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line-1); font-size: 12.5px; color: var(--text-2); }
.mini-row .od-icon { --od-icon-size: 15px; }
.mini-row .t-mono { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.f-violet { color: #A78BFA; } .f-yellow { color: #FBBF24; } .f-blue { color: #3B82F6; } .f-green { color: #34D399; }
.q-box { height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--accent-line); background: var(--bg-2); box-shadow: 0 0 0 3px var(--accent-soft); font-size: 13px; }
.q-box .od-icon { --od-icon-size: 14px; color: var(--text-3); }
.tline { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-1); background: var(--bg-3); align-items: baseline; }
.tline.is-on { border-color: var(--accent-line); background: var(--accent-soft); }
.tline > * { display: block; min-width: 0; }
.tc { font: 500 11px/1 var(--font-mono); color: var(--accent-text); white-space: nowrap; }
.quote { font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.quote mark { background: transparent; color: var(--accent-text); }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.thumbs span { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 1; background: var(--thumb-bg); position: relative; }
.thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 10px/1 var(--font-ui); color: #fff; flex: none; }
.role { font-size: 11px; color: var(--text-2); height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line-2); display: inline-flex; align-items: center; white-space: nowrap; }
.bubble { justify-self: end; max-width: 92%; padding: 8px 12px; border-radius: 12px 12px 4px 12px; background: var(--bg-5); color: var(--text-1); font-size: 12.5px; line-height: 1.45; }
.orb { width: 22px; height: 22px; border-radius: 7px; background: var(--brand-orb); flex: none; }

/* ---------- Media wall ---------- */
.wall { position: relative; padding: 24px 0 8px; display: grid; gap: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
.wall-row { display: flex; gap: 14px; width: max-content; animation: drift 80s linear infinite; }
.wall-row.r2 { animation-duration: 96s; animation-direction: reverse; margin-left: -70px; }
.wall-row.r3 { animation-duration: 88s; }
.wall:hover .wall-row { animation-play-state: paused; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tile { position: relative; width: clamp(120px, 13vw, 168px); aspect-ratio: 1; border-radius: 18px; overflow: hidden; flex: none; background: var(--thumb-bg); border: 1px solid var(--line-1); margin: 0; }
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; } /* deliberate uniform wall crop */
.tile-badge { position: absolute; left: 8px; bottom: 8px; height: 20px; padding: 0 6px; border-radius: 6px; background: rgba(0,0,0,.6); color: #fff; font: 500 10.5px/20px var(--font-mono); }
.tile-tag { position: absolute; right: 8px; top: 8px; height: 20px; padding: 0 7px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font: 500 10.5px/20px var(--font-ui); }
@media (prefers-reduced-motion: reduce) { .wall-row { animation: none; } }

/* ---------- Section heads ---------- */
.sec { padding: clamp(64px, 9vw, 120px) clamp(20px, 4vw, 48px); }
.sec-head { display: grid; gap: 16px; margin-bottom: 48px; }
.sec-head > * { display: block; }
.sec-head.center { justify-items: center; text-align: center; }
.kicker { font: 500 13px/1 var(--font-ui); color: var(--text-2); display: inline-flex !important; align-items: center; gap: 8px; }
.kicker em { font-family: var(--font-serif); font-size: 15px; color: var(--text-3); }
.sec-title { margin: 0; font: 500 clamp(36px, 5vw, 64px)/1.05 var(--font-display); letter-spacing: -0.035em; color: var(--text-1); max-width: 18ch; text-wrap: balance; }
.sec-title .serif-i { font-size: 1.08em; }
.sec-sub { margin: 0; max-width: 56ch; color: var(--text-2); font-size: var(--fs-18); line-height: 1.6; }

/* ---------- Product window ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 1100px) { .product { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; } }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; color: var(--text-2); font-size: var(--fs-16); line-height: 1.5; }
.points .od-icon { --od-icon-size: 18px; color: var(--accent-text); margin-top: 3px; }
.apps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.app-chip { height: 40px; padding: 0 14px 0 8px; border-radius: var(--r-full); border: 1px solid var(--line-2); background: var(--bg-3); display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.app-chip img { width: 24px; height: 24px; border-radius: 6px; display: block; }
.app-win { border-radius: 20px; border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: var(--shadow-3); overflow: hidden; }
.app-titlebar { height: 42px; padding: 0 14px; background: var(--bg-0); border-bottom: 1px solid var(--line-1); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--bg-5); display: block; }
.app-lib { font: 600 12.5px/1 var(--font-ui); color: var(--text-1); }
.app-lib .od-icon { --od-icon-size: 14px; color: var(--ok); }
.app-search { flex: 0 1 300px; height: 26px; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--line-1); padding: 0 10px; color: var(--text-3); font-size: 12px; }
.app-search .od-icon { --od-icon-size: 13px; }
.app-body { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 400px; }
@media (min-width: 700px) { .app-body { grid-template-columns: 184px minmax(0, 1fr); } }
.app-side { display: none; background: var(--bg-1); border-right: 1px solid var(--line-1); padding: 10px 8px; align-content: start; gap: 2px; }
@media (min-width: 700px) { .app-side { display: grid; } }
.side-label { font: 500 11px/1 var(--font-ui); color: var(--text-3); padding: 12px 10px 8px; display: block; }
.side-item { height: 30px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; color: var(--text-2); }
.side-item .od-icon { --od-icon-size: 15px; }
.side-item.is-on { background: var(--bg-4); color: var(--text-1); }
.side-count { margin-left: auto; font: 400 11px/1 var(--font-mono); color: var(--text-3); }
.app-main { padding: 14px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.app-main-title { font: 600 15px/1.3 var(--font-display); }
.masonry { columns: 2; column-gap: 10px; }
@media (min-width: 560px) { .masonry { columns: 3; } }
@media (min-width: 1280px) { .masonry { columns: 4; } }
.thumb { break-inside: avoid; margin: 0 0 10px; position: relative; border-radius: 12px; overflow: hidden; background: var(--thumb-bg); border: 1px solid var(--line-1); }
.thumb img { display: block; width: 100%; height: auto; }
.thumb.is-selected { box-shadow: 0 0 0 2px var(--accent-text); }
.thumb-badge { position: absolute; top: 8px; left: 8px; height: 20px; padding: 0 6px; border-radius: 6px; background: rgba(0,0,0,.62); color: #fff; font: 500 11px/20px var(--font-mono); }
.drag-ghost { position: absolute; right: 12px; bottom: 12px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--accent); color: #fff; font: 500 11.5px/28px var(--font-ui); display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.drag-ghost .od-icon { --od-icon-size: 13px; }

/* ---------- Pricing ---------- */
.billing { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.segment { border-radius: var(--r-full); }
.segment button { border-radius: var(--r-full); }
.plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: stretch; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .plans { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.plan { border-radius: var(--card-r); border: 1px solid var(--line-2); background: var(--panel-sheen), var(--bg-2); padding: 24px 20px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 20px; }
.plan > * { min-width: 0; }
.plan.is-featured { background: radial-gradient(120% 60% at 50% 100%, rgba(139, 92, 246, 0.22) 0%, rgba(139, 92, 246, 0) 70%), var(--bg-3); box-shadow: var(--glow-violet); }
:root[data-theme="light"] .plan.is-featured { background: radial-gradient(120% 60% at 50% 100%, rgba(124, 58, 237, 0.08) 0%, rgba(124, 58, 237, 0) 70%), var(--bg-3); }
.plan-top { display: grid; gap: 6px; }
.plan-top > * { display: block; }
.plan-name { font: 500 22px/1.2 var(--font-display); letter-spacing: -0.02em; }
.plan-desc { font-size: 14px; line-height: 1.5; color: var(--text-3); }
.price { display: grid; gap: 4px; }
.price > * { display: block; }
.price-line { display: flex !important; align-items: baseline; gap: 6px; white-space: nowrap; }
.price-num { font: 500 clamp(32px, 2.8vw, 40px)/1 var(--font-display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.price-unit, .price-note { font-size: 13px; color: var(--text-3); }
.price-only { font: italic 400 30px/1.2 var(--font-serif); color: var(--text-2); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.plan li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.plan li .od-icon { --od-icon-size: 16px; color: var(--accent-text); margin-top: 2px; }
.plan li.is-extra { padding-top: 10px; border-top: 1px solid var(--line-1); }
.plan .btn { width: 100%; border-radius: var(--r-full); }
.compare-wrap { margin-top: 24px; border: 1px solid var(--line-2); border-radius: var(--card-r); background: var(--bg-2); }
.compare-wrap > summary { list-style: none; cursor: pointer; min-height: 60px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font: 500 15px/1.3 var(--font-ui); border-radius: var(--card-r); }
.compare-wrap > summary::-webkit-details-marker { display: none; }
.compare-wrap > summary .od-icon { --od-icon-size: 18px; color: var(--text-3); transition: transform var(--dur-3) var(--ease-out); }
.compare-wrap[open] > summary .od-icon { transform: rotate(180deg); }
.table-scroll { overflow-x: auto; border-top: 1px solid var(--line-1); }
table.compare { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 14px; }
table.compare th, table.compare td { padding: 13px 16px; border-bottom: 1px solid var(--line-1); text-align: center; white-space: nowrap; }
table.compare thead th { font: 500 14px/1.3 var(--font-display); color: var(--text-1); }
table.compare tbody th { text-align: left; font-weight: 500; color: var(--text-1); white-space: normal; min-width: 230px; }
table.compare td { color: var(--text-2); font-variant-numeric: tabular-nums; }
table.compare td .od-icon { --od-icon-size: 16px; color: var(--accent-text); vertical-align: -3px; }
table.compare .dash { color: var(--text-4); }
table.compare .col-featured { background: var(--accent-soft); }
table.compare tr:last-child > * { border-bottom: 0; }
.fineprint { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--text-3); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1000px) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; } }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line-2); border-radius: 20px; background: var(--bg-2); transition: background-color var(--dur-2) var(--ease-out); }
.faq details[open] { background: var(--bg-3); }
.faq summary { list-style: none; cursor: pointer; min-height: 64px; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font: 500 var(--fs-16)/1.4 var(--font-ui); color: var(--text-1); border-radius: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; transition: transform var(--dur-3) var(--ease-out); }
.faq .plus .od-icon { --od-icon-size: 16px; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 20px 20px; color: var(--text-2); font-size: var(--fs-16); line-height: 1.6; max-width: 66ch; }

/* ---------- Start (closing CTA) ---------- */
.start { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 900px) { .start { grid-template-columns: auto minmax(0, 1fr); } }
.start-left { display: grid; gap: 24px; justify-items: start; }
.start-left > * { display: block; }
.badge { position: relative; width: 148px; height: 148px; color: var(--text-3); }
.badge svg.ring { width: 100%; height: 100%; display: block; animation: spin 24s linear infinite; }
.badge svg.ring text { font: 500 10.5px/1 var(--font-mono); letter-spacing: 0.22em; fill: currentColor; text-transform: uppercase; }
.badge img { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .badge svg.ring { animation: none; } }
.start-right { display: grid; justify-items: end; text-align: right; gap: 8px; }
.start-right > * { display: block; }
@media (max-width: 899px) { .start-right { justify-items: start; text-align: left; } }
.start-pre { font: 400 clamp(24px, 3vw, 36px)/1.2 var(--font-display); color: var(--text-3); letter-spacing: -0.02em; margin: 0; }
.start-title { margin: 0; font: 500 clamp(48px, 8vw, 104px)/1 var(--font-display); letter-spacing: -0.045em; color: var(--text-1); }
.start-title .serif-i { display: block; font-size: 1.06em; line-height: 1.05; color: var(--text-2); }
.text-cta { margin-top: 24px; display: inline-flex !important; align-items: center; gap: 12px; color: var(--text-1); font: 500 var(--fs-16)/1 var(--font-ui); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; border-radius: var(--r-xs); }
.text-cta .circ { width: 32px; height: 32px; border-radius: 50%; background: var(--text-1); color: var(--bg-1); display: grid; place-items: center; transition: transform var(--dur-2) var(--ease-out); }
.text-cta .circ .od-icon { --od-icon-size: 16px; }
@media (hover: hover) { .text-cta:hover .circ { transform: translateX(3px); } }
.meta-line { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line-1); font: 500 12px/1 var(--font-mono); color: var(--text-3); letter-spacing: 0.04em; margin: 0 clamp(20px, 4vw, 48px); }

/* ---------- Bento footer ---------- */
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px clamp(20px, 4vw, 48px) clamp(20px, 4vw, 48px); }
@media (min-width: 900px) { .bento { grid-template-columns: minmax(0, 7fr) minmax(0, 3.4fr); } }
.bcard { position: relative; overflow: hidden; border-radius: var(--card-r); border: 1px solid var(--line-2); background: var(--panel-sheen), var(--bg-2); padding: 28px; display: grid; gap: 20px; min-height: 300px; align-content: space-between; }
.bcard > * { position: relative; min-width: 0; }
.watermark { position: absolute !important; right: -0.04em; bottom: -0.28em; font: italic 400 clamp(220px, 28vw, 380px)/1 var(--font-serif); color: var(--text-1); opacity: 0.045; pointer-events: none; user-select: none; }
.b-brand { display: grid; gap: 14px; }
.b-brand > * { display: block; }
.b-brand p { margin: 0; max-width: 36ch; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.b-brand p span { color: var(--text-3); }
.b-bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.chip-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 420px; }
.chip-links a { height: 32px; padding: 0 12px; border-radius: var(--r-full); border: 1px solid var(--line-2); background: var(--bg-3); color: var(--text-2); font-size: 12.5px; text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap; transition: border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out); }
@media (hover: hover) { .chip-links a:hover { color: var(--text-1); border-color: var(--line-3); } }
.copy { font-size: 12.5px; color: var(--text-3); }
.b-title { margin: 0; font: 500 22px/1.25 var(--font-display); letter-spacing: -0.02em; }
.b-title .serif-i { font-size: 1.1em; }
.dl-state { display: grid; gap: 10px; }
.dl-state > * { display: block; }
.dl-row { display: flex !important; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.dl-row .od-icon { --od-icon-size: 15px; }
.theme-btn { height: 32px; padding: 0 12px; border-radius: var(--r-full); border: 1px solid var(--line-2); background: var(--bg-3); color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px/1 var(--font-ui); }
.theme-btn .od-icon { --od-icon-size: 14px; }

/* ---------- Dialogs ---------- */
dialog.modal { width: min(100% - 32px, 440px); padding: 0; border: 1px solid var(--line-2); border-radius: var(--card-r); background: var(--panel-sheen), var(--bg-3); color: var(--text-1); box-shadow: var(--shadow-3); }
dialog.modal::backdrop { background: var(--bg-overlay); backdrop-filter: blur(4px); }
dialog.modal[open] { animation: modal-in var(--dur-3) var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { dialog.modal[open] { animation: none; } }
.modal-body { padding: 32px 28px 28px; display: grid; gap: 18px; }
.modal-body > * { display: block; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.modal-close .od-icon { --od-icon-size: 18px; }
@media (hover: hover) { .modal-close:hover { background: var(--bg-4); color: var(--text-1); } }
.modal-title { margin: 0; font: 500 24px/1.2 var(--font-display); letter-spacing: -0.02em; }
.modal-title .serif-i { font-size: 1.1em; }
.modal-text { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.modal-actions { display: grid; gap: 10px; }
.modal-actions .btn { width: 100%; border-radius: var(--r-full); }
.account-order-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.account-order-actions .btn { padding-inline: 10px; }
@media (max-width: 420px) { .account-order-actions { grid-template-columns: 1fr; } }
#download-options, .download-option { display: grid; gap: 14px; }
#release-notes { white-space: pre-line; overflow-wrap: anywhere; }
.summary-row { padding: 14px 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-2); display: flex !important; justify-content: space-between; gap: 12px; align-items: baseline; }
.spec { margin: 0; display: grid; border-top: 1px solid var(--line-1); }
.spec > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-1); font-size: 14px; }
.spec dt { color: var(--text-3); }
.spec dd { margin: 0; color: var(--text-1); font: 500 12px/1.6 var(--font-mono); overflow-wrap: anywhere; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out); }
.reveal.is-in, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .fcard { transition: none; } }

/* Library section: copy row above a full-width workbench */
.lib-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: 48px; align-items: end; }
.lib-head > * { min-width: 0; }
.lib-head-l, .lib-head-r { display: grid; gap: 16px; }
.lib-head-l > *, .lib-head-r > * { display: block; }
@media (min-width: 1000px) { .lib-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; } }
.lib-demo { position: relative; }
.lib-demo::before { content: ""; position: absolute; inset: -8% 10% auto 10%; height: 60%; background: radial-gradient(50% 60% at 50% 50%, rgba(139,92,246,.16), rgba(139,92,246,0) 70%); pointer-events: none; z-index: 0; }
.lib-demo > .aw-window { position: relative; z-index: 1; }

.copy-link { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; border-radius: var(--r-xs); transition: color var(--dur-1) var(--ease-out), text-decoration-color var(--dur-1) var(--ease-out); }
@media (hover: hover) { .copy-link:hover { color: var(--text-1); text-decoration-color: currentColor; } }
