/* Verified against Thumbwise 20b447a (2026-10-14), not the historical palette.
   Sources: WorkspaceBackground.swift, WorkspaceForeground.swift,
   WorkspaceButtonGuidance.swift, WorkspaceTypography.swift and WorkspaceWindow.swift.
   See docs/LAUNCH_NOTES.md for exact source roles and responsive adaptations. */
:root {
  color-scheme: dark;
  --background-top: #1b2232;
  --background-middle: #2b314a;
  --background-bottom: #3a3e5c;
  --surface-top: #151a29;
  --surface-middle: #22263a;
  --surface-bottom: #2b2e47;
  --text: #f0f1f5;
  --muted: #b2b6c0;
  --detail: #c2caea;
  --control-top: #212b3d;
  --control-bottom: #293348;
  --control-border: rgb(104 120 153 / 42%);
  --action-top: #575577;
  --action-bottom: #68658f;
  --action-text: #f4f3f7;
  --action-border: rgb(166 157 200 / 36%);
  --border: rgb(255 255 255 / 8%);
  --divider: rgb(255 255 255 / 10%);
  --radius-panel: 18px;
  --radius-card: 16px;
  --radius-control: 21px;
  --feature-item-gap: 32px;
  --window-gradient: linear-gradient(180deg, var(--background-top) 0%, var(--background-middle) 50%, var(--background-bottom) 100%);
  --foreground-gradient: linear-gradient(180deg, var(--surface-top) 0%, var(--surface-middle) 50%, var(--surface-bottom) 100%);
  --control-gradient: linear-gradient(180deg, var(--control-top), var(--control-bottom));
  --action-gradient: linear-gradient(180deg, var(--action-top), var(--action-bottom));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background: var(--background-top);
  color: var(--text);
}
* { box-sizing: border-box; }
/* Keep vertical scroll boundaries still where the browser supports it. */
html, body { overscroll-behavior-y: none; }
body { margin: 0; position: relative; isolation: isolate; background: var(--background-top); }
/* Keep the viewport ramp behind retractable browser UI as its height changes. */
body::before { content: ""; position: fixed; inset: 0; min-height: 100lvh; z-index: -1; background: var(--window-gradient); pointer-events: none; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--detail); }
a:focus-visible { outline: 3px solid var(--detail); outline-offset: 5px; border-radius: 4px; }
p { margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.025em; margin: 0; }
h1 { font-size: clamp(2.5rem, 4.4vw, 4rem); font-weight: 500; }
h1 span { color: var(--detail); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 500; }
h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: -.01em; }
.wrap { width: min(1120px, calc(100% - 64px)); 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(--background-top); }
.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; }
/* Let the existing backdrop fill the edge-to-edge viewport while 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)); }
}
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 28px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 1.375rem; font-weight: 500; letter-spacing: -.025em; text-decoration: none; }
.app-icon { display: block; flex: none; width: 44px; height: 44px; }
nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-size: .875rem; font-weight: 500; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: start; padding-block: 60px 80px; }
.eyebrow { color: var(--muted); font-size: .8125rem; font-weight: 500; letter-spacing: 0; margin-bottom: 20px; }
.intro { font-size: 1.12rem; color: var(--muted); margin-top: 28px; max-width: 48ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; border: 1px solid var(--control-border); border-radius: var(--radius-control); padding: 10px 20px; font-size: .875rem; line-height: 1.4; font-weight: 500; text-decoration: none; }
.primary { background: var(--action-gradient); border-color: var(--action-border); color: var(--action-text); }
.button { position: relative; }
.button::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #000; opacity: 0; pointer-events: none; }
.button:hover { color: var(--text); }
.button:active::after { opacity: .22; }
.primary:hover { color: var(--action-text); }
.button:focus-visible { border-radius: var(--radius-control); }
.text-link { display: inline-flex; align-items: center; min-height: 48px; font-size: .94rem; }
.release-note { color: var(--muted); font-size: .82rem; margin-top: 18px; }
.hero-preview { position: relative; min-width: 0; width: 100%; max-width: 1040px; justify-self: center; }
.hero .product-preview-status { font-size: .9375rem; margin-bottom: 16px; }
.hero-details .intro { max-width: none; margin: 0; }
.hero-details .actions { margin-top: 20px; }
/* Crop the unedited capture to 28 source pixels around the foreground panels.
   The frame keeps its size; its native background fills the tiny top remainder. */
.product-preview { --preview-crop-width: 2024; --preview-crop-left: 24; --preview-crop-bottom: 23; position: relative; width: 100%; min-width: 0; aspect-ratio: 2048 / 1285; margin: 0; background: var(--background-top); box-shadow: 0 12px 32px rgb(0 0 0 / 14%); }
.product-preview, .optimization-example, .ai-example-frame { overflow: hidden; border: 1px solid var(--border); 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 * 2048 / 1040 / 1285); }
.product-preview-image { position: absolute; left: 0; bottom: 0; display: block; width: calc(100% * 2048 / var(--preview-crop-width)); height: auto; transform: translate(calc(-100% * var(--preview-crop-left) / 2048), calc(100% * var(--preview-crop-bottom) / 1289)); clip-path: inset(calc(100% * 4 / 1289) 0 0); }
/* Surface cutouts sample one viewport y, never a separate ramp per card. */
.availability { background-color: var(--surface-middle); background-image: var(--foreground-gradient); background-attachment: fixed; background-position: 0 0; background-size: 100vw 100vh; }
.ai-example { min-width: 0; margin: 0; }
/* Crop only surrounding background, leaving about 14 source pixels around
   all three complete canvases. The untransformed image keeps the frame size. */
