/* ========================================
   Saife — paper (2026-10-05)

   The website in the look of the extension's check and block pages and the
   school dashboard: warm paper, a serif for headlines (New York via
   ui-serif, Georgia on Windows), ink text, one coral pill per screen for the
   main action, soft shadows, round corners. Colour only for status, always
   with a word. No web fonts, nothing fetched.

   Loaded last on every page (after styles.css, marketing.css and each page's
   own <style>), so it wins at equal specificity: it resets the shared
   tokens first, then redraws each component. Mirrors
   schoolfilter-extension/src/shared/theme.css and the dashboard's
   src/index.css — change them together.
   ======================================== */

:root {
  --canvas: #FBF7EE;
  --paper: #FFFDF8;
  --sand: #F3EDDF;
  --stone: #E3DBC8;
  --ink: #1A1A1A;
  --muted: #5F5A4F;
  --faint: #9A9384;
  --coral: #FF6B4A;
  --coral-hover: #FF7F62;
  --coral-tint: #FFE8E1;
  --coral-ink: #9E2A10;
  --teal: #0F5F55;
  --teal-tint: #E1F0EC;
  --amber: #8A5A00;
  --amber-tint: #FBEFD5;
  --blue: #2B4C7E;
  --blue-tint: #DDE7F6;
  --serif: ui-serif, 'New York', 'Iowan Old Style', Charter, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --shadow-card: 0 1px 0 rgba(26, 26, 26, 0.03), 0 10px 24px -14px rgba(110, 92, 50, 0.35);
  --shadow-raised: 0 1px 0 rgba(26, 26, 26, 0.04), 0 22px 44px -22px rgba(110, 92, 50, 0.55);

  /* the old tokens, pointed at the new look */
  --nb-bg: var(--canvas);
  --nb-secondary: var(--sand);
  --nb-border: var(--stone);
  --nb-shadow: transparent; /* every old offset shadow is built from it */
  --nb-text: var(--ink);
  --nb-yellow: var(--amber-tint);
  --nb-cyan: var(--teal-tint);
  --nb-pink: var(--coral-tint);
  --nb-purple: var(--blue-tint);
  --nb-border-width: 1px;
  --nb-shadow-offset: var(--shadow-card);
  --nb-shadow-sm: var(--shadow-card);
  --nb-shadow-md: var(--shadow-card);
  --nb-shadow-lg: var(--shadow-card);
  --nb-shadow-xl: var(--shadow-raised);
  --bg-cream: var(--canvas);
  --bg-stone: var(--sand);
  --bg-white: var(--paper);
  --text-primary: var(--ink);
  --text-secondary: var(--muted);
  --text-muted: var(--muted);
  --border-black: var(--stone);
  --border-soft: var(--stone);
  --primary: var(--coral);
  --primary-light: var(--coral-tint);
  --font-body: var(--sans);
  --font-heading: var(--serif);
  --font-mono: var(--mono);
  --shadow-brutal: var(--shadow-card);
  --shadow-small: var(--shadow-card);
  --shadow-large: var(--shadow-raised);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --tap-target: 44px;
}

/* ---- base ---- */
html { background: var(--canvas); }
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--coral-tint); }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: none;
  text-shadow: none;
  color: var(--ink);
}
h4, h5 { font-family: var(--sans); font-weight: 650; text-transform: none; letter-spacing: 0; }
p, li { color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
code, pre, kbd { font-family: var(--mono); }
hr { border: 0; border-top: 1px solid var(--stone); }
[hidden] { display: none !important; }

/* every old offset shadow and hard corner, at once */
.btn, .badge, .section-badge, .faq-item, .calculator-card, .audience-card, .one-pager-feature,
.one-pager-price-card, .one-pager-badge, .print-btn, .contact-panel, .highlight-box, .legal-toc, .calc-field input, .calc-field select {
  border-radius: 20px;
  box-shadow: none;
  text-transform: none;
  letter-spacing: normal;
}

/* ---- navigation ---- */
.navbar {
  background: rgba(251, 247, 238, 0.86);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.navbar.scrolled { border-bottom-color: var(--stone); box-shadow: none; }
.logo, .footer-logo { gap: 8px; }
.logo-text, .footer-logo .logo-text {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo-icon { display: none; }
.logo::before, .footer-logo::before {
  content: '';
  width: 28px;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' role='img' aria-label='Saife'%3E%3Ctitle%3ESaife%3C/title%3E%3Ccircle cx='50' cy='50' r='34' fill='%23FFC9B8'/%3E%3Cpath d='M63.38 28.5 58.51 27.84 63.09 24.03H63.77L66.53 40.97L65.45 41.22L57.59 29.46L60.88 33.37Q57.94 30.37 55.19 29.17Q52.44 27.98 49.62 27.98Q45.51 27.98 43.78 29.79Q42.05 31.61 42.05 34.43Q42.05 36.48 43.06 37.86Q44.06 39.25 45.82 40.21Q47.57 41.18 49.82 41.95Q52.06 42.72 54.54 43.55Q57.02 44.38 59.49 45.49Q61.96 46.6 64 48.31Q66.05 50.02 67.29 52.6Q68.53 55.18 68.53 58.99Q68.53 64.24 65.67 68.05Q62.81 71.86 58.04 73.92Q53.27 75.97 47.46 75.97Q43.77 75.97 40.67 75.54Q37.56 75.12 34.18 73.88L31.47 59.82H32.61L42.31 74.29L35.89 70.09Q39.05 71.8 41.61 72.69Q44.16 73.58 46.93 73.58Q51.09 73.58 53.67 72.44Q56.24 71.29 57.44 69.28Q58.64 67.28 58.64 64.67Q58.64 62.04 57.43 60.33Q56.22 58.61 54.21 57.48Q52.2 56.35 49.78 55.51Q47.35 54.68 44.9 53.8Q42.46 52.93 40.24 51.85Q38.02 50.78 36.3 49.24Q34.58 47.71 33.58 45.48Q32.58 43.25 32.58 40.09Q32.58 35.63 34.87 32.36Q37.17 29.1 41.36 27.31Q45.55 25.53 51.19 25.53Q54.66 25.53 57.48 26.24Q60.31 26.95 63.38 28.5Z' fill='%231A1A1A'/%3E%3C/svg%3E") center / contain no-repeat;
  flex: none;
}
.nav-link {
  font-weight: 500;
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link::after { display: none; }
@media (min-width: 769px) and (max-width: 1023px) {
  .nav-menu { gap: clamp(12px, 3.4vw - 14px, 24px); }
  .nav-link { font-size: 14px; }
}
.hamburger { border: 1px solid var(--stone); border-radius: 999px; background: var(--paper); box-shadow: none; }
.hamburger span { background: var(--ink); }
@media (max-width: 768px) {
  .nav-menu { background: var(--paper); border-bottom: 1px solid var(--stone); box-shadow: var(--shadow-raised); }
}

/* ---- buttons: pills with an ink line; coral for the one main action ---- */
.btn, .print-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.1;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: none;
  transition: transform 0.12s ease, background-color 0.12s ease;
}
.btn:hover, .print-btn:hover {
  background: var(--sand);
  transform: none;
  box-shadow: none;
}
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-primary {
  background: var(--coral);
  color: var(--ink);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--coral-hover); }
.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
}
.btn-lg { min-height: 48px; padding: 0 24px; font-size: 16px; }
.cta-buttons .btn-primary, .cta-buttons .btn-primary:hover, .cta-buttons .btn-primary:active { box-shadow: none; transform: none; }
/* the navigation's button stays quiet: the page's own coral pill is the main action */
.navbar .btn-primary { background: var(--paper); }
.navbar .btn-primary:hover { background: var(--sand); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14.5px; }
.btn svg { flex: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--stone);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.text-link::after { content: '→'; font-weight: 400; }
.text-link:hover { text-decoration-color: var(--ink); }
.text-link:hover::after { translate: 3px 0; }
@media (prefers-reduced-motion: no-preference) {
  .text-link::after { transition: translate 0.15s ease; }
}

/* ---- small labels ---- */
.badge, .section-badge, .one-pager-badge {
  background: transparent;
  border: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  box-shadow: none;
}

/* ---- hero ---- */
.hero {
  background: var(--canvas);
  border-bottom: 0;
  padding: 72px 0 88px;
}
.hero::before, .hero::after { display: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 48px; align-items: center; }
.hero-text { max-width: none; margin: 0; text-align: left; }
.hero .badge { display: block; margin: 0 0 20px; }
.hero-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 4.7vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  text-transform: none;
  text-shadow: none;
  text-wrap: balance;
}
.hero-title > span { display: block; }
.hero-title .highlight-block { display: inline; }
.highlight-block {
  display: inline;
  background: linear-gradient(transparent 62%, #FFD3C4 62%, #FFD3C4 92%, transparent 92%) no-repeat;
  background-size: 100% 100%;
  border: 0;
  box-shadow: none;
  padding: 0 4px;
  margin: 0;
  color: var(--ink);
  font-weight: 400;
  font-size: inherit;
  letter-spacing: inherit;
  font-style: italic;
}
.hero-description {
  max-width: 33em;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
  font-weight: 400;
  text-shadow: none;
}
.hero-cta { justify-content: flex-start; gap: 12px; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 30px 0 0; padding: 0; list-style: none; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.hero-facts li::before { width: 16px; height: 16px; }

.hero-facts li::before, .ticks li::before, .audience-card li::before {
  content: '';
  flex: none;
  border: 0;
  border-radius: 999px;
  background: var(--teal-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14 7.6' fill='none' stroke='%230F5F55' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero-shot {
  display: grid;
  grid-template-columns: [device-start] 59% [log-start] 11% [device-end] 30% [log-end];
  grid-template-rows: [device-start] auto [log-start] 80px [device-end] auto [log-end];
  margin: 0;
}
.hero-shot-device { grid-area: device; align-self: start; padding: 11px; border-radius: 28px; }
.hero-shot-dash { grid-area: log; align-self: start; z-index: 1; font-size: 13px; }
.hero-shot-dash .demo-dash-head { flex-direction: column; align-items: flex-start; gap: 2px; }
.hero-shot-dash .demo-log { padding: 4px 16px 2px; }
.hero-shot-dash .demo-log-head, .hero-shot-dash .demo-log-row { grid-template-columns: minmax(0, 1fr) auto; }
.hero-shot-dash .demo-noname { font-size: 12px; }
.hero-shot .demo-viewport { min-height: 286px; }
.hero-shot .demo-screen { padding: 20px 22px 18px; }
.hero-shot .demo-title { margin-bottom: 4px; font-size: 22px; }
.hero-shot .demo-lead { margin-bottom: 14px; font-size: 13px; }
.hero-shot .demo-card { margin-bottom: 14px; }
.hero-shot .demo-actions { margin-bottom: 0; }
.hero-shot-caption { grid-area: 3 / 1; align-self: end; margin: 0 0 0 4px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }

@media (min-width: 1024px) and (max-width: 1179px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; }
  .hero-shot { grid-template-columns: [device-start] 54% [log-start] 16% [device-end] 30% [log-end]; }
}
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shot { max-width: 640px; }
}
@media (max-width: 640px) {
  .hero { padding: 40px 0 56px; }
  .hero-title { font-size: 2.45rem; }
  .hero-description { font-size: 17.5px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-shot { display: block; }
  .hero-shot-dash { display: none; }
  .hero-shot-caption { display: block; margin-top: 10px; text-align: right; }
}

/* ---- sections ---- */
.pricing-section, .faq-section, .audience-section, .demo-section, .content-section {
  border-bottom: 0;
}
.pricing-section, .faq-section, .content-section, .content-section:nth-child(even) { background: var(--canvas); }
.audience-section { background: var(--paper); border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); }
.promises-section, .audience-section, .pricing-section, .faq-section { padding: 96px 0; }
.content-section { padding: 72px 0 96px; }
.faq-section { border-top: 1px solid var(--stone); }
.section-header { max-width: 720px; margin: 0 0 44px; text-align: left; }
.section-header h2, .doc-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  text-wrap: balance;
}
.section-header h2::after { display: none; }
.section-description { color: var(--muted); font-weight: 400; }
.section-description { max-width: 56ch; margin: 14px 0 0; font-size: 18px; line-height: 1.55; }
.section-description a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--stone); }

