/* ==========================================================================
   NoteFun: marketing site
   Paper and ink. Warm off-white stock, one deep ink blue, a serif display face.
   Spacing is an 8 point grid. Dark theme follows the system or the nav toggle.
   ========================================================================== */

/* ---------- Tokens ---------- */

:root {
  color-scheme: light;

  /* The one accent: the app's blue, pushed to ink depth for type and buttons */
  --accent: #1f4fb8;
  --accent-bright: #2f6be0;
  --accent-soft: rgba(31, 79, 184, 0.09);
  --accent-line: rgba(31, 79, 184, 0.22);

  /* Paper */
  --paper: #fbf8f2;
  --paper-alt: #f4efe4;
  --surface: #fffefb;
  --surface-sunk: #f7f3ea;
  --rule: rgba(36, 32, 24, 0.13);
  --rule-soft: rgba(36, 32, 24, 0.08);

  /* Type */
  --ink: #1a1710;
  --ink-2: #4a4638;
  --ink-3: #6d6656;

  --shadow-sm: 0 1px 2px rgba(48, 38, 20, 0.05), 0 2px 8px rgba(48, 38, 20, 0.04);
  --shadow-md: 0 2px 6px rgba(48, 38, 20, 0.05), 0 16px 40px -16px rgba(48, 38, 20, 0.2);
  --shadow-lg: 0 4px 12px rgba(48, 38, 20, 0.06), 0 40px 80px -28px rgba(30, 24, 12, 0.3);

  /* The notebook page keeps its own colours in both themes: it is a lit screen */
  --paper-sheet: #fffdf8;
  --paper-guide: rgba(95, 106, 124, 0.28);
  --user-ink: #1c1d22;
  --reply-ink: #17356e;

  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --maxw: 1160px;
  --gutter: clamp(24px, 5vw, 48px);
  --nav-h: 72px;

  --font: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", "Hoefler Text", Georgia, "Times New Roman", serif;
  --font-hand: "Caveat", "Bradley Hand", cursive;

  --grain: 0.05;
}

/* Deep ink blue and charcoal. Applied by the system preference unless the
   visitor has explicitly chosen light, and by the toggle in either direction. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --accent: #8fb4fb;
    --accent-bright: #6f9bf2;
    --accent-soft: rgba(143, 180, 251, 0.13);
    --accent-line: rgba(143, 180, 251, 0.28);

    --paper: #0e141d;
    --paper-alt: #121924;
    --surface: #18202c;
    --surface-sunk: #111823;
    --rule: rgba(214, 226, 244, 0.13);
    --rule-soft: rgba(214, 226, 244, 0.08);

    --ink: #eceae4;
    --ink-2: #b6bcc9;
    --ink-3: #8e96a5;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.5), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.55), 0 48px 88px -30px rgba(0, 0, 0, 0.8);

    --grain: 0.03;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --accent: #8fb4fb;
  --accent-bright: #6f9bf2;
  --accent-soft: rgba(143, 180, 251, 0.13);
  --accent-line: rgba(143, 180, 251, 0.28);

  --paper: #0e141d;
  --paper-alt: #121924;
  --surface: #18202c;
  --surface-sunk: #111823;
  --rule: rgba(214, 226, 244, 0.13);
  --rule-soft: rgba(214, 226, 244, 0.08);

  --ink: #eceae4;
  --ink-2: #b6bcc9;
  --ink-3: #8e96a5;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.5), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.55), 0 48px 88px -30px rgba(0, 0, 0, 0.8);

  --grain: 0.03;
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* A whisper of paper tooth over everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 5.4vw, 4.25rem); line-height: 1.02; letter-spacing: -0.032em; }
h2 { font-size: clamp(2rem, 3.8vw, 2.75rem); letter-spacing: -0.026em; }
h3 { font-size: 1.25rem; line-height: 1.24; }
h4 { font-size: 1rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -64px;
  left: 16px;
  z-index: 10000;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--alt { background: var(--paper-alt); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent-line);
}

.section-head { max-width: 600px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p {
  margin: 16px 0 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.lede {
  font-size: clamp(1.15rem, 1.9vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-2);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { background: var(--accent-bright); }

.btn--ghost {
  border-color: var(--rule);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--accent-line); color: var(--accent); }

.btn--sm { padding: 8px 16px; font-size: 0.9rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.note-under { margin-top: 16px; font-size: 0.93rem; color: var(--ink-3); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn--primary { background: var(--accent); color: #0b1017; }
  :root:not([data-theme="light"]) .btn--primary:hover { background: var(--accent-bright); }
}
:root[data-theme="dark"] .btn--primary { background: var(--accent); color: #0b1017; }
:root[data-theme="dark"] .btn--primary:hover { background: var(--accent-bright); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.is-stuck { border-bottom-color: var(--rule-soft); }

.nav__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  overflow: hidden;
  flex: none;
  box-shadow: var(--shadow-sm);
}
.brand__mark img { display: block; width: 100%; height: 100%; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
}
.nav__links a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent-line); }
.icon-btn svg { display: block; }

.nav__toggle { display: none; }

/* Specificity has to beat `.icon-btn svg` above, hence the two class selectors. */
.icon-btn .theme__sun { display: none; }
.icon-btn .theme__moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .theme__sun { display: block; }
  :root:not([data-theme="light"]) .icon-btn .theme__moon { display: none; }
}
:root[data-theme="dark"] .icon-btn .theme__sun { display: block; }
:root[data-theme="dark"] .icon-btn .theme__moon { display: none; }
:root[data-theme="light"] .icon-btn .theme__sun { display: none; }
:root[data-theme="light"] .icon-btn .theme__moon { display: block; }

