/* Hallmark · shape: Map / Diagram · genre: editorial · theme: brand · redesign: full · draw: b45bfe · job: try
 * paper: #FAF6EC cream · accent: #C8442C printer's red · display: Plus Jakarta Sans 800 · body: Plus Jakarta Sans 500 · hero: Stage, reversed (head and action above, the loop across twelve columns) · nav: edge-aligned · footer: colophon block · signature: the three-device loop, the same pages on iPhone Duo, iPad and iPhone
 * axes: light/rounded-sans/warm · posture: red marks only what matters in the map (the device node, the failed-sync branch) and a button on hover; never a fill larger than a button · contrast: pass · fold: pass · imagery: screenshots 5 + 2 recordings (the app's own, from the store-preview takes) · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, a reader page argues little on its own; the map makes the claim a reader can check (a failed sync keeps the old copy) instead of a card wall */
/* Hallmark · draw swap · hero Settled to Stage, reversed · the loop is an 8:3 three-device lineup and needs all twelve columns to read at the fold */
/* Hallmark · reworded "You put your whole life in Notion. Then the plane door closes and it hands you a spinner. PageCache keeps the pages you choose on your device — so they open whether or not there's a signal." to "PageCache keeps the pages you choose on your iPhone, iPad and iPhone Duo." · 58 caps the hero at one sentence, 19 names the dash */
/* Hallmark · reworded "One-time unlock" to "A one-time purchase" and "Unlimited cached pages once unlocked" to "Unlimited cached pages once you buy" · 19 names "unlock" */
/* Hallmark · dropped the hero's second action "See how it works" · 19 names the stock second action; #how stays in the nav */
/* Hallmark · reworded the hero sentence again to "The pages you choose, kept on iPhone, iPad and iPhone Duo." · 58 caps it at twelve words */
/* Hallmark · waive 44c · the hero visual is the loop video, painted from y 339 to y 832 at 1440 · the render tier counts the text block's foot (y 299) and not the video below it */
/* Hallmark · waive 79 · the loop video fills y 339 to y 832 at 1440, 68px above the fold · the band it measures is the video itself, not empty space */
/* Hallmark · reworded the seven "Why" card heads and the three "How" steps into the map's nodes and branches, every fact kept ("A reader, not another sync engine" → "From Notion to no signal"; "A bad sync can't hurt you" → "A refresh fails"; "Read-only, on purpose" → "Nothing flows back") · 30a named their emoji icons and the map is the shape's one composition */
/* Hallmark · reworded the index heads "Text & structure", "Media & files", "Navigation & limits" to "and", and dropped the emoji beside every block · 30a */
/* Hallmark · dropped the three 2025 screenshots (01_hook, 02_control, 03_certainty) and the hero mark from the page for the 1.0.1 captures on iPhone, iPad and iPhone Duo · the owner asked for all three devices and the icon in the header only; the files stay in docs/screenshots */
/* Hallmark · reworded the nav link "Why" to "Devices" and ordered the links as the page runs · the finish review: #why now heads the devices, the reasons live in the map at #how */
/* Hallmark · dropped the hero mark (the large icon) · the owner asked for the icon in the header only */
@import url("./tokens.css");
@import url("./base.css");

/* ── Chrome ─────────────────────────────────────────────────────────── */
.nav { padding-block: var(--space-md); }
.nav-row { display: flex; align-items: center; gap: var(--space-xl); min-height: 56px; }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-sm); font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); letter-spacing: -0.02em; text-decoration: none; color: var(--color-ink); border-radius: var(--space-xs); }
.wordmark img { width: 32px; height: 32px; border-radius: var(--space-xs); }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: var(--space-lg); list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 0.9375rem; color: var(--color-ink-2); text-decoration: none; white-space: nowrap; padding-block: var(--space-xs); transition: color var(--dur-micro) var(--ease-out); }
.nav-links a:hover { color: var(--color-ink); text-decoration: underline; }
.nav-links a:active { color: var(--color-accent); }

/* One primary button, everywhere. */
.btn { display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 52px; padding-inline: var(--space-lg); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-paper); font-weight: 800; font-size: var(--text-md); text-decoration: none; white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-accent); color: var(--color-accent-ink); }
.btn:active { transform: scale(0.98); }
.btn-small { min-height: 44px; padding-inline: var(--space-md); font-size: var(--text-sm); }
.glyph { flex: none; }
.btn:disabled, .btn[aria-disabled="true"], .loop-toggle:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ── Hero: Stage, reversed ──────────────────────────────────────────── */
.hero { padding-block: var(--space-xl) var(--space-2xl); }
.hero-text { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: end; }
.hero h1 { grid-column: 1 / span 8; max-width: none; line-height: 1.02; font-size: clamp(2.75rem, 4.4vw + 1rem, 5.25rem); }
.hero-side { grid-column: 9 / span 4; display: grid; gap: var(--space-lg); justify-items: start; padding-bottom: var(--space-xs); }
.hero-side .lead { color: var(--color-ink-2); }
.hero-loop { color: var(--color-on-night); position: relative; margin: var(--space-xl) 0 0; aspect-ratio: 8 / 3; border-radius: var(--radius-media); overflow: hidden; background: var(--color-night); box-shadow: var(--shadow-media); }
.hero-loop video { width: 100%; height: 100%; object-fit: cover; }
.loop-toggle { position: absolute; right: var(--space-md); bottom: var(--space-md); z-index: var(--z-raised); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: var(--rule-hair) solid var(--color-on-night-2); border-radius: var(--radius-pill); background: transparent; color: var(--color-on-night); font-size: var(--text-sm); font-weight: 500; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out); }
.loop-toggle:hover { background: var(--color-night-2); }
.loop-toggle .i-play, .loop-toggle[aria-pressed="true"] .i-pause { display: none; }
.loop-toggle[aria-pressed="true"] .i-play { display: block; }
.loop-toggle:active { transform: scale(0.97); }
.loop-toggle:focus-visible { outline: 2px solid var(--color-on-night); outline-offset: 2px; }

