/* Site look (W-033, owner-approved 2026-11-21; mockup in docs/w-033/):
   near-black background (#101013, owner 2026-11-21), flat raised surfaces, white type and Apple blue buttons.
   No purple or indigo gradients (except the demo play button, by owner request); app screenshots keep their own look.
   PM 2026-11-21: buttons use #0071e3 (white text 4.7:1) and hover #0066cc (5.6:1)
   instead of the mockup's #0a84ff (3.65:1); --faint is #8b8b94, not #71717a, so small
   text meets WCAG AA (4.5:1). */
:root {
  color-scheme: dark;
  --bg: #101013;
  --raised: #1a1a1e;
  --raised-hover: #25252a;
  --line: rgb(255 255 255 / 8%);
  --line-strong: rgb(255 255 255 / 14%);
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --faint: #8b8b94;
  --accent: #0071e3;
  --accent-hover: #0066cc;
  --accent-text: #fff;
  --link: #4da3ff;
  --focus: #4da3ff;
  --radius-panel: 18px;
  --radius-card: 14px;
  --radius-pill: 999px;
  --feature-item-gap: 28px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
/* Keep vertical scroll boundaries still where the browser supports it. */
html, body { overscroll-behavior-y: none; }
body { margin: 0; background: var(--bg); }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--text); }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
p { margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em; margin: 0; }
h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); font-weight: 650; line-height: 1.05; letter-spacing: -.035em; }
h1 span { color: var(--text); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 650; letter-spacing: -.03em; }
h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
/* Clip unfocused content instead of parking it above the scroll boundary. */
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; background: var(--text); color: var(--bg); }
.skip-link:focus { width: auto; height: auto; max-width: calc(100% - 24px); padding: 12px 20px; overflow: visible; clip: auto; clip-path: none; white-space: normal; }
/* Content and the keyboard-focused skip link stay clear of the device safe areas. */
@supports (padding: env(safe-area-inset-top)) {
  body { padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
  .skip-link { top: calc(12px + env(safe-area-inset-top, 0px)); left: calc(12px + env(safe-area-inset-left, 0px)); }
  .skip-link:focus { max-width: calc(100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)); }
}

/* Header: logo, text links, Download on the right. No dividing line (owner 2026-11-21). */
.site-header { display: flex; align-items: center; gap: 32px; min-height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.app-icon { display: block; flex: none; width: 34px; height: 34px; border-radius: 8.5px; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.site-header nav { flex: 1; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-size: .875rem; font-weight: 500; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }
.site-header nav .button { margin-left: auto; min-height: 36px; padding: 7px 16px; }

/* Buttons: Apple blue for the main action, a raised surface for the rest. */
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 10px 20px; font-family: inherit; font-size: .875rem; line-height: 1.3; font-weight: 600; text-decoration: none; cursor: pointer; }
.primary { background: var(--accent); border-color: transparent; color: var(--accent-text); }
.primary:hover { background: var(--accent-hover); color: var(--accent-text); }
.secondary { background: var(--raised); color: var(--text); }
.secondary:hover { background: var(--raised-hover); color: var(--text); }
.button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--radius-pill); }
.button:active { filter: brightness(.85); }
.button-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.text-link { display: inline-flex; align-items: center; min-height: 48px; font-size: .94rem; color: var(--link); }
.text-link:hover { color: var(--text); }
.eyebrow { color: var(--muted); font-size: .8125rem; font-weight: 600; letter-spacing: 0; margin-bottom: 20px; }
.intro { font-size: 1.12rem; color: var(--muted); margin-top: 28px; max-width: 48ch; }

/* Home top section (mockup: docs/w-033/hero-mockup.html), centered. */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: 0 80px; }
/* The first screen holds the badge through the quote, centered, so the app screenshot
   starts right at the fold (owner, like vitalsmac.com). min-height only: short windows
   grow instead of clipping. svh keeps phones steady as the browser bars move. */