.doc { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 56px; align-items: start; }
.doc-head { position: sticky; top: 104px; }
.doc-head h2 { margin: 0; }
.doc + .doc { margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--stone); }
.doc-body > p { max-width: 62ch; margin: 0 0 18px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.doc-body > h3 { margin: 44px 0 14px; font-size: 24px; }
.doc-body > h3:first-child { margin-top: 0; }
.doc-body > :last-child { margin-bottom: 0; }
.doc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.doc-cols h3 { margin: 0 0 8px; font-size: 22px; }
.doc-cols p { margin: 0 0 12px; color: var(--muted); }
@media (max-width: 1023px) {
  .doc { grid-template-columns: 1fr; gap: 28px; }
  .doc-head { position: static; }
}
@media (max-width: 640px) { .doc-cols { grid-template-columns: 1fr; } }

.ruled { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--stone); }
.ruled li { padding: 13px 0; border-bottom: 1px solid var(--sand); font-size: 16px; line-height: 1.55; }
.ruled a { text-decoration: underline; text-decoration-color: var(--stone); text-underline-offset: 3px; }

.facts { display: grid; grid-template-columns: max-content 1fr; margin: 0; border-top: 1px solid var(--stone); }
.facts dt, .facts dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--sand); }
.facts dt { padding-right: 32px; color: var(--muted); }

/* ---- cards ---- */
.calculator-card, .audience-card, .one-pager-feature, .one-pager-price-card, .contact-panel {
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

/* ---- pricing ---- */
.price { font-family: var(--serif); font-weight: 400; letter-spacing: -0.03em; }
.period { color: var(--muted); }
.highlight-box { background: var(--sand); border: 0; border-radius: 14px; color: var(--ink); box-shadow: none; }

.offer {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}
.offer-main, .offer-included { padding: 40px 40px 36px; }
.offer-included { background: var(--canvas); border-left: 1px solid var(--sand); }
.offer h3 { margin: 0; font-size: 26px; }
.offer-for { margin: 6px 0 22px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.offer-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 22px; }
.offer-amount .price { font-size: 64px; line-height: 1; }
.offer-amount .period { font-size: 15px; }
.offer-terms { list-style: none; margin: 0 0 28px; padding: 0; font-size: 15px; }
.offer-terms li { padding: 9px 0; border-top: 1px solid var(--sand); }
.offer-terms li:last-child { border-bottom: 1px solid var(--sand); }
.offer .btn { width: 100%; }
.offer-avv { margin: 14px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.offer-avv a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--stone); }
.offer-included h4 { margin: 0 0 10px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 11px 0 11px 32px; border-bottom: 1px solid var(--sand); font-size: 15.5px; line-height: 1.45; }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { position: absolute; left: 0; top: 12px; width: 20px; height: 20px; }
@media (max-width: 900px) {
  .offer { grid-template-columns: 1fr; }
  .offer-included { border-left: 0; border-top: 1px solid var(--sand); }
}
@media (max-width: 640px) {
  .offer-main, .offer-included { padding: 28px 22px; }
  .offer-amount .price { font-size: 52px; }
}

.avv-note { max-width: 680px; margin: 56px 0 0; }
.avv-note h3 { margin: 0 0 12px; font-size: 26px; }
.avv-note p { margin: 0 0 10px; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* ---- FAQ ---- */
.faq-grid { max-width: none; margin: 0; border-top: 1px solid var(--stone); }
.faq-item, .faq-item:hover {
  margin: 0;
  overflow: hidden;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--stone);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
.faq-question {
  gap: 16px;
  padding: 20px 0;
  background: transparent;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
}
.faq-question:hover, .faq-item.active .faq-question { background: none; border-bottom: 0; }
.faq-question:hover span { text-decoration: underline; text-decoration-color: var(--stone); text-underline-offset: 5px; }
.faq-icon { color: var(--muted); }
.faq-answer, .faq-item.active .faq-answer { padding: 0; border-top: 0; }
.faq-answer p { padding: 0 48px 22px 0; background: none; color: var(--muted); font-size: 16px; line-height: 1.65; }

/* ---- call to action and footer ---- */
.cta-section {
  padding: 72px 0;
  text-align: left;
  background: var(--sand);
  color: var(--ink);
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
}
.cta-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title actions" "text actions";
  gap: 10px 48px;
  align-items: center;
  max-width: none;
  margin: 0;
  text-align: left;
}
.cta-content h2 { grid-area: title; margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--ink); }
.cta-content p { grid-area: text; max-width: 60ch; margin: 0; font-size: 17px; color: var(--muted); }
.cta-buttons { grid-area: actions; justify-content: flex-end; gap: 12px; margin: 0; }
@media (max-width: 900px) {
  .cta-content { grid-template-columns: 1fr; grid-template-areas: "title" "text" "actions"; }
  .cta-buttons { justify-content: flex-start; margin-top: 14px; }
}
.footer { background: var(--canvas); border-top: 0; color: var(--ink); }
.footer .footer-heading { font-family: var(--mono); font-size: 12px; line-height: 1.4; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.footer-links a, .footer-bottom-links a { color: var(--ink); font-weight: 500; }
.footer-links a:hover, .footer-bottom-links a:hover { color: var(--coral-ink); }
.footer-description, .footer-bottom p { color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--stone); }
.footer-social a { border: 1px solid var(--stone); border-radius: 999px; background: var(--paper); box-shadow: none; color: var(--ink); }
.footer-social a:hover { background: var(--sand); color: var(--ink); transform: none; box-shadow: none; }

