/* writermorph.com: light, product-first. Tokens first; components use them. */
:root {
  --page: #fbfaf8;
  --alt: #f3f1ec;
  --card: #ffffff;
  --ink: #1a1917;
  --ink-soft: #57534c;
  --ink-faint: #8c877d;
  --line: #e6e2d9;
  --gold: #9a7330;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", sans-serif;
  --max: 1200px;
  --read: 700px;
  --r: 10px;
  --shadow: 0 1px 2px rgba(26, 25, 23, .05), 0 18px 40px -18px rgba(26, 25, 23, .28);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 18px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; display: block; height: auto; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(26, 25, 23, .3); text-underline-offset: 3px; transition: text-decoration-color .15s; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
::selection { background: #efe2c6; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.018em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.08; }
h3 { font-size: 1.45rem; line-height: 1.25; }
h1 em, h2 em { font-style: italic; }
p { margin: 0; text-wrap: pretty; }
code { font: .86em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--alt); padding: 1px 5px; border-radius: 4px; }
kbd { font: 13px ui-monospace, Menlo, monospace; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--card); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.read { max-width: var(--read); }
.center { text-align: center; }
.center .read, .center.read { margin-left: auto; margin-right: auto; }
.muted { color: var(--ink-soft); }
.small { font-size: 15px; }
.eyebrow { display: block; font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.lede { font-size: 21px; line-height: 1.55; color: var(--ink-soft); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--page); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 8px; font: 600 16px/1 var(--sans); text-decoration: none; border: 1px solid transparent; transition: background-color .15s, transform .1s; cursor: pointer; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-quiet { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--ink-faint); }
.btn .apple { width: 17px; height: 17px; fill: currentColor; margin-top: -2px; }
.btn .play { width: 12px; height: 12px; fill: currentColor; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }
.center .cta-row, .price .cta-row, .closing .cta-row, .page-hero .cta-row { justify-content: center; }
.fine { margin-top: 18px; font-size: 15px; color: var(--ink-faint); }

/* Header */
.site-head { background: var(--page); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 21px/1 var(--serif); }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 16px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.site-head .btn { padding: 10px 16px; font-size: 15px; }
.nav-toggle { display: none; margin-left: auto; font: 600 15px var(--sans); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; color: var(--ink); }
.nav-mobile { display: none; }

/* Sections */
section { padding: 120px 0; }
section.tight { padding: 56px 0 120px; }
.alt { background: var(--alt); }
.head { margin-bottom: 64px; }
.head p { margin-top: 20px; }

/* Hero */
.hero { padding: 88px 0 0; text-align: center; overflow: hidden; }
.hero .icon { width: 104px; height: 104px; margin: 0 auto 28px; border-radius: 23px; box-shadow: 0 10px 30px -12px rgba(26, 25, 23, .45); }
.hero h1 { max-width: 12em; margin: 0 auto; }
.hero .lede { max-width: 33em; margin: 26px auto 0; }
.promise-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin-top: 22px; font-size: 15px; color: var(--ink-soft); }
.promise-line span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin: 0 9px 2px 0; }
.hero .mac { margin: 72px auto -2px; }

