:root {
  color-scheme: light;
  --paper: #F7F0DF;
  --paper-surface: #FFF8E8;
  --paper-secondary: #FAF2E2;
  --ink: #1F1A14;
  --ink-muted: #6F604A;
  --ink-placeholder: #958266;
  --line: #D8C7A3;
  --border: #E3D4B4;
  --underline: #D5C4A3;
  --accent: #373022;
  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6.5rem;
  --content-width: 1160px;
  --radius-small: 6px;
  --radius-medium: 10px;
  --hairline: 1px solid var(--border);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible { outline: 3px solid #63543d; outline-offset: 4px; border-radius: 3px; }
img { display: block; max-width: 100%; }
.skip-link { position: absolute; top: -4rem; left: 1rem; z-index: 5; padding: .6rem 1rem; background: var(--paper-surface); border: var(--hairline); }
.skip-link:focus { top: 1rem; }
.section-wrap, .header-inner, .footer-inner { width: min(var(--content-width), calc(100% - 3rem)); margin-inline: auto; }
.site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.wordmark { color: var(--ink); font-size: 1.1rem; font-weight: 800; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.wordmark-period { color: var(--ink-muted); }
.desktop-nav { display: flex; align-items: center; gap: clamp(1.1rem, 3vw, 2.5rem); }
.desktop-nav a, .site-footer nav a, .footer-meta a { color: var(--ink-muted); font-size: .92rem; text-decoration: none; }
.desktop-nav a:hover, .site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .25em; }
.desktop-nav [aria-current="page"], .site-footer [aria-current="page"] { color: var(--ink); font-weight: 650; }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { cursor: pointer; list-style: none; border: 1px solid var(--line); border-radius: var(--radius-small); padding: .35rem .7rem; font-size: .9rem; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu nav { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 190px; padding: .4rem; background: var(--paper-surface); border: var(--hairline); border-radius: var(--radius-small); }
.mobile-menu nav a { display: block; padding: .55rem .7rem; color: var(--ink-muted); text-decoration: none; }
.mobile-menu nav a:hover { color: var(--ink); background: var(--paper-secondary); }
.eyebrow { margin: 0 0 .85rem; color: var(--ink-muted); font-size: .76rem; font-weight: 700; letter-spacing: .105em; line-height: 1.4; text-transform: uppercase; }
h1, h2, h3, p, figure { margin-top: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -.035em; }
h1 { margin-bottom: .55rem; font-size: clamp(3.2rem, 7.5vw, 6.5rem); font-weight: 800; }
h2 { margin-bottom: 0; font-size: clamp(2rem, 4.1vw, 3.6rem); font-weight: 740; }
h3 { margin-bottom: .42rem; font-size: 1.17rem; font-weight: 700; letter-spacing: -.02em; }
.hero { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(300px, .72fr); align-items: center; gap: clamp(3rem, 9vw, 8rem); padding-block: clamp(4.5rem, 9vw, 8rem) var(--space-8); }
.hero-copy { max-width: 590px; }
.hero-app-icon { width: 72px; height: 72px; margin: 0 0 1.2rem; border: 1px solid var(--border); border-radius: 17px; object-fit: cover; }
.hero-tagline { margin: 1.2rem 0 .8rem; font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 650; letter-spacing: -.025em; line-height: 1.3; }
.hero-description { max-width: 500px; margin-bottom: 1.8rem; color: var(--ink-muted); font-size: 1.1rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.35rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .8rem; padding: .72rem 1.12rem; border: 1px solid var(--accent); border-radius: var(--radius-small); font-weight: 650; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.button-primary { background: var(--accent); color: var(--paper-surface); }
.button-primary:hover { background: var(--ink); }
.text-link { color: var(--ink-muted); font-size: .94rem; }
.hero-figure { width: min(100%, 368px); justify-self: center; margin-bottom: 0; }
.screenshot-frame { overflow: hidden; border: 1px solid var(--border); border-radius: 28px; background: var(--paper-surface); }
.screenshot-frame img { width: 100%; height: auto; }
.hero-figure figcaption, .gallery-item figcaption { display: flex; flex-direction: column; gap: .05rem; margin-top: .8rem; color: var(--ink-muted); font-size: .83rem; }
.hero-figure figcaption span:first-child, .gallery-item figcaption span:first-child { color: var(--ink); font-weight: 650; }
.why-section { padding-block: var(--space-7); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 2rem 5rem; }
.section-heading { max-width: 650px; }
.section-heading h2 { max-width: 610px; }
.why-copy { max-width: 510px; padding-top: 1.45rem; color: var(--ink-muted); font-size: 1.08rem; }
.why-copy p:first-child { color: var(--ink); font-weight: 650; }
.why-copy p:last-child { margin-bottom: 0; }
.continuity-line { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; max-width: 720px; margin-top: 1rem; color: var(--ink-muted); font-size: .8rem; font-weight: 650; }
.continuity-line i { flex: 1; height: 1px; background-image: linear-gradient(to right, var(--line) 50%, transparent 50%); background-size: 9px 1px; }
.how-section, .screens-section { padding-block: var(--space-8); }
.screens-section { padding-bottom: var(--space-4); }
.how-section { padding-top: var(--space-4); border-top: 1px solid var(--line); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.3rem; }
.section-intro { max-width: 315px; margin: 0 0 .15rem; color: var(--ink-muted); }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-block: 1px solid var(--line); }
.how-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: .7rem; padding: 1.35rem 1rem; border-right: 1px solid var(--line); }
.how-steps li:first-child { padding-left: .35rem; }
.how-steps li:last-child { padding-right: .35rem; border-right: 0; }
.how-number { color: var(--ink-muted); font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
.how-steps h3 { margin-bottom: .45rem; text-transform: uppercase; font-size: .95rem; letter-spacing: .015em; }
.how-steps p { margin-bottom: 0; color: var(--ink-muted); font-size: .94rem; }
.briefing-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); align-items: center; gap: clamp(2rem, 7vw, 6rem); padding-block: var(--space-7); border-block: 1px solid var(--line); }
.briefing-copy { max-width: 620px; }
.briefing-copy h2 { margin-bottom: 1rem; }
.briefing-copy p:not(.eyebrow) { color: var(--ink-muted); }
.briefing-copy p:last-child { margin-bottom: 0; }
.briefing-flow { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.briefing-flow li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1rem .2rem; border-bottom: 1px solid var(--line); }
.briefing-index { padding-top: .1rem; color: var(--ink-muted); font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
.briefing-flow strong, .briefing-flow small { display: block; }
.briefing-flow small { margin-top: .15rem; color: var(--ink-muted); font-size: .9rem; }
.workbook-section { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 7vw, 6rem); padding-block: 0 var(--space-8); }
.workbook-image { width: min(100%, 420px); margin: 0; }
.workbook-copy { max-width: 540px; }
.workbook-copy h2 { margin-bottom: 1rem; }
.workbook-copy > p:last-child { margin-bottom: 0; color: var(--ink-muted); font-size: 1.05rem; }
.workbook-copy .origin-line { margin-top: 1rem; color: var(--ink-muted); font-size: .9rem; font-style: italic; }
.screenshot-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: clamp(1.25rem, 3vw, 2.5rem); }
.gallery-item { width: min(100%, 390px); justify-self: center; margin: 0; }
.gallery-item-widget { grid-column: 2; }
.gallery-item-tall { justify-self: center; }
.gallery-item-main { width: min(100%, 430px); justify-self: center; }
.gallery-item-paper { width: 100%; padding-top: 2.5rem; }
.paper-frame { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-small); background: var(--paper-surface); }
.paper-frame img { width: 100%; height: auto; }
.closing-cta { padding-block: var(--space-7); border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); text-align: center; }
.closing-cta h2 { max-width: 800px; margin: 0 auto .85rem; }
.closing-cta > p:not(.eyebrow) { margin-bottom: 1.4rem; color: var(--ink-muted); }
.button[hidden], .social-links[hidden] { display: none; }
.faq-section { padding-block: var(--space-7); border-top: 1px solid var(--line); }
.faq-section .section-heading-row { margin-bottom: 1.5rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 650; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; right: .15rem; color: var(--ink-muted); content: "+"; font-size: 1.2rem; line-height: 1.25; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 680px; margin: 0; padding: 0 2rem 1rem 0; color: var(--ink-muted); }
.faq-list a { color: var(--ink); }
.site-footer { margin-top: var(--space-7); border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.4rem; padding-block: 1.5rem 2rem; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.footer-meta { display: flex; flex-direction: column; align-items: end; color: var(--ink-muted); font-size: .82rem; line-height: 1.55; }
.legal-main, .support-main { min-height: 60vh; padding-block: clamp(4.5rem, 10vw, 8rem) var(--space-8); }
.legal-main h1, .support-main h1 { max-width: 880px; margin-bottom: .9rem; font-size: clamp(2.8rem, 6.4vw, 5rem); }
.legal-updated { margin-bottom: 1.4rem; color: var(--ink-muted); font-size: .9rem; }
.legal-copy { max-width: 800px; }
.legal-copy h2 { margin: 2.2rem 0 .7rem; font-size: 1.4rem; letter-spacing: -.02em; }
.legal-copy h3 { margin: 1.25rem 0 .45rem; font-size: 1.05rem; letter-spacing: -.01em; }
.legal-copy p, .legal-copy li { color: var(--ink-muted); }
.legal-copy ul { margin: .45rem 0 1rem; padding-left: 1.35rem; }
.legal-copy li { padding-left: .15rem; }
.legal-copy a { color: var(--ink); }
.page-lede { max-width: 650px; margin-bottom: 2.4rem; color: var(--ink-muted); font-size: 1.12rem; }
.legal-placeholder { max-width: 800px; padding: 1.2rem 1.35rem; border: 1px dashed var(--line); border-radius: var(--radius-small); background: var(--paper-surface); }
.legal-placeholder strong { display: block; margin-bottom: .3rem; }
.legal-placeholder p { margin-bottom: 0; color: var(--ink-muted); }
.legal-contact { margin-top: 1.5rem; color: var(--ink-muted); font-size: .94rem; }
.legal-contact a { color: var(--ink); }
.support-contact { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; padding: 1.15rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.support-label { color: var(--ink-muted); font-size: .79rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.support-contact a { font-size: clamp(1.15rem, 3vw, 1.65rem); font-weight: 650; text-decoration-thickness: 1px; }
.support-sections { max-width: 800px; border-top: 1px solid var(--line); }
.support-section { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.support-section h2 { margin-bottom: .45rem; font-size: 1.2rem; letter-spacing: -.02em; }
.support-section p { max-width: 650px; margin-bottom: .5rem; color: var(--ink-muted); }
.support-section a { text-decoration-thickness: 1px; }
.story-main { padding-block: clamp(3.5rem, 8vw, 6.5rem) var(--space-7); }
.story-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .82fr); align-items: center; gap: clamp(2rem, 7vw, 6rem); margin-bottom: var(--space-7); }
.story-title h1 { max-width: 650px; margin-bottom: 0; font-size: clamp(3rem, 6.8vw, 5.6rem); }
.story-origin-figure { width: min(100%, 440px); justify-self: end; margin: 0; }
.story-origin-figure img { width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius-small); background: var(--paper-surface); }
.story-origin-figure figcaption { margin-top: .65rem; color: var(--ink-muted); font-size: .85rem; }
.story-copy { max-width: 760px; }
.story-copy p { margin-bottom: 1.25rem; color: var(--ink-muted); font-size: 1.08rem; }
.story-copy p:last-child { margin-bottom: 0; }
.story-progression { margin-top: var(--space-7); }
.story-progression-heading { margin-bottom: 1.2rem; }
.story-progression-heading h2 { margin-bottom: 0; }
.story-timeline { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.story-step { display: grid; grid-template-columns: 125px minmax(0, 1fr) 100px; gap: 1.25rem; align-items: center; min-height: 86px; padding: 1rem .2rem; border-bottom: 1px solid var(--line); }
.story-stage { color: var(--ink-muted); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.story-step p { margin: 0; color: var(--ink-muted); }
.story-step-copy { display: grid; gap: .25rem; }
.story-image-caption { color: var(--ink-placeholder); font-size: .78rem; }
.story-step-image { justify-self: center; max-width: 100%; max-height: 170px; object-fit: contain; border: 1px solid var(--border); border-radius: 3px; background: var(--paper-surface); }
.story-fridge-image { width: 100px; }
.story-worksheet-image { width: 78px; }
.story-workbook-image { width: 100px; }
.story-app-image { width: 60px; }
.story-cta { margin-top: var(--space-7); }
@media (max-width: 760px) {
  .section-wrap, .header-inner, .footer-inner { width: min(var(--content-width), calc(100% - 2rem)); }
  .header-inner { min-height: 66px; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 4rem 4.5rem; }
  .hero-copy { max-width: 620px; }
  .hero-figure { width: min(75%, 330px); }
  .why-section { grid-template-columns: 1fr; gap: .7rem; padding-block: 3.5rem; }
  .why-copy { padding-top: 0; }
  .continuity-line { grid-column: 1; margin-top: 1.2rem; }
  .briefing-section { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 3.5rem; }
  .how-section, .screens-section { padding-block: 4.5rem; }
  .screens-section { padding-bottom: var(--space-4); }
  .how-section { padding-top: var(--space-4); }
  .story-main { padding-block: 3.5rem 4.5rem; }
  .story-intro { grid-template-columns: 1fr; gap: 1.8rem; margin-bottom: 3.5rem; }
  .story-title h1 { font-size: clamp(2.8rem, 11vw, 4.2rem); }
  .story-origin-figure { width: min(100%, 400px); justify-self: start; }
  .story-step { grid-template-columns: 78px minmax(0, 1fr) 70px; gap: .65rem; padding-inline: 0; }
  .story-step-image { max-height: 145px; }
  .story-fridge-image, .story-workbook-image { width: 76px; }
  .story-worksheet-image { width: 66px; }
  .story-app-image { width: 48px; }
  .story-cta { margin-top: 3.5rem; }
  .section-heading-row { align-items: start; flex-direction: column; gap: .8rem; margin-bottom: 1.7rem; }
  .section-intro { max-width: 520px; }
  .how-steps { grid-template-columns: 1fr; }
  .how-steps li, .how-steps li:first-child, .how-steps li:last-child { grid-template-columns: 34px minmax(0, 1fr); padding: 1.05rem .35rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .how-steps li:last-child { border-bottom: 0; }
  .workbook-section { grid-template-columns: 1fr; gap: 1.5rem; padding-bottom: 4.5rem; }
  .workbook-image { width: min(82%, 360px); justify-self: center; }
  .screenshot-gallery { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-item-widget { grid-column: 1; }
  .gallery-item, .gallery-item-tall { width: min(100%, 345px); justify-self: center; }
  .gallery-item-paper { padding-top: 0; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
  .site-footer nav { grid-column: 1 / -1; grid-row: 2; justify-content: start; }
  .footer-meta { grid-column: 2; grid-row: 1; }
  .legal-main, .support-main { min-height: 58vh; padding-block: 4.5rem 5rem; }
}
@media (max-width: 440px) {
  .hero-figure { width: min(84%, 305px); }
  .footer-inner { grid-template-columns: 1fr; gap: .8rem; }
  .footer-meta { grid-column: 1; grid-row: auto; align-items: start; }
  .site-footer nav { grid-column: 1; grid-row: auto; justify-content: start; gap: .8rem 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Legal pages use the same centered paper-like reading column. */
.legal-header, .legal-copy { max-width: 800px; margin-inline: auto; }
.legal-header h1 { margin-bottom: .7rem; }
.legal-updated { padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.legal-copy > h2:not(:first-child) { padding-top: 1.15rem; border-top: 1px solid var(--line); }
.legal-copy a { text-decoration-thickness: 1px; }
@media (max-width: 760px) {
  .legal-header, .legal-copy { max-width: 100%; }
}
