/* ==========================================================================
   hacc.app marketing site
   --------------------------------------------------------------------------
   Same build as the Order-Point and eSELs sites: one stylesheet, one script,
   no framework. The palette is the app's own: its orange on a warm off-white,
   warm near-black ink, white cards with hairline warm-grey borders, and green
   for "done". White text never sits on the app's orange (#d1622c is 3.8:1);
   fills behind white text use the darker step (#b9521f, 4.9:1).

   What the other pages reuse:
     .crop            a region of a screenshot, cut in CSS (see "Pictures")
     .shot            figure + figcaption; .shot-card the plain framed card
     .device-tablet / .device-phone / .device-browser   device frames
     .feature         copy beside a picture, alternating sides
     .subnav          sticky in-page navigation (features page)
     .prose           one narrow column of text (privacy page)
   ========================================================================== */

/* ── Fonts ───────────────────────────────────────────────────────────── */
/* Served from this site, so a visit sends nobody else the visitor's IP address. Inter is one
   variable file for every weight. Both are SIL Open Font Licence: assets/fonts/OFL-*.txt. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-600.woff2") format("woff2");
}

:root {
  --ink: #2a2420;
  --ink-2: #554b44;
  --ink-3: #6f645c;
  --line: #e4ddd3;
  --line-2: #eee9e1;
  --ground: #faf8f4;
  --ground-2: #f3efe8;
  --ground-3: #e9e3d9;
  --card: #ffffff;

  --accent: #d1622c;          /* the app's orange: marks, borders, focus. Not behind white text. */
  --accent-strong: #b9521f;   /* fills behind white text (4.9:1) */
  --accent-ink: #a04616;      /* orange text on light grounds (6:1) */
  --accent-soft: #fbeee5;
  --accent-line: #f0c9b0;

  --done: #2f7d5c;
  --done-ink: #236347;
  --done-soft: #e3f3ea;
  --amber: #b7791f;
  --amber-soft: #fdf0c8;
  --danger: #a8271e;
  --danger-soft: #fde4de;

  --night: #241c17;
  --night-2: #32271f;
  --night-line: rgba(255, 240, 225, .14);
  --night-ink: #f6efe8;
  --night-ink-2: #d3c6ba;
  --night-accent: #f2a67c;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(42, 36, 32, .06), 0 8px 24px rgba(42, 36, 32, .08);
  --shadow-lg: 0 2px 6px rgba(42, 36, 32, .08), 0 30px 60px -18px rgba(42, 36, 32, .28);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
@media (min-width: 900px) { body { font-size: 18px; } }

main { flex: 1 0 auto; min-width: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; color: inherit; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.55rem); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p, li { max-width: 68ch; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }
.center { text-align: center; }
.center p { margin-inline: auto; }
.nb { white-space: nowrap; }
.sr-only {position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -80px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }

:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; border-radius: 6px; }
.section-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--night-accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .78rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent-ink); margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); flex: none; }

.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); line-height: 1.6; }

.more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; }
.more::after { content: "\2192"; transition: transform .15s ease; }
.more:hover::after { transform: translateX(3px); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.1;
  min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent-strong); color: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 8px 18px -8px rgba(185, 82, 31, .7); }
.btn-primary:hover { background: var(--accent-ink); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 9px 16px; font-size: .92rem; }
.btn-lg { min-height: 54px; padding: 15px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, .9);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 12px 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 44px; white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; }
.brand img { width: 30px; height: auto; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px 22px; }
.site-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .94rem; white-space: nowrap; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { font-weight: 700; }
.site-nav .nav-signin { color: var(--accent-ink); font-weight: 600; }