:root { --header-h: 64px; }
.hero-top { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h) - env(safe-area-inset-top, 0px)); padding-block: 40px; }
.hero h1 { max-width: 1000px; margin-top: 36px; }
.hero .intro { max-width: 620px; margin: 28px auto 0; font-size: 1.1875rem; line-height: 1.55; }
.hero .actions { justify-content: center; margin-top: 40px; }
.hero .actions .button { min-height: 48px; padding: 0 24px; font-size: 1rem; }
.hero-fine { margin: 20px 0 0; color: var(--faint); font-size: .875rem; }
.hero-fine strong { color: var(--muted); font-weight: 600; }
.hero-fine .dot { margin: 0 8px; }
.hero-quote { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 10px; margin: 36px 0 0; color: var(--muted); font-size: .875rem; }
.hero-quote blockquote, .hero-quote p { margin: 0; }
.hero-quote p { color: var(--text); font-style: italic; }
.hero-quote p::before { content: "\201C"; }
.hero-quote p::after { content: "\201D"; }
.hero-quote figcaption::before { content: "\2014\00a0"; }
.hero-preview { position: relative; min-width: 0; width: 100%; max-width: 1040px; }
.download-note { max-width: 720px; margin: 20px auto 0; color: var(--faint); font-size: .8125rem; line-height: 1.55; }
/* The capture is trimmed at the source: even margins around the app, no cropping in CSS. */
/* While the screenshot loads, the frame shows the app window's own top-to-bottom shade
   (sampled from the capture), so a half-loaded image never sits on a stark black box. */
