/* Heft website, design B1c·2. Fonts are served from this site (SIL Open Font License, see ../fonts/).
   Each planner has a colour that only tells the four apart: html[data-planner] sets it for the whole page. */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/instrument-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/instrument-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #F7F6F2;
  --white: #FFFFFF;
  --ink: #191919;
  --mid: #5A5A55;
  --line: #DAD8D1;
  --tray: #EFEEE9;
  --on-dark: #F7F6F2;
  --on-dark-mid: #CBCAC4;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 56px);
  /* The chosen planner. Productivity is the default. Colours from colour study D:
     Productivity Ink, Teaching Chalkboard, Reading Plum, Fitness Signal. The tints behind sections are greyer
     than study D for Reading (lilac grey, not pink) and Fitness (sand, not peach). */
  --cover: #3D6A93;
  --on: #FFFFFF;
  --accent: #3D6A93;
  --tint: #E6ECF2;
}
/* Productivity is spelled out too, so an element inside another planner's page can take its colours. */
[data-planner="productivity"] { --cover: #3D6A93; --on: #FFFFFF; --accent: #3D6A93; --tint: #E6ECF2; }
[data-planner="teaching"] { --cover: #3F7D5E; --on: #FFFFFF; --accent: #3F7D5E; --tint: #E8EFEC; }
[data-planner="reading"] { --cover: #874A6E; --on: #FFFFFF; --accent: #874A6E; --tint: #EBE8EF; }
/* White on Signal is only 3.9:1, so Fitness uses ink on its colour and a darker orange for text. */
[data-planner="fitness"] { --cover: #C9652E; --on: #191919; --accent: #A44F1E; --tint: #EEE9E0; }

.sw { display: inline-block; flex: none; width: 14px; height: 14px; border: 1px solid rgba(25, 25, 25, 0.2); vertical-align: -1px; }
.sw-productivity { background: #3D6A93; }
.sw-teaching { background: #3F7D5E; }
.sw-reading { background: #874A6E; }
.sw-fitness { background: #C9652E; }
.bg-productivity { background: #3D6A93; }
.bg-teaching { background: #3F7D5E; }
.bg-reading { background: #874A6E; }
.bg-fitness { background: #C9652E; }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
/* Anchors land below the pinned bar. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; scrollbar-gutter: stable; }
html.is-modal { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, dl, dd, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: var(--mid); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 10; padding: 10px 16px; background: var(--ink); color: var(--paper); text-decoration: none; }
.skip:focus { top: 16px; color: var(--paper); }
html:not(.js) .js-only { display: none; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* Type */
.eyebrow, .kicker { font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mid); }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 4.8vw, 68px); line-height: 1.02; text-wrap: balance; }
.h2-sm { font-size: clamp(36px, 3.8vw, 52px); }
.h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; }
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 7.4vw, 120px); line-height: 0.98; letter-spacing: -0.01em; text-wrap: balance; }
.h2 em, .h3 em, .display em, .soft { font-style: italic; }
.soft { color: var(--mid); }
.lede { max-width: 560px; font-size: 19px; }
.note { font-size: 15px; color: var(--mid); }
.micro { margin-top: 14px; font-size: 15px; color: var(--mid); }
.rule { height: 1px; background: var(--ink); }
.rule-gap { margin: 28px 0 40px; }

/* Buttons and links */
.btn { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 10px; min-height: 56px; padding: 8px 28px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 16px; font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; }
.btn:hover { color: var(--paper); filter: brightness(1.25); }
.btn-price { font-weight: 400; opacity: 0.85; white-space: nowrap; }
.btn-cover, .btn-light { border-color: rgba(25, 25, 25, 0.18); background: var(--cover); color: var(--on); }
.btn-cover:hover, .btn-light:hover { color: var(--on); filter: brightness(0.92); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-on { border-color: var(--on); background: var(--on); color: var(--cover); }
.btn-on:hover { color: var(--cover); filter: brightness(0.94); }
.btn-block { width: 100%; }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.link-under { display: inline-block; padding: 10px 0; font-size: 16px; text-decoration: underline; text-underline-offset: 5px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.hero .actions .btn { min-width: min(100%, 22.5em); }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-block: 18px; }
/* The one black-and-white | colour switch of the page sits in the header (and in the pinned bar). */
.header-tone { margin-left: auto; }
.header-tone + .nav { margin-left: 0; }
.header-tone .tone, .modal-tone .tone { margin-top: 0; }
/* € | $ | £: the price switch, beside the colour switch. */
.currency { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(25, 25, 25, 0.07); }
.currency-btn { min-width: 34px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: #4A4A46; font-size: 14px; font-weight: 600; cursor: pointer; }
.currency-btn:hover { color: var(--ink); }
.currency-btn[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(25, 25, 25, 0.18); }
.header-tone .tone-btn, .modal-tone .tone-btn { min-height: 36px; padding: 0 14px; font-size: 13px; }
.brand { font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 15px; }
.nav a { padding: 10px 0; text-decoration: none; }
.nav .nav-cta { padding-bottom: 7px; border-bottom: 3px solid var(--accent); font-weight: 600; }
/* The pinned bar (assets/js/bar.js): it slides in once the hero, or the page's own Buy button, is gone. */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 8; padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: 0 6px 24px rgba(25, 25, 25, 0.07); transform: translateY(-100%); visibility: hidden; transition: transform 0.25s ease, visibility 0s linear 0.25s; }
.bar.is-on { transform: none; visibility: visible; transition: transform 0.25s ease; }
.bar-row { display: flex; align-items: center; gap: 12px 32px; min-height: 68px; padding-block: 10px; }
.bar-brand { flex: none; font-size: 26px; }
.bar-nav { flex-wrap: nowrap; margin-left: auto; }
.bar .header-tone + .bar-nav { margin-left: 0; }
.bar-buy { flex: none; min-height: 46px; padding: 6px 22px; font-size: 15px; }
.bar-buy-short { display: none; }
@media (max-width: 1100px) {
  .bar-buy-long { display: none; }
  .bar-buy-short { display: inline; }
}
@media (max-width: 1000px) {
  .bar-nav, .has-tone .nav-extra { display: none; }
  .bar-buy { margin-left: auto; }
}
.site-footer { border-top: 1px solid var(--ink); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 56px; padding-block: 56px 32px; }
.footer-brand { flex: 1 1 300px; }
.footer-brand .brand { font-size: 48px; }
.footer-brand p:last-child { margin-top: 12px; max-width: 340px; font-size: 15px; color: var(--mid); }
.footer-nav { flex: 1 1 300px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px 28px; font-size: 15px; }
.footer-nav a { padding: 8px 0; text-decoration: none; }
.colophon { padding-bottom: 40px; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--mid); }

/* Hero */
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 72px; padding-block: 64px 88px; }
.hero-text { flex: 1 1 500px; min-width: 0; }
.hero-text .eyebrow { margin-bottom: 12px; }
.word { font-family: var(--serif); font-weight: 400; font-size: clamp(120px, 15vw, 224px); line-height: 0.84; letter-spacing: -0.02em; }
.pron { margin: 18px 0 28px; font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.2; color: var(--mid); }
.senses { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.senses li { display: flex; gap: 18px; font-family: var(--serif); font-size: 27px; line-height: 1.3; }
.sense-n { color: var(--accent); }
.hero-note { margin-top: 28px; max-width: 520px; color: var(--mid); }
.hero-figure { flex: 1 1 500px; min-width: 0; }
.peek { position: relative; padding: 0 clamp(10px, 1.5vw, 18px) clamp(10px, 1.5vw, 18px) 0; }
.peek-block { position: absolute; left: clamp(10px, 1.5vw, 18px); top: clamp(10px, 1.5vw, 18px); right: 0; bottom: 0; background: var(--cover); }
.peek-img { position: relative; width: 100%; background: var(--white); border: 1px solid rgba(25, 25, 25, 0.16); }
/* Switching planners changes this text, so it keeps a fixed height: the page around it never moves. */
/* The picked Heft: its cover in front on the right, its Home page behind on the left, where the names of its
   sections show, and the planner's colour behind the cover. The Home page sits a little higher than the cover,
   so it never covers the colour below the cover. */
.hero-pages { position: relative; width: 92%; aspect-ratio: 1 / 1; margin-inline: auto; }
.hero-block { position: absolute; left: 33%; top: 11%; width: 64%; height: 85.4%; background: var(--cover); }
.hero-home, .hero-cover { position: absolute; width: 64%; background: var(--white); border: 1px solid rgba(25, 25, 25, 0.16); }
.hero-home { left: 2%; top: 4%; }
.hero-cover { left: 30%; top: 8%; box-shadow: 0 24px 48px rgba(25, 25, 25, 0.16); }
.hero-name { margin-top: 24px; font-family: var(--serif); font-size: 30px; line-height: 1.15; }
/* The planner switch: one segmented control under the planner's name. */
.hero-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 12px; padding: 4px; border-radius: 999px; background: rgba(25, 25, 25, 0.07); }
.hero-pick-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: #4A4A46; font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.hero-pick-btn:hover { color: var(--ink); }
.hero-pick-btn[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(25, 25, 25, 0.18); }
.hero-pick-btn .sw { width: 10px; height: 10px; border: 0; border-radius: 2px; }
/* On a narrow phone one tagline wraps, so the name keeps two lines' height and the switch stays put. */
@media (max-width: 560px) {
  .hero-name { min-height: 2.3em; }
  .hero-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 22px; }
  .hero-pick-btn { border-radius: 18px; }
}
.hero-name em { color: var(--mid); }
.plate-cap, .plate figcaption { margin-top: 18px; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--mid); }

/* At a glance */
.glance { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.glance-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px 32px; padding-block: 20px; font-size: 16px; }
.glance-row li { display: flex; align-items: center; gap: 12px; }
.glance-row .sw { width: 12px; height: 12px; }

/* Chapters */
.chapter { padding-block: 112px; }
.chapter-tray { background: var(--tray); }
.chapter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 80px; }
.chapter-row-rev { flex-wrap: wrap-reverse; }
.chapter-text { flex: 1 1 420px; min-width: 0; }
.chapter-k { display: flex; align-items: baseline; gap: 18px; }
.numeral { font-family: var(--serif); font-size: 96px; line-height: 0.9; color: var(--accent); }
.label { font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mid); }
.chapter-k + .h2 { margin-top: 20px; }
.chapter-text .h2 { margin-bottom: 28px; }
.chapter-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px 80px; }
.chapter-head > div:first-child { flex: 1 1 460px; }
.chapter-head > .lede, .chapter-head > div:last-child:not(:first-child) { flex: 1 1 380px; max-width: 560px; }
.chapter-head .note { margin-top: 14px; }
.dropcap::first-letter { float: left; padding: 8px 12px 0 0; font-family: var(--serif); font-size: 88px; line-height: 0.8; color: var(--accent); }
.plate img, .pair { background: var(--white); border: 1px solid var(--line); }
.plate-md { flex: 1 1 440px; max-width: 520px; }
.plate-wide { flex: 1 1 560px; min-width: 0; }
.pair { display: flex; }
.pair img { width: 50%; border: 0; }
.pair img + img { border-left: 1px solid var(--line); }
.plates-3 { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 64px; }
.plates-3 .plate { flex: 1 1 260px; min-width: 0; }
.plates-3 figcaption { margin-top: 16px; }