.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.nav-toggle .bar { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease; }
.nav-toggle[aria-expanded="true"] .sr-only + .bar { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar + .bar { transform: translateY(-4px) rotate(-45deg); }

/* Narrow screens. Without the script the links simply wrap under the brand and the header scrolls
   away with the page; with it they fold behind a menu button and the header stays put. */
@media (max-width: 1120px) {
  .site-nav { gap: 4px 16px; }
  .site-nav a:not(.btn) { font-size: .9rem; }
}
@media (max-width: 960px) {
  .site-header { position: static; }
  .header-row { flex-wrap: wrap; padding-block: 8px; }
  .site-nav { margin-left: 0; width: 100%; flex-wrap: wrap; }

  .js .site-header { position: sticky; }
  .js .header-row { flex-wrap: nowrap; padding-block: 0; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0;
    background: var(--ground); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(42, 36, 32, .35);
    padding: 4px var(--gutter) 20px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    display: none;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a:not(.btn) { min-height: 50px; border-bottom: 1px solid var(--line-2); font-size: 1.02rem; }
  .js .site-nav .btn { margin-top: 16px; }
}

/* ── Pictures ────────────────────────────────────────────────────────── */
/* A crop is done here, never by editing a PNG. Set on the wrapper, in pixels of the PNG:
     --iw / --ih   the picture's own width and height
     --x  / --y    the crop's top-left corner
     --w  / --h    the crop's width and height
   The picture is scaled so --w pixels fill the wrapper, then pulled left and up. Margins in per
   cent are of the wrapper's WIDTH, top margin included, which is why --y is divided by --w. */
.crop { position: relative; aspect-ratio: var(--w) / var(--h); overflow: hidden; background: #fff; }
.crop > img {
  display: block; max-width: none; height: auto;
  width: calc(var(--iw) / var(--w) * 100%);
  margin-left: calc(var(--x) / var(--w) * -100%);
  margin-top: calc(var(--y) / var(--w) * -100%);
}
/* On a phone a wide crop is too small to read. A wrapper may carry a second, tighter crop
   (--mx --my --mw --mh, same units), used at 700px and below. */
@media (max-width: 700px) {
  .crop[style*="--mw"] { --x: var(--mx) !important; --y: var(--my) !important; --w: var(--mw) !important; --h: var(--mh) !important; }
}
/* A grid that scrolls sideways in the app, cut by the crop: fade the cut edge rather than slice it. */
.crop.fade-right::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 9%; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 85%); pointer-events: none; }

.shot { margin: 0; min-width: 0; }
.shot figcaption { margin-top: 14px; font-size: .88rem; line-height: 1.5; color: var(--ink-3); max-width: 60ch; }
.shot.center figcaption { margin-inline: auto; text-align: center; }
.shot-wide { width: 100%; max-width: 980px; margin-inline: auto; }
/* The plain frame for a cropped region: a rounded card, hairline border, soft shadow. */
.shot-card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); background: #fff; }