.ai-example-image { display: block; width: 100%; height: auto; clip-path: inset(0 .31% 0 0); transform-origin: left bottom; transform: scale(calc(1308 / 1207)) translate(calc(-100% * 58 / 1308), calc(100% * 30 / 846)); }
.ai-example-label { color: var(--detail); font-size: .9rem; font-weight: 500; line-height: 1.4; margin-bottom: 14px; }
.section { padding-block: 72px; border-top: 1px solid var(--divider); scroll-margin-top: 24px; }
.section-heading { max-width: 620px; margin-bottom: 38px; }
.section-heading .eyebrow { margin-bottom: 14px; }
.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; }
.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; }
#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); }
.waitlist-intro { margin: 20px 0 0; color: var(--muted); max-width: 42ch; font-size: 1rem; line-height: 1.6; letter-spacing: 0; }
.waitlist-form { min-width: 0; }
.waitlist-fields { display: grid; gap: 16px; min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.waitlist-email label { display: block; margin-bottom: 8px; font-size: .94rem; font-weight: 500; }
.waitlist-email input { display: block; width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--control-border); border-radius: var(--radius-control); background: var(--control-gradient); color: var(--text); font: inherit; }
.waitlist-email input::placeholder { color: var(--muted); opacity: 1; }
.waitlist-email input:focus-visible { outline: 3px solid var(--detail); outline-offset: 4px; }
.waitlist-email input[aria-invalid="true"] { border-color: var(--detail); }
.waitlist-form .button { justify-self: start; font-family: inherit; }
.waitlist-form .button:disabled { opacity: .6; cursor: not-allowed; }
.form-error { margin: 8px 0 0; color: var(--text); font-size: .86rem; }
.form-note { margin: 16px 0 0; color: var(--muted); font-size: .86rem; }
.waitlist-form [data-state="success"] { color: var(--text); font-size: 1rem; font-weight: 500; }
.availability { margin-top: 30px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-card); }
.availability h3 { font-size: 1rem; }
.availability p { color: var(--muted); font-size: .94rem; margin: 12px 0 0; }
.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; }
.secondary { background: var(--control-gradient); }
.support-address { grid-column: 1 / -1; width: fit-content; min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); overflow-wrap: anywhere; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-block: 28px 36px; border-top: 1px solid var(--divider); }
.site-footer .wordmark { font-size: 1.2rem; }
.site-footer p { font-size: .82rem; color: var(--muted); margin: 0; }
/* Privacy notice: a quiet reading layout within the shared site shell. */
.privacy-notice { max-width: 68ch; margin-inline: auto; padding-block: 48px 80px; }
.privacy-notice .privacy-heading { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--divider); }
.privacy-notice .eyebrow { margin-bottom: 12px; }
.privacy-notice h1 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); text-wrap: balance; }
.privacy-notice .privacy-summary { margin: 20px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.privacy-notice .privacy-section + .privacy-section { margin-top: 32px; }
.privacy-notice h2 { margin-bottom: 12px; font-size: clamp(1.2rem, 2vw, 1.375rem); line-height: 1.35; }
.privacy-notice .privacy-section p { margin: 0; line-height: 1.75; }
.privacy-notice .privacy-section p + p { margin-top: 12px; }
.privacy-notice a { color: var(--detail); }
.privacy-notice a:hover { color: var(--text); }
.privacy-notice p { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .privacy-notice { padding-block: 32px 56px; }
  .privacy-notice .privacy-heading { margin-bottom: 32px; padding-bottom: 24px; }
  .privacy-notice .privacy-section + .privacy-section { margin-top: 28px; }
}
/* Touch browsers may ignore fixed backgrounds. Use one native midpoint there
   so separate cards cannot restart conflicting gradients. No script required. */
@media (hover: none), (pointer: coarse) {
  .availability { background-image: none; }
}
@media (max-width: 900px) {
  .hero { gap: 32px; padding-block: 40px 64px; }
  .benefits, .setup { gap: 40px; }
  #ai-assistant { grid-template-columns: 1fr; gap: 28px; }
  .ai-example { max-width: 670px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { align-items: flex-start; flex-direction: column; gap: 8px; padding-block: 24px 16px; }
  nav { display: grid; grid-template-columns: repeat(3, max-content); gap: 0 24px; }
  .hero { gap: 24px; padding-top: 24px; }
  h1 { font-size: clamp(2.1rem, 8.4vw, 2.9rem); }
  .intro { font-size: 1rem; }
  .section { padding-block: 48px; }
  .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; }
  .ai-copy .section-heading { margin-bottom: 20px; }
  .ai-example-label { font-size: .85rem; margin-bottom: 10px; }
  .support .button { justify-self: start; }
  .support-address { font-size: .9rem; }
}