/* MacBook frame (CSS only) */
.mac { width: min(100%, 1120px); margin: 0 auto; }
.mac-screen { position: relative; background: #121212; padding: 2.1% 2.1% 2.5%; border-radius: 2.4% / 3.7%; box-shadow: 0 0 0 1.5px #c9c9cc, 0 40px 80px -40px rgba(26, 25, 23, .45); }
.mac-screen::before { content: ""; position: absolute; top: .9%; left: 50%; width: .7%; aspect-ratio: 1; border-radius: 50%; background: #2c2c2e; transform: translateX(-50%); }
.mac-screen img, .mac-screen video { width: 100%; border-radius: 2px; background: #f4f3ef; }
.mac-base { position: relative; height: 0; padding-bottom: 2.6%; margin: 0 -7.5%; background: linear-gradient(#e4e4e6, #c4c4c8 55%, #a9a9ad); border-radius: 0 0 1.6% 1.6% / 0 0 60% 60%; }
.mac-base::before { content: ""; position: absolute; top: 0; left: 50%; width: 15%; height: 42%; transform: translateX(-50%); background: linear-gradient(#bdbdc1, #d5d5d8); border-radius: 0 0 10px 10px; }

/* Plain screenshot frame (window captures keep their own title bar) */
.shot { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: var(--card); border: 1px solid rgba(26, 25, 23, .08); }
.shot img { width: 100%; cursor: zoom-in; }
figure { margin: 0; }
figcaption { font-size: 15px; color: var(--ink-soft); margin-top: 16px; }
figcaption strong { color: var(--ink); font-weight: 600; }

/* Ownership statement */
.own { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: start; }
.own h2 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); }
.own .lede { margin-top: 24px; }
.vows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.vows li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.vows strong { display: block; font: 500 1.45rem/1.3 var(--serif); }
.vows span { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 17px; }

/* View tabs */
.view-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 40px; }
.view-tabs button { font: 600 15px/1 var(--sans); color: var(--ink-soft); background: transparent; border: 1px solid transparent; border-radius: 999px; padding: 10px 18px; cursor: pointer; }
.view-tabs button:hover { color: var(--ink); }
.view-tabs button[aria-selected="true"] { color: var(--ink); background: var(--card); border-color: var(--line); box-shadow: 0 1px 2px rgba(26,25,23,.06); }
.view-stage { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1120px; margin: 0 auto; }
.view-pane { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s .4s; }
.view-pane.is-active { opacity: 1; visibility: visible; transition: opacity .4s ease; }
.view-pane figcaption { text-align: center; max-width: 40em; margin: 22px auto 0; font-size: 17px; }

/* Feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: center; }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.feature.flip > :first-child { order: 2; }
.features > * + * { margin-top: 140px; }
.feature h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.12; }
.feature p { margin-top: 18px; color: var(--ink-soft); }
.feature .points { margin: 22px 0 0; padding: 0; list-style: none; font-size: 16px; color: var(--ink-soft); }
.feature .points li { padding: 7px 0; border-top: 1px solid var(--line); }
.feature-wide { text-align: center; }
.feature-wide h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.feature-wide p { max-width: 36em; margin: 18px auto 0; color: var(--ink-soft); }
.feature-wide figure { margin-top: 48px; }

/* Writers band */
.writers { font: italic 400 clamp(1.6rem, 3.6vw, 2.9rem)/1.35 var(--serif); color: var(--ink); text-align: center; max-width: 22em; margin: 0 auto; }
.writers a { text-decoration: none; }
.writers a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.writers .sep { color: var(--gold); padding: 0 .25em; font-style: normal; }

/* Facts strip (real product numbers) */
.facts-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-strip div { padding: 28px 24px; border-left: 1px solid var(--line); }
.facts-strip div:first-child { border-left: 0; }
.facts-strip b { display: block; font: 500 2.6rem/1 var(--serif); }
.facts-strip span { display: block; margin-top: 8px; font-size: 15px; color: var(--ink-soft); }

/* Templates by category */
.tpl-cols { columns: 3 260px; column-gap: 56px; }
.tpl-cat { break-inside: avoid; margin-bottom: 30px; }
.tpl-cat h4 { font: 600 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.tpl-cat a, .tpl-cat span { display: block; font: 400 1.2rem/1.75 var(--serif); color: var(--ink); text-decoration: none; }

/* Case study rows */
.study-list { border-top: 1px solid var(--line); }
.study-row { display: grid; grid-template-columns: 300px minmax(0, 1fr) auto; gap: 40px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.study-row:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.study-row .kind { font-size: 14px; color: var(--ink-faint); margin-bottom: 6px; display: block; }
.study-row p { color: var(--ink-soft); margin-top: 8px; font-size: 16px; }
.study-row .go { font-weight: 600; white-space: nowrap; }
.study-row .shot { box-shadow: none; }

/* Assistant (optional) */
.assist { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; }
.assist ol { padding-left: 1.3em; margin: 22px 0 0; color: var(--ink-soft); }
.assist ol li { padding: 5px 0 5px 6px; }
.assist ol li::marker { font: italic 500 18px var(--serif); color: var(--gold); }
.note { margin-top: 22px; font-size: 15px; color: var(--ink-soft); padding-top: 16px; border-top: 1px solid var(--line); }

/* Quote from the sample novel */
.quote { font: italic 400 clamp(1.8rem, 3.6vw, 2.8rem)/1.28 var(--serif); max-width: 22em; margin: 0 auto; text-align: center; }
.quote-src { text-align: center; margin-top: 22px; font-size: 15px; color: var(--ink-soft); }

/* Formats */
.formats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }
.formats span { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font: 500 17px var(--serif); }

/* Price */
.price { text-align: center; max-width: 760px; margin: 0 auto; }
.price .amount { font: 500 clamp(3.6rem, 8vw, 6rem)/1 var(--serif); letter-spacing: -.03em; margin-top: 18px; }
.price .amount small { font: 400 19px var(--sans); color: var(--ink-soft); letter-spacing: 0; margin-left: 10px; }
.price p { color: var(--ink-soft); margin: 22px auto 0; max-width: 32em; }
.price-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin-top: 22px; font-size: 15px; color: var(--ink-soft); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 22px 40px 22px 0; font: 500 21px/1.35 var(--serif); list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 20px; font: 300 26px var(--sans); color: var(--ink-faint); }
details[open] summary::after { content: "−"; }
details > p, details > div { padding: 0 0 24px; color: var(--ink-soft); max-width: 62ch; }

/* Closing */
.closing { text-align: center; }
.closing .icon { width: 120px; height: 120px; margin: 0 auto 30px; border-radius: 27px; box-shadow: 0 12px 34px -12px rgba(26, 25, 23, .45); }
.closing .lede { margin: 20px auto 0; max-width: 30em; }

/* Inner page hero */
.page-hero { padding: 96px 0 64px; text-align: center; }
.page-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); max-width: 14em; margin: 0 auto; }
.page-hero .lede { margin: 24px auto 0; max-width: 34em; }
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 34px; font-size: 16px; }

/* Long-form blocks (features, use cases, samples) */
.block { padding: 100px 0; scroll-margin-top: 24px; }
.block:nth-of-type(even) { background: var(--alt); }
.prose-md ul, .prose-md ol { padding-left: 0; list-style: none; margin: 22px 0 0; }
.prose-md li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink-soft); }
.prose-md li strong { color: var(--ink); font-weight: 600; }
.prose-md ol { counter-reset: s; }
.prose-md ol li { counter-increment: s; padding-left: 34px; position: relative; }
.prose-md ol li::before { content: counter(s); position: absolute; left: 4px; top: 9px; font: italic 500 17px var(--serif); color: var(--gold); }
.prose-md p { color: var(--ink-soft); margin-top: 16px; }
.prose-md h3 { margin-top: 30px; font-size: 1.2rem; }
.logline { font: italic 400 22px/1.45 var(--serif); color: var(--ink) !important; margin-top: 18px; }
.meta-line { margin-top: 18px; font-size: 15px; color: var(--ink-faint); }
.stack { display: grid; gap: 24px; }