.product-preview { position: relative; width: 100%; min-width: 0; aspect-ratio: 2026 / 1263; margin: 0; background: linear-gradient(180deg, #1b2232, #2d324b 50%, #3a3e5c); box-shadow: 0 30px 80px rgb(0 0 0 / 55%); }
.product-preview picture, .guide-figure picture { display: block; }
.product-preview, .optimization-example, .ai-example-frame { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); }
/* Scale the approved 16px corners of the 1040px desktop frame proportionally. */
.product-preview { border-radius: calc(100% * 16 / 1040) / calc(100% * 16 * 2026 / 1040 / 1263); }
.product-preview-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
/* Demo control covers the frame; its icon shows on hover or keyboard focus and
   always on touch screens. The video is cut to the frame's shape and fills it
   edge to edge, so no bars show. State changes are instant: no animation. */
/* The play button keeps the original site's lavender look (owner 2026-11-21; as at 3ffd92a). */
.demo-play { --action-top: #575577; --action-bottom: #68658f; --action-text: #f4f3f7; --action-border: rgb(166 157 200 / 36%); --action-focus: #c2caea; position: absolute; inset: 0; display: grid; place-items: center; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: var(--action-text); cursor: pointer; opacity: 0; }
.demo-play[hidden] { display: none; }
.product-preview:hover .demo-play, .demo-play:focus-visible, .demo-play:disabled { opacity: 1; }
.demo-play:hover, .demo-play:focus-visible { background: rgb(0 0 0 / 16%); }
.demo-play:disabled { cursor: progress; }
.demo-play:focus-visible { outline: none; }
.demo-play-icon { display: grid; place-items: center; width: 72px; height: 72px; border: 1px solid var(--action-border); border-radius: 50%; background: linear-gradient(180deg, var(--action-top), var(--action-bottom)); box-shadow: 0 12px 32px rgb(0 0 0 / 28%); }
.demo-play-icon svg { display: block; width: 34px; height: 34px; }
.demo-play:focus-visible .demo-play-icon { outline: 3px solid var(--action-focus); outline-offset: 5px; }
.demo-play:active .demo-play-icon { filter: brightness(.78); }
.demo-video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; }
.demo-video.is-ready { opacity: 1; }
.demo-video:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
@media (hover: none) { .demo-play { opacity: 1; } }

/* Home sections */
.section { padding-block: 88px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.section-heading { max-width: 620px; margin-bottom: 38px; }
.section-heading .eyebrow { margin-bottom: 14px; }
.section-heading .text-link { margin-top: 12px; }
.benefit-list p { color: var(--muted); margin: 10px 0 0; }
.section-note { color: var(--muted); font-size: .86rem; max-width: 84ch; margin: 32px 0 0; }
.ai-example { min-width: 0; margin: 0; }
.ai-example-image { display: block; width: 100%; height: auto; }
.ai-example-label { color: var(--text); font-size: .9rem; font-weight: 500; line-height: 1.4; margin-bottom: 14px; }
.ai-copy .text-link { margin-top: 16px; }
/* Reviews: masonry columns (3 / 2 / 1) so quotes of any length pack without gaps.
   Cards read top to bottom, column by column; on phones that is DOM order. */
.section-intro { margin: 14px 0 0; color: var(--muted); font-size: 1.0625rem; }
.quote-list { --quote-cols: 3; columns: 3; column-gap: 20px; }
/* reviews-masonry.js: each card at the top of the shortest column, on 1px grid rows. */
.quote-list.is-masonry { display: grid; grid-template-columns: repeat(var(--quote-cols), minmax(0, 1fr)); row-gap: 0; align-items: start; padding-bottom: 20px; }
.quote-list.is-placed { grid-auto-rows: 1px; }
.quote-list.is-masonry .quote-card { margin: 0; }
.quote-card { position: relative; break-inside: avoid; margin: 0 0 20px; padding: 26px 26px 24px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--raised); }
.quote-card blockquote { margin: 0; }
.quote-card blockquote p { margin: 0; font-size: 1rem; line-height: 1.6; overflow-wrap: break-word; }
.quote-card figcaption { margin-top: 18px; color: var(--muted); font-size: .875rem; font-weight: 500; line-height: 1.45; }
/* Source icon right after the signature. Adding href to .quote-link makes the whole card link to the post. */
.quote-link { color: var(--muted); }
.quote-link[href]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.quote-card:has(.quote-link[href]:hover) { border-color: var(--line-strong); }
.quote-card:has(.quote-link[href]:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.quote-link:focus-visible { outline: none; }
.quote-source { display: inline-block; width: 22px; height: 22px; margin-left: 4px; vertical-align: middle; fill: currentColor; }
.benefits, .setup { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.benefits .section-heading, .setup .section-heading { margin-bottom: 0; }
#optimization { row-gap: 24px; align-items: start; }
.optimization-example { grid-column: 1; grid-row: 2; margin: 0; }
.optimization-example img { display: block; width: 100%; height: auto; }
.benefit-list { display: grid; gap: 28px; }
.feature-points, .needs-list { display: grid; gap: var(--feature-item-gap); margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 1.125rem; }
.feature-points strong, .needs-list strong { color: var(--text); font-weight: 600; }
#optimization > .feature-points { grid-column: 2; grid-row: 2; align-self: start; }
#ai-assistant { grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: 48px; align-items: start; }
.ai-copy .section-heading { margin-bottom: 28px; }
.needs-list { grid-template-columns: 1fr; }
.setup-content > p { color: var(--muted); }
.availability { margin-top: 30px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--raised); }
.availability h3 { font-size: 1rem; }
.availability p { color: var(--muted); font-size: .94rem; margin: 12px 0 0; }
.buy-note { margin: 14px 0 0; color: var(--muted); font-size: .86rem; }
.support { display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; align-items: center; }
.support p:not(.eyebrow) { color: var(--muted); margin: 20px 0 0; }
.support-address { grid-column: 1 / -1; width: fit-content; min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); overflow-wrap: anywhere; }
/* Footer (W-037): brand column, three link columns, promise and copyright. */
.site-footer { padding-block: 48px 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.site-footer p { margin: 0; }
.footer-main { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.6fr); gap: 40px; }
.footer-brand .wordmark { color: var(--text); }
.footer-brand p { max-width: 32ch; margin-top: 12px; line-height: 1.55; }
/* Home page only: MacProof and MacPip badges, served by those sites (dark variants; the site is dark only). */
.footer-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.footer-badges a { display: inline-flex; border-radius: 6px; }
.footer-badges img { display: block; width: auto; height: 32px; }
/* Temporary (W-039): MacPip Awards vote block (heading, nominee card, caption), home page only, self-hosted card;
   remove after voting closes 2026-12-20. Hover and focus change outline and color only, no animation. */
.footer-award { margin-top: 22px; }
.footer-award .footer-heading { max-width: 280px; text-wrap: balance; }
.footer-award-link { display: block; width: fit-content; max-width: 100%; border-radius: 10px; color: var(--muted); text-decoration: none; cursor: pointer; }
.footer-award-link img { display: block; width: 280px; max-width: 100%; height: auto; border-radius: 10px; outline: 1px solid var(--line); outline-offset: 0; }
.footer-award-link:hover img { outline: 2px solid var(--line-strong); outline-offset: 2px; }
.footer-award-link:focus-visible { border-radius: 12px; }
.footer-award-caption { display: block; margin-top: 8px; font-size: .8125rem; }
.footer-award-link:hover .footer-award-caption, .footer-award-link:focus-visible .footer-award-caption { color: var(--text); }
.footer-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; gap: 32px; }
.site-footer .footer-heading { margin-bottom: 8px; color: var(--text); font-weight: 600; }
.footer-columns ul { margin: 0; padding: 0; list-style: none; }
.footer-columns a { display: inline-block; min-height: 0; padding-block: 4px; color: var(--muted); text-decoration: none; }
.footer-columns a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .8125rem; }
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 600px) { .footer-columns { grid-template-columns: 1fr 1fr; gap: 28px 20px; } .footer-col-guides { grid-column: 1 / -1; order: 3; } .footer-columns a { padding-block: 8px; } }

