* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; line-height: 1.7; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, summary, a { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
button { border: 0; }
.container { width: min(1160px, calc(100% - 64px)); margin: auto; }
.skip { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 10px 20px; background: var(--blue); }
.skip:focus { top: 10px; }
.header { position: sticky; top: 0; z-index: 20; background: var(--veil); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.header-inner { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 650; letter-spacing: -.8px; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 14px; color: var(--muted); }
.nav a:hover, .footer a:hover, .text-link:hover { color: var(--text); }
details.language { position: relative; border: 0; padding: 0; }
.language-trigger { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; list-style: none; cursor: pointer; transition: color .15s, background .15s, border-color .15s; }
.language-trigger::-webkit-details-marker { display: none; }
.language-trigger:hover, .language[open] .language-trigger { color: var(--text); background: var(--surface); border-color: var(--line); }
.language-trigger:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
.language-globe { width: 17px; height: 17px; flex: none; }
.language-chevron { width: 14px; height: 14px; margin-left: 3px; transition: transform .15s; }
.language[open] .language-chevron { transform: rotate(180deg); }
.language-options { position: absolute; top: calc(100% + 10px); right: 0; width: 184px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 32px var(--shadow); }
.language-options a { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 9px 12px; border-radius: 7px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.language-options a:hover, .language-options a:focus-visible { color: var(--text); background: var(--raised); }
.language-options a:focus-visible { outline-offset: -2px; }
.language-options a[aria-current="page"] { color: var(--ice); background: var(--glow); }
.language-options a[aria-current="page"]::after { content: '✓'; font-size: 13px; }
.menu-toggle { display: none; background: transparent; padding: 10px; }
.hero { padding-top: 77px; text-align: center; position: relative; }
.eyebrow { color: var(--ice); letter-spacing: .16em; font-size: 11px; font-weight: 600; text-transform: uppercase; }
h1 { margin: 26px 0 21px; font-size: clamp(28px, 4vw, 54px); line-height: 1.22; font-weight: 650; letter-spacing: -.055em; }
h1 > span, h1 > em { display: inline-block; max-width: 100%; }
h1 em { font-style: normal; color: var(--ice); }
.hero-description { color: var(--muted); font-size: 17px; line-height: 1.9; margin: 0 auto 32px; max-width: 650px; }
.actions { display: flex; gap: 20px 28px; align-items: center; justify-content: center; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; border-radius: 7px; padding: 13px 25px; background: var(--blue); color: var(--white); font-size: 14px; font-weight: 600; transition: background .2s, transform .2s; }
.button:hover { background: var(--blue-hover); transform: translateY(-2px); }
.button svg { width: 18px; height: 18px; fill: currentColor; }
.text-link { font-size: 14px; color: var(--muted); }
.arrow { margin-left: 8px; }
.fine { font-size: 12px; color: var(--faint); margin: 16px 0 0; }
.key-privacy { max-width: 680px; margin: 14px auto 0; font-size: 13px; line-height: 1.7; }
.key-privacy strong { display: block; color: var(--ice); font-weight: 600; }
.key-privacy span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.product-stage { margin-top: 49px; position: relative; }
.product-stage::before { content: ''; position: absolute; inset: -60px 0 10%; background: radial-gradient(ellipse at center, var(--glow), transparent 68%); z-index: -1; }
.screenshot { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); box-shadow: 0 25px 70px var(--shadow); cursor: zoom-in; }
.screenshot img { width: 100%; }
.image-label { display: flex; justify-content: center; gap: 16px; color: var(--faint); font-size: 11px; padding: 13px 2px; text-align: center; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; padding: 43px 0 55px; border-bottom: 1px solid var(--line); }
.principles h3 span { flex-shrink: 0; color: var(--ice); font-size: 19px; }
.principles h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; font-size: 17px; font-weight: 550; }
.principles p { font-size: 13px; color: var(--muted); margin: 0; }
h2 { font-size: clamp(30px, 3.3vw, 46px); line-height: 1.3; font-weight: 550; letter-spacing: -.04em; margin: 13px 0 15px; }
.feature-copy p { color: var(--muted); max-width: 560px; font-size: 15px; }
.feature { display: grid; grid-template-columns: .82fr 1.3fr; gap: 70px; align-items: center; padding: 48px 0 75px; }
.feature.reverse { grid-template-columns: 1.3fr .82fr; }
.feature.reverse .feature-copy { order: 2; }
.feature-number { font-size: 12px; color: var(--faint); letter-spacing: .13em; }
.feature h2 { font-size: 24px; line-height: 1.4; font-weight: 550; letter-spacing: -.04em; margin: 15px 0; }
.feature ul { list-style: none; padding: 0; color: var(--muted); font-size: 13px; }
.feature li { margin: 10px 0; }
.feature li::before { content: '↗'; color: var(--ice); margin-right: 12px; }
.feature .screenshot { box-shadow: none; }
.feature.feature--gallery { grid-template-columns: 1fr; gap: 28px; }
.feature--gallery .feature-copy { max-width: 720px; }
.screenshot-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.screenshot-gallery figure { margin: 0; min-width: 0; }
.feature-note { color: var(--faint); font-size: 11px; margin-top: 11px; text-align: center; }
.motion-toggle { background: transparent; padding: 5px 10px; text-decoration: underline; text-underline-offset: 3px; }
.flow { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.flow h3 { font-size: 23px; font-weight: 500; margin: 0 0 7px; }
.flow p { color: var(--muted); font-size: 13px; margin: 0; }
.flow-steps { display: flex; align-items: center; gap: 18px; white-space: nowrap; color: var(--ice); font-size: 13px; }
.flow-steps span { color: var(--faint); }
/* Compact pricing uses the existing Fluid Wiki palette and typography. */
.pricing { margin: 90px 0; }
.pricing > h2 { font-size: clamp(25px, 3vw, 32px); margin: 0 0 26px; font-weight: 650; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plan { min-width: 0; display: flex; flex-direction: column; padding: 26px 28px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.plan--trial { border-color: var(--blue); }
.plan-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.plan-header .eyebrow { font-size: 14px; letter-spacing: 0; }
.plan h3 { min-width: 0; font-size: 32px; line-height: 1.3; letter-spacing: -.045em; font-weight: 650; margin: 0; }
.plan h3 span { display: inline-block; margin-left: 8px; font-size: 14px; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.plan-intro { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.plan-features { display: grid; gap: 8px; list-style: none; padding: 0; margin: 20px 0 16px; font-size: 14px; }
.plan-features li { position: relative; padding-left: 23px; }
.plan-features li::before { content: '✓'; position: absolute; left: 0; color: var(--ice); }
.plan-note { color: var(--muted); font-size: 12px; line-height: 1.8; margin: auto 0 0; min-height: 44px; }
.plan-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; margin-top: 19px; padding-top: 18px; border-top: 1px solid var(--line); }
.plan--lifetime .plan-actions { grid-template-columns: minmax(0, 1fr); }
.plan .button { min-width: 0; width: 100%; min-height: 44px; padding: 10px 12px; gap: 9px; border: 1px solid var(--blue); white-space: nowrap; }
.plan .button--secondary { background: var(--raised); border-color: var(--line); color: var(--text); }
.plan .button--secondary:hover { background: var(--surface); border-color: var(--ice); }
.plan .button:active { transform: translateY(1px); }
.plan-unavailable:disabled { cursor: default; background: var(--raised); color: var(--muted); transform: none; }
.plan-meta { grid-column: 1 / -1; display: block; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }
.plan-meta a { text-decoration: underline; text-underline-offset: 4px; }
.pricing-footer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 8px; margin-top: 20px; }
.pricing-note, .pricing-footer .pricing-support { color: var(--muted); font-size: 12px; text-align: center; margin: 0; }
@media (min-width: 641px) and (max-width: 1100px) {
  .plan-header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .plan-actions { grid-template-columns: minmax(0, 1fr); }
}
.faq { display: grid; grid-template-columns: .7fr 1fr; gap: 90px; margin-bottom: 95px; }
.faq h2 { font-size: 36px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 22px 30px 22px 0; position: relative; cursor: pointer; list-style: none; font-size: 15px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 2px; color: var(--muted); }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer .brand { font-size: 18px; }
.footer .brand img { width: 27px; height: 27px; }
.footer p, .footer-links { color: var(--faint); font-size: 11px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.lightbox { width: min(1500px, 96vw); max-width: 96vw; padding: 49px 12px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); }
.lightbox::backdrop { background: var(--veil); backdrop-filter: blur(8px); }
.lightbox p:focus { outline: none; }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; }
.lightbox-close { position: absolute; right: 4px; top: 2px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 6px; background: transparent; font-size: 21px; line-height: 1; }
.lightbox-close:focus-visible { outline-offset: -3px; }
.lightbox p { text-align: center; margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.reveal { animation: enter .6s ease both; }
@keyframes enter { from { opacity: .4; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (min-width: 1500px) { .hero { padding-top: 95px; } }
@media (max-width: 900px) {
  .nav { gap: 20px; } .feature, .feature.reverse { gap: 30px; grid-template-columns: 1fr 1.15fr; }
  .faq { gap: 40px; } .principles { gap: 28px; } .flow { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 36px); } .header-inner { height: 68px; } .brand { font-size: 21px; }
  .language-trigger { width: 100%; } .language-chevron { margin-left: auto; }
  .language-options { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
  .hero { padding-top: 49px; } h1 { font-size: clamp(25px, 7.5vw, 32px); margin-top: 28px; } .hero-description { font-size: 14px; max-width: 330px; } .hero-description br { display: none; }
  .actions { gap: 16px; } .button { padding: 12px 20px; } .product-stage { margin-top: 35px; } .image-label { font-size: 10px; }
  .principles { grid-template-columns: 1fr; gap: 24px; padding: 35px 0; }
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 20px; padding: 30px 0 40px; } .feature.reverse .feature-copy { order: 0; }
  .screenshot-gallery { grid-template-columns: 1fr; }
  .feature h2 { font-size: 22px; } .feature-copy p { font-size: 14px; }
  .flow-steps { gap: 12px; font-size: 12px; } .flow h3 { font-size: 22px; }
  .pricing { margin: 60px 0; } .pricing-grid { grid-template-columns: 1fr; gap: 20px; }
  .plan { padding: 22px; } .plan h3 { font-size: 29px; }
  .plan-header { flex-wrap: wrap; gap: 8px; } .plan-note { min-height: 0; }
  .plan-actions { grid-template-columns: minmax(0, 1fr); }
  .faq { grid-template-columns: 1fr; gap: 20px; margin-bottom: 60px; } .faq h2 { font-size: 30px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 12px; } .footer p { margin: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Keep section headings available to assistive technology without changing the grid. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Native details keeps email support available without JavaScript. */
.support { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 25; padding: 0; border: 0; }
.support > summary { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); box-shadow: 0 6px 24px var(--shadow); cursor: pointer; list-style: none; }
.support > summary::-webkit-details-marker { display: none; }
.support > summary svg { width: 19px; height: 19px; flex: none; }
.support > summary:hover { background: var(--raised); }
.support-panel { position: absolute; right: 0; bottom: calc(100% + 12px); width: min(380px, calc(100vw - 40px)); max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 48px var(--shadow); font-size: 14px; }
.support-notice { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: calc(max(20px, env(safe-area-inset-bottom)) + 58px); z-index: 26; width: min(380px, calc(100vw - 40px)); padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: 0 16px 48px var(--shadow); font-size: 14px; }
.support-notice:empty { display: none; }
.support-notice:not(:empty) { padding-left: 58px; }
.support-notice::before { content: ''; position: absolute; left: 20px; top: 16px; width: 26px; height: 26px; border-radius: 50%; background: var(--success-subtle); }
.support-notice::after { content: ''; position: absolute; left: 29px; top: 22px; width: 7px; height: 12px; border-right: 2px solid var(--success); border-bottom: 2px solid var(--success); transform: rotate(45deg); }
.support-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.support-heading h2 { font-size: 21px; letter-spacing: -.02em; margin: 0; }
.support-close { background: var(--raised); border-radius: 6px; min-width: 36px; min-height: 36px; font-size: 22px; }
.support-panel p { margin: 12px 0; color: var(--muted); }
.support-resources { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0; }
.support-panel a:not(.button), .pricing-support a { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }
.support-form label:not(:has(input)) { display: block; margin: 14px 0 6px; color: var(--text); }
.support-form input[type="email"], .support-form select, .support-form textarea { display: block; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); font: inherit; }
.support-select { position: relative; }
.support-select select { appearance: none; padding-right: 40px; }
.support-select::after { content: ''; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); pointer-events: none; }
.support-form textarea { min-height: 100px; resize: vertical; }
.support-panel .support-note { font-size: 12px; }
.support-form .button { width: 100%; margin-top: 4px; }
.support-email { overflow-wrap: anywhere; }
.support-panel [hidden] { display: none; }
.pricing-support { color: var(--muted); font-size: 14px; text-align: center; }
.footer { padding-bottom: 90px; }
@media (max-width: 640px) {
  .support-panel { padding: 20px; }
  .support-form input[type="email"], .support-form select, .support-form textarea { font-size: 16px; }
}

.support-form .button:disabled { opacity: .6; cursor: wait; transform: none; }

/* AI workflows pair concise descriptions with client examples. */
.workflow-intro { max-width: 680px; color: var(--muted); font-size: 16px; }
.workflow-setup { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin-bottom: 30px; }
.workflow-setup a { color: var(--ice); }
.workflow-setup span { color: var(--faint); font-size: 12px; }
.ai-workflow { border-bottom: 1px solid var(--line); }
.feature-copy .workflow-result { font-size: 13px; margin-top: 16px; }
.workflow-result strong { display: block; color: var(--text); font-weight: 500; margin-bottom: 4px; }

.plan-actions > .plan-note { grid-column: 1 / -1; }

/* Platform downloads keep one installer per operating system. */
.platform-downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
.platform-download { min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 18px; }
.platform-download + .platform-download { border-left: 1px solid var(--line); }
.platform-download > svg { width: 40px; height: 40px; margin-bottom: 12px; color: var(--text); }
.platform-download h2 { margin: 0; font-size: 20px; font-weight: 600; }
.platform-compatibility { margin: 4px 0 20px; color: var(--muted); font-size: 12px; }
.platform-download .button { width: 100%; padding: 11px 12px; font-size: 13px; }
.platform-secondary { margin-top: 12px; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.platform-secondary:hover { color: var(--text); }
details.mac-install { margin-top: 24px; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); }
.mac-install summary { font-size: 13px; color: var(--muted); }
.mac-install p { font-size: 13px; color: var(--muted); line-height: 1.8; margin-bottom: 0; }
@media (max-width: 400px) {
  .platform-download { padding: 10px 8px; }
  .platform-download .button { padding: 10px 6px; font-size: 12px; }
}

.hero .download-actions { display: block; width: min(600px, 100%); margin: 30px auto 0; }
.download-actions .platform-downloads { margin-top: 0; }
.hero .platform-download h2 { margin: 0; font-size: 20px; line-height: 1.7; letter-spacing: 0; }
.hero .mac-install { text-align: left; }
.hero .mac-install summary { text-align: center; }
.hero .fine .text-link { font-size: inherit; }

/* A dedicated download page with a quiet, centered platform choice. */
.download-page { max-width: 920px; padding-top: 88px; padding-bottom: 88px; text-align: center; min-height: 70vh; }
.download-page h1 { margin: 0; font-size: clamp(32px, 4.5vw, 54px); line-height: 1.25; letter-spacing: -.035em; }
.download-intro { color: var(--muted); margin: 24px auto 0; line-height: 1.8; }
.download-page .download-actions { max-width: 720px; margin: 64px auto 0; display: block; }
.download-page .platform-downloads { margin: 0; gap: 48px; }
.download-page .platform-download { padding: 0 16px; }
.download-page .platform-download + .platform-download { border: 0; }
.download-page .platform-download > svg { width: 64px; height: 64px; margin-bottom: 24px; }
.download-page .platform-download h2 { font-size: 26px; }
.download-page .platform-compatibility { font-size: 14px; margin-bottom: 28px; }
.download-page .platform-download .button { font-size: 15px; padding: 14px; }
.download-page .mac-install { margin-top: 48px; text-align: left; }
.download-page .download-trial { color: var(--muted); font-size: 13px; margin-top: 28px; }
@media (max-width: 640px) {
 .download-page { padding-top: 48px; padding-bottom: 48px; }
 .download-page .download-actions { margin-top: 40px; }
 .download-page .platform-downloads { gap: 16px; }
 .download-page .platform-download { padding: 0; }
 .download-page .platform-download .button { font-size: 12px; padding: 12px 6px; }
 .download-page .platform-compatibility { font-size: 11px; }
}

/* Pricing has its own page, with a shared introduction and comparable plans. */
body > .header, body > .footer { flex-shrink: 0; }
body > main { flex: 1 0 auto; margin-top: 0; margin-bottom: 0; }
.pricing-page { flex: 1 0 auto; margin: 0 auto; padding-top: 72px; padding-bottom: 80px; }
.pricing-page .pricing-grid { max-width: 800px; margin: 0 auto; gap: 24px; }
.pricing-page .plan { padding: 30px; }
.pricing-page .plan-header { align-items: flex-start; flex-direction: column; gap: 18px; }
.pricing-page .plan-intro { margin-top: 18px; }
.pricing-page .plan-features { gap: 14px; margin: 28px 0; }
.pricing-page .plan-note { min-height: 66px; }
.pricing-page .plan-actions { margin-top: 24px; }
@media (max-width: 640px) {
  .pricing-page .pricing-grid { max-width: 400px; }
  .pricing-page .plan { padding: 24px; }
}
.pricing-page .pricing { margin: 0; padding: 0; }
.pricing-page h1 { text-align: center; font-size: clamp(30px, 4vw, 48px); line-height: 1.3; letter-spacing: -.03em; margin: 0; }
.pricing-intro { text-align: center; color: var(--muted); margin: 24px auto 48px; line-height: 1.8; }
.pricing-page .plan-header h2 { margin: 0; font-size: 32px; line-height: 1.2; letter-spacing: -.04em; }
.pricing-page .plan-header h2 span { margin-left: 8px; font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
@media (max-width: 640px) { .pricing-page { padding-top: 48px; padding-bottom: 48px; } }

.faq-page { padding-top: 64px; padding-bottom: 80px; }
.faq-page .faq { margin: 0; }
.faq-page > .faq { display: block; }
.faq-page h1 { text-align: center; font-size: clamp(30px, 4vw, 48px); line-height: 1.3; margin: 0 0 44px; }
.faq-page .faq-list { max-width: 850px; margin: 0 auto; }
@media (max-width: 640px) { .faq-page { padding-top: 42px; padding-bottom: 56px; } .faq-page h1 { margin-bottom: 28px; } }

/* Dedicated features page; the homepage ends after its core principles. */
.features-page { padding-top: 64px; }
.features-page > #features > h1 { margin-top: 0; }
.nav > a[aria-current="page"] { color: var(--ice); }
body:has(.hero) .principles { border-bottom: 0; }

/* Keep navigation usable on small screens when JavaScript is unavailable. */
@media (max-width: 640px) {
  .header:not(.nav-ready) .header-inner { height: auto; min-height: 68px; flex-wrap: wrap; padding-block: 12px; }
  .header:not(.nav-ready) .menu-toggle { display: none; }
  .header:not(.nav-ready) .nav { display: flex; position: static; flex-wrap: wrap; padding: 0; border: 0; }
}

/* Preserve a single row and move only the trailing items that do not fit. */
.header-inner > .nav { margin-left: auto; }
.header:not(.nav-ready) .header-inner { height: auto; min-height: 84px; flex-wrap: wrap; padding-block: 12px; }
.header:not(.nav-ready) .nav { flex-wrap: wrap; }
.nav-ready .nav { display: flex; flex: 1; min-width: 0; justify-content: flex-end; }
.nav-ready .nav > a, .nav-ready .nav > .language, .nav-ready .menu-toggle { flex-shrink: 0; white-space: nowrap; }
.nav-ready .menu-toggle { display: block; }
.nav-ready .menu-toggle[hidden], .nav-overflow[hidden] { display: none; }
.nav-overflow { position: absolute; top: 100%; right: 0; display: flex; flex-direction: column; gap: 20px; width: min(360px, 100%); max-height: calc(100dvh - 84px); overflow-y: auto; padding: 24px; background: var(--bg); border: 1px solid var(--line); }
.nav-overflow > a { white-space: nowrap; }
.nav-overflow > a[aria-current="page"] { color: var(--ice); }
.nav-overflow .language-trigger { width: 100%; }
.nav-overflow .language-chevron { margin-left: auto; }
.nav-overflow .language-options { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
@media (max-width: 640px) {
  .nav-ready .nav { gap: 12px; }
  .nav-overflow { max-height: calc(100dvh - 68px); }
}
