/* Inkspine — the same paper, ink and rust palette as the app. */
:root {
  color-scheme: dark;
  --bg: #0f1113;
  --bg-elevated: #16191c;
  --bg-sunken: #0b0d0e;
  --ink: #e6e8ea;
  --ink-muted: #a9b0b7;
  --ink-faint: #929ba3;
  --line: #2b3035;
  --line-strong: #41484f;
  --accent: #d9603b;
  --accent-hover: #e7734e;
  --accent-soft: rgb(217 96 59 / 12%);
  --paper: #faf8f5;
  --paper-ink: #1b1815;
  --paper-muted: #5b544c;
  --paper-line: #e6e1da;
  --blue: var(--accent);
  --blue-soft: var(--accent-soft);
  --coral: var(--accent);
  --coral-soft: var(--accent-soft);
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1160px;
  --page-padding: clamp(20px, 4vw, 48px);
  --hero-gap: clamp(32px, 5vw, 72px);
  --preview-frame: #34383c;
  --preview-paper-frame: #77746e;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, 'Iowan Old Style', Palatino, 'Times New Roman', serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: rgb(217 96 59 / 20%); }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
::selection { background: var(--accent); color: var(--bg); }
[hidden] { display: none !important; }
.wrap { width: min(calc(100% - var(--page-padding) * 2), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 20px; background: var(--paper); color: var(--paper-ink); border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(15 17 19 / 95%); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav { min-height: 76px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--ink); text-decoration: none; font: 600 25px/1 var(--serif); letter-spacing: -.8px; min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand-period { color: var(--accent); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 28px; }
.nav-links a { color: var(--ink-muted); text-decoration: none; font-size: 13px; min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 52px; padding: 13px 22px; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: 14px; line-height: 1.4; font-weight: 650; text-decoration: none; transition: background .18s, transform .18s, border-color .18s; }
.btn:active { transform: translateY(1px); }
.btn-primary, .nav-links .btn-primary, .btn-coral { color: var(--bg-sunken); background: var(--accent); }
.btn-primary:hover, .nav-links .btn-primary:hover, .btn-coral:hover { color: var(--bg-sunken); background: var(--accent-hover); }
.nav-links .btn { min-height: 44px; padding: 11px 17px; }
.btn-secondary { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-secondary:hover { background: var(--bg-elevated); color: var(--ink); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font: 11px/1.5 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-muted); }
.small-rule { width: 28px; height: 2px; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -2px; }
h1 em, h2 em { color: var(--accent); font-weight: 400; }
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--hero-gap); align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 { margin-bottom: 24px; font-size: clamp(42px, 4.5vw, 64px); line-height: 1.12; letter-spacing: -2.2px; }
.lede { color: var(--ink-muted); max-width: 440px; margin-bottom: 28px; font-size: 16px; line-height: 1.75; }
.store-button { gap: 12px; }
.store-button > span { margin-left: 8px; }
.hero-actions, .download-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.download-layout > .download-actions { flex: 0 1 auto; }
.hero-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); align-items: center; gap: clamp(12px, 2vw, 24px); min-width: 0; width: 100%; max-width: 500px; justify-self: end; padding: clamp(16px, 2.5vw, 28px); background: var(--bg-elevated); border: 1px solid var(--line); border-radius: 24px; }
.phone { min-width: 0; overflow: hidden; border: 3px solid var(--preview-frame); border-radius: 18px; background: var(--bg); }
.phone img { width: 100%; }
.phone-paper { border-color: var(--preview-paper-frame); }
.format-strip { border-block: 1px solid var(--line); }
.format-strip .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; padding-block: 24px; color: var(--ink-muted); font: 16px/1.5 var(--serif); }
.format-strip span[aria-hidden] { color: var(--line-strong); font-family: var(--mono); }
section:not(.hero):not(.download-section) { padding-block: 80px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 52px; }
h2 { font-size: clamp(38px, 4vw, 56px); line-height: 1.12; margin-bottom: 0; letter-spacing: -1.5px; }
.section-heading p { max-width: 300px; color: var(--ink-muted); margin: 0 0 4px; font-size: 14px; }
.workspace-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 10%; align-items: center; }
.workspace-views { min-width: 0; }
.view-button { display: grid; grid-template-columns: 24px 1fr 20px; width: 100%; text-align: left; gap: 20px; padding: 27px 0; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; transition: color .18s; }
.view-button:first-child { border-top: 1px solid var(--line); }
.view-number { font: 11px/1.8 var(--mono); color: var(--ink-muted); }
.view-button strong { display: block; font-size: 18px; line-height: 1.3; font-weight: 500; }
.view-description { display: block; color: var(--ink-muted); font-size: 13px; line-height: 1.7; margin-top: 10px; }
.view-arrow { font-size: 19px; color: var(--ink-muted); transition: transform .18s; }
.view-button:hover .view-arrow { transform: translate(2px, -2px); }
.view-button[aria-pressed='true'] .view-number, .view-button[aria-pressed='true'] strong, .view-button[aria-pressed='true'] .view-arrow { color: var(--accent); }
.workspace-preview { margin: 0; padding: 24px 32px 18px; background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--radius); }
.preview-topline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--ink-muted); font: 9px/1.5 var(--mono); margin-bottom: 20px; }
.preview-topline span:last-child { color: var(--accent); }
.preview-image-wrap { width: min(100%, 280px); margin-inline: auto; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: var(--bg); aspect-ratio: 1 / 2; }
.preview-image-wrap img { width: 100%; transition: opacity .18s; }
.workspace-preview[aria-busy='true'] .preview-image-wrap img { opacity: .4; }
.workspace-preview[aria-busy='true'] .preview-topline::after { content: 'Loading…'; color: var(--accent); }
.workspace-preview figcaption { margin-top: 18px; text-align: center; color: var(--ink-muted); font-size: 10px; }
.preview-status { color: var(--ink); font-size: 12px; margin: 14px 0 0; }
.features-section { background: var(--paper); color: var(--paper-ink); color-scheme: light; }
.features-section .eyebrow { color: var(--paper-muted); }
.features-section h2 em { color: #b4441f; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 9%; }
.feature { border-top: 1px solid #cec7bc; padding-top: 24px; }
.feature svg { width: 30px; height: 30px; stroke: #b4441f; stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.feature h3 { font: 400 24px/1.3 var(--serif); letter-spacing: -.4px; margin-bottom: 12px; }
.feature p { color: var(--paper-muted); font-size: 14px; max-width: 390px; margin-bottom: 0; }
.story-layout { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 7%; }
.story-art { min-width: 0; }
.story-art img { width: 100%; border-radius: var(--radius); }
.story-copy h2 { margin-bottom: 28px; }
.story-copy p { color: var(--ink-muted); font-size: 14px; max-width: 320px; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 28px; color: var(--accent); font-size: 13px; font-weight: 600; }
.questions-section { border-top: 1px solid var(--line); }
.questions-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10%; }
.questions { min-width: 0; }
.questions details { border-bottom: 1px solid var(--line); }
.questions details:first-child { border-top: 1px solid var(--line); }
.questions summary { padding: 22px 0; display: flex; gap: 20px; justify-content: space-between; align-items: center; font-size: 15px; cursor: pointer; list-style: none; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary span { font: 22px/1 var(--mono); color: var(--accent); transition: transform .18s; }
.questions details[open] summary span { transform: rotate(45deg); }
.questions details p { color: var(--ink-muted); font-size: 14px; margin: 0 24px 24px 0; }
.download-section { border-block: 1px solid var(--line); background: var(--bg-elevated); padding-block: 48px; }
.download-layout { display: flex; align-items: center; gap: 24px; }
.download-layout > img { width: 80px; height: 80px; border-radius: 18px; }
.download-layout > div { flex: 1; }
.download-layout h2 { font-size: clamp(30px, 3.2vw, 44px); letter-spacing: -1px; }
.download-layout p { color: var(--ink-muted); margin: 10px 0 0; font-size: 13px; }
.site-footer { padding: 38px 0 24px; color: var(--ink-muted); font-size: 12px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-links a { color: var(--ink-muted); min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-note { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 11px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 10px; }
.footer-brand strong { display: block; color: var(--ink); }
/* Existing support and legal documents share the brand without altering policy copy. */
body:not(.landing) .nav { flex-wrap: wrap; }
body:not(.landing) .nav-links { gap: 8px 20px; }
.page-hero { padding: 56px 0 28px; }
.page-hero h1 { font-size: clamp(38px, 5vw, 58px); line-height: 1.15; margin-bottom: 18px; }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero p { color: var(--ink-muted); max-width: 680px; }
.prose { border: 1px solid var(--line); background: var(--bg-elevated); padding: clamp(24px, 4vw, 48px); border-radius: var(--radius); margin-bottom: 48px; overflow-wrap: anywhere; }
.prose h2 { font: 500 25px/1.3 var(--serif); letter-spacing: -.4px; margin: 36px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; margin: 24px 0 12px; }
.prose p, .prose li { color: var(--ink-muted); }
.prose p { margin-bottom: 16px; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-muted); font-size: 13px; margin-bottom: 20px; }
.callout { border-left: 2px solid var(--accent); background: var(--accent-soft); padding: 16px 20px; margin: 24px 0; }
.callout p { margin: 0; color: var(--ink); }
.email-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 20px; margin: 24px 0; }
.email-box .label { font-size: 12px; margin-bottom: 4px; }
.email-box .email { font-size: clamp(16px, 3vw, 20px); overflow-wrap: anywhere; color: var(--ink); }
.steps { list-style: none; padding: 0 !important; counter-reset: step; }
.steps li { position: relative; padding: 20px 0 20px 48px; border-bottom: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 22px; font: 14px var(--mono); color: var(--accent); }
@media (max-width: 1000px) {
  .nav-links { gap: 12px 18px; }
  .workspace-layout { gap: 6%; }
  .workspace-preview { padding-inline: 24px; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { max-width: 600px; }
  .hero h1 { font-size: clamp(42px, 7vw, 60px); }
  .hero-product { justify-self: center; }
}
@media (max-width: 760px) {
  .nav { min-height: 76px; gap: 12px; }
  .brand { font-size: 22px; gap: 8px; }
  .brand img { width: 32px; height: 32px; border-radius: 8px; }
  .landing .nav-links { margin-left: auto; }
  .landing .nav-download { padding-inline: 14px; font-size: 12px; gap: 12px; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 40px 0 48px; }
  .format-strip .wrap { justify-content: center; gap: 12px 18px; font-size: 14px; }
  .format-strip span[aria-hidden] { display: none; }
  section:not(.hero):not(.download-section) { padding-block: 64px; }
  .section-heading { display: block; margin-bottom: 32px; }
  .section-heading p { margin-top: 24px; max-width: 360px; }
  .eyebrow { margin-bottom: 20px; font-size: 10px; }
  .workspace-layout { grid-template-columns: 1fr; gap: 32px; }
  .view-button { padding-block: 22px; gap: 14px; }
  .workspace-preview { width: min(100%, 420px); margin-inline: auto; }
  .preview-image-wrap { width: min(100%, 260px); }
  .feature-grid { gap: 32px 28px; }
  .feature h3 { font-size: 22px; }
  .story-layout { grid-template-columns: 1fr; gap: 32px; }
  .story-art { max-width: 520px; }
  .story-copy p { max-width: 440px; }
  .questions-layout { grid-template-columns: 1fr; gap: 36px; }
  .download-layout { flex-wrap: wrap; gap: 20px; }
  .download-layout > img { width: 60px; height: 60px; border-radius: 12px; }
  .download-layout > div { flex-basis: calc(100% - 80px); }
  .download-layout > a { width: 100%; }
  .download-layout > .download-actions { flex-basis: 100%; }
  .download-actions .btn { flex: 1 1 200px; }
  .footer-grid { align-items: flex-start; }
  body:not(.landing) .nav-links a:not(.btn) { display: inline-flex; }
  body:not(.landing) .nav-links { justify-content: flex-start; }
  .prose { font-size: 14px; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: clamp(36px, 10vw, 42px); letter-spacing: -1.4px; }
  .hero .store-button { width: 100%; }
  .hero-actions > .btn { width: 100%; }
  .phone { border-width: 2px; border-radius: 12px; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-links { gap: 8px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