/* Two taps */
.taps { border-bottom: 1px solid var(--line); }
.taps-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px 80px; padding-block: 120px; }
.taps .display { flex: 2 1 560px; max-width: 13ch; }
.taps .display em { color: var(--accent); }
.taps .lede { flex: 1 1 320px; max-width: 420px; }

/* Shared two-part section head: title left, text right */
.split-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; }
.split-head > :first-child { flex: 1 1 520px; min-width: 0; }
.split-head > .lede { flex: 1 1 360px; max-width: 500px; }

/* Video */
.video { background: var(--ink); color: var(--on-dark); }
.video-wrap { padding-block: 96px; }
.video-k { margin-bottom: 12px; font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-mid); }
.video .lede { color: #E4E2DC; }
.video-frame { position: relative; display: block; margin-top: 48px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 24px; background: #2A2A27; color: var(--on-dark); text-decoration: none; }
.video-frame:hover { color: var(--on-dark); }
.video-still { position: absolute; left: 6%; right: 6%; top: 10%; display: flex; justify-content: space-between; align-items: flex-start; }
.video-page { position: relative; display: block; width: 19%; padding: 0 1.2% 1.2% 0; }
.video-block { position: absolute; left: 7%; top: 5%; right: 0; bottom: 0; }
.video-page img { position: relative; width: 100%; background: var(--white); }
.video-play { position: absolute; left: 50%; top: 44%; display: flex; align-items: center; justify-content: center; width: clamp(64px, 8vw, 112px); height: clamp(64px, 8vw, 112px); border-radius: 50%; background: var(--paper); transform: translate(-50%, -50%); transition: transform 0.2s ease; }
.video-frame:hover .video-play { transform: translate(-50%, -50%) scale(1.05); }
.video-play svg { width: 42%; height: 42%; margin-left: 8%; fill: var(--ink); }
.video-bar { position: absolute; left: clamp(16px, 3vw, 36px); right: clamp(16px, 3vw, 36px); bottom: clamp(14px, 2.4vw, 30px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; font-size: 16px; }
.video-name { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 30px); line-height: 1.1; }
.video-cta { color: var(--on-dark-mid); }

/* Every page, before you buy: a card on the page opens the page browser in a dialog, the way product pages
   open their "+" panels. */
.teaser-wrap { padding-block: 112px; }
.teaser { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; padding: clamp(28px, 5vw, 64px); border-radius: 28px; background: var(--tint); cursor: pointer; }
.teaser-text { flex: 1 1 380px; min-width: 0; }
.teaser-text .lede { margin-top: 20px; }
.teaser-pages { flex: 1 1 440px; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 12px; }
.teaser-pages img { width: 100%; border: 1px solid rgba(25, 25, 25, 0.12); background: var(--white); }
.teaser-pages img:nth-child(even) { margin-top: 32px; }
.plus-btn { display: inline-flex; align-items: center; gap: 14px; min-height: 52px; margin-top: 32px; padding: 6px 6px 6px 24px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 16px; font-weight: 600; cursor: pointer; }
.plus-btn .plus { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); transition: transform 0.2s ease; }
.plus-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.teaser:hover .plus { transform: rotate(90deg); }
/* The dialog fills the screen; the panel in it holds the page browser. On a phone the panel scrolls; on a
   landscape screen it fits the window (see the media query below). */
.pages-dialog { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); border: 0; background: transparent; color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.pages-dialog::backdrop { background: rgba(25, 25, 25, 0.62); }
.modal-panel { --pad: clamp(24px, 5vw, 64px); position: relative; max-width: 1280px; margin: 48px auto; padding: var(--pad); border-radius: 28px; background: var(--tint); }
.pages-dialog[open] .modal-panel { animation: panel-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.pages-dialog[open]::backdrop { animation: fade-in 0.3s ease; }
@keyframes panel-in { from { opacity: 0; transform: translateY(48px); } }
@keyframes fade-in { from { opacity: 0; } }
/* The close button stays in the panel's top corner, also while the panel scrolls. */
.modal-close-row { position: sticky; top: 16px; z-index: 2; display: flex; justify-content: flex-end; height: 0; margin: calc(16px - var(--pad)) calc(16px - var(--pad)) 0; }
.modal-close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink); cursor: pointer; }
.modal-close svg { width: 18px; height: 18px; fill: none; stroke: var(--paper); stroke-width: 2; stroke-linecap: round; }
.modal-close:hover { filter: brightness(1.4); }
.modal-head { padding-right: 48px; }
.modal-title { font-family: var(--serif); font-size: clamp(36px, 4vw, 56px); font-weight: 400; line-height: 1.02; text-wrap: balance; }
.modal-title em { font-style: italic; }
/* Without the script the page browser simply sits on the page. */
html:not(.js) .pages-dialog { position: static; display: block; height: auto; padding: 0; overflow: visible; }
html:not(.js) .modal-panel { margin-block: 0; border-radius: 0; }
.browse-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); margin-top: 28px; border-bottom: 1px solid rgba(25, 25, 25, 0.2); }
.browse-tab { display: flex; align-items: center; gap: 12px; min-height: 60px; margin-bottom: -1px; padding: 8px 8px 10px 0; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #4A4A46; font-family: var(--serif); font-size: 26px; text-align: left; cursor: pointer; }
.browse-tab .sw { width: 16px; height: 20px; }
.browse-tab:hover { color: var(--ink); }
.browse-tab[aria-pressed="true"] { border-bottom-color: var(--accent); color: var(--ink); }
/* The parts of the page browser are placed by grid areas: stacked on a phone, in two columns on a tablet and in
   three on a wide screen. The arrows come right after the page or at the top of a column, so they stay put. */
.browse-body { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "page" "controls" "text" "buy" "index"; gap: 20px; margin-top: 32px; }
.viewer-page { grid-area: page; max-width: 460px; }
.viewer-page img { width: 100%; border: 1px solid rgba(25, 25, 25, 0.16); background: var(--white); }
.viewer-controls { grid-area: controls; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 46px; }
.viewer-nav { display: flex; gap: 10px; margin-left: auto; }
.round-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 50%; background: var(--white); cursor: pointer; }
.round-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.round-btn:hover { background: var(--ink); }
.round-btn:hover svg { stroke: var(--white); }
.modal-tone { margin-top: 20px; }
.viewer-text { grid-area: text; min-width: 0; }
/* The versions of the page shown (language, hand, paper) follow its description. */
.viewer-text .viewer-variants { margin-top: 18px; }
.viewer-pos { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.viewer-name { margin-top: 10px; font-family: var(--serif); font-size: clamp(34px, 3.4vw, 46px); font-weight: 400; line-height: 1.05; }
.viewer-count { margin-top: 8px; font-size: 16px; font-weight: 600; }
.viewer-desc { margin-top: 14px; font-size: 17px; color: #3F3F3B; }
.viewer-reach { margin-top: 12px; font-size: 15px; color: #4A4A46; }
.viewer-shared { margin-top: 12px; font-size: 14px; color: #4A4A46; }
.modal-buy { grid-area: buy; padding-top: 20px; border-top: 1px solid rgba(25, 25, 25, 0.16); }
.modal-buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.modal-buy .micro { margin-top: 10px; font-size: 14px; }
.page-index { grid-area: index; min-width: 0; }
.page-group + .page-group { margin-top: 28px; }
.page-group-title { margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #3F3F3B; }
.page-list { display: flex; flex-direction: column; border-top: 1px solid rgba(25, 25, 25, 0.25); }
.page-item { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 6px 10px 6px 6px; border-bottom: 1px solid rgba(25, 25, 25, 0.12); color: var(--ink); text-decoration: none; }
.page-item:hover { background: rgba(255, 255, 255, 0.55); color: var(--ink); }
.page-item[aria-current="true"] { background: var(--white); }
.page-item img { flex: none; width: 32px; border: 1px solid rgba(25, 25, 25, 0.2); background: var(--white); }
.page-item-name { flex: 1 1 auto; min-width: 0; font-size: 16px; font-weight: 600; }
.page-item-count { flex: none; font-size: 14px; color: #3F3F3B; font-variant-numeric: tabular-nums; }
/* Empty rows pad every list to the longest one of any Heft, so the browser keeps its height. */
.page-filler { visibility: hidden; }
/* On a phone the arrows get their own row right under the page, so a wide variant switch never pushes them. */
@media (max-width: 759px) {
  .viewer-controls { flex-direction: column; align-items: flex-start; }
  .viewer-nav { order: -1; margin-left: 0; }
}
@media (min-width: 760px) {
  .browse-body { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); grid-template-rows: auto auto 1fr auto auto; grid-template-areas: "page controls" "page text" "page ." "page buy" "index index"; column-gap: 48px; align-items: start; }
  .page-index { margin-top: 20px; }
}
/* On a landscape screen the panel fits the window and nothing scrolls. Its size follows the page: the page is as
   tall as the window allows (at most 840 px of panel), the list and the text take fixed columns beside it, and
   the panel is only as wide as those three columns. A column that still runs out of room scrolls on its own. */
@media (min-width: 1280px) and (min-height: 600px) {
  html.js .pages-dialog[open] { display: flex; align-items: center; justify-content: center; overflow: hidden; }
  html.js .modal-panel { --pad: 24px; --nav-w: 280px; --text-w: 470px; --gap: 36px;
    --page-h: min(calc(min(100dvh - 2 * clamp(12px, 2.5vh, 28px), 840px) - 120px), calc((100vw - 48px - 72px - 2 * var(--gap) - var(--nav-w) - var(--text-w)) / 0.7496));
    width: max-content; max-width: none; margin: 0; padding: 24px 36px 32px; }
  html.js .modal-head { display: flex; align-items: center; gap: 0 44px; height: 44px; padding-right: 56px; }
  html.js .modal-title { font-size: 30px; white-space: nowrap; }
  html.js .modal-head .browse-tabs { display: flex; gap: 0 26px; margin-top: 0; border-bottom: 0; }
  html.js .modal-head .browse-tab { min-height: 44px; padding: 4px 0 6px; font-size: 22px; white-space: nowrap; }
  html.js .modal-tone { margin: 0 0 0 auto; }
  html.js .browse-body { height: var(--page-h); margin-top: 20px; grid-template-columns: calc(var(--page-h) * 0.7496) var(--nav-w) var(--text-w); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "page index controls" "page index text" "page index buy"; gap: 12px var(--gap); align-items: stretch; }
  html.js .viewer-page { max-width: none; align-self: start; }
  html.js .viewer-text { margin: -6px; padding: 6px; overflow-y: auto; }
  html.js .viewer-name { margin-top: 8px; font-size: clamp(30px, 2.4vw, 40px); }
  html.js .viewer-count { margin-top: 4px; }
  html.js .viewer-desc { margin-top: 10px; font-size: 16px; line-height: 1.5; }
  html.js .viewer-reach { margin-top: 8px; line-height: 1.5; }
  html.js .viewer-shared { margin-top: 8px; line-height: 1.45; }
  html.js .modal-buy { padding-top: 0; border-top: 0; }
  html.js .page-index { margin: -6px; padding: 6px; overflow-y: auto; display: grid; grid-auto-rows: minmax(22px, 44px); align-content: start; }
  html.js .page-group, html.js .page-list { display: contents; }
  html.js .page-group-title { align-self: end; margin: 0; padding-bottom: 4px; border-bottom: 1px solid rgba(25, 25, 25, 0.25); line-height: 1.2; }
  html.js .page-item { min-height: 0; gap: 10px; padding: 2px 8px 2px 4px; line-height: 1.2; }
  html.js .page-item img { width: auto; height: 100%; max-height: 36px; }
  html.js .page-item-name { font-size: 15px; }
  html.js .page-item-count { font-size: 13px; }
}
/* A short window (a 1280 x 720 screen, say) drops the small print under the Buy button. */
@media (min-width: 1280px) and (min-height: 600px) and (max-height: 700px) {
  html.js .modal-buy .micro { display: none; }
}

/* Black and white | Colour: one switch in every section that shows pages; they all switch every page image. */
/* The page browser's language, hand and paper choices use the same segmented control. */
.tone, .viewer-variants, .seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(25, 25, 25, 0.07); }
.tone { margin-top: 28px; }
.tone-btn, .variant-btn, .seg-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: #4A4A46; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.tone-btn:hover, .variant-btn:hover, .seg-btn:hover { color: var(--ink); }
.tone-btn[aria-pressed="true"], .variant-btn[aria-pressed="true"], .seg-btn[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(25, 25, 25, 0.18); }
.tone-short { display: none; }
@media (max-width: 1279px) {
  .header-tone .tone-long { display: none; }
  .header-tone .tone-short { display: inline; }
}
@media (max-width: 1439px) {
  .modal-tone .tone-long { display: none; }
  .modal-tone .tone-short { display: inline; }
}
.tone-dots { display: grid; grid-template-columns: repeat(2, 5px); gap: 2px; }
.tone-dots span { width: 5px; height: 5px; border-radius: 1px; }
.tone-dots span:nth-child(1) { background: #6A9FDA; }
.tone-dots span:nth-child(2) { background: #58AD74; }
.tone-dots span:nth-child(3) { background: #F8684F; }
.tone-dots span:nth-child(4) { background: #F29B38; }

/* The shop */
.shop { border-top: 1px solid var(--line); }
.shop-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); margin-top: 56px; border-bottom: 1px solid var(--line); }
.shop-tab { display: flex; align-items: center; gap: 14px; min-height: 72px; margin-bottom: -1px; padding: 12px 8px 14px 0; border: 0; border-bottom: 4px solid transparent; background: transparent; color: #4A4A46; text-align: left; cursor: pointer; }
.shop-tab:hover { color: var(--ink); }
.shop-tab .sw { width: 22px; height: 28px; }
.shop-tab-name { display: block; font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.shop-tab-sub { display: block; font-size: 14px; color: var(--mid); }
.shop-tab[aria-pressed="true"] { border-bottom-color: var(--accent); color: var(--ink); }
.card { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 64px; margin-top: 32px; padding: clamp(24px, 4vw, 56px); border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.card-pages { flex: 1 1 420px; min-width: 0; }
.stack { display: grid; padding: 12px 0 24px; }
.stack img { grid-area: 1 / 1; align-self: start; background: var(--white); border: 1px solid #E4E4E0; }
.stack-back { width: 64%; justify-self: end; box-shadow: 0 18px 36px rgba(23, 23, 23, 0.10); transform: rotate(3deg); }
.stack-front { width: 68%; justify-self: start; margin-top: 56px; box-shadow: 0 26px 50px rgba(23, 23, 23, 0.16); transform: rotate(-2deg); }
.card-pages figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--mid); }
.card-text { flex: 1 1 420px; min-width: 0; }
.card-who { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.card-title { margin-top: 10px; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.2vw, 60px); line-height: 1; }
.card-title em { font-style: italic; }
.card-lead { margin-top: 18px; max-width: 520px; color: var(--mid); }
.card-k { margin: 28px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mid); }
.card-sections { border-top: 1px solid var(--ink); }
.card-sections div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.card-sections dt { flex: 0 0 170px; font-weight: 600; }
.card-sections dd { flex: 1 1 200px; font-size: 15px; color: var(--mid); }
.card-sections dd.num { flex: 0 0 auto; color: var(--ink); }
.card-cal { margin-top: 18px; font-size: 15px; color: var(--mid); }
.card-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }
.card-price { font-family: var(--serif); font-size: 40px; line-height: 1; }
.card-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 18px; }
.card-meta { margin-top: 18px; font-size: 14px; color: var(--mid); }

.includes-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 32px 56px; margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); }
.includes { flex: 2 1 520px; min-width: 0; }
.ticks { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 18px; font-size: 17px; }
.ticks li { flex: 1 1 220px; display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: "✓"; color: var(--accent); }
.includes .note { margin-top: 20px; }
.bundle-box { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--ink); background: var(--white); }
.bundle-box > p:not(.chips) { margin-top: 8px; font-size: 15px; color: var(--mid); }
.chips { display: flex; gap: 6px; margin-top: 16px; }
.chips .sw { width: 28px; height: 28px; }
.bundle-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: auto; padding-top: 24px; }
.bundle-price { font-family: var(--serif); font-size: 32px; line-height: 1; }

/* What it isn't */
.not { background: var(--ink); color: var(--on-dark); }
.not-row { display: flex; flex-wrap: wrap; gap: 40px 56px; padding-block: 96px; }
.not .h2 { flex: 1 1 240px; font-size: clamp(40px, 4.2vw, 60px); }
.not-row > div { flex: 1 1 220px; }
.not-k { font-family: var(--serif); font-size: 28px; line-height: 1.2; }
.not-row > div p:last-child { margin-top: 10px; font-size: 16px; color: var(--on-dark-mid); }

/* Sample */
.sample { background: var(--tray); }
.sample-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 72px; padding-block: 96px; }
.sample-row > div:first-child { flex: 1 1 520px; min-width: 0; }
.sample .h2 { font-size: clamp(40px, 4.2vw, 56px); }
.sample .lede { margin-top: 14px; }