/* Reading pages (privacy, terms, guide, FAQ, MCP, articles): one quiet column. */
.privacy-notice { max-width: 68ch; margin-inline: auto; padding-block: 56px 88px; }
.privacy-notice .privacy-heading { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.privacy-notice .eyebrow { margin-bottom: 12px; }
.privacy-notice h1 { font-size: clamp(2.25rem, 4.4vw, 3.25rem); text-wrap: balance; }
.privacy-notice .privacy-summary { margin: 20px 0 0; color: var(--muted); font-size: 1.0625rem; line-height: 1.7; }
.privacy-notice .updated { margin: 12px 0 0; color: var(--faint); font-size: .86rem; }
.privacy-notice .privacy-section + .privacy-section { margin-top: 36px; }
.privacy-notice h2 { margin-bottom: 12px; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.3; letter-spacing: -.02em; }
.privacy-notice h3 { margin: 20px 0 8px; font-size: 1.0625rem; line-height: 1.4; }
.privacy-notice .privacy-section p { margin: 0; line-height: 1.75; }
.privacy-notice .privacy-section p + p { margin-top: 12px; }
.privacy-notice .terms-list { margin: 12px 0; padding-left: 1.25rem; line-height: 1.75; }
.privacy-notice .terms-list li + li { margin-top: 8px; }
.privacy-notice a { color: var(--link); }
.privacy-notice a:hover { color: var(--text); }
.privacy-notice p { overflow-wrap: anywhere; }
.privacy-notice code { overflow-wrap: anywhere; font-size: .9em; }
.article-list { margin: 0; padding: 0; list-style: none; }
.article-list li + li { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-list h2 { margin: 0 0 8px; }
.privacy-notice .article-list h2 a { color: var(--text); }
.privacy-notice .article-list h2 a:hover { color: var(--link); }
.article-list p { margin: 0; color: var(--muted); }
.related-articles { margin-top: 40px; }
/* FAQ: topic groups, a jump list and questions that open to show the answer (no script). */
.faq-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.privacy-notice .faq-topics a, .faq-topics a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--raised); color: var(--text); font-size: .875rem; text-decoration: none; }
.privacy-notice .faq-topics a:hover { background: var(--raised-hover); color: var(--text); }
.faq-group { scroll-margin-top: 24px; }
.faq-group + .faq-group { margin-top: 44px; }
.privacy-notice .faq-group > h2 { margin-bottom: 4px; color: var(--muted); font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.faq-item { border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.0625rem; font-weight: 600; line-height: 1.45; }
.faq-item summary::after { content: "+"; flex: none; width: 1.25rem; color: var(--muted); font-size: 1.375rem; line-height: 1; text-align: center; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover h3 { color: var(--link); }
.faq-item summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.faq-answer { padding: 0 2.25rem 20px 0; color: var(--muted); }
.faq-answer p { margin: 0; line-height: 1.75; }
.faq-answer p + p { margin-top: 12px; }
/* Guide, search and MCP pages reuse the reading layout above. */
.privacy-notice .guide-steps { margin: 16px 0 0; padding-left: 1.5rem; line-height: 1.75; }
.privacy-notice .guide-steps li + li { margin-top: 24px; }
.privacy-notice .guide-steps li::marker { color: var(--muted); }
.privacy-notice .guide-steps h3 { margin-top: 0; }
.guide-figure { margin: 16px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--raised); }
.guide-figure img, .guide-figure video { display: block; width: 100%; height: auto; }
.guide-figure figcaption { padding: 10px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; line-height: 1.5; }
.guide-figure.narrow { max-width: 26rem; }
.guide-figure.phone { max-width: 18rem; }
.privacy-heading .guide-figure { margin-top: 24px; }
.privacy-notice .answer-actions { margin-top: 20px; }
.privacy-notice .demo-link { margin: 16px 0 0; color: var(--muted); }
#demo { scroll-margin-top: 24px; }
.search-questions h3 { margin-top: 24px; }
.privacy-notice .actions { margin-top: 40px; }
.privacy-notice .actions a { color: inherit; }
.privacy-notice .actions .primary { color: var(--accent-text); }
.mcp-page .privacy-section > h3 { margin-top: 24px; color: var(--text); }
.mcp-page .guide-figure { margin: 16px 0 8px; }
/* Comparison page table: scrolls inside its box on narrow screens, never the page. */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.comparison-scroll { max-width: 100%; margin-top: 12px; overflow-x: auto; }
.comparison-table { width: 100%; min-width: 20rem; border-collapse: collapse; font-size: .9375rem; line-height: 1.55; }
.comparison-table th, .comparison-table td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison-table th:last-child, .comparison-table td:last-child { padding-right: 0; }
.comparison-table thead th { color: var(--text); font-weight: 600; }
.comparison-table tbody th { width: 30%; color: var(--muted); font-weight: 500; }
.comparison-table td { color: var(--text); }
.tool-table { min-width: 0; }
.tool-table td { overflow-wrap: anywhere; }
/* Phone-only status under the "Send to my Mac" buttons (phone-prompt.js), shown after a copy. */
.phone-status { margin: 12px 0 0; color: var(--muted); font-size: .9375rem; text-align: center; }
.phone-status:empty { display: none; }
/* Welcome email thank-you page, served by functions/api/welcome.js (W-021). */
.welcome h1 { margin-bottom: 24px; }
.welcome-section + .welcome-section { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.welcome-section:first-of-type .welcome-done { font-size: 1.375rem; }
.welcome-section h2 { margin-bottom: 16px; }
.welcome-done { margin: 0 0 12px; color: var(--text); font-size: 1.0625rem; font-weight: 500; }
.welcome-done span { color: var(--link); }
.welcome-note { margin: 12px 0 0; color: var(--muted); font-size: .875rem; }
.welcome-choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.welcome-choices form { display: contents; }
.welcome-choice[aria-current="true"] { outline: 2px solid var(--text); outline-offset: 2px; }
.welcome-form { margin-top: 20px; }
.welcome-form[hidden], .welcome-done[hidden], .welcome-note[hidden] { display: none; }
.welcome-form label { display: block; margin-bottom: 8px; color: var(--text); font-weight: 500; }
.welcome-inline { display: flex; gap: 10px; }
.welcome-form input[type="text"] { box-sizing: border-box; flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 14px; background: var(--raised); color: var(--text); font: inherit; }
.welcome-form input[type="text"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.welcome .actions { margin-top: 0; }
.welcome .actions form { display: contents; }
.welcome-skip { margin-top: 24px; }
.welcome-final-title { margin: 0; }
.welcome-final-close { margin: 12px 0 0; }
.welcome-summary { margin: 24px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .875rem; line-height: 1.7; }
.welcome-change { margin: 16px 0 0; font-size: .875rem; }

@media (max-width: 1000px) {
  .quote-list { --quote-cols: 2; columns: 2; }
}
@media (max-width: 900px) {
  .hero { padding-bottom: 64px; }
  .benefits, .setup { gap: 40px; }
  #ai-assistant { grid-template-columns: 1fr; gap: 28px; }
  .ai-example { max-width: 670px; }
}
/* Below 760px the links no longer fit beside the logo: logo and Download share
   the top row, the text links take the row below. */
@media (max-width: 760px) {
  .site-header { position: relative; flex-direction: column; align-items: flex-start; gap: 0; padding-top: 10px; }
  .site-header .wordmark { min-height: 44px; }
  :root { --header-h: 98px; }
  .site-header nav { width: 100%; gap: 0 18px; }
  .site-header nav .button { position: absolute; top: 14px; right: 0; margin: 0; }
}
/* Phones: the links spread across the full row; smaller text below 360px keeps them on one line. */
@media (max-width: 480px) {
  .site-header nav { justify-content: space-between; gap: 0; }
  .site-header nav a:not(.button) { font-size: .8125rem; }
}
@media (max-width: 359px) {
  .site-header nav a:not(.button) { font-size: .75rem; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 40px); }
  .hero { padding-bottom: 56px; }
  .hero-top { padding-block: 16px 20px; }
  .hero h1 { margin-top: 24px; font-size: clamp(2.1rem, 9.6vw, 2.9rem); }
  /* Phones keep the tighter spacing. */
  .hero .intro { margin-top: 22px; font-size: 1.0625rem; }
  .hero-fine { margin-top: 16px; }
  .hero-quote { margin-top: 26px; }
  .hero .actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; margin-top: 34px; }
  .hero-fine .dot { margin: 0 5px; }
  .demo-play-icon { width: 56px; height: 56px; }
  .demo-play-icon svg { width: 27px; height: 27px; }
  .intro { font-size: 1rem; }
  .section { padding-block: 56px; }
  .benefits, .setup, .support { grid-template-columns: 1fr; gap: 32px; }
  .section-heading { margin-bottom: 0; }
  #optimization > .feature-points { grid-column: 1; grid-row: 3; }
  .needs-list { grid-template-columns: 1fr; }
  #ai-assistant { gap: 24px; }
  .quote-list { --quote-cols: 1; columns: 1; }
  .quote-card { padding: 22px 20px 20px; }
  .ai-copy .section-heading { margin-bottom: 20px; }
  .customer-quotes .section-heading { margin-bottom: 28px; }
  .ai-example-label { font-size: .85rem; margin-bottom: 10px; }
  .support .button { justify-self: start; }
  .support-address { font-size: .9rem; }
  .privacy-notice { padding-block: 36px 56px; }
  .privacy-notice .privacy-heading { margin-bottom: 32px; padding-bottom: 24px; }
  .privacy-notice .privacy-section + .privacy-section { margin-top: 28px; }
}

/* Black Friday 2026 (W-031): sale badge with a buy link at the top of the
   homepage hero. Remove this whole block with #black-friday in index.html. */
.bf-badge { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; margin: 0; padding: 5px 5px 5px 5px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--raised); color: var(--muted); font-size: .875rem; line-height: 1.4; }
.bf-headline { padding: 3px 9px; border-radius: var(--radius-pill); background: #fbbf24; color: #1c1917; font-size: .6875rem; font-weight: 800; letter-spacing: .06em; }
.bf-text strong { color: var(--text); font: 600 .8125rem/1 ui-monospace, "SF Mono", Menlo, monospace; }
.bf-buy { display: inline-flex; align-items: center; min-height: 28px; margin-left: 6px; padding: 4px 12px; border: 1px solid transparent; border-radius: var(--radius-pill); background: var(--accent); color: var(--accent-text); font-size: .8125rem; font-weight: 600; line-height: 1.2; text-decoration: none; }
.bf-buy:hover { background: var(--accent-hover); color: var(--accent-text); }
.bf-buy:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (hover: none), (pointer: coarse) {
  .bf-buy { min-height: 32px; }
}
@media (max-width: 600px) {
  /* Phones: a centered card, stacked badge, deal, dates and a full-width Buy now. */
  .bf-badge { display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(100%, 22rem); padding: 14px 16px 16px; border-radius: var(--radius-card); font-size: .9375rem; line-height: 1.4; text-align: center; }
  .bf-text { display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .bf-sep { display: none; }
  .bf-dates { color: var(--muted); font-size: .875rem; }
  .bf-buy { justify-content: center; width: 100%; min-height: 44px; margin: 4px 0 0; font-size: .9375rem; }
}