/* ---- forms ---- */
.calc-field input, .calc-field select,
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="url"], select, textarea {
  border: 1.5px solid var(--stone);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  box-shadow: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--coral-tint);
  transform: none;
}
label { text-transform: none; letter-spacing: 0; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ink); border-radius: 4px; box-shadow: none; }

/* ---- tables ---- */
.compare-table-wrapper { margin: 0; overflow-x: auto; background: none; border: 0; border-radius: 0; box-shadow: none; }
.compare-table { min-width: 640px; background: none; border: 0; box-shadow: none; }
.compare-table th, .compare-table td { padding: 14px 16px; border: 0; border-bottom: 1px solid var(--sand); font-size: 15px; }
.compare-table thead th, .compare-table thead th:first-child {
  background: none;
  color: var(--muted);
  border-bottom: 1px solid var(--stone);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.compare-table tbody tr:nth-child(even), .compare-table tbody tr:hover { background: none; }
.compare-table tbody td:first-child { font-weight: 500; }
.compare-table thead th.highlight-col { background: var(--sand); color: var(--ink); }
.compare-table td.highlight-col { background: var(--sand); font-weight: 600; }
.compare-table .check { color: var(--teal); }
.compare-table .cross, .compare-table .partial { color: var(--muted); font-weight: 400; }
.table-note { max-width: 72ch; margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---- legal pages ---- */
.legal-page, .legal-content { background: var(--canvas); color: var(--ink); }
.legal-header h1 { font-family: var(--serif); font-weight: 400; }
.legal-content h2, .legal-content h3 { font-family: var(--serif); font-weight: 400; }
.legal-toc { background: var(--paper); border: 1px solid var(--stone); }

/* ---- homepage demo (js/motion.js) in the paper look ---- */
.demo-section { background: var(--sand); border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }
@media (prefers-reduced-motion: reduce) { .demo-screen { transform: none; } }
.demo-device { border: 0; border-radius: 30px; box-shadow: var(--shadow-raised); }
.demo-dash {
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: 22px;
  box-shadow: var(--shadow-raised);
  overflow: hidden;
}
.demo-dash-head {
  background: var(--paper);
  border-bottom: 1px solid var(--sand);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
}
.demo-dash-head small { color: var(--muted); font-family: var(--mono); }
.demo-stat { border: 0; border-radius: 14px; box-shadow: none; }
.demo-stat.is-total { background: var(--teal-tint); }
.demo-stat.is-blocked { background: var(--coral-tint); }
.demo-stat b { font-family: var(--serif); font-weight: 400; font-size: 30px; }
.demo-stat span { font-family: var(--sans); font-weight: 500; font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--muted); }
.demo-log h4 { font-family: var(--serif); font-weight: 400; font-size: 17px; }
.demo-log-head { border-bottom: 1px solid var(--stone); font-family: var(--mono); font-weight: 500; letter-spacing: 0.08em; color: var(--muted); }
.demo-log-row { border-bottom-color: var(--sand); }
.demo-log-row.is-new { background: #FFF4EC; }
.demo-tag { border: 0; border-radius: 999px; padding: 3px 9px; font-family: var(--mono); font-weight: 500; letter-spacing: 0.04em; }
.demo-tag.is-allow { background: var(--teal-tint); color: var(--teal); }
.demo-tag.is-block { background: var(--coral-tint); color: var(--coral-ink); }
.demo-mini-btn {
  border: 1px solid var(--stone);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: none;
  padding: 4px 10px;
  font-family: var(--sans);
  font-weight: 600;
  text-transform: none;
}
.demo-release.is-pointing { background: var(--coral); border: 1.5px solid var(--ink); }
@keyframes demo-press {
  0%, 60%, 100% { transform: none; }
  70%, 80% { transform: translateY(1px) scale(0.97); }
}
.demo-noname { border-top: 1px solid var(--sand); background: var(--canvas); font-weight: 500; color: var(--muted); }
.demo-steps li {
  border: 1px solid var(--stone);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.6);
  font-weight: 500;
}
.demo-steps li::before {
  border: 1px solid var(--stone);
  border-radius: 999px;
  font-family: var(--serif);
  font-weight: 400;
}
.demo-steps li.is-active { background: var(--paper); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.demo-steps li.is-active::before { background: var(--coral); border: 1.5px solid var(--ink); color: var(--ink); }
.demo-disclaimer { color: var(--muted); font-weight: 400; }

/* the captions jump to their step (js/motion.js), only while the demo is animated */
.demo.is-animated .demo-steps li { cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.demo.is-animated .demo-steps li:hover { border-color: var(--ink); }
.demo.is-animated .demo-steps li:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---- who uses what ---- */
.audience-grid { gap: 24px; }
.audience-card { padding: 34px 32px 30px; box-shadow: none; }
.audience-card.is-school, .audience-card.is-pupil { background: var(--canvas); }
.audience-tag {
  background: transparent;
  border: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.audience-card h3 { font-size: 28px; }
.audience-where { font-weight: 500; color: var(--muted); }
.audience-card li { border-top: 1px solid var(--sand); color: var(--ink); font-weight: 400; }
.audience-card .text-link { margin-top: 22px; }

/* ---- motion: the hero headline's marker is drawn in, not stamped ---- */
@keyframes paper-marker {
  from { background-size: 0% 100%; }
  to { background-size: 100% 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .highlight-block {
    animation: paper-marker 0.9s cubic-bezier(0.6, 0, 0.2, 1) 0.6s backwards;
  }
}

/* ---- print ---- */
@media print {
  .navbar, .footer, .cta-section { display: none; }
  body { background: #fff; }
}

/* ---- page stylesheets that still spoke the old language ---- */
/* headings and labels: never uppercase */
.legal-header h1, .legal-content h2, .legal-content h3, .legal-toc h3, .contact-done h2,
.highlight-box strong, .calc-field label,
.one-pager h3, .one-pager h4 {
  text-transform: none;
  letter-spacing: normal;
}
.legal-header h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.6vw, 3.4rem); letter-spacing: -0.02em; }
.legal-content h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; letter-spacing: -0.01em; }
/* the legal pages' own <style> still drew a 3px ink rule under every heading
   and a yellow box with a hard shadow for the Impressum's address */
.legal-content h2 { border-bottom: 1px solid var(--stone); }
.legal-header { text-align: left; }
.legal-header p { margin-left: 0; margin-right: 0; color: var(--muted); }
/* avv.html's and tom.html's own <style> (written by scripts/generate-avv-module.py)
   still drew the notice as a yellow box with a hard shadow and an uppercase title,
   and the version line in a 2px black frame */
.avv-notice { background: var(--paper); border: 1px solid var(--stone); border-radius: 18px; box-shadow: var(--shadow-card); }
.avv-notice h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; text-transform: none; letter-spacing: -0.01em; }
.avv-notice p { font-weight: 400; }
.avv-meta { background: var(--canvas); border: 1px solid var(--stone); border-radius: 14px; color: var(--muted); }
.avv-meta b { color: var(--ink); font-weight: 600; }
.impressum-box { background: var(--paper); border: 1px solid var(--stone); border-radius: 18px; box-shadow: var(--shadow-card); }
.legal-content h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; }
.legal-toc h3 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.legal-toc a { color: var(--ink); }
.highlight-box { border: 0; }
.contact-done, .form-status { border: 1px solid var(--stone); border-radius: 16px; box-shadow: none; background: var(--paper); }
.contact-done h2 { font-family: var(--serif); font-weight: 400; }

/* ROI calculator */
.calculator-card { margin-left: 0; }
.calc-field input[type="number"], .calc-field input[type="text"], .calc-field select { border: 1.5px solid var(--stone); border-radius: 12px; box-shadow: none; font-weight: 500; }
.calc-field input:focus, .calc-field select:focus { box-shadow: 0 0 0 3px var(--coral-tint); border-color: var(--ink); }
.calc-field label { font-weight: 600; font-size: 14px; color: var(--ink); }
.calc-field output { display: block; font-family: var(--serif); font-size: 28px; line-height: 1.2; color: var(--ink); padding: 4px 0; }
.calc-note { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.calc-results { background: var(--canvas); border: 1px solid var(--sand); border-radius: 18px; }
.calc-results .calc-results-title { font-size: 20px; margin: 0 0 8px; }
@media (max-width: 600px) { .calc-results { padding: 20px 16px; } }
.calc-limits { margin: 0 0 12px; }
.calc-limits > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid var(--sand); }
.calc-limits dt { color: var(--muted); }
.calc-limits dd { margin: 0; font-family: var(--serif); font-size: 22px; color: var(--ink); white-space: nowrap; }

/* one-pager (a printable sheet) */
.s-mark-lg { display: inline-block; width: 34px; height: 34px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' role='img' aria-label='Saife'%3E%3Ctitle%3ESaife%3C/title%3E%3Ccircle cx='50' cy='50' r='34' fill='%23FFC9B8'/%3E%3Cpath d='M63.38 28.5 58.51 27.84 63.09 24.03H63.77L66.53 40.97L65.45 41.22L57.59 29.46L60.88 33.37Q57.94 30.37 55.19 29.17Q52.44 27.98 49.62 27.98Q45.51 27.98 43.78 29.79Q42.05 31.61 42.05 34.43Q42.05 36.48 43.06 37.86Q44.06 39.25 45.82 40.21Q47.57 41.18 49.82 41.95Q52.06 42.72 54.54 43.55Q57.02 44.38 59.49 45.49Q61.96 46.6 64 48.31Q66.05 50.02 67.29 52.6Q68.53 55.18 68.53 58.99Q68.53 64.24 65.67 68.05Q62.81 71.86 58.04 73.92Q53.27 75.97 47.46 75.97Q43.77 75.97 40.67 75.54Q37.56 75.12 34.18 73.88L31.47 59.82H32.61L42.31 74.29L35.89 70.09Q39.05 71.8 41.61 72.69Q44.16 73.58 46.93 73.58Q51.09 73.58 53.67 72.44Q56.24 71.29 57.44 69.28Q58.64 67.28 58.64 64.67Q58.64 62.04 57.43 60.33Q56.22 58.61 54.21 57.48Q52.2 56.35 49.78 55.51Q47.35 54.68 44.9 53.8Q42.46 52.93 40.24 51.85Q38.02 50.78 36.3 49.24Q34.58 47.71 33.58 45.48Q32.58 43.25 32.58 40.09Q32.58 35.63 34.87 32.36Q37.17 29.1 41.36 27.31Q45.55 25.53 51.19 25.53Q54.66 25.53 57.48 26.24Q60.31 26.95 63.38 28.5Z' fill='%231A1A1A'/%3E%3C/svg%3E") center / contain no-repeat; }
.one-pager-header { border-bottom: 1px solid var(--stone); }
.one-pager-contact { background: var(--sand); color: var(--ink); border: 0; border-radius: 18px; box-shadow: none; }
.one-pager-contact h3, .one-pager-contact p { color: var(--ink); }
.one-pager-price-card .price, .one-pager-price-card .period { color: var(--ink); }
.one-pager-price-card .price { font-weight: 400; }

/* footer on phones: two columns, the brand on its own row (four columns
   were cut off at the right edge, on main as well) */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-grid > .footer-col:first-child { grid-column: 1 / -1; }
}

/* ---- homepage promises and the explanation pages (2026-10-08) ----
   The homepage says two things, that Saife understands pages and forgets
   people; each detail lives on its own page (/demo, /ki, /datenweg, /europa,
   /speicherdauer, /schuelerkonten) in one narrow column. */
.promises-section { background: var(--canvas); border-top: 1px solid var(--stone); }
.promises { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--stone); }
.promise { display: flex; flex-direction: column; padding: 32px 48px 0 0; }
.promise + .promise { padding: 32px 0 0 48px; border-left: 1px solid var(--stone); }
.promise h3 { font-size: 30px; margin: 0 0 14px; }
.promise ul { flex: 1; list-style: none; margin: 0 0 22px; padding: 0; }
.promise li { padding: 12px 0; border-bottom: 1px solid var(--sand); font-size: 17px; line-height: 1.5; }