/* Case study page */
.study { padding: 100px 0; scroll-margin-top: 24px; }
.study:nth-of-type(even) { background: var(--alt); }
.study-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: end; margin-bottom: 64px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 15px; border-top: 1px solid var(--line); padding-top: 16px; }
.facts dt { color: var(--ink-faint); }
.facts dd { margin: 0; }
.steps { display: grid; gap: 96px; }
.step { display: grid; gap: 28px; }
.step > div:first-child { max-width: 44em; }
.step .n { font: italic 500 17px var(--serif); color: var(--gold); }
.step h3 { margin-top: 6px; }
.step p { margin-top: 12px; color: var(--ink-soft); font-size: 17px; }

/* Templates page */
.tpl-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 40px; }
.tpl-filters button { font: 600 15px var(--sans); color: var(--ink-soft); background: transparent; border: 1px solid transparent; border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.tpl-filters button[aria-pressed="true"] { color: var(--ink); background: var(--card); border-color: var(--line); }
.tpl-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.tpl { padding: 22px 0; border-bottom: 1px solid var(--line); }
.tpl[hidden] { display: none; }
.tpl .cat { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.tpl h3 { font-size: 1.3rem; margin-top: 4px; }
.tpl p { color: var(--ink-soft); font-size: 16px; margin-top: 6px; }
.tpl .structure { font-size: 14px; color: var(--ink-faint); margin-top: 6px; }

/* Help */
.help-search { margin: 30px auto 0; max-width: 520px; }
.help-search input { width: 100%; font: 17px var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 13px 16px; }
.help-search input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.help-group { margin-top: 56px; }
.help-group[hidden], .help-item[hidden] { display: none; }
.help-group h2 { font-size: 1.7rem; margin-bottom: 10px; }
.help-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; border-top: 1px solid var(--line); }
.help-item { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.help-item strong { font: 500 19px var(--serif); color: var(--ink); }
.help-item:hover strong { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.help-item span { display: block; color: var(--ink-soft); font-size: 15px; margin-top: 2px; }
.help-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr) 190px; gap: 56px; align-items: start; }
.help-layout aside { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; padding: 48px 0; font-size: 15px; }
.help-nav h4, .toc h4 { font: 600 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin: 22px 0 6px; }
.help-nav h4:first-child, .toc h4 { margin-top: 0; }
.help-nav a, .toc a { display: block; color: var(--ink-soft); padding: 4px 0; text-decoration: none; line-height: 1.4; }
.help-nav a:hover, .toc a:hover { color: var(--ink); }
.help-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Prose (help articles, legal) */
.prose { max-width: var(--read); margin: 0 auto; padding: 80px 32px 120px; }
.help-article { padding: 48px 0 120px; max-width: none; margin: 0; }
.prose h1 { font-size: clamp(2.3rem, 4.6vw, 3.3rem); }
.prose .updated { color: var(--ink-soft); margin-top: 14px; font-size: 19px; }
.prose h2 { font-size: 1.75rem; margin: 52px 0 0; scroll-margin-top: 24px; }
.prose h3 { font-size: 1.3rem; margin: 34px 0 0; }
.prose p { margin-top: 16px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 14px 0 0; }
.prose li { margin-top: 6px; }
.prose li::marker { color: var(--ink-faint); }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 16px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.prose th { font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.prose blockquote { margin: 24px 0; padding: 16px 20px; background: var(--alt); border-radius: 8px; color: var(--ink-soft); }
.prose blockquote p { margin: 0; }
.prose .shot { margin: 32px 0 8px; }
.crumbs { font-size: 15px; color: var(--ink-faint); margin: 0 0 14px !important; }
.crumbs a { color: var(--ink-faint); }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 600; }

/* Spec table */
.spec { border-top: 1px solid var(--line); margin-top: 28px; }
.spec div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec span { color: var(--ink-soft); }
.spec b { font-weight: 600; text-align: right; }

/* Press gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 64px 0 48px; font-size: 15px; color: var(--ink-soft); background: var(--page); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font: 600 13px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; }
.foot-grid a { display: block; padding: 3px 0; color: var(--ink-soft); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); }
.foot-grid .brand { display: flex; padding: 0; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 14px; }

/* Lightbox (screenshots and tour video) */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(251, 250, 248, .97); display: grid; place-items: center; padding: 32px; cursor: zoom-out; }
.lightbox img, .lightbox video { max-width: min(100%, 1600px); max-height: 100%; border-radius: var(--r); box-shadow: var(--shadow); }
.lightbox video { cursor: default; }