/* Questions */
.faq-section { border-top: 1px solid var(--line); }
.faq-row { display: flex; flex-wrap: wrap; gap: 40px 80px; }
.faq-row > div:first-child { flex: 1 1 300px; }
.faq-list { flex: 2 1 560px; min-width: 0; border-top: 1px solid var(--ink); }
.faq-list details, .acc details { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 4px 0; font-family: var(--serif); font-size: 26px; line-height: 1.2; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.pm { flex: none; font-family: var(--sans); font-size: 24px; color: var(--accent); transition: transform 0.2s ease; }
details[open] .pm { transform: rotate(45deg); }
details > p { padding-bottom: 22px; color: var(--mid); }

/* Closing band */
.close { background: var(--cover); color: var(--on); }
.close-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 72px; padding-block: 104px; }
.close-row > div:first-child { flex: 2 1 520px; min-width: 0; }
.close .display { font-size: clamp(56px, 7vw, 112px); }
.close-row > div:first-child p { margin-top: 20px; max-width: 520px; font-size: 19px; }
.close-buy { flex: 1 1 300px; min-width: 0; }
.close-buy p { margin-top: 14px; font-size: 15px; }

/* Product page */
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 18px; font-size: 14px; color: var(--mid); }
.crumbs a { color: var(--mid); }
.pdp { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 64px; padding-top: 24px; padding-bottom: 96px; }
.gallery { flex: 1 1 540px; min-width: 0; }
@media (min-width: 1000px) { .gallery { position: sticky; top: 92px; } }
.stage { position: relative; display: flex; justify-content: center; padding: clamp(24px, 5vw, 56px) clamp(24px, 6vw, 80px); border-radius: 24px; background: var(--tray); }
.stage-peek { width: 100%; max-width: 500px; }
.badge { position: absolute; left: 16px; top: 16px; z-index: 1; padding: 6px 12px; border-radius: 999px; background: var(--white); font-size: 13px; font-weight: 600; }
.arrow { position: absolute; top: 50%; z-index: 1; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: -22px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); cursor: pointer; }
.arrow[hidden] { display: none; }
.arrow:hover { background: var(--ink); color: var(--white); }
.arrow-prev { left: 12px; }
.arrow-next { right: 12px; }
.arrow svg, .assure svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.arrow svg { width: 18px; height: 18px; stroke-width: 1.8; }
.stage-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-top: 14px; }
.stage-caption { font-family: var(--serif); font-size: 20px; }
.stage-pos { font-size: 14px; color: var(--mid); }
.stage-note { min-height: 22px; margin-top: 4px; font-size: 14px; color: var(--mid); }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.thumb { display: block; width: 58px; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.thumb[aria-current="true"] { box-shadow: 0 0 0 2px var(--accent); }
.thumb:hover { opacity: 0.85; }
.buy { flex: 1 1 380px; max-width: 520px; min-width: 0; }
.buy-title { margin-top: 6px; font-family: var(--serif); font-size: clamp(38px, 3.8vw, 52px); font-weight: 400; line-height: 1.05; }
.buy-line { margin-top: 6px; font-family: var(--serif); font-size: 20px; font-style: italic; color: var(--mid); }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.price { font-family: var(--serif); font-size: 40px; line-height: 1; }
.price-note { font-size: 14px; color: var(--mid); }
.buy-blurb { margin-top: 16px; color: var(--mid); }
.opt-group { margin-top: 22px; }
.opt-group[hidden] { display: none; }
.opt-label { margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mid); }
/* The planner choice: the shop's swatch tabs, one row of four. */
.pdp-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.pdp-tab { display: flex; align-items: center; gap: 8px; min-height: 60px; margin-bottom: -1px; padding: 8px 6px 10px 0; border-bottom: 3px solid transparent; color: #4A4A46; text-decoration: none; }
.pdp-tab:hover { color: var(--ink); }
.pdp-tab .sw { width: 12px; height: 16px; }
.pdp-tab-name { display: block; font-family: var(--serif); font-size: 18px; line-height: 1.1; }
.pdp-tab-sub { display: block; font-size: 13px; color: var(--mid); }
.pdp-tab[aria-current="page"] { border-bottom-color: var(--accent); color: var(--ink); }
.versions-note { margin-top: 20px; font-size: 15px; color: var(--mid); }
.summary { margin-top: 24px; padding: 16px 18px; border-radius: 12px; background: var(--tint); }
.summary-label { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mid); }
.summary-text { margin-top: 4px; font-size: 16px; }
.summary-meta { margin-top: 2px; font-size: 14px; color: var(--mid); }
.buy .btn-block { min-height: 58px; margin-top: 16px; border-color: rgba(25, 25, 25, 0.18); background: var(--cover); color: var(--on); }
.buy .btn-block:hover { color: var(--on); filter: brightness(0.92); }
.assure { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; font-size: 15px; }
.assure li { display: flex; align-items: center; gap: 12px; }
.assure svg { flex: none; width: 20px; height: 20px; stroke-width: 1.5; }
.bundle { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 24px; padding: 18px 20px; border: 1px solid var(--ink); background: var(--white); }
.bundle-title { font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.bundle-title em { font-style: italic; }
.bundle .chips { margin-top: 0; }
.bundle-sub { margin-top: 2px; font-size: 14px; color: var(--mid); }
.acc { margin-top: 28px; border-top: 1px solid var(--ink); }
.acc summary { min-height: 54px; font-family: var(--sans); font-size: 16px; font-weight: 600; }
.acc details > p { padding-bottom: 18px; font-size: 15px; }
.acc-list { padding-bottom: 18px; font-size: 15px; }
.acc-list li { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; }
.acc-list li span:last-child { color: var(--mid); font-variant-numeric: tabular-nums; }
.chapter-head + .tiles-label { margin-top: 56px; }
.tiles-label { margin-bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mid); }
.tiles + .tiles-label { margin-top: 36px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tile { padding: 20px 22px; border-radius: 12px; background: var(--white); }
.tile-n { font-family: var(--serif); font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.tile-l { margin-top: 10px; font-size: 16px; font-weight: 600; }
.tile-d { margin-top: 2px; font-size: 14px; color: var(--mid); }
/* Your sections: the planner's own pages, marked with its colour. */
.tile-sec { box-shadow: inset 0 3px 0 var(--accent); }
.tile-sec .tile-n { color: var(--accent); }
.two-taps { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; }
.two-taps-text { flex: 1 1 320px; min-width: 0; }
.two-taps-text > p:not(.chapter-k) { max-width: 420px; margin-top: 20px; color: var(--mid); }
.two-taps-text .note { margin-top: 16px; }
.two-taps-steps { flex: 2 1 560px; min-width: 0; display: flex; align-items: flex-start; gap: 16px; }
.two-taps-steps li { flex: 1 1 0; min-width: 0; }
.two-taps-steps li:nth-child(2) { padding-top: 40px; }
.two-taps-steps li:nth-child(3) { padding-top: 80px; }
.step-k { margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.sheet { width: 100%; border: 1px solid var(--line); background: var(--white); }
.mark-wrap { position: relative; }
.mark { position: absolute; border: 3px solid var(--cover); }
.mark-home-march { left: 36.3%; top: 24.2%; width: 13.1%; height: 10.7%; }
.mark-month-17 { left: 49.3%; top: 42.2%; width: 6%; height: 4.5%; }
/* The other Hefte: each card carries its own planner's colour (data-planner), like the hero. */
.others { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.other { flex: 1 1 300px; min-width: 0; display: flex; align-items: center; gap: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); color: var(--ink); text-decoration: none; }
.other:hover { border-color: var(--accent); color: var(--ink); }
.other-peek { flex: 0 0 112px; }
.other-name { display: block; font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.other-line { display: block; margin-top: 2px; font-size: 14px; color: var(--mid); }
.other-meta { display: block; margin-top: 8px; font-size: 14px; }
.buybar { background: var(--cover); color: var(--on); }
.buybar-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 28px; }
.buybar-name { font-family: var(--serif); font-size: 26px; }
.buybar-meta { margin-top: 2px; font-size: 15px; opacity: 0.85; }
.buybar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.buybar-price { font-family: var(--serif); font-size: 30px; }
.phone-buy { display: none; }
@media (max-width: 700px) {
  .phone-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--on-dark); transform: translateY(110%); transition: transform 0.2s ease; }
  .phone-buy.is-on { transform: none; }
  .phone-buy .btn { min-height: 46px; padding: 0 20px; }
  .phone-buy-name { display: block; font-size: 13px; color: var(--on-dark-mid); }
  .phone-buy-price { display: block; font-family: var(--serif); font-size: 22px; line-height: 1.2; }
}

/* Legal pages and 404 */
.prose { max-width: 760px; padding-block: 72px 120px; }
.prose h1 { font-family: var(--serif); font-size: clamp(40px, 4.4vw, 60px); font-weight: 400; line-height: 1.05; }
.prose h2 { margin-top: 40px; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.prose p, .prose dl { margin-top: 14px; }
.prose dl div { display: flex; flex-wrap: wrap; gap: 2px 24px; padding: 10px 0; border-top: 1px solid var(--line); }
.prose dl div:last-child { border-bottom: 1px solid var(--line); }
.prose dt { flex: 0 0 220px; color: var(--mid); }
.prose dd { flex: 1 1 280px; }
.prose .note { margin-top: 32px; }
.notfound { padding-block: 120px; text-align: center; }
.notfound h1 { margin-top: 8px; font-family: var(--serif); font-size: clamp(44px, 5vw, 72px); font-weight: 400; }
.notfound p:last-child { margin-top: 16px; color: var(--mid); }

/* Small screens */
@media (max-width: 700px) {
  body { font-size: 17px; }
  .hero-row { padding-block: 40px 64px; }
  .senses li { font-size: 23px; }
  .chapter { padding-block: 80px; }
  .numeral { font-size: 72px; }
  .taps-row { padding-block: 80px; }
  .not-row, .sample-row, .close-row { padding-block: 72px; }
  .video-wrap, .teaser-wrap { padding-block: 72px; }
  .teaser-pages img:nth-child(even) { margin-top: 20px; }
  .plus-btn { margin-top: 28px; }
  .pages-dialog { padding-inline: 8px; }
  .modal-panel { margin-block: 8px; border-radius: 20px; }
  .card-sections dt { flex-basis: 100%; }
  .stack-front { margin-top: 36px; }
  summary { font-size: 21px; }
  .nav { gap: 0 18px; }
  .nav .nav-extra { display: none; }
  .two-taps { padding-block: 72px; }
  .two-taps-steps { gap: 10px; }
  .two-taps-steps li:nth-child(2) { padding-top: 24px; }
  .two-taps-steps li:nth-child(3) { padding-top: 48px; }
  .header-row .brand { font-size: 28px; }
  .header-row.has-tone { flex-wrap: wrap; gap: 10px 12px; }
  .header-row.has-tone .header-currency { order: 1; margin-left: auto; }
  .header-row.has-tone .header-tone { order: 2; flex-basis: 100%; margin-left: 0; }
  .header-row.has-tone .brand { font-size: 24px; }
  .header-row.has-tone .nav { display: none; }
  .bar.has-tone .bar-brand { display: none; }
  .bar.has-tone .header-tone { margin-left: 0; }
  .pdp-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar-row { min-height: 60px; gap: 12px; padding-block: 8px; }
  .bar-brand { font-size: 22px; }
  .bar-buy { min-height: 44px; padding: 4px 18px; }
  /* Planner pages keep their own buy bar at the bottom on phones. */
  .bar-pdp { display: none; }
}
@media (max-width: 380px) {
  .header-row.has-tone .brand { font-size: 20px; }
  .bar-brand { font-size: 19px; }
  .bar-buy { padding: 4px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
