/* Colors follow VotelMacApp/Sources/UI/Common/VotelAppearance.swift. */
:root {
  color-scheme: dark;
  --canvas: #1e2024;
  --panel: #16181c;
  --control: #2d3036;
  --text: #f2f3f5;
  --secondary: #b5bbc5;
  --inactive: #7e8590;
  --accent: #5ca5ff;
  --line: #383c43;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "PingFang SC", sans-serif;
  color: var(--text);
  background: var(--canvas);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--canvas); }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: #5ca5ff40; color: var(--text); }
.wrap { width: min(1120px, calc(100% - 64px)); margin: auto; }
.narrow { max-width: 800px; }
.skip { position: absolute; top: 8px; left: 8px; transform: translateY(-200%); padding: 10px 16px; background: var(--text); color: var(--panel); z-index: 30; }
.skip:focus { transform: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
header { position: sticky; top: 0; z-index: 10; background: #16181cf2; border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; gap: 9px; align-items: center; font-size: 23px; font-weight: 650; letter-spacing: -.8px; }
.brand img, .hero-icon, .closing img, .not-found img { border-radius: 22.5%; box-shadow: 0 0 0 1px #ffffff1f; }
nav { display: flex; align-items: center; gap: 28px; font-size: 13px; color: var(--secondary); }
nav a { padding: 10px 0; }
nav a:hover { color: var(--text); }
nav .lang { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 38px; padding: 7px 10px; border: 1px solid #505660; border-radius: 7px; background: var(--control); color: var(--text); font-size: 12px; font-weight: 600; letter-spacing: .05em; }
nav .lang:hover { background: #383c43; }

/* Hero */
.hero { text-align: center; padding: 56px 0 8px; }
.hero-icon { margin: 0 auto 24px; box-shadow: 0 0 0 1px #ffffff1f, 0 22px 44px -14px #000c; }
.eyebrow { font-size: 12px; line-height: 1.6; font-weight: 550; letter-spacing: .09em; color: var(--accent); }
.hero .eyebrow { display: flex; gap: 9px; align-items: center; justify-content: center; }
.dot { height: 6px; width: 6px; border-radius: 50%; background: var(--accent); }
h1 { font-size: clamp(44px, 4.6vw, 66px); line-height: 1.13; letter-spacing: -.055em; font-weight: 550; margin: 18px 0; }
h1 em { font-style: normal; color: var(--secondary); }
.intro { font-size: 16px; line-height: 1.8; color: var(--secondary); letter-spacing: .01em; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 26px 0 44px; }
.primary { display: inline-flex; gap: 14px; align-items: center; justify-content: center; background: var(--accent); color: var(--panel); min-height: 46px; padding: 13px 22px; border-radius: 9px; font-size: 14px; font-weight: 600; }
.primary:hover { background: #83bbff; }
.release { font-size: 12px; line-height: 1.6; color: var(--secondary); padding: 10px 0; text-decoration: underline; text-decoration-color: #505660; text-underline-offset: 5px; }
.release:hover { color: var(--text); text-decoration-color: var(--accent); }
.hero-duo { position: relative; width: min(100%, 1080px); margin: 0 auto; padding-top: 6.5%; text-align: left; }
.screen { border: 1px solid #454b55; border-radius: 14px; overflow: hidden; background: var(--panel); box-shadow: 0 40px 90px -36px #000d; }
.screen.back { position: absolute; top: 0; right: 0; width: 70%; opacity: .45; }
.screen.front { position: relative; width: 84%; }
.hero-note { margin-top: 20px; font-size: 11px; line-height: 1.8; color: var(--secondary); letter-spacing: .03em; }
.new-strip { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 0; margin: 30px 0 0; }
.new-strip li { font-size: 13px; line-height: 1.5; padding: 7px 15px; border: 1px solid var(--line); border-radius: 99px; background: var(--control); }
.new-strip .new-label { background: var(--accent); border-color: var(--accent); color: var(--panel); font-weight: 650; }

/* Sections */
.section { padding: 96px 0; }
.section-heading { margin-bottom: 42px; }
.section-heading .eyebrow, .copy .eyebrow, .privacy-layout .eyebrow { margin-bottom: 18px; }
h2 { font-size: clamp(30px, 3.4vw, 47px); line-height: 1.25; letter-spacing: -.045em; font-weight: 550; }
.copy > p, .row-heading > p, .steps p { font-size: 15px; line-height: 1.9; color: var(--secondary); }
.row-heading { display: flex; justify-content: space-between; gap: 50px; align-items: end; }
.row-heading > p { max-width: 400px; }
.eyebrow .new { display: inline-block; margin-right: 10px; padding: 1px 8px; border-radius: 5px; background: var(--accent); color: var(--panel); font-weight: 700; letter-spacing: .04em; }
figcaption { font-size: 11px; line-height: 1.8; color: var(--secondary); margin-top: 16px; text-align: center; }
.text-link { display: inline-block; font-size: 14px; color: var(--accent); border-bottom: 1px solid #5ca5ff80; padding-bottom: 5px; margin-top: 25px; }
.text-link:hover { color: #a6cfff; border-color: #a6cfff; }

/* Scenarios */
.scenarios { padding-top: 110px; }
.scene-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.scene { grid-column: span 2; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.scene.classroom, .scene.conversation { grid-column: span 3; }
.scene img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; padding: 14px 18px 0; }
.scene.classroom img, .scene.conversation img { aspect-ratio: 16 / 9; }
.scene > div { padding: 12px 26px 28px; }
.chip { display: inline-block; font-size: 11px; line-height: 1.6; color: var(--accent); border: 1px solid #5ca5ff55; border-radius: 99px; padding: 3px 11px; margin-bottom: 14px; letter-spacing: .02em; }
.scene h3 { font-size: 19px; line-height: 1.5; font-weight: 550; letter-spacing: -.03em; margin-bottom: 8px; }
.scene p:last-child { font-size: 14px; line-height: 1.85; color: var(--secondary); }

/* Annotated product views */
.mode.alt { background: var(--panel); border-block: 1px solid var(--line); }
.framed { padding: 20px 20px 14px; background: var(--panel); border: 1px solid #454b55; border-radius: 20px; }
.mode.alt .framed { background: var(--canvas); }
.shot { position: relative; }
.framed .shot img, .reader-capture .shot img { border-radius: 10px; box-shadow: 0 18px 36px #0004; }
.pin { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--panel); font-size: 12px; font-weight: 700; line-height: 1; box-shadow: 0 0 0 3px var(--panel), 0 4px 14px #000a; pointer-events: none; }
.legend { list-style: none; counter-reset: pin; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; padding: 0; margin: 34px 0 0; }
.legend li { counter-increment: pin; display: grid; grid-template-columns: 26px 1fr; column-gap: 15px; padding: 16px 0; border-top: 1px solid var(--line); }
.legend li::before { content: counter(pin); grid-row: span 2; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--panel); font-size: 12px; font-weight: 700; }
.legend b { font-size: 15px; line-height: 1.6; font-weight: 600; }
.legend span { font-size: 14px; line-height: 1.75; color: var(--secondary); margin-top: 3px; }

/* Compact window and audio source */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.reader-section .split { grid-template-columns: 5fr 7fr; gap: 70px; }
.copy > p { max-width: 400px; margin-top: 24px; }
.key { list-style: none; padding: 0; margin: 28px 0 0; }
.key li { display: flex; align-items: center; gap: 13px; padding: 9px 0; font-size: 13px; color: var(--secondary); border-top: 1px solid var(--line); }
.swatch { width: 30px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.swatch.final { background: var(--text); }
.swatch.interim { background: var(--inactive); }
.source { background: var(--panel); border-block: 1px solid var(--line); }
.source .split { grid-template-columns: 7fr 5fr; gap: 70px; }
.source-capture { margin: 0; padding: 24px 22px 16px; border: 1px solid #454b55; border-radius: 20px; background: var(--canvas); }
.source-capture img { border-radius: 10px; box-shadow: 0 12px 32px #0003; }
.copy b { color: var(--text); font-weight: 600; }

/* Library */
.export-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 20px; margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.8; color: var(--secondary); }
.export-label { color: var(--text); font-weight: 550; }

/* Steps, privacy, questions */
.how { border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px; }
.steps article > span { display: flex; align-items: center; justify-content: center; background: var(--control); border: 1px solid #505660; color: var(--accent); width: 35px; height: 35px; border-radius: 50%; font-size: 13px; }
.steps h3 { font-size: 18px; line-height: 1.5; letter-spacing: -.03em; font-weight: 550; margin: 23px 0 12px; }
.gentle { font-size: 13px; line-height: 1.8; color: var(--secondary); border-top: 1px solid var(--line); padding-top: 22px; margin-top: 35px; }
.privacy-intro { background: var(--panel); border-block: 1px solid var(--line); }
.privacy-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.privacy-copy { padding-top: 5px; font-size: 15px; line-height: 2; color: var(--secondary); }
.privacy-copy ul { list-style: none; padding: 0; margin: 25px 0 0; }
.privacy-copy li { border-top: 1px solid var(--line); padding: 12px 0; font-size: 13px; }
.privacy-copy li::before { content: '✓'; margin-right: 12px; color: var(--accent); }
.information .section-heading { text-align: center; }
details { border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 16px; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
summary > span:last-child { font-size: 21px; font-weight: 300; color: var(--secondary); flex-shrink: 0; }
details[open] summary > span:last-child { transform: rotate(45deg); }
.detail-copy { padding: 4px 5px 28px; color: var(--secondary); font-size: 14px; line-height: 1.95; overflow-wrap: anywhere; }
.detail-copy h2 { font-size: 18px; letter-spacing: 0; margin: 26px 0 10px; font-weight: 600; color: var(--text); }
.detail-copy p + p { margin-top: 12px; }
.detail-copy strong { color: var(--text); }
.detail-copy a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.detail-copy .note { padding: 15px 18px; background: var(--control); border-left: 2px solid var(--accent); border-radius: 0 8px 8px 0; }
.guide-steps, .guide-list { padding-left: 22px; }
.guide-steps li, .guide-list li { margin: 13px 0; }
.guide-steps strong, .guide-list strong { color: var(--text); }
.closing { text-align: center; padding: 70px 0 90px; }
.closing img { margin: 0 auto 25px; box-shadow: 0 0 0 1px #ffffff1f, 0 18px 36px -12px #000b; }
.closing p { margin-top: 22px; color: var(--secondary); font-size: 13px; line-height: 1.8; }
.closing .text-link { font-size: 13px; }
footer { background: var(--panel); border-top: 1px solid var(--line); padding: 28px 0 35px; }
.footer-inner { display: flex; justify-content: space-between; gap: 25px; align-items: center; font-size: 12px; line-height: 1.8; color: var(--secondary); }
.footer-inner .brand { font-size: 18px; color: var(--text); }
.footer-inner > div { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.footer-inner > div a:hover { color: var(--accent); }
.final-note { font-size: 11px; color: var(--secondary); line-height: 1.9; margin-top: 24px; }
.not-found { padding: 120px 30px; text-align: center; }
.not-found img { margin: 0 auto 26px; }
.not-found h1 { font-size: 36px; }
.not-found p { display: flex; gap: 26px; align-items: center; justify-content: center; margin-top: 25px; }
.not-found .text-link { margin-top: 0; }
html[lang=en] h1 { font-size: clamp(40px, 4.3vw, 62px); }
html[lang=en] h2 { letter-spacing: -.035em; }

@media (max-width: 960px) {
  .scene, .scene.classroom, .scene.conversation { grid-column: span 3; }
  .scene.review { grid-column: span 6; }
  .split, .reader-section .split, .source .split { gap: 50px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .nav { height: 64px; }
  .brand { font-size: 20px; }
  nav { gap: 16px; font-size: 12px; }
  nav a:nth-child(2), nav a:nth-child(3), nav a:nth-child(4) { display: none; }
  nav .lang { min-height: 44px; }
  .hero { padding-top: 38px; }
  .hero-icon { width: 88px; height: 88px; }
  h1 { font-size: clamp(36px, 10vw, 46px); }
  .intro { max-width: 440px; margin-inline: auto; font-size: 14px; line-height: 1.9; }
  .intro br { display: none; }
  .hero-actions { gap: 10px; flex-direction: column; margin: 22px 0 30px; }
  .hero-duo { padding-top: 0; }
  .screen { border-radius: 9px; }
  .screen.back { display: none; }
  .screen.front { width: 100%; }
  .new-strip { gap: 8px; }
  .new-strip li { font-size: 12px; padding: 6px 12px; }
  .section { padding: 64px 0; }
  .section-heading { margin-bottom: 30px; }
  .scenarios { padding-top: 72px; }
  .scene-grid { grid-template-columns: 1fr; gap: 16px; }
  .scene, .scene.classroom, .scene.conversation, .scene.review { grid-column: auto; }
  .scene.classroom img, .scene.conversation img { aspect-ratio: 3 / 2; }
  .scene > div { padding: 10px 20px 22px; }
  .row-heading { display: block; }
  .row-heading > p { margin-top: 22px; }
  .framed { padding: 9px 9px 8px; border-radius: 13px; }
  .framed .shot img, .reader-capture .shot img { border-radius: 6px; }
  .pin { width: 18px; height: 18px; font-size: 10px; box-shadow: 0 0 0 2px var(--panel), 0 3px 8px #000a; }
  .legend { grid-template-columns: 1fr; margin-top: 24px; }
  .legend li { padding: 13px 0; }
  .split, .reader-section .split, .source .split { grid-template-columns: 1fr; gap: 34px; }
  .copy > p { max-width: none; }
  .source-capture { width: 100%; padding: 14px 12px 10px; border-radius: 14px; }
  .export-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 11px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps article { display: grid; grid-template-columns: 35px 1fr; column-gap: 16px; }
  .steps h3 { margin: 4px 0 10px; }
  .steps p { grid-column: 2; }
  .privacy-layout { grid-template-columns: 1fr; gap: 30px; }
  .closing { padding: 50px 0 65px; }
  .footer-inner { flex-wrap: wrap; gap: 20px; }
  .footer-inner > span { font-size: 11px; }
  .footer-inner > div { width: 100%; }
  html[lang=en] h1 { font-size: clamp(32px, 9vw, 40px); }
  summary { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  header { background: var(--panel); backdrop-filter: none; }
  .screen.back { opacity: .3; }
}
@media (forced-colors: active) {
  .primary, nav .lang, .pin, .legend li::before { border: 1px solid ButtonText; }
  a:focus-visible, summary:focus-visible { outline-color: Highlight; }
}

/* Callout positions, generated by build.py */
.fullscreen-classroom-1-zh{left:66.5%;top:7.6%}
.fullscreen-classroom-1-en{left:66.5%;top:7.6%}
.fullscreen-classroom-2-zh{left:89.8%;top:3.4%}
.fullscreen-classroom-2-en{left:89.8%;top:3.4%}
.fullscreen-classroom-3-zh{left:96.3%;top:3.4%}
.fullscreen-classroom-3-en{left:96.3%;top:3.4%}
.fullscreen-classroom-4-zh{left:3.1%;top:15.7%}
.fullscreen-classroom-4-en{left:3.1%;top:15.7%}
.fullscreen-classroom-5-zh{left:81%;top:63.8%}
.fullscreen-classroom-5-en{left:81%;top:63.8%}
.fullscreen-classroom-6-zh{left:10.5%;top:90.6%}
.fullscreen-classroom-6-en{left:10.5%;top:90.6%}
.fullscreen-classroom-7-zh{left:50%;top:90.6%}
.fullscreen-classroom-7-en{left:50%;top:90.6%}
.fullscreen-classroom-8-zh{left:93.8%;top:90.6%}
.fullscreen-classroom-8-en{left:93.8%;top:90.6%}
.fullscreen-conversation-1-zh{left:66.5%;top:7.6%}
.fullscreen-conversation-1-en{left:66.5%;top:7.6%}
.fullscreen-conversation-2-zh{left:81.3%;top:3.4%}
.fullscreen-conversation-2-en{left:81.3%;top:3.4%}
.fullscreen-conversation-3-zh{left:50%;top:7.6%}
.fullscreen-conversation-3-en{left:50%;top:7.6%}
.fullscreen-conversation-4-zh{left:9%;top:90.6%}
.fullscreen-conversation-4-en{left:9%;top:90.6%}
.fullscreen-conversation-5-zh{left:50%;top:90.6%}
.fullscreen-conversation-5-en{left:50%;top:90.6%}
.library-1-zh{left:11.4%;top:3.6%}
.library-1-en{left:15.9%;top:3.6%}
.library-2-zh{left:66%;top:12.3%}
.library-2-en{left:66%;top:12.3%}
.library-3-zh{left:60.6%;top:23.9%}
.library-3-en{left:65.2%;top:23.9%}
.library-4-zh{left:37.2%;top:44%}
.library-4-en{left:37.2%;top:44%}