/* Device frames, drawn in CSS: black glass inside a thin two-tone metal edge. */
.device { margin: 0; position: relative; }
.device > img { width: 100%; display: block; background: #fff; }
.device-phone,
.device-tablet {
  padding: var(--bezel);
  border-radius: var(--frame-radius);
  background: linear-gradient(160deg, #24201d, #0c0a09 40%);
  box-shadow:
    0 0 0 1.5px #cfc8bf,
    0 0 0 3px #7a726a,
    inset 0 0 0 1px rgba(255, 255, 255, .07),
    0 36px 64px -26px rgba(42, 36, 32, .5),
    0 12px 24px -14px rgba(42, 36, 32, .28);
}
.device-tablet { --bezel: clamp(8px, 1.3vw, 14px); --frame-radius: clamp(18px, 2.6vw, 30px); }
.device-tablet > .crop,
.device-tablet > img { border-radius: calc(var(--frame-radius) - var(--bezel)); }
.device-tablet > img { aspect-ratio: 2360 / 1640; object-fit: cover; object-position: top; }
.device-tablet::before { content: ""; position: absolute; top: calc(var(--bezel) / 2 - 2px); left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #3a342f; }
/* A screen cut short by its crop: the frame runs off the bottom and fades, rather than closing round
   half a screen as if the tablet were that shape. */
.device-cut { padding-bottom: 0; border-radius: var(--frame-radius) var(--frame-radius) 0 0; -webkit-mask-image: linear-gradient(#000 90%, transparent); mask-image: linear-gradient(#000 90%, transparent); }
.device-cut > .crop { border-radius: calc(var(--frame-radius) - var(--bezel)) calc(var(--frame-radius) - var(--bezel)) 0 0; }

/* The phone: a status strip above the picture and a home strip below, in the app's own ground, so
   the frame's round corners never cut into the screen. */
.device-phone { --bezel: 7px; --frame-radius: 30px; --screen: #f1f0ec; }
.device-screen { border-radius: calc(var(--frame-radius) - var(--bezel)); overflow: hidden; background: var(--screen); padding: 20px 0 14px; position: relative; }
.device-screen::before { content: ""; position: absolute; top: 6px; left: 50%; width: 26%; height: 9px; margin-left: -13%; border-radius: 9px; background: #0c0a09; }
.device-screen::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 34%; height: 4px; margin-left: -17%; border-radius: 4px; background: #2a2420; opacity: .8; }
.device-screen > .crop { background: var(--screen); }
.device-screen > img { width: 100%; }

.device-browser { border-radius: 14px; overflow: hidden; background: #3a302a; box-shadow: var(--shadow-lg); }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #2a221d; }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #5a4d44; }
.browser-bar em { font-style: normal; font-family: var(--mono); font-size: .72rem; color: #c7b9ad; margin-left: 14px; background: #3a302a; padding: 4px 12px; border-radius: 7px; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(28px, 5vw, 64px) clamp(56px, 8vw, 104px);
  background:
    radial-gradient(900px 480px at 88% 0%, rgba(209, 98, 44, .16), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(209, 98, 44, .07), transparent 60%),
    linear-gradient(180deg, #fffdfa, var(--ground));
}
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px clamp(32px, 5vw, 72px); align-items: start; }
.hero-lead h1 { margin-bottom: 0; }
@media (min-width: 1121px) { .hero-lead h1 { max-width: 16ch; } }
@media (max-width: 400px) { h1 { font-size: 2.1rem; } }
.hero-side .lede { margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--ink-2); font-size: .96rem; line-height: 1.5; }
.hero-points li { position: relative; padding-left: 30px; }
.hero-points li::before, .ticks li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--done-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23236347' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}
@media (max-width: 1120px) { .hero-copy { grid-template-columns: 1fr; gap: 18px; } }

/* One tablet, as large as the page allows. */
.hero-visual { margin: clamp(40px, 6vw, 72px) 0 0; }
.hero-devices { position: relative; max-width: 1180px; margin-inline: auto; }
.hero-tablet { width: 100%; }
.hero-visual > figcaption { margin: 22px auto 0; text-align: center; font-size: .9rem; color: var(--ink-3); max-width: 62ch; }

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding-block: clamp(64px, 9vw, 116px); }
.section-head { max-width: 780px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; }
.section-head > :last-child { margin-bottom: 0; }
.section-tint { background: var(--ground-2); border-block: 1px solid var(--line-2); }

/* Three plain cards (the paper problem). */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 26px 22px; }
.card h3 { font-size: 1.18rem; }
.card p { color: var(--ink-2); margin: 0; font-size: .97rem; }
.card-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--amber-soft); color: #7a4d06; font-family: var(--mono); font-weight: 600; font-size: .9rem; margin-bottom: 16px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* Numbered steps (getting started). */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 26px 22px; }
.step h3 { font-size: 1.18rem; }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-strong); color: #fff; font-family: var(--mono); font-weight: 600; margin-bottom: 16px; }
.step p { color: var(--ink-2); margin: 0; font-size: .97rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink-2); line-height: 1.5; }
.ticks li::before { top: .12em; }
.ticks-plain li::before { background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3' fill='%23b9521f'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Two short lists side by side. */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); }
.panel h3 { font-size: 1.18rem; }
.panel .ticks { margin-top: 14px; font-size: .97rem; }
@media (max-width: 860px) { .pair { grid-template-columns: 1fr; } }

/* ── Tour ────────────────────────────────────────────────────────────── */
/* As written: five steps, each with its picture beside it (beneath it on a narrow screen). The
   script, on a wide screen and only there, turns it into a list on the left with one picture on
   the right (.is-enhanced). Nothing here hides anything until that class is set. */
.tour-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(40px, 6vw, 72px); }
.tour-step { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 20px clamp(28px, 5vw, 64px); align-items: center; max-width: none; }
.tour-text h3 { display: flex; align-items: center; gap: 12px; margin-bottom: .6em; font-size: clamp(1.2rem, 1.9vw, 1.4rem); }
.tour-num { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-line); font-family: var(--mono); font-size: .9rem; font-weight: 600; letter-spacing: 0; }
.tour-text p { color: var(--ink-2); margin: 0; }
.tour-pick { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; margin: 0; text-align: left; cursor: pointer; }
.tour-controls { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; }
.tour-controls[hidden] { display: none; }
.tour-progress { width: 180px; height: 4px; border-radius: 4px; background: var(--ground-3); overflow: hidden; }
.tour-progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.tour-pause { font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 10px; min-height: 44px; min-width: 84px; padding: 8px 16px; cursor: pointer; }
.tour-pause:hover { border-color: var(--ink-3); }
.tour-foot { margin: clamp(28px, 4vw, 44px) 0 0; }
@media (max-width: 899px) { .tour-step { grid-template-columns: 1fr; } }

.tour.is-enhanced .tour-steps { position: relative; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 8px clamp(28px, 5vw, 64px); align-content: start; }
/* Only the chosen step is open, so the list fits one screen and the picture stays at its top. */
.tour.is-enhanced .tour-step:not(.is-active) .tour-text p { display: none; }
.tour.is-enhanced .tour-step:not(.is-active) .tour-text h3 { margin-bottom: 0; }
.tour.is-enhanced .tour-step { display: block; grid-column: 1; padding: 18px 20px; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease; }
.tour.is-enhanced .tour-step .tour-text p { color: var(--ink-3); font-size: .96rem; }
.tour.is-enhanced .tour-step.is-active { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); }
.tour.is-enhanced .tour-step.is-active .tour-text p { color: var(--ink-2); }
.tour.is-enhanced .tour-step.is-active .tour-num { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.tour.is-enhanced .tour-step .shot {
  position: absolute; right: 0; top: 0; /* the script makes the list tall enough for the tallest */
  width: calc((100% - clamp(28px, 5vw, 64px)) * .65);
  opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; cursor: default;
}
.tour.is-enhanced .tour-step.is-active .shot { opacity: 1; visibility: visible; transition: opacity .5s ease; }

/* ── Feature: copy beside a picture ──────────────────────────────────── */
/* <article class="feature"> <div class="feature-copy">…</div> <figure class="shot feature-media">…</figure> </article>
   Inside .features the sides alternate by themselves; .feature-flip forces picture-left.
   .feature-compact is the tighter block the features page uses; a feature with no picture
   (.feature-text) is one readable column. */
.features { display: grid; gap: clamp(56px, 8vw, 104px); }
.feature { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); gap: 28px clamp(32px, 5vw, 72px); align-items: center; }
.feature-copy > p { color: var(--ink-2); }
.feature-copy > :last-child { margin-bottom: 0; }
.feature-copy .more { margin-top: 14px; }
.features > .feature:nth-of-type(even) > .feature-media, .feature-flip > .feature-media { order: -1; }
.features > .feature:nth-of-type(even), .feature-flip { grid-template-columns: minmax(0, 1.38fr) minmax(0, .62fr); }
.feature-text { grid-template-columns: minmax(0, 68ch); }
.feature-compact { gap: 20px clamp(24px, 4vw, 48px); align-items: start; }
.feature-compact h3 { font-size: clamp(1.15rem, 1.7vw, 1.3rem); }
.feature-compact .feature-copy > p { font-size: .97rem; }
.feature-compact .ticks { font-size: .95rem; gap: 9px; margin-top: 14px; }
.features-compact { gap: clamp(40px, 6vw, 72px); }
@media (max-width: 1120px) {
  .feature, .features > .feature:nth-of-type(even), .feature-flip { grid-template-columns: 1fr; }
  .features > .feature:nth-of-type(even) > .feature-media, .feature-flip > .feature-media { order: 0; }
}