/* ── Section heads ──────────────────────────────────────────────────── */
.head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); max-width: 52rem; }
.head .lead { color: var(--color-ink-2); }
.head-split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: end; max-width: none; }
.head-split h2 { grid-column: 1 / span 6; }
.head-split .lead { grid-column: 8 / span 5; }

/* ── Devices: bento ─────────────────────────────────────────────────── */
.devices { padding-block: var(--section-gap-s) var(--section-gap); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); }
.tile { margin: 0; display: grid; gap: var(--space-md); align-content: start; }
.tile figcaption { color: var(--color-ink-2); max-width: 46ch; }
.tile figcaption strong { color: var(--color-ink); font-weight: 800; }
.shot { border-radius: var(--radius-card); box-shadow: var(--shadow-card), inset 0 0 0 var(--rule-hair) var(--color-rule); }
.shot > img { object-position: top center; }
.tile-ipad { grid-column: 1 / span 9; }
.tile-ipad .shot { aspect-ratio: 976 / 520; }
.tile-iphone { grid-column: 10 / span 3; grid-row: 1; }
.tile-iphone .shot { aspect-ratio: 304 / 520; border-radius: var(--radius-media); }
.tile-duo { grid-column: 1 / span 7; }
.tile-duo .shot { aspect-ratio: 1400 / 984; }
.tile-facts { grid-column: 8 / span 5; align-self: center; gap: var(--space-md); padding-block: var(--space-lg); border-top: 2px solid var(--color-ink); }
.facts-lead { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); line-height: 1.25; letter-spacing: -0.02em; }
.tile-facts p:not(.facts-lead) { color: var(--color-ink-2); font-size: var(--text-lead); line-height: 1.45; }

/* ── The map ────────────────────────────────────────────────────────── */
.map-section { padding-block: var(--section-gap-s); background: var(--color-paper-2); }
.map { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr) minmax(0, 1.5fr) minmax(0, 0.7fr) minmax(0, 1.5fr) minmax(0, 0.7fr) minmax(0, 1.5fr); grid-template-rows: auto auto; row-gap: var(--space-3xl); align-items: stretch; }
.node, .branch { position: relative; display: grid; gap: var(--space-xs); align-content: start; padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper); box-shadow: var(--shadow-card); }
.node h3, .branch h3 { font-size: var(--text-lg); line-height: 1.25; letter-spacing: -0.02em; }
.node p, .branch p { color: var(--color-ink-2); font-size: 0.9375rem; line-height: 1.5; }
.n1 { grid-column: 1; } .n2 { grid-column: 3; } .n3 { grid-column: 5; } .n4 { grid-column: 7; }
.node-key { box-shadow: var(--shadow-media), inset 0 3px 0 var(--color-accent); }
.edge { grid-row: 1; position: relative; display: flex; align-items: center; justify-content: center; }
.e1 { grid-column: 2; } .e2 { grid-column: 4; } .e3 { grid-column: 6; }
.edge::before { content: ""; position: absolute; left: var(--space-xs); right: var(--space-sm); top: 50%; border-top: 2px solid var(--color-ink); }
.edge::after { content: ""; position: absolute; right: var(--space-sm); top: 50%; width: 10px; height: 10px; border-top: 2px solid var(--color-ink); border-right: 2px solid var(--color-ink); transform: translate(1px, -50%) rotate(45deg); }
.edge span { position: relative; transform: translateY(-1.5em); font-size: var(--text-sm); color: var(--color-ink-2); text-align: center; line-height: 1.3; padding-inline: var(--space-2xs); }
.branch { grid-row: 2; background: transparent; box-shadow: inset 0 0 0 var(--rule-hair) var(--color-muted); }
.branch::before { content: ""; position: absolute; left: 50%; bottom: 100%; height: var(--space-3xl); border-left: 2px dashed var(--color-muted); }
.b-readonly { grid-column: 1; } .b-fail { grid-column: 5; } .b-export { grid-column: 7; }
.b-fail { box-shadow: inset 0 0 0 2px var(--color-accent); }
.b-fail::before { border-left-color: var(--color-accent); }

