/* Product and guide styles. Existing legal pages keep styles.css only. */
.marketing-page {
  /* Preserve the original site's colors, typeface, and light/dark themes. */
  --site-max-width: 1040px;
  --soft: var(--bg-muted);
}
.marketing-page .container { width: min(calc(100% - 64px), var(--site-max-width)); padding-inline: 0; }
.marketing-page [hidden] { display: none !important; }
.marketing-page .site-header { position: sticky; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); }
.marketing-page .site-header-inner { min-height: 64px; gap: 20px; }
.marketing-page .brand { font-size: 16px; letter-spacing: -.025em; }
.marketing-page .site-nav { font-size: 13px; gap: 12px; }
.marketing-page .site-nav a, .lang-links a { display: inline-flex; align-items: center; min-height: 44px; }
.lang-links { display: flex; gap: 2px; padding: 3px; background: var(--soft); border: 1px solid var(--border); border-radius: 999px; }
.lang-links a { padding: 0 12px; border-radius: 999px; font-size: 12px; color: var(--text-muted); }
.lang-links a[aria-current] { background: var(--card); color: var(--text); font-weight: 600; }
.marketing-page button:focus-visible, .marketing-page summary:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 4px; }
.marketing-page .eyebrow { font-size: 13px; letter-spacing: .02em; font-weight: 600; color: var(--text-muted); }
.landing-hero { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 32px; padding-block: 48px 48px !important; }
.landing-copy { text-align: center; max-width: 880px; }
.landing-copy h1 { margin: 14px 0 20px; font-size: clamp(36px, 4.2vw, 54px); line-height: 1.25; letter-spacing: -.035em; font-weight: 700; }
html[lang="en"] .landing-copy h1 { font-size: clamp(38px, 4.4vw, 58px); line-height: 1.12; }
.hero-description { font-size: 17px; line-height: 1.8; color: var(--text-muted); }
.landing-copy .hero-description { max-width: 600px; margin-inline: auto; }
html[lang="en"] .landing-copy .hero-description { text-wrap: balance; }
.hero-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 22px; }
.marketing-page .button { font-size: 14px; gap: 12px; border-radius: 999px; }
.marketing-page .button-primary { background: #0071e3; color: #fff; }
.marketing-page .button-primary:hover { background: #0068d1; }
.marketing-page .button-large { min-height: 48px; padding-inline: 24px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; font-size: 15px; font-weight: 500; }
.compatibility { margin: 12px 0 0; font-size: 14px; color: var(--text-muted); }
.demo-figure { margin: 0; min-width: 0; width: min(100%, 800px); }
.demo-stage { position: relative; height: 300px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(135deg, var(--soft), color-mix(in srgb, var(--accent) 6%, var(--soft))); box-shadow: var(--shadow); }
.demo-topbar { height: 34px; display: flex; justify-content: space-between; align-items: center; padding-inline: 16px; font-size: 11px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; background: var(--card); border: 1px solid var(--border); border-radius: 50%; }
.demo-note { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); width: min(66%, 380px); height: 184px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 24px; }
.note-heading { display: block; font-size: 20px; font-weight: 500; line-height: 1.5; color: var(--text-muted); }
.note-line { display: block; height: 4px; width: 68%; margin-top: 19px; background: var(--border); border-radius: 3px; }
.note-line.short { width: 46%; margin-top: 7px; }
.demo-traveler { position: absolute; left: 49%; top: 49%; width: 105px; height: 82px; animation: companion-path 11s ease-in-out infinite; will-change: transform; }
.demo-pointer { display: block; filter: drop-shadow(0 2px 2px #25263022); }
.demo-pixie { position: absolute; left: 26px; top: 4px; width: 76px; height: 76px; }
.is-paused .demo-traveler { animation-play-state: paused; will-change: auto; }
.demo-watermark { position: absolute; bottom: 12px; left: 16px; color: var(--text-muted); font-size: 11px; }
.demo-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.motion-button { flex-shrink: 0; border: 0; background: none; padding: 8px 0 8px 8px; min-height: 44px; color: var(--text-muted); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@keyframes companion-path {
  0%, 100% { transform: translate(-45px, 15px); }
  22% { transform: translate(36px, -46px); }
  45% { transform: translate(60px, 36px); }
  72% { transform: translate(-85px, 10px); }
  88% { transform: translate(-70px, -50px); }
}
.benefits-section { padding-block: 32px 64px !important; scroll-margin-top: 88px; }
.section-intro { text-align: left; }
.section-intro h2, .setup-copy h2 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.4; letter-spacing: -.025em; margin: 10px 0 28px; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit { background: var(--card); border: 1px solid var(--border); padding: 24px; border-radius: 12px; }
.step-count { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: var(--soft); color: var(--text-muted); font-size: 14px; font-weight: 600; }
.benefit h3 { font-size: 18px; line-height: 1.5; margin: 0 0 12px; }
.benefit p { font-size: 16px; line-height: 1.8; color: var(--text-muted); margin: 0; }
.setup-section { padding-block: 64px 48px; background: var(--soft); }
.setup-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 46px; justify-items: center; }
.setup-copy { width: min(100%, 680px); text-align: left; }
.setup-copy h2 { margin-bottom: 18px; }
.setup-copy > p:not(.eyebrow) { font-size: 17px; line-height: 1.8; color: var(--text-muted); }
.setup-copy > .quiet-detail { font-size: 14px !important; margin-top: 16px; }
.app-screenshot, .guide-screenshot { margin: 0; min-width: 0; }
.app-screenshot { width: min(100%, 880px); }
.app-screenshot img, .guide-screenshot img { width: 100%; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 30px #2526300c; }
.app-screenshot figcaption, .guide-screenshot figcaption { font-size: 14px; line-height: 1.7; color: var(--text-muted); margin-top: 12px; }
/* Display a shared 1560 × 770 region of the unchanged 2880 × 1800 captures.
   The region includes the sidebar, image area, and open settings menu. */
.settings-focus { display: block; position: relative; overflow: hidden; aspect-ratio: 1560 / 770; border: 1px solid var(--border); border-radius: 10px; background: var(--soft); }
.settings-focus img { position: absolute; width: 184.615385%; max-width: none; height: auto; left: -60.25641%; top: -43.636364%; border: 0; border-radius: 0; box-shadow: none; }
.screenshot-original { display: flex; align-items: center; gap: 6px; min-height: 44px; width: fit-content; font-size: 14px; }
.download-section { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: 72px !important; scroll-margin-top: 72px; }
.download-section > picture { width: 64px; height: 64px; margin-bottom: 26px; }
.download-section h2 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.4; letter-spacing: -.025em; }
.download-section > p { font-size: 16px; color: var(--text-muted); }
.download-section .button { margin-top: 16px; }
.download-section > .support-note { font-size: 14px; margin: 24px 0 0; }
.download-section > .compatibility { font-size: 14px; margin-top: 8px; }
.footer-content { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 20px; }
.footer-content p { font-size: 11px; color: var(--text-muted); margin: 8px 0 0; }
.footer-content nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-content nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-muted); font-size: 12px; }
.footer-content .copyright { grid-column: 1 / -1; font-size: 10px; }
.guide-intro { max-width: 820px; padding: 28px 0 40px; }
.guide-intro > .eyebrow { margin-top: 24px; }
.guide-intro h1 { margin: 14px 0 20px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.3; letter-spacing: -.025em; text-wrap: balance; }
.guide-intro .hero-description { max-width: 40em; }
.guide-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; }
.guide-content { max-width: 44em; }
.guide-toc { position: sticky; top: 88px; align-self: start; }
.guide-toc p { font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.guide-toc a { display: flex; gap: 10px; align-items: center; min-height: 44px; color: var(--text-muted); font-size: 15px; line-height: 1.6; padding-block: 6px; }
.guide-toc a span { color: var(--text-muted); font-size: 13px; flex-shrink: 0; }
.guide-step { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 18px; margin-bottom: 40px; scroll-margin-top: 88px; }
.guide-step h2 { font-size: 23px; line-height: 1.5; margin-bottom: 14px; letter-spacing: -.025em; }
.guide-step p, .guide-questions p { font-size: 16px; line-height: 1.9; color: var(--text-muted); margin: 0 0 18px; }
.instruction-list, .adjustment-list { margin: 0 0 20px; padding-left: 1.6em; font-size: 16px; line-height: 1.8; color: var(--text-muted); }
.instruction-list li, .adjustment-list li { padding-left: 4px; margin-bottom: 12px; }
.instruction-list li:last-child, .adjustment-list li:last-child { margin-bottom: 0; }
.instruction-list li::marker { color: var(--text-muted); font-weight: 600; }
.guide-step strong { color: var(--text); font-weight: 600; white-space: nowrap; }
.guide-step .instruction-note strong { white-space: normal; }
.guide-step .instruction-note { border-left: 2px solid var(--border); padding-left: 16px; font-size: 14px; line-height: 1.8; }
.guide-step .support-note { font-size: 14px; line-height: 1.8; margin: 24px 0 0; }
.guide-screenshot { margin-top: 24px; }
.guide-questions { background: var(--soft); border-radius: 12px; padding: 28px; scroll-margin-top: 88px; }
.guide-questions .eyebrow { font-size: 13px; margin: 0; color: var(--text-muted); }
.guide-questions h2 { margin: 12px 0 24px; font-size: 26px; }
.guide-questions details { border-top: 1px solid var(--border); }
.guide-questions summary { cursor: pointer; font-size: 16px; padding: 18px 0; font-weight: 600; }
.guide-questions .quiet-detail { margin: 18px 0 0; font-size: 14px; }
.guide-end { border-top: 1px solid var(--border); margin-top: 64px; padding: 50px 0 60px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.guide-end h2 { flex-basis: 100%; font-size: 27px; line-height: 1.5; }
@media (prefers-color-scheme: light) {
  /* Small links on gray surfaces need more contrast than links on white. */
  .setup-section .text-link, .guide-questions a { color: #0066cc; }
}
@media (max-width: 1000px) {
  .benefit { padding: 20px; }
  .guide-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 767px) {
  .marketing-page .container { width: calc(100% - 40px); }
  .marketing-page .site-header-inner { flex-direction: row; align-items: center; min-height: 64px; gap: 8px; padding-block: 6px; }
  .marketing-page .header-actions { width: auto; }
  .marketing-page .site-nav { display: none; }
  .marketing-page .brand { gap: 8px; }
  .lang-links a { padding-inline: 9px; }
  .landing-hero { gap: 24px; padding-block: 32px 24px !important; }
  .landing-copy h1 { font-size: clamp(32px, 6.5vw, 46px); }
  html[lang="en"] .landing-copy h1 { font-size: clamp(36px, 7.4vw, 52px); }
  .hero-description { font-size: 16px; }
  .hero-actions { gap: 10px 20px; margin-top: 24px; }
  .hero-actions .text-link { font-size: 14px; }
  .demo-stage { height: 270px; }
  .demo-note { top: 58px; width: 78%; height: 160px; padding: 20px; }
  .note-heading { font-size: 18px; }
  .benefits-section { padding-block: 24px 48px !important; }
  .benefits-grid { grid-template-columns: 1fr; gap: 16px; }
  .benefit { padding: 24px; }
  .benefit h3 { font-size: 20px; }
  .setup-section { padding-block: 48px 36px; }
  .setup-layout { gap: 30px; }
  .setup-copy > p:not(.eyebrow) { font-size: 16px; }
  .download-section { padding-block: 56px !important; }
  .download-section > .support-note { max-width: 290px; }
  .footer-content { grid-template-columns: 1fr; gap: 10px; }
  .guide-intro { padding: 20px 0 28px; }
  .guide-layout { grid-template-columns: 1fr; gap: 28px; }
  .guide-toc { position: static; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
  .guide-toc p { grid-column: 1 / -1; }
  .guide-toc a { padding-block: 6px; }
  .guide-step { gap: 12px; margin-bottom: 38px; }
  .guide-screenshot { margin-left: -44px; }
  .guide-step h2 { font-size: 20px; }
  .guide-step p { font-size: 16px; }
  .guide-questions { padding: 24px; }
  .guide-end { gap: 18px; margin-top: 40px; }
}
@media (max-width: 370px) {
  .marketing-page .brand { font-size: 14px; }
  .brand-mark { width: 26px; height: 26px; }
  .lang-links a { font-size: 11px; padding-inline: 7px; }
  .note-heading { font-size: 18px; }
  .landing-copy h1 { font-size: 28px; }
  html[lang="en"] .landing-copy h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  /* JavaScript leaves the demo paused until the user explicitly chooses play. */
  .demo-traveler { animation-duration: 22s; }
}