@media (max-width: 720px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    display: none;
    position: absolute;
    inset: var(--nav-h) var(--gutter) auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 16px; border-radius: 12px; }
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  align-items: center;
  min-height: min(calc(100svh - var(--nav-h)), 800px);
  padding-block: clamp(48px, 7vw, 96px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 1000px) {
  .hero { min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero h1 { margin-bottom: 24px; max-width: 12ch; }
.hero h1 em { font-style: italic; color: var(--accent); }
@media (max-width: 1000px) { .hero h1 { max-width: none; } }

.hero .lede { max-width: 30ch; }
.hero .btn-row { margin-top: 40px; }

/* ---------- Device frame ---------- */

.device {
  position: relative;
  padding: 8px;
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.device__screen {
  overflow: hidden;
  border-radius: calc(var(--r-xl) - 9px);
  background: var(--paper-sheet);
}
.device__chrome { display: block; width: 100%; }
.device__paper { display: block; width: 100%; height: auto; background: var(--paper-sheet); }

.device__caption {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 16px 8px 0;
  font-size: 0.86rem;
  color: var(--ink-3);
}
.device__legend { display: inline-flex; align-items: center; gap: 8px; }
.device__legend b { color: var(--ink-2); font-weight: 600; }
.device__swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: none;
  box-shadow: 0 0 0 1px var(--rule);
}

/* ---------- Ink on the notebook page ---------- */

.rule { stroke: var(--paper-guide); stroke-width: 1; }
.ink { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ink--sketch { stroke: var(--reply-ink); stroke-width: 2; }
.ink--divider { stroke: var(--reply-ink); stroke-width: 1.6; opacity: 0.45; }

.hand {
  font-family: var(--font-hand);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.hand--user { fill: var(--user-ink); }
.hand--reply { fill: var(--reply-ink); }
.hand--label { fill: var(--reply-ink); opacity: 0.75; font-weight: 400; }

/* The one animation: each line is uncovered left to right, as if written. */
.write { clip-path: inset(-30% 100% -40% -2%); animation: write 900ms cubic-bezier(0.33, 0, 0.2, 1) both; }
@keyframes write { to { clip-path: inset(-30% -2% -40% -2%); } }

.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 700ms ease-out both; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Editorial rows ---------- */

.feature { padding-block: clamp(64px, 8vw, 112px); }
.feature + .feature { padding-top: 0; }

.feature__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.feature--flip .feature__media { order: -1; }
@media (max-width: 880px) {
  .feature__grid { grid-template-columns: 1fr; gap: 40px; }
  /* Stacked, every row reads heading first. */
  .feature--flip .feature__media { order: 0; }
}

.feature__copy h2 { margin-bottom: 16px; }
.feature__copy p {
  margin: 0;
  max-width: 32ch;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.feature__media { margin: 0; }

.plate {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.plate img { display: block; width: 100%; }

/* ---------- FAQ ---------- */

.faq { max-width: 720px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--rule-soft); }
.faq details:first-of-type { border-top: 1px solid var(--rule-soft); }
.faq summary {
  position: relative;
  padding: 24px 48px 24px 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.016em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after,
.faq summary::before {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 14px;
  height: 1.6px;
  background: var(--accent);
  transform: translateY(-50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.faq summary::before { transform: translateY(-50%) rotate(90deg); }
.faq details[open] summary::before { transform: translateY(-50%) rotate(0deg); opacity: 0; }
.faq summary:hover { color: var(--accent); }
.faq .faq__a {
  padding: 0 48px 24px 0;
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.65;
}

/* ---------- Cards, CTA ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(264px, 1fr));
  gap: 24px;
}
.card {
  padding: 32px;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 1rem; line-height: 1.6; }

.cta { text-align: center; }
.cta h2 { margin-bottom: 16px; }
.cta p { color: var(--ink-2); max-width: 48ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: 32px; }

/* ---------- Footer ---------- */

.footer {
  padding-block: clamp(48px, 5vw, 64px) 32px;
  border-top: 1px solid var(--rule-soft);
  background: var(--paper-alt);
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.footer__row .brand { margin-right: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.footer__links a { color: var(--ink-2); font-size: 0.95rem; }
.footer__links a:hover { color: var(--accent); }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.86rem;
  color: var(--ink-3);
}

/* ---------- Document pages ---------- */

.page-hero {
  padding-block: clamp(56px, 7vw, 96px) clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--rule-soft);
  background: var(--paper-alt);
}
.page-hero h1 { font-size: clamp(2.25rem, 4.6vw, 3.25rem); }
.page-hero .meta { margin: 16px 0 0; font-size: 0.94rem; color: var(--ink-3); }

.prose {
  max-width: 700px;
  margin-inline: auto;
  padding-block: clamp(48px, 6vw, 80px);
}
.prose h2 {
  margin-top: clamp(48px, 5vw, 64px);
  margin-bottom: 16px;
  font-size: clamp(1.4rem, 2.6vw, 1.7rem);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 32px; margin-bottom: 8px; font-size: 1.1rem; }
.prose p, .prose li { color: var(--ink-2); font-size: 1.06rem; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 1.1em; display: grid; gap: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .callout {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--accent-line);
  border-left-width: 3px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
}
.prose .callout p { margin: 0; font-size: 1rem; line-height: 1.65; }
.prose .callout p + p { margin-top: 8px; }

.toc {
  margin-bottom: clamp(32px, 4vw, 48px);
  padding: 24px 32px;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.toc h2 {
  margin: 0 0 16px;
  font-family: var(--font);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.toc ol { margin: 0; padding-left: 20px; gap: 8px; }
.toc a { color: var(--ink-2); font-size: 0.95rem; }
.toc a:hover { color: var(--accent); }

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { margin-bottom: 8px; }
.contact-card p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.contact-card .mail {
  padding: 12px 24px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
}
.contact-card .mail:hover { text-decoration: none; background: var(--accent); color: #fff; }

/* ---------- 404 ---------- */

.notfound { padding-block: clamp(96px, 14vw, 176px); text-align: center; }
.notfound .notfound__code {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 16vw, 9rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent-line);
}
.notfound p { color: var(--ink-2); max-width: 44ch; margin-inline: auto; }

/* ---------- The one scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
  .write { clip-path: none; animation: none; }
  .draw { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
}

/* ---------- Guides (added 2026-10-09) ---------- */

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 0.9rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--accent); }
.page-hero h1 { max-width: 22ch; }
.page-hero .guide-lede { max-width: 60ch; font-size: clamp(1.08rem, 1.6vw, 1.22rem); line-height: 1.55; color: var(--ink-2); }
.page-hero .guide-lede + .meta { margin-top: 12px; font-size: 0.86rem; }

.guide { max-width: 760px; }
.guide > p:first-child { font-size: 1.12rem; color: var(--ink); }
.guide h2 { scroll-margin-top: 96px; }
.guide a:not(.btn) { text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.guide a:not(.btn):hover { text-decoration-color: var(--accent); }

.shot { margin: 32px 0 8px; }
.shot .plate { box-shadow: var(--shadow-md); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--ink-3); text-align: center; }

.table-wrap { overflow-x: auto; margin: 8px 0 20px; border: 1px solid var(--rule-soft); border-radius: var(--r-md); background: var(--surface); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.table-wrap th, .table-wrap td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule-soft); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap th { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-sunk); }
.table-wrap td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.table-wrap td { color: var(--ink-2); }
@media (max-width: 560px) { .table-wrap td:first-child { white-space: normal; } }

.steps-list { list-style: none; padding: 0 !important; counter-reset: step; gap: 12px !important; }
.steps-list li { position: relative; padding: 18px 20px 18px 64px; border: 1px solid var(--rule-soft); border-radius: var(--r-md); background: var(--surface); counter-increment: step; scroll-margin-top: 96px; }
.steps-list li::before { content: counter(step); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.steps-list strong { display: block; margin-bottom: 2px; }

.defs { margin: 8px 0 20px; display: grid; gap: 4px; }
.defs dt { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--ink); margin-top: 14px; }
.defs dd { margin: 0; color: var(--ink-2); font-size: 1.04rem; line-height: 1.7; }

.nf-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin: clamp(48px, 6vw, 64px) 0 0; padding: 24px; border: 1px solid var(--accent-line); border-radius: var(--r-lg); background: var(--accent-soft); }
.nf-cta img { width: 56px; height: 56px; border-radius: 13px; box-shadow: var(--shadow-sm); flex: none; }
.nf-cta > div { flex: 1 1 200px; }
.nf-cta p { margin: 0; }
.nf-cta .nf-cta__t { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.nf-cta .nf-cta__s { font-size: 0.94rem; color: var(--ink-3); }
.prose .nf-cta p { font-size: inherit; line-height: 1.4; }
.prose .nf-cta .nf-cta__s { font-size: 0.94rem; }
@media (max-width: 520px) { .nf-cta .btn { width: 100%; } }

.related { margin-top: clamp(48px, 6vw, 64px); padding-top: 32px; border-top: 1px solid var(--rule-soft); }
.related h2 { margin-top: 0 !important; font-size: 1.3rem !important; }
.related ul { list-style: none; padding: 0 !important; gap: 0 !important; margin-bottom: 20px !important; }
.related li { border-bottom: 1px solid var(--rule-soft); }
.related li a { display: block; padding: 14px 0; text-decoration: none !important; font-weight: 500; color: var(--ink); }
.related li a:hover { color: var(--accent); }

.gcards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.gcard { display: flex; flex-direction: column; height: 100%; padding: 28px; border: 1px solid var(--rule-soft); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); color: var(--ink); transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease; }
.gcard:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--accent-line); box-shadow: var(--shadow-md); }
.gcard__k { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.gcard h2 { margin: 12px 0 10px; font-size: 1.32rem; line-height: 1.2; }
.gcard p { margin: 0; color: var(--ink-2); font-size: 0.98rem; line-height: 1.6; }
.guides-cta { max-width: 760px; margin: 0 auto; }
.guide-list { list-style: none; padding: 0; margin: 0 auto; max-width: 920px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 680px) { .guide-list { grid-template-columns: minmax(0, 1fr); } }
.guide-list a { display: block; height: 100%; padding: 22px 24px; border: 1px solid var(--rule-soft); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.3; transition: border-color 0.16s ease, transform 0.16s ease; }
.guide-list a:hover { text-decoration: none; border-color: var(--accent-line); transform: translateY(-2px); }
.guide-list span { display: block; margin-top: 8px; font-family: var(--font); font-weight: 400; font-size: 0.94rem; color: var(--ink-2); }
.guide-hero .wrap { max-width: calc(760px + var(--gutter) * 2); }
.footer__base a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.footer__base a:hover { color: var(--accent); }