/* A sentence that must not be missed. */
.callout { margin: 22px 0; padding: 16px 20px; border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; background: var(--accent-soft); color: var(--ink); font-size: 1.08rem; font-weight: 700; line-height: 1.45; }

/* ── The dark band ───────────────────────────────────────────────────── */
.section-dark { background: radial-gradient(1000px 520px at 50% 0%, #3d2e24, var(--night)); color: var(--night-ink); }
.section-dark .eyebrow { color: var(--night-accent); }
.section-dark .eyebrow::before { box-shadow: 0 0 0 4px rgba(242, 166, 124, .18); }
.section-dark .lede, .section-dark p, .section-dark .ticks li { color: var(--night-ink-2); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: var(--night-accent); }
.section-dark a:hover { color: #fff; }
.section-dark .shot figcaption { color: #bfb1a5; }
.section-dark .shot-card { border-color: transparent; box-shadow: 0 40px 70px -28px rgba(0, 0, 0, .7); }
.section-dark .device-tablet { box-shadow: 0 0 0 1.5px #6b6058, 0 0 0 3px #3a322c, 0 40px 70px -28px rgba(0, 0, 0, .7); }
.section-dark .ticks li::before { background-color: rgba(47, 125, 92, .35); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23b9ecd3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.section-dark .feature { align-items: start; }
.section-dark .callout { background: rgba(242, 166, 124, .13); border-left-color: var(--night-accent); color: #fff; }

/* ── The demo block ──────────────────────────────────────────────────── */
.demo-block { margin-top: clamp(48px, 7vw, 88px); padding: clamp(24px, 4vw, 48px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.demo-block .btn { margin-top: 24px; }
.demo-block .shot-card { box-shadow: var(--shadow); }
.stack { display: grid; gap: clamp(32px, 5vw, 56px); }

/* ── Questions ───────────────────────────────────────────────────────── */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { text-wrap: balance; list-style: none; cursor: pointer; padding: 20px 36px 20px 0; min-height: 44px; font-weight: 700; position: relative; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--ink-2); padding-bottom: 20px; margin: 0; }

/* ── Request a demo ──────────────────────────────────────────────────── */
.section-accent { background: linear-gradient(135deg, var(--accent-soft), var(--ground) 62%); border-top: 1px solid var(--accent-line); }
.demo-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.demo-copy p { color: var(--ink-2); }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }

.demo-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3.5vw, 34px); box-shadow: var(--shadow-lg); }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label, .field legend { font-weight: 600; font-size: .94rem; padding: 0; }
.field legend { margin-bottom: 8px; }
.optional { font-weight: 400; color: var(--ink-3); }
.field input:not([type="radio"]), .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  border: 1.5px solid #8f8377; border-radius: 10px; padding: 12px 13px; min-height: 48px; background: #fff; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input:not([type="radio"]):focus, .field textarea:focus { outline: none; border-color: var(--accent-strong); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.has-error input:not([type="radio"]), .field.has-error textarea, .field.has-error .choice { border-color: var(--danger); }
.field .error { color: var(--danger); font-size: .88rem; font-weight: 600; }

/* A short closed list is three large things to tap, not a dropdown. */
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.field .choice { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 14px; border: 1.5px solid #8f8377; border-radius: 12px; background: #fff; cursor: pointer; font-weight: 600; font-size: .98rem; line-height: 1.25; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.choice:hover { border-color: var(--ink-3); }
.choice input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent-strong); }
.choice:has(input:checked) { border-color: var(--accent-strong); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent-strong); }
.choice:has(input:focus-visible) { outline: 3px solid var(--accent-strong); outline-offset: 2px; }
@supports selector(:has(*)) { .choice input:focus-visible { outline: none; } }
@media (max-width: 560px) { .choices { grid-template-columns: 1fr; } }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .92rem; color: var(--ink-3); margin: 14px 0 0; text-align: center; max-width: none; }
.demo-form noscript .form-note { margin: 0 0 14px; }
.form-note + .form-note { margin-top: 6px; }
.form-status { margin: 12px 0 0; font-weight: 600; text-align: center; max-width: none; }
.form-status:empty { margin: 0; }
.form-status.is-error { color: var(--danger); }
.form-done { text-align: center; padding: 28px 8px; }
.form-done h3 { font-size: 1.6rem; color: var(--done-ink); }
.form-done p { color: var(--ink-2); margin-inline: auto; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--night); color: var(--night-ink-2); padding-block: 44px; font-size: .92rem; }
.site-footer .brand { color: #fff; }
.footer-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 18px 40px; }
.footer-brand p { margin: 6px 0 0; max-width: 34em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--night-ink); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; color: #fff; }
.footer-legal { margin: 8px 0 0; padding-top: 20px; width: 100%; max-width: none; border-top: 1px solid var(--night-line); color: #b3a599; font-size: .85rem; }

/* ── 404 ─────────────────────────────────────────────────────────────── */
.notfound { padding-block: clamp(56px, 10vw, 128px); }
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); }
.notfound p { color: var(--ink-2); }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ── Page head (features, privacy) ───────────────────────────────────── */
.page-head { padding-block: clamp(40px, 7vw, 88px) clamp(28px, 4vw, 48px); background: radial-gradient(800px 400px at 90% 0%, rgba(209, 98, 44, .13), transparent 60%), linear-gradient(180deg, #fffdfa, var(--ground)); }
.page-head h1 { font-size: clamp(2.1rem, 4.8vw, 3.3rem); }
.page-head .lede { max-width: 62ch; margin-bottom: 0; }

/* ── Sub-navigation (features page) ──────────────────────────────────── */
/* <nav class="subnav" aria-label="On this page" data-subnav><div class="wrap"><ul><li><a href="#day">…</a></li>…</ul></div></nav>
   Sticks under the header where the header itself is sticky; scrolls sideways when six links do not
   fit. The script marks the link of the group on screen with aria-current="true". */
.subnav { position: sticky; top: 0; z-index: 40; background: rgba(250, 248, 244, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-block: 1px solid var(--line); }
@media (min-width: 961px) { .subnav { top: var(--header-h); } }
/* The list scrolls sideways when it does not fit: fade the cut edge so it reads as more to come. */
.subnav .wrap { position: relative; }
.subnav .wrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 40px; background: linear-gradient(90deg, rgba(250, 248, 244, 0), var(--ground)); pointer-events: none; }
.subnav ul { padding-right: 32px; }
.js .subnav { top: var(--header-h); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav li { flex: none; max-width: none; }
.subnav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="true"] { color: var(--accent-ink); border-bottom-color: var(--accent); }
/* A group under the sub-navigation: leave room for both bars when jumped to. */
/* Added to the page's own scroll-padding-top, which already clears the header. */
.group { scroll-margin-top: 40px; padding-block: clamp(56px, 8vw, 96px); }
.group + .group { border-top: 1px solid var(--line); }
.group-head { max-width: 780px; margin-bottom: clamp(32px, 5vw, 56px); }
.group-foot { margin-top: clamp(36px, 5vw, 56px); }
/* The titles of a part, as links to each. */
.jump { list-style: none; padding: 0; margin: 0 0 clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 8px; }
.jump li { max-width: none; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2); text-decoration: none; font-size: .88rem; font-weight: 600; line-height: 1.3; }
.jump a:hover { border-color: var(--ink-3); color: var(--ink); }
.group-head:has(+ .jump) { margin-bottom: 22px; }
.group :is(.feature, .card)[id] { scroll-margin-top: 60px; }

/* ── Prose (privacy page) ────────────────────────────────────────────── */
.prose { padding-block: clamp(40px, 7vw, 80px) clamp(56px, 8vw, 96px); }
.prose > .wrap, .wrap.prose { max-width: 780px; }
.prose h1 { font-size: clamp(2.1rem, 4.6vw, 3rem); margin-bottom: .3em; }
.prose-updated { color: var(--ink-3); font-family: var(--mono); font-size: .85rem; margin-bottom: 2em; }
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); letter-spacing: -0.02em; margin: 2em 0 .6em; }
.prose h3 { font-size: 1.12rem; margin: 1.6em 0 .5em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; display: grid; gap: 8px; }
.prose strong { color: var(--ink); }
.prose-aside { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 1.6em 0; }
.prose-aside > :last-child { margin-bottom: 0; }