/* ── The film ───────────────────────────────────────────────────────── */
.film { padding-block: var(--section-gap); }
.film-frame { margin: 0; aspect-ratio: 16 / 9; border-radius: var(--radius-media); overflow: hidden; background: var(--color-night); box-shadow: var(--shadow-media); }
.film-frame video { width: 100%; height: 100%; object-fit: cover; }

/* ── What renders: the night band ───────────────────────────────────── */
.blocks { padding-block: var(--section-gap-s); background: var(--color-night); color: var(--color-on-night); }
.blocks h2 { color: var(--color-on-night); }
.blocks .lead { color: var(--color-on-night-2); }
.index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.index-col h3 { font-size: var(--text-lg); color: var(--color-on-night); padding-bottom: var(--space-md); border-bottom: 2px solid var(--color-on-night); }
.index ul { list-style: none; margin: 0; padding: 0; }
.index li { display: flex; justify-content: space-between; gap: var(--space-md); padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-night-rule); }
.s { font-size: var(--text-sm); font-weight: 800; white-space: nowrap; }
.s.on { color: var(--color-ok-night); }
.s.part { color: var(--color-online-night); }
.s.soon { color: var(--color-on-night-2); font-weight: 500; }

/* ── FAQ: rows ──────────────────────────────────────────────────────── */
.faq { padding-block: var(--section-gap-l) var(--section-gap); }
.faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); }
.faq h2 { grid-column: 1 / span 4; align-self: start; }
.rows { grid-column: 6 / span 7; margin: 0; }
.row { display: grid; gap: var(--space-xs); padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.row:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.row dt { font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); letter-spacing: -0.02em; }
.row dd { margin: 0; color: var(--color-ink-2); max-width: 60ch; }

/* ── The close: the offer beside one last screen ────────────────────── */
.close { padding-block: var(--section-gap-s); background: var(--color-paper-2); }
.close-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: center; }
.offer { grid-column: 1 / span 6; display: grid; gap: var(--space-lg); justify-items: start; }
.offer .lead { color: var(--color-ink-2); }
.offer-list { list-style: none; margin: 0 0 var(--space-md); padding: 0; width: 100%; }
.offer-list li { padding-block: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.offer-list li:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.close-shot { grid-column: 8 / span 5; margin: 0; aspect-ratio: 1000 / 1590; border-radius: var(--radius-media); box-shadow: var(--shadow-media), inset 0 0 0 var(--rule-hair) var(--color-rule); }
.close-shot > img { object-position: top center; }

/* ── Footer: colophon ───────────────────────────────────────────────── */
.footer { padding-block: 0 var(--space-3xl); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-lg); padding-top: var(--space-xl); }
.colophon { color: var(--color-ink-2); }
.colophon strong { color: var(--color-ink); font-weight: 800; }
.footer-links { display: flex; gap: var(--space-lg); list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--color-ink-2); }
.footer-links a:hover { color: var(--color-ink); }
.footer-links a:active { color: var(--color-accent); }

/* ── Under 60rem: everything stacks in reading order ────────────────── */
@media (max-width: 40rem) {
  /* Phones play the iPhone card alone (hero-loop-phone.mp4, 760x1080). */
  .hero-loop { aspect-ratio: 760 / 1080; max-width: 22rem; margin-inline: auto; }
}

@media (max-width: 60rem) {
  .nav-links { display: none; }
  .nav-row { justify-content: space-between; }
  .hero-text, .head-split, .bento, .faq-grid, .close-grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); }
  .hero h1, .hero-side, .head-split h2, .head-split .lead, .faq h2, .rows, .offer, .close-shot { grid-column: 1; }
  .tile-ipad, .tile-iphone, .tile-duo, .tile-facts { grid-column: 1; grid-row: auto; }
  .tile-iphone .shot { aspect-ratio: 1320 / 2100; max-width: 22rem; }
  .index { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2xl); }
  .map { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-lg); }
  .node, .edge, .branch { grid-column: 1; grid-row: auto; }
  .edge { min-height: 56px; justify-content: flex-start; padding-left: var(--space-2xl); }
  .edge::before { left: var(--space-lg); right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px solid var(--color-ink); }
  .edge::after { left: calc(var(--space-lg) - 4px); right: auto; top: auto; bottom: 2px; transform: rotate(135deg); }
  .edge span { transform: none; }
  .branch { margin-left: var(--space-2xl); }
  .branch::before { left: calc(-1 * var(--space-2xl) + var(--space-lg)); bottom: 50%; height: auto; top: calc(-1 * var(--space-lg)); border-left: 2px dashed var(--color-muted); }
  .b-fail::before { border-left-color: var(--color-accent); }
  .n1 { order: 1; } .b-readonly { order: 2; } .e1 { order: 3; } .n2 { order: 4; } .e2 { order: 5; } .n3 { order: 6; } .b-fail { order: 7; } .e3 { order: 8; } .n4 { order: 9; } .b-export { order: 10; }
  .close-shot { max-width: 24rem; }
}