.link-row { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; }
.link-row a { font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--stone); text-underline-offset: 5px; }
.link-row a:hover { text-decoration-color: var(--ink); }
.page-hero .link-row { margin-top: 26px; }

/* the four steps to a filtered iPad, in one line under the price */
.start-steps { list-style: none; counter-reset: start; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 44px 0 0; padding: 0; }
.start-steps li { counter-increment: start; display: flex; flex-direction: column; gap: 2px; padding: 0 0 0 40px; position: relative; font-size: 15px; }
.start-steps li::before { content: counter(start); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 999px; border: 1.5px solid var(--ink); display: grid; place-items: center; font-family: var(--serif); font-size: 15px; background: var(--paper); }
.start-steps b { font-weight: 650; }
.start-steps span { color: var(--muted); font-size: 14px; }

/* explanation pages */
.page-narrow { max-width: 860px; margin: 0 auto; }
.page-hero { padding: 72px 0 32px; background: var(--canvas); }
.page-hero h1 { font-size: clamp(36px, 5.6vw, 56px); line-height: 1.06; margin: 14px 0 18px; }
.page-lead { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 680px; margin: 0; }
.page-body { padding: 24px 0 80px; background: var(--canvas); }
.page-body h2 { font-size: 28px; margin: 52px 0 14px; }
.page-body h2:first-child { margin-top: 8px; }
.page-body p { font-size: 17px; line-height: 1.65; max-width: 680px; }
.page-body p a, .page-body li a { text-decoration: underline; text-decoration-color: var(--stone); text-underline-offset: 3px; }
.page-body .note { font-size: 14px; line-height: 1.55; color: var(--muted); margin-top: 14px; }

.steps-list { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps-list > li { counter-increment: step; position: relative; padding: 0 0 18px 52px; font-size: 17px; line-height: 1.6; max-width: 700px; }
.steps-list > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 999px; background: var(--coral-tint); color: var(--coral-ink); display: grid; place-items: center; font-family: var(--serif); font-size: 17px; }
.steps-list b { font-weight: 650; }
.steps-list ul { margin: 6px 0 0; padding-left: 18px; }