@media print {
  .site-header, .subnav, .nav-toggle, .tour-controls { position: static; }
  .site-header { backdrop-filter: none; }
}

/* ---- features page ---- */
/* Added for features.html only. Nothing above is changed. Modules with a picture are .feature
   blocks; modules without one sit in a two-column grid of cards beneath them. */
.page-head-action { margin: 26px 0 0; }
.cards-two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 72px); align-items: stretch; }
.card-module { max-width: none; padding: clamp(22px, 3vw, 30px); }
.card-module h3 { font-size: clamp(1.12rem, 1.6vw, 1.25rem); }
.card-module .ticks { margin-top: 14px; gap: 9px; font-size: .95rem; }
.card-module .ticks li { max-width: none; }
@media (min-width: 1100px) { .cards-three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Two columns: an odd card left alone above the closing wide card runs full width. */
@media (min-width: 861px) and (max-width: 1099px) {
  .cards-three > .card:nth-child(odd):nth-last-child(2) { grid-column: 1 / -1; }
  .cards-three > .card:nth-child(odd):nth-last-child(2) .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
}
.card-wide { grid-column: 1 / -1; }
.card-wide > p { max-width: 68ch; }
.card-wide .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
@media (max-width: 860px) {
  .cards-two, .card-wide .ticks { grid-template-columns: 1fr; }
}
.group.section-tint + .group { border-top: 0; }
.feature-copy > h4 { margin: 22px 0 0; }
.feature-copy > h4 + .ticks { margin-top: 12px; }
.feature-copy > .feature-note { margin-top: 16px; font-size: .97rem; }
/* Which paper sheet becomes what: a short list under the picture it belongs to. */
.sheet-map { margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sheet-map > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.sheet-map dt { font-weight: 700; font-size: .95rem; line-height: 1.35; }
.sheet-map dd { margin: 4px 0 0; font-size: .9rem; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 560px) { .sheet-map { grid-template-columns: 1fr; } }
/* Stacked, the sheet map follows the opening sentence, ahead of what does not come across. */
@media (max-width: 1120px) {
  #start-where-each-paper-sheet-goes { row-gap: 0; }
  #start-where-each-paper-sheet-goes > .feature-copy { display: contents; }
  #start-where-each-paper-sheet-goes > .feature-copy > h3,
  #start-where-each-paper-sheet-goes > .feature-copy > h3 + p { order: -2; }
  #start-where-each-paper-sheet-goes > .feature-media { order: -1; margin-top: 8px; }
}
/* A picture cut from a small part of the screen, kept at the scale of its neighbours. */
.shot-narrow { width: 100%; max-width: 520px; justify-self: center; }
@media (max-width: 1120px) { .shot-narrow { justify-self: start; } }

/* A longer tick list set across the full width of a feature, under the copy and the picture. */
.feature > .ticks-cols { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 36px; margin-top: 4px; }
@media (max-width: 1120px) { .feature > .ticks-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .feature > .ticks-cols { grid-template-columns: 1fr; } }
.section > .wrap > .feature { align-items: start; }