/* Entrance motion: content is visible without JS; below-the-fold blocks rise once */
.js-motion .rise { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); }
.js-motion .rise.in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .help-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .help-layout .toc { display: none; }
}
@media (max-width: 900px) {
  section { padding: 88px 0; }
  .own, .feature, .feature.flip, .assist, .study-head { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .feature.flip > :first-child { order: 0; }
  .features > * + * { margin-top: 96px; }
  .study-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .facts-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-strip div:nth-child(3) { border-left: 0; }
  .facts-strip div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .site-head .btn { display: none; }
  .nav-toggle { display: block; }
  .menu-open .nav-mobile { display: flex; flex-direction: column; padding: 0 32px 16px; border-bottom: 1px solid var(--line); }
  .nav-mobile a { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
  .help-layout { grid-template-columns: minmax(0, 1fr); }
  .help-layout aside:first-child { display: none; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .prose { padding: 56px 16px 80px; }
  .menu-open .nav-mobile { padding: 0 16px 16px; }
  section, .block, .study { padding: 72px 0; }
  .hero { padding-top: 56px; }
  .hero .icon { width: 84px; height: 84px; border-radius: 19px; }
  .hero .mac { margin-top: 48px; }
  .mac-base { margin: 0 -3%; }
  .lede { font-size: 19px; }
  .tpl-list, .help-items, .gallery { grid-template-columns: minmax(0, 1fr); }
  .view-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; }
  .view-tabs button { flex: none; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .js-motion .rise { opacity: 1; transform: none; }
}