.examples { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.example { border-radius: 14px; padding: 14px 16px; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.example b { display: block; font-size: 15.5px; color: var(--ink); margin: 2px 0 2px; }
.example .verdict { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.example.is-allow { background: var(--teal-tint); }
.example.is-allow .verdict { color: var(--teal); }
.example.is-block { background: var(--coral-tint); }
.example.is-block .verdict { color: var(--coral-ink); }

.flow { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 8px 0 32px; padding: 0; }
.flow-step { position: relative; background: var(--paper); border: 1px solid var(--stone); border-radius: 18px; padding: 18px 16px; margin: 0 12px; }
.flow-step:first-child { margin-left: 0; }
.flow-step:last-child { margin-right: 0; }
.flow-step + .flow-step::before { content: ''; position: absolute; left: -25px; top: 50%; width: 14px; height: 2px; background: var(--ink); }
.flow-step + .flow-step::after { content: ''; position: absolute; left: -15px; top: calc(50% - 4px); border: 5px solid transparent; border-left: 6px solid var(--ink); border-right: 0; }
.page-body .flow-step .flow-where { font-family: var(--mono); font-size: 11px; line-height: 1.4; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.flow-step h3 { font-size: 19px; margin: 0 0 6px; }
.page-body .flow-step p { font-size: 14.5px; line-height: 1.5; color: var(--muted); margin: 0; }
.flow-step.is-eu { background: var(--blue-tint); border-color: #C6D7F0; }
.flow-step.is-result { background: var(--teal-tint); border-color: #BFE3D8; }

.data-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.data-col { background: var(--paper); border: 1px solid var(--stone); border-radius: 18px; padding: 18px 20px 12px; }
.data-col ul { margin: 12px 0 0; padding-left: 18px; }
.data-col li { font-size: 15px; line-height: 1.5; margin-bottom: 7px; }
.tag { display: inline-block; font-size: 12px; font-weight: 650; padding: 3px 10px; border-radius: 999px; }
.tag-sent { background: var(--blue-tint); color: var(--blue); }
.tag-kept { background: var(--amber-tint); color: var(--amber); }
.tag-never { background: var(--teal-tint); color: var(--teal); }

.paper-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid var(--stone); border-radius: 18px; overflow: hidden; font-size: 15px; }
.paper-table th { text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 13px 16px; background: var(--sand); }
.paper-table td { padding: 13px 16px; border-top: 1px solid var(--stone); vertical-align: top; line-height: 1.45; }
.paper-table .who { font-weight: 600; }
.paper-table .where { color: var(--muted); font-size: 14px; }
.paper-table .num { font-weight: 600; }
.pill { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill-no { background: var(--teal-tint); color: var(--teal); }
.pill-pseudo { background: var(--amber-tint); color: var(--amber); }

.accounts { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.points { margin: 0; padding-left: 18px; }
.points li { font-size: 17px; line-height: 1.6; margin-bottom: 12px; }
.access-card { background: var(--paper); border: 1px dashed var(--faint); border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow-card); }
.access-card .brand { font-family: var(--serif); font-size: 20px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.access-card .brand::before { content: ''; width: 12px; height: 12px; border-radius: 999px; background: var(--coral); border: 1.5px solid var(--ink); }
.access-card .name { font-family: var(--serif); font-size: 26px; }
.access-card .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 10px 0 2px; }
.access-card .value { font-family: var(--mono); font-size: 15px; }
/* a login breaks only before the @ or a dot, as on the printed cards, never at a hyphen */
.access-card .value span { white-space: nowrap; }
/* /bestellen: the four steps, then the price for the school's number and the one way on */
.order-card .calc-grid { margin-bottom: 0; }
.page-body .order-card p { font-size: 14px; line-height: 1.5; max-width: none; }
.order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 28px; }
.page-body .order-actions p { margin: 0; font-size: 16px; color: var(--muted); }
.order-terms { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--sand); color: var(--muted); }
.order-terms p { margin: 0; }
.order-terms p + p { margin-top: 8px; }
.page-body .order-questions { margin-top: 28px; }
@media (max-width: 600px) { .order-actions .btn { width: 100%; } }

.read-on { padding: 56px 0 72px; background: var(--canvas); border-top: 1px solid var(--stone); }
.read-on .page-narrow { max-width: 1040px; }
.read-on h2 { margin: 0 0 6px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.read-on-links { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0; }
.read-on-links li { border-top: 1px solid var(--stone); }
.read-on-links a { display: flex; flex-direction: column; gap: 4px; padding: 16px 0 18px; color: var(--ink); font-weight: 400; text-decoration: none; }
.read-on-links b { font-family: var(--serif); font-size: 21px; font-weight: 400; letter-spacing: -0.01em; }
.read-on-links b::after { content: ' →'; font-family: var(--sans); font-size: 16px; color: var(--muted); }
.read-on-links span { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.read-on-links a:hover b { text-decoration: underline; text-decoration-color: var(--stone); text-underline-offset: 5px; }
.read-on-links a:hover b::after { color: var(--ink); }
@media (max-width: 900px) { .read-on-links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .read-on-links { grid-template-columns: 1fr; } }

.site-promise { text-align: center; font-size: 14px; color: var(--muted); margin: 18px 0 0; }
@media (min-width: 1025px) { .footer-grid { grid-template-columns: 2fr repeat(4, 1fr); } }

@media (max-width: 900px) {
  .promises, .examples, .data-cols, .accounts { grid-template-columns: 1fr; }
  .promise, .promise + .promise { padding: 28px 0 0; border-left: 0; }
  .promise + .promise { margin-top: 28px; border-top: 1px solid var(--stone); }
  .promise h3 { font-size: 26px; }
  .start-steps { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .flow { grid-template-columns: 1fr; gap: 24px; }
  .flow-step, .flow-step:first-child, .flow-step:last-child { margin: 0; }
  .flow-step + .flow-step::before { left: 50%; top: -19px; width: 2px; height: 13px; }
  .flow-step + .flow-step::after { left: calc(50% - 4px); top: -8px; border: 5px solid transparent; border-top: 6px solid var(--ink); border-bottom: 0; }
  .paper-table, .paper-table tbody, .paper-table tr, .paper-table td { display: block; width: 100%; box-sizing: border-box; }
  .paper-table thead { display: none; }
  .paper-table tr { border-top: 1px solid var(--stone); padding: 12px 16px; }
  .paper-table tr:first-child { border-top: 0; }
  .paper-table td { border: 0; padding: 2px 0; }
  .paper-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 400; color: var(--muted); font-size: 14px; }
  .page-hero { padding: 44px 0 20px; }
  .page-body h2 { font-size: 24px; margin-top: 40px; }
}

/* ---- not found (404.html) ---- */
.not-found { padding: 64px 0 96px; background: var(--canvas); }
.not-found-stage { display: grid; max-width: 680px; margin: 0 auto; }
.not-found-stage > * { grid-area: 1 / 1; min-width: 0; }
.not-found-check { display: none; align-self: start; align-items: center; gap: 16px; padding: 30px 32px; color: var(--muted); font-size: 17px; }
.not-found-check .demo-loader { width: 52px; height: 52px; margin: 0; flex: none; }
.not-found-check p { margin: 0; }
.not-found-sheet { padding: 30px 32px 34px; background: var(--paper); border: 1px solid var(--stone); border-radius: 22px; box-shadow: var(--shadow-card); }
.not-found-pill { display: inline-block; padding: 5px 12px 4px; border-radius: 999px; background: var(--sand); color: var(--muted); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.not-found h1 { margin: 16px 0 12px; font-size: clamp(32px, 4.6vw, 46px); line-height: 1.08; }
.not-found-lead { margin: 0; font-size: 19px; line-height: 1.55; color: var(--muted); }
.requested-address code { padding: 2px 7px; border-radius: 6px; background: var(--sand); color: var(--ink); font-family: var(--mono); font-size: 0.82em; overflow-wrap: anywhere; }
.not-found-next { margin: 40px 0 10px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.not-found-links li { padding: 0; }
.not-found-links a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; color: var(--ink); font-weight: 400; text-decoration: none; }
.not-found-links b { font-family: var(--serif); font-size: 21px; font-weight: 400; }
.not-found-links span { color: var(--muted); font-size: 15px; text-align: right; }
.not-found-links a:hover b { text-decoration: underline; text-decoration-color: var(--stone); text-underline-offset: 5px; }
@media (max-width: 560px) {
  .not-found { padding: 40px 0 64px; }
  .not-found-check { padding: 24px 22px; }
  .not-found-sheet { padding: 24px 22px 26px; }
  .not-found-links a { flex-direction: column; gap: 2px; }
  .not-found-links span { text-align: left; }
}
@media (prefers-reduced-motion: no-preference) {
  .not-found-check { display: flex; animation: not-found-done 0.2s ease 1s both; }
  .not-found-check .demo-loader-disc { animation: demo-stamp-disc 0.45s cubic-bezier(.2,.7,.2,1) both; }
  .not-found-check .demo-loader-s { animation: demo-stamp-s 0.5s cubic-bezier(.2,.7,.2,1) 0.06s both; }
  .not-found-check .demo-loader-dot { animation: demo-dot-in 0.3s ease 0.7s both, demo-orbit 1.6s linear 0.7s; }
  .not-found-result { animation: not-found-rise 0.45s cubic-bezier(.2,.7,.2,1) 1.1s both; }
}
@keyframes not-found-done { to { opacity: 0; visibility: hidden; } }
@keyframes not-found-rise { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .not-found-check .demo-loader-disc circle { fill: #FF6B4A; }
  :root:not([data-theme="light"]) .not-found-check .demo-loader-s path { fill: #FBF7EE; }
  :root:not([data-theme="light"]) .not-found-check .demo-loader-dot circle { stroke: #15120E; }
}
:root[data-theme="dark"] .not-found-check .demo-loader-disc circle { fill: #FF6B4A; }
:root[data-theme="dark"] .not-found-check .demo-loader-s path { fill: #FBF7EE; }
:root[data-theme="dark"] .not-found-check .demo-loader-dot circle { stroke: #15120E; }

/* ---- phones ----
   One pass for iPhone-sized screens (2026-10-06). The layers underneath
   (styles.css, marketing.css, the pages' own <style>) still carry the old
   pricing carousel, centred cards and automatic hyphenation; these rules come
   last and win. Checked at 375, 390 and 430 px. */
@media (max-width: 768px) {
  /* the open menu: one row per link, tall enough for a thumb */
  .nav-menu { gap: 0; padding: 8px 20px 20px; align-items: stretch; text-align: left; }
  .nav-menu .nav-link { display: flex; align-items: center; justify-content: flex-start; width: 100%; min-height: 50px; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--sand); }
  .nav-menu .btn { margin-top: 16px; width: 100%; justify-content: center; }

  /* headlines wrap between words: "Schülerkon-ten" and "traditio-nelle" came
     from hyphens: auto in styles.css */
  h1, h2, h3, h4 { -webkit-hyphens: manual; hyphens: manual; word-break: normal; overflow-wrap: break-word; text-wrap: balance; }
  /* the legal pages' compounds ("Auftragsverarbeitungsvertrag", "Unterauftrags-
     verarbeiter") are wider than a phone: there German hyphenation (lang="de")
     beats a break in the middle of a syllable. avv.html is generated, so this
     is done here, not in its markup. */
  .legal-header h1, .legal-content h1, .legal-content h2, .legal-content h3 { -webkit-hyphens: auto; hyphens: auto; }

  /* the line under the footer repeated the "Rechtliches" column */
  .footer-bottom-links { display: none; }
  .footer-bottom p { font-size: 14px; }

  .logo, .print-btn { min-height: var(--tap-target); }
  .link-row a { display: inline-flex; align-items: center; min-height: var(--tap-target); min-width: var(--tap-target); }
  .footer-links li { margin-bottom: 0; }
  .footer-links a { display: inline-flex; align-items: center; min-height: var(--tap-target); min-width: var(--tap-target); }
  .legal-toc li { padding: 0; }
  .legal-toc a { display: flex; align-items: center; min-height: var(--tap-target); }
  .check-label { min-height: var(--tap-target); }
}

@media (max-width: 600px) {
  /* rhythm: the sections kept desktop spacing, which made the home page
     about 14,000 px long on an iPhone */
  .promises-section, .faq-section, .pricing-section, .audience-section, .demo-section, .content-section, .cta-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .section-header, .legal-header { margin-bottom: 28px; }
  .section-header p, .section-description, .legal-header p { max-width: none; }
  .section-header h2, .doc-head h2 { font-size: 30px; }
  .section-description { font-size: 17px; line-height: 1.5; }
  .faq-answer p { padding-right: 0; }

  .audience-grid { gap: 12px; max-width: none; }

  /* both buttons at the end the same width */
  .cta-buttons { flex-direction: column; align-items: stretch; gap: 12px; }
  .cta-buttons .btn { width: 100%; justify-content: center; }
  .cta-content h2 { font-size: 30px; }

  .compare-table { min-width: 0; }
  .compare-table thead { display: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table td { display: block; width: 100%; }
  .compare-table tbody tr { padding: 14px 0; border-top: 1px solid var(--sand); }
  .compare-table tbody tr:first-child { border-top: 0; }
  .compare-table tbody tr:nth-child(even), .compare-table tbody tr:hover { background: none; }
  .compare-table td { border: 0; padding: 0; text-align: left; }
  .compare-table tbody td:first-child { padding-bottom: 6px; font-weight: 600; }
  .compare-table td[data-label] { display: flex; justify-content: space-between; gap: 12px; padding: 5px 10px; border-radius: 8px; font-size: 15px; }
  .compare-table td[data-label]::before { content: attr(data-label); color: var(--muted); font-family: var(--sans); font-weight: 400; font-size: 15px; text-align: left; white-space: nowrap; }
  .compare-table td[data-label] { text-align: right; }
  .compare-table td.highlight-col { background: var(--sand); }
  .legal-content h2 { font-size: 24px; }
}

/* ---- top bar with three menus (2026-10-08) ----
   Produkt · Datenschutz · Konto open a small menu on click (and on hover with
   a mouse); js/main.js toggles .open and aria-expanded, Escape and a click
   outside close it. On phones the hamburger opens one list: each menu's name
   becomes a heading over its links. Last in this file so it wins over the
   phones block's menu rows. */
.nav-group { position: relative; }
.nav-group-toggle { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--sans); }
.nav-chev { transition: transform 0.15s ease; }
.nav-group.open .nav-chev { transform: rotate(180deg); }
.nav-dropdown { display: none; position: absolute; top: calc(100% + 14px); left: -14px; min-width: 190px; padding: 8px; background: var(--paper); border: 1px solid var(--stone); border-radius: 16px; box-shadow: var(--shadow-raised); z-index: 1001; }
.nav-dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -15px; height: 15px; } /* keeps hover alive across the gap */
.nav-dropdown a { display: block; padding: 9px 12px; border-radius: 10px; font-size: 15px; font-weight: 550; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-dropdown a:hover, .nav-dropdown a:focus-visible { background: var(--sand); }
.nav-group.open .nav-dropdown { display: block; }
@media (hover: hover) and (min-width: 769px) {
  .nav-group:hover .nav-dropdown { display: block; }
  .nav-group:hover .nav-chev { transform: rotate(180deg); }
}

@media (max-width: 768px) {
  .nav-menu { max-height: calc(100vh - 70px); overflow-y: auto; }
  .nav-group { width: 100%; }
  .nav-menu .nav-group-toggle { pointer-events: none; min-height: 0; padding: 18px 0 6px; border: 0; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
  .nav-chev { display: none; }
  .nav-dropdown { display: block; position: static; min-width: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
  .nav-dropdown::before { display: none; }
  .nav-dropdown a { display: flex; align-items: center; min-height: 46px; padding: 0; border-radius: 0; border-bottom: 1px solid var(--sand); font-size: 17px; }
  .nav-dropdown a:hover { background: none; }
  .nav-menu .nav-login { display: none; } /* it is under Konto */
  .nav-menu > .nav-group + .nav-link { margin-top: 14px; }
  .nav-menu > .btn { order: -1; margin: 8px 0 4px; }
}
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .nav-menu { transition: none; }
}

/* ---- dark mode (2026-10-08) ----
   Follows the device setting. Warm "dark paper" rather than black: the same
   tokens as above, re-pointed, so everything built on them follows; the rest
   are the few places that name a colour directly. Text on coral stays dark
   (cream on coral would be unreadable). Printing stays light. Mirrors the
   dark tokens of the dashboard, saife-internal, the extension and the app. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #15120E;
    --paper: #1D1A15;
    --sand: #27221B;
    --stone: #3B352C;
    --ink: #F1EBDF;
    --muted: #B4AA97;
    --faint: #877E6F;
    --coral: #FF7A5C;
    --coral-hover: #FF8E74;
    --coral-tint: #3A2119;
    --coral-ink: #FFB09B;
    --teal: #7ACDBB;
    --teal-tint: #15302A;
    --amber: #E8BB66;
    --amber-tint: #33280F;
    --blue: #9DB7E6;
    --blue-tint: #1C2739;
    --gray-500: var(--muted);
    --gray-600: var(--muted);
    --shadow-card: 0 1px 0 rgba(0, 0, 0, 0.35), 0 10px 24px -14px rgba(0, 0, 0, 0.7);
    --shadow-raised: 0 1px 0 rgba(0, 0, 0, 0.4), 0 22px 44px -22px rgba(0, 0, 0, 0.85);
  }
  :root:not([data-theme="light"]) .navbar { background: rgba(21, 18, 14, 0.86); }
  :root:not([data-theme="light"]) .logo::before, :root:not([data-theme="light"]) .footer-logo::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' role='img' aria-label='Saife'%3E%3Ctitle%3ESaife%3C/title%3E%3Ccircle cx='50' cy='50' r='34' fill='%23FF6B4A'/%3E%3Cpath d='M63.38 28.5 58.51 27.84 63.09 24.03H63.77L66.53 40.97L65.45 41.22L57.59 29.46L60.88 33.37Q57.94 30.37 55.19 29.17Q52.44 27.98 49.62 27.98Q45.51 27.98 43.78 29.79Q42.05 31.61 42.05 34.43Q42.05 36.48 43.06 37.86Q44.06 39.25 45.82 40.21Q47.57 41.18 49.82 41.95Q52.06 42.72 54.54 43.55Q57.02 44.38 59.49 45.49Q61.96 46.6 64 48.31Q66.05 50.02 67.29 52.6Q68.53 55.18 68.53 58.99Q68.53 64.24 65.67 68.05Q62.81 71.86 58.04 73.92Q53.27 75.97 47.46 75.97Q43.77 75.97 40.67 75.54Q37.56 75.12 34.18 73.88L31.47 59.82H32.61L42.31 74.29L35.89 70.09Q39.05 71.8 41.61 72.69Q44.16 73.58 46.93 73.58Q51.09 73.58 53.67 72.44Q56.24 71.29 57.44 69.28Q58.64 67.28 58.64 64.67Q58.64 62.04 57.43 60.33Q56.22 58.61 54.21 57.48Q52.2 56.35 49.78 55.51Q47.35 54.68 44.9 53.8Q42.46 52.93 40.24 51.85Q38.02 50.78 36.3 49.24Q34.58 47.71 33.58 45.48Q32.58 43.25 32.58 40.09Q32.58 35.63 34.87 32.36Q37.17 29.1 41.36 27.31Q45.55 25.53 51.19 25.53Q54.66 25.53 57.48 26.24Q60.31 26.95 63.38 28.5Z' fill='%23FBF7EE'/%3E%3C/svg%3E"); }
  :root:not([data-theme="light"]) .btn-primary { color: #15120E; border-color: var(--coral); }
  :root:not([data-theme="light"]) .btn-primary:hover { border-color: var(--coral-hover); }
  :root:not([data-theme="light"]) .btn:not(.btn-primary), :root:not([data-theme="light"]) .btn-secondary { border-color: var(--muted); }
  :root:not([data-theme="light"]) .navbar .btn-primary { background: var(--paper); color: var(--ink); border-color: var(--muted); }
  :root:not([data-theme="light"]) .highlight-block { background-image: linear-gradient(transparent 62%, rgba(255, 122, 92, 0.38) 62%, rgba(255, 122, 92, 0.38) 92%, transparent 92%); }
    :root:not([data-theme="light"]) .demo-log-row.is-new { background: #2E241B; }
  :root:not([data-theme="light"]) .demo-steps li { background: rgba(29, 26, 21, 0.6); }
  :root:not([data-theme="light"]) .flow-step.is-eu { border-color: #2C3A55; }
  :root:not([data-theme="light"]) .flow-step.is-result { border-color: #24463E; }
  :root:not([data-theme="light"]) .access-card { border-color: var(--faint); }
  :root:not([data-theme="light"]) .hero-facts li::before, :root:not([data-theme="light"]) .ticks li::before, :root:not([data-theme="light"]) .audience-card li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14 7.6' fill='none' stroke='%237ACDBB' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}
/* the same, when "Dunkel" is chosen (data-theme on <html>) */
:root[data-theme="dark"] {
    color-scheme: dark;
    --canvas: #15120E;
    --paper: #1D1A15;
    --sand: #27221B;
    --stone: #3B352C;
    --ink: #F1EBDF;
    --muted: #B4AA97;
    --faint: #877E6F;
    --coral: #FF7A5C;
    --coral-hover: #FF8E74;
    --coral-tint: #3A2119;
    --coral-ink: #FFB09B;
    --teal: #7ACDBB;
    --teal-tint: #15302A;
    --amber: #E8BB66;
    --amber-tint: #33280F;
    --blue: #9DB7E6;
    --blue-tint: #1C2739;
    --gray-500: var(--muted);
    --gray-600: var(--muted);
    --shadow-card: 0 1px 0 rgba(0, 0, 0, 0.35), 0 10px 24px -14px rgba(0, 0, 0, 0.7);
    --shadow-raised: 0 1px 0 rgba(0, 0, 0, 0.4), 0 22px 44px -22px rgba(0, 0, 0, 0.85);
  }
:root[data-theme="dark"] .navbar { background: rgba(21, 18, 14, 0.86); }
:root[data-theme="dark"] .logo::before, :root[data-theme="dark"] .footer-logo::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' role='img' aria-label='Saife'%3E%3Ctitle%3ESaife%3C/title%3E%3Ccircle cx='50' cy='50' r='34' fill='%23FF6B4A'/%3E%3Cpath d='M63.38 28.5 58.51 27.84 63.09 24.03H63.77L66.53 40.97L65.45 41.22L57.59 29.46L60.88 33.37Q57.94 30.37 55.19 29.17Q52.44 27.98 49.62 27.98Q45.51 27.98 43.78 29.79Q42.05 31.61 42.05 34.43Q42.05 36.48 43.06 37.86Q44.06 39.25 45.82 40.21Q47.57 41.18 49.82 41.95Q52.06 42.72 54.54 43.55Q57.02 44.38 59.49 45.49Q61.96 46.6 64 48.31Q66.05 50.02 67.29 52.6Q68.53 55.18 68.53 58.99Q68.53 64.24 65.67 68.05Q62.81 71.86 58.04 73.92Q53.27 75.97 47.46 75.97Q43.77 75.97 40.67 75.54Q37.56 75.12 34.18 73.88L31.47 59.82H32.61L42.31 74.29L35.89 70.09Q39.05 71.8 41.61 72.69Q44.16 73.58 46.93 73.58Q51.09 73.58 53.67 72.44Q56.24 71.29 57.44 69.28Q58.64 67.28 58.64 64.67Q58.64 62.04 57.43 60.33Q56.22 58.61 54.21 57.48Q52.2 56.35 49.78 55.51Q47.35 54.68 44.9 53.8Q42.46 52.93 40.24 51.85Q38.02 50.78 36.3 49.24Q34.58 47.71 33.58 45.48Q32.58 43.25 32.58 40.09Q32.58 35.63 34.87 32.36Q37.17 29.1 41.36 27.31Q45.55 25.53 51.19 25.53Q54.66 25.53 57.48 26.24Q60.31 26.95 63.38 28.5Z' fill='%23FBF7EE'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .btn-primary { color: #15120E; border-color: var(--coral); }
:root[data-theme="dark"] .btn-primary:hover { border-color: var(--coral-hover); }
:root[data-theme="dark"] .btn:not(.btn-primary), :root[data-theme="dark"] .btn-secondary { border-color: var(--muted); }
:root[data-theme="dark"] .navbar .btn-primary { background: var(--paper); color: var(--ink); border-color: var(--muted); }
:root[data-theme="dark"] .highlight-block { background-image: linear-gradient(transparent 62%, rgba(255, 122, 92, 0.38) 62%, rgba(255, 122, 92, 0.38) 92%, transparent 92%); }
:root[data-theme="dark"] .demo-log-row.is-new { background: #2E241B; }
:root[data-theme="dark"] .demo-steps li { background: rgba(29, 26, 21, 0.6); }
:root[data-theme="dark"] .flow-step.is-eu { border-color: #2C3A55; }
:root[data-theme="dark"] .flow-step.is-result { border-color: #24463E; }
:root[data-theme="dark"] .access-card { border-color: var(--faint); }
:root[data-theme="dark"] .hero-facts li::before, :root[data-theme="dark"] .ticks li::before, :root[data-theme="dark"] .audience-card li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14 7.6' fill='none' stroke='%237ACDBB' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---- appearance menu in the top bar (2026-10-08) ----
   The round button shows the current choice and opens a small menu: Hell,
   Dunkel, Automatisch (wie das Gerät), the chosen one ticked. js/theme.js
   remembers it and sets data-theme on <html>; initThemeMenu in main.js opens
   and closes the menu. Outside the main menu, so it stays visible next to
   the hamburger on phones. */
.nav-wrapper > .nav-menu { margin-left: auto; }
.theme-group { position: relative; flex: none; margin-left: 12px; }
.theme-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--stone); border-radius: 999px; background: var(--paper); color: var(--ink); cursor: pointer; }
.theme-toggle:hover, .theme-group.open .theme-toggle { border-color: var(--ink); }
.theme-toggle svg { display: none; width: 20px; height: 20px; }
.theme-toggle[data-mode="auto"] .tt-auto, .theme-toggle[data-mode="light"] .tt-light, .theme-toggle[data-mode="dark"] .tt-dark { display: block; }
.theme-menu { display: none; position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; padding: 8px; background: var(--paper); border: 1px solid var(--stone); border-radius: 16px; box-shadow: var(--shadow-raised); z-index: 1002; }
.theme-group.open .theme-menu { display: block; }
.theme-menu-title { margin: 4px 10px 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.theme-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 550 15px/1.25 var(--sans); text-align: left; cursor: pointer; }
.theme-menu button:hover, .theme-menu button:focus-visible { background: var(--sand); }
.theme-menu button svg { width: 20px; height: 20px; flex: none; }
.theme-menu button span { flex: 1; }
.theme-menu small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.theme-menu button[aria-checked="true"]::after { content: ''; flex: none; width: 6px; height: 11px; margin-right: 4px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.tt-tint-stone { fill: #E0D7C3; }
.tt-tint-amber { fill: #F7DCA8; }
.tt-tint-blue { fill: #C6D7F0; }
.tt-tint-teal { fill: #BFE3D8; }
.tt-tint-coral { fill: #FFC9B8; }
@media (max-width: 768px) {
  .theme-group { margin-left: auto; margin-right: 10px; }
  .theme-toggle { width: var(--tap-target); height: var(--tap-target); }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tt-tint-stone { fill: #403829; }
  :root:not([data-theme="light"]) .tt-tint-amber { fill: #574116; }
  :root:not([data-theme="light"]) .tt-tint-blue { fill: #2A3A58; }
  :root:not([data-theme="light"]) .tt-tint-teal { fill: #1F4A41; }
  :root:not([data-theme="light"]) .tt-tint-coral { fill: #5B2F23; }
}
:root[data-theme="dark"] .tt-tint-stone { fill: #403829; }
:root[data-theme="dark"] .tt-tint-amber { fill: #574116; }
:root[data-theme="dark"] .tt-tint-blue { fill: #2A3A58; }
:root[data-theme="dark"] .tt-tint-teal { fill: #1F4A41; }
:root[data-theme="dark"] .tt-tint-coral { fill: #5B2F23; }

/* ========================================
   MOTION (2026-10-17)
   Every hidden state sits behind .js-motion, so without it each page
   shows the final state.
   ======================================== */
:root {
  --grid-line: color-mix(in srgb, var(--blue) 13%, transparent);
  --rand-line: color-mix(in srgb, var(--coral) 70%, transparent);
  --marker: #FFD3C4;
  --on-coral: var(--ink);
  --curtain: #E9DFC9;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --marker: rgba(255, 122, 92, 0.38); --on-coral: #15120E; --curtain: #342D24; }
}
:root[data-theme="dark"] { --marker: rgba(255, 122, 92, 0.38); --on-coral: #15120E; --curtain: #342D24; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.writes-in .word { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 0.06em 0.08em; margin: 0 -0.06em -0.08em; }
.writes-in .word > span { display: inline-block; }
.js-motion .writes-in .word > span { translate: 0 105%; transition: translate 0.75s cubic-bezier(0.2, 0.75, 0.25, 1); transition-delay: calc(var(--i) * 55ms); }
.js-motion .writes-in.is-in .word > span { translate: 0 0; }

.reading-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--coral); transform-origin: left; transform: scaleX(0); pointer-events: none; }

.renamed { position: relative; display: inline-block; vertical-align: bottom; white-space: nowrap; transition: width 0.45s cubic-bezier(0.2, 0.75, 0.25, 1); }
.renamed-real, .renamed-decoy { display: inline-block; }
.renamed-decoy { display: none; }
.js-motion .renamed-decoy { display: inline-block; position: absolute; left: 0; top: 0; background: linear-gradient(var(--coral), var(--coral)) no-repeat 0 58% / 0% 2px; transition: background-size 0.5s cubic-bezier(0.6, 0, 0.2, 1), opacity 0.35s ease, translate 0.45s ease; }
.js-motion .renamed-real { opacity: 0; translate: 0 0.5em; transition: opacity 0.35s ease, translate 0.45s cubic-bezier(0.2, 0.75, 0.25, 1); }
.js-motion .renamed.is-struck .renamed-decoy { background-size: 100% 2px; }
.js-motion .renamed.is-swapped .renamed-decoy { opacity: 0; translate: 0 -0.5em; }
.js-motion .renamed.is-swapped .renamed-real { opacity: 1; translate: 0 0; }

.js-motion .draws-ticks li::before { clip-path: inset(0 100% 0 0 round 999px); transition: clip-path 0.4s cubic-bezier(0.6, 0, 0.2, 1); transition-delay: calc(300ms + var(--i) * 160ms); }
.js-motion .draws-ticks.is-in li::before { clip-path: inset(0 0 0 0 round 999px); }

.start-steps li::before { background: var(--teal-tint); color: var(--teal); border-color: var(--teal); }
@media (min-width: 901px) {
  .start-steps { isolation: isolate; }
  .start-steps b { align-self: flex-start; margin-left: -12px; padding: 0 10px 0 12px; background: var(--canvas); }
  .start-steps li:not(:last-child)::after { content: ''; position: absolute; z-index: -1; left: 28px; right: -16px; top: 13px; height: 1.5px; background: var(--teal); transform-origin: left; }
  .js-motion .lights-up li::after { transform: scaleX(0); transition: transform 0.45s cubic-bezier(0.6, 0, 0.2, 1); }
  .js-motion .lights-up li.has-line::after { transform: none; }
}
.js-motion .lights-up li::before { background: var(--paper); color: var(--ink); border-color: var(--ink); transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, scale 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.js-motion .lights-up li.is-lit::before { background: var(--teal-tint); color: var(--teal); border-color: var(--teal); }
.js-motion .lights-up li.is-popping::before { scale: 1.12; }

.offer-amount .price { padding: 0 4px; background: linear-gradient(transparent 62%, var(--marker) 62%, var(--marker) 92%, transparent 92%) no-repeat; background-size: 100% 100%; }
.js-motion .offer-amount .price.draws-marker { background-size: 0% 100%; transition: background-size 0.9s cubic-bezier(0.6, 0, 0.2, 1) 0.2s; }
.js-motion .offer-amount .price.draws-marker.is-in { background-size: 100% 100%; }

/* the arrow is the card's ::before, so the card's fill fades, not its opacity */
.js-motion .draws-path .flow-step { transition: background-color 0.45s ease, border-color 0.45s ease, box-shadow 0.4s ease; }
.js-motion .draws-path .flow-step:not(.is-on) { background-color: transparent; border-color: transparent; }
.js-motion .draws-path .flow-step > * { transition: opacity 0.45s ease, translate 0.5s cubic-bezier(0.2, 0.75, 0.25, 1); }
.js-motion .draws-path .flow-step:not(.is-on) > * { opacity: 0; translate: 0 14px; }
.js-motion .draws-path .flow-step.is-reached { box-shadow: 0 0 0 3px var(--coral-tint); }
.js-motion .draws-path .flow-step + .flow-step::before { transform-origin: left; transition: transform 0.3s cubic-bezier(0.6, 0, 0.2, 1); }
.js-motion .draws-path .flow-step + .flow-step::after { transition: opacity 0.15s ease 0.25s; }
.js-motion .draws-path .flow-step + .flow-step:not(.has-arrow)::before { transform: scaleX(0); }
.js-motion .draws-path .flow-step + .flow-step:not(.has-arrow)::after { opacity: 0; }
@media (max-width: 900px) {
  .js-motion .draws-path .flow-step + .flow-step::before { transform-origin: top; }
  .js-motion .draws-path .flow-step + .flow-step:not(.has-arrow)::before { transform: scaleY(0); }
}

.js-motion .steps-list.fills { position: relative; }
.js-motion .steps-list.fills::before, .js-motion .steps-list.fills::after { content: ''; position: absolute; left: 16px; top: calc(var(--line-top, 0px) + 17px); height: var(--line-length, 0px); width: 2px; }
.js-motion .steps-list.fills::before { background: var(--stone); }
.js-motion .steps-list.fills::after { background: var(--coral); transform-origin: top; transform: scaleY(var(--read, 0)); }
.js-motion .steps-list.fills li::before { z-index: 1; transition: background-color 0.3s ease, color 0.3s ease; }
.js-motion .steps-list.fills li.is-reached::before { background: var(--coral); color: var(--on-coral); }
@keyframes stamp {
  0% { opacity: 0; scale: 1.5; rotate: -6deg; }
  55% { opacity: 1; scale: 0.94; rotate: 1deg; }
  100% { opacity: 1; scale: 1; rotate: 0deg; }
}
.example .verdict { display: inline-block; }
.js-motion .stamps { opacity: 0; transform-origin: 20% 60%; }
.js-motion .stamps.is-in { animation: stamp 0.5s cubic-bezier(0.3, 1.2, 0.5, 1) var(--delay, 0ms) both; }

.period-bar { display: block; max-width: 180px; height: 6px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: var(--sand); }
.period-bar::before { content: ''; display: block; width: calc(var(--days) / 365 * 100%); min-width: 4px; height: 100%; border-radius: inherit; background: var(--coral); transform-origin: left; }
.period-bar.is-open::before { width: 100%; background: repeating-linear-gradient(90deg, var(--coral) 0 8px, transparent 8px 12px); }
.js-motion .period-bar::before { transform: scaleX(0); transition: transform 0.9s cubic-bezier(0.6, 0, 0.2, 1) var(--delay, 0ms); }
.js-motion .period-bar.is-in::before { transform: none; }

.js-motion .access-card.prints { clip-path: inset(0 0 100% 0 round 18px); translate: 0 -12px; rotate: -1.5deg; transition: clip-path 1.1s cubic-bezier(0.5, 0, 0.2, 1), translate 1.1s cubic-bezier(0.5, 0, 0.2, 1), rotate 0.6s ease 1.1s; }
.js-motion .access-card.prints.is-in { clip-path: inset(0 0 -40px 0 round 18px); translate: 0 0; rotate: 0deg; }
.js-motion .access-card.prints.is-printed { clip-path: none; }
.char { position: relative; }
.js-motion .char { opacity: 0; }
.js-motion .char.is-typed { opacity: 1; }
@keyframes caret-blink { 50% { opacity: 0; } }
.char.has-caret::after { content: ''; position: absolute; right: -2px; top: 0.1em; bottom: 0.1em; width: 2px; background: var(--coral); animation: caret-blink 0.9s steps(1) infinite; }

.page-hero { position: relative; overflow: hidden; isolation: isolate; }
.page-hero > .container { position: relative; z-index: 1; }
.hero::before, .page-hero::before {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 0 var(--grid-shift, 0px);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 30%, transparent 85%);
}
.hero::after, .page-hero::after { content: ''; display: block; position: absolute; top: 0; bottom: 0; z-index: 0; width: 1.5px; pointer-events: none; background: var(--rand-line); transform-origin: top; }
.hero::after { left: max(16px, calc((100% - var(--container-max)) / 2 + var(--container-padding) - 36px)); }
.page-hero::after { left: max(16px, calc((100% - 860px) / 2 - 36px)); }
@keyframes rand-draw { from { transform: scaleY(0); } }
.js-motion .hero::after, .js-motion .page-hero::after { animation: rand-draw 1.6s cubic-bezier(0.6, 0, 0.2, 1) 0.3s backwards; }
@media (max-width: 700px) {
  .hero::after, .page-hero::after { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
:root.curtain-shut::view-transition { background: var(--curtain); }
:root.curtain-shut *, :root.curtain-shut *::before, :root.curtain-shut *::after { animation-play-state: paused !important; }
@keyframes theme-icon-in { from { opacity: 0; rotate: -120deg; scale: 0.4; } }
.theme-turning .theme-toggle svg { animation: theme-icon-in 0.6s cubic-bezier(0.3, 1.4, 0.5, 1) 0.25s backwards; }
