/* ==========================================================================
   Recall — marketing stylesheet
   Shared by index, guide, pricing, support and the legal pages (EN + DE).
   Ported from the template site's design language, retinted to the app icon
   (indigo → teal). No web fonts, no external requests.
   Design language: Apple HIG on the web — system type, translucent chrome,
   critically damped motion, light/dark parity.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  color-scheme: light dark;

  /* Brand — sampled from the app icon's gradient (indigo top → teal bottom).
     --accent is for text/lines: #5558D6 is 5.6:1 on --bg, 5.1:1 on --bg-alt.
     --accent-fill carries white text (5.6:1). --accent-2 is decorative only. */
  --accent: #5558d6;
  --accent-press: #4a4dcc;
  --accent-fill: #5558d6;
  --accent-fill-press: #4a4dcc;
  --accent-tint: rgba(85, 88, 214, 0.1);
  --accent-2: #2e8f9e;
  --accent-grad: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 95%);

  /* Surfaces */
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --surface-sunken: #f5f5f7;

  /* Ink */
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  /* Text, so it must clear 4.5:1: #6E6E73 is 5.1:1 on --bg, 4.7:1 on --bg-alt
     (#86868B was 3.6:1). Hierarchy comes from size and weight instead. */
  --ink-faint: #6e6e73;

  /* Lines & materials */
  --line: rgba(0, 0, 0, 0.1);
  --line-soft: rgba(0, 0, 0, 0.06);
  --chrome: rgba(255, 255, 255, 0.72);
  --chrome-heavy: rgba(255, 255, 255, 0.94);

  /* Elevation — small surfaces stay tight, large ones read thicker */
  --lift-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
  --lift-2: 0 2px 6px rgba(0, 0, 0, 0.06), 0 18px 44px rgba(0, 0, 0, 0.1);
  --lift-3: 0 4px 12px rgba(0, 0, 0, 0.08), 0 40px 90px rgba(0, 0, 0, 0.18);

  /* Geometry */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 980px;

  --maxw: 1040px;
  --gutter: 22px;
  --nav-h: 52px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  /* Response — the skill's spring defaults, expressed as easing */
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-in: cubic-bezier(1, 0, 0.68, 0.28);
  --resp: 0.4s;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* #8A8CFF: 7.3:1 on --bg, 5.9:1 on --surface-sunken. Buttons keep a
       deeper fill so white labels stay ≥ 4.5:1 (#5E61E0: 4.9:1). */
    --accent: #8a8cff;
    --accent-press: #a3a5ff;
    --accent-fill: #5e61e0;
    --accent-fill-press: #5558d6;
    --accent-tint: rgba(138, 140, 255, 0.16);
    --accent-2: #5cc6d4;

    --bg: #000000;
    --bg-alt: #0a0a0b;
    --surface: #131315;
    --surface-sunken: #1c1c1e;

    --ink: #f5f5f7;
    --ink-soft: #a1a1a6;
    /* #8E8E93: 5.2:1 on --surface-sunken, ≥ 4.8:1 on the Quick Search glass */
    --ink-faint: #8e8e93;

    --line: rgba(255, 255, 255, 0.14);
    --line-soft: rgba(255, 255, 255, 0.08);
    --chrome: rgba(20, 20, 22, 0.72);
    --chrome-heavy: rgba(20, 20, 22, 0.95);

    --lift-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
    --lift-2: 0 2px 6px rgba(0, 0, 0, 0.5), 0 18px 44px rgba(0, 0, 0, 0.45);
    --lift-3: 0 4px 12px rgba(0, 0, 0, 0.6), 0 40px 90px rgba(0, 0, 0, 0.6);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

.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;
}

a:hover {
  text-decoration: underline;
}

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

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


/* ---- Type -------------------------------------------------------------- */
/* Tracking is size-specific: large type tightens, body sits near zero. */
.display {
  font-size: clamp(2.5rem, 6.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-weight: 700;
  margin: 0;
}

.headline {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 700;
  margin: 0;
}


.lead {
  font-size: clamp(1.125rem, 1.9vw, 1.3125rem);
  line-height: 1.42;
  letter-spacing: -0.004em;
  color: var(--ink-soft);
  margin: 0;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.fine {
  font-size: 0.8125rem;
  line-height: 1.45;
  letter-spacing: 0.004em;
  color: var(--ink-faint);
}

/* ==========================================================================
   Chrome — translucent nav, content scrolls underneath
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--chrome);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow var(--resp) var(--ease-out);
}

/* Scroll edge effect: a soft shadow appears only once content slides under. */
.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line-soft), 0 8px 24px -16px rgba(0, 0, 0, 0.4);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--nav-h);
}

/* The toggle sits before the nav in the DOM so `:checked ~ .main-nav` can
   reach it; `order` puts everything back where it belongs on screen. */
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  margin-right: auto;
  order: 1;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 26px;
  height: 26px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  order: 2;
}

.main-nav a {
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.004em;
  transition: color 0.15s var(--ease-out);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}

.nav-cta {
  order: 3;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  background: var(--accent-fill);
  padding: 5px 13px;
  border-radius: var(--r-pill);
  transition: background 0.15s var(--ease-out), transform 0.1s var(--ease-out);
}

.nav-cta:hover {
  text-decoration: none;
  background: var(--accent-fill-press);
}

.nav-cta:active {
  transform: scale(0.97);
}

/* Mobile nav — checkbox toggle, works without JS. With JS, site.js swaps the
   label for a <button class="nav-toggle-label"> with aria-expanded. */
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  order: 4;
  width: 44px;
  height: 44px;
  margin-right: -13px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  position: relative;
}

.nav-toggle-label:focus-visible {
  outline-offset: -2px;
  border-radius: 8px;
}

/* On wide screens the toggle is not shown, so it must not be a tab stop */
@media (min-width: 801px) {
  .nav-toggle {
    display: none;
  }
}

/* The checkbox is invisible but still tabbable — show its focus on the label */
.nav-toggle:focus-visible ~ .nav-toggle-label {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 8px;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 1px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform var(--resp) var(--ease-out), opacity 0.15s linear;
}

.nav-toggle-label span {
  top: 22px;
}

.nav-toggle-label span::before {
  content: "";
  left: 0;
  transform: translateY(-4px);
}

.nav-toggle-label span::after {
  content: "";
  left: 0;
  transform: translateY(4px);
}

.nav-toggle:checked ~ .nav-toggle-label span {
  background: transparent;
}

.nav-toggle:checked ~ .nav-toggle-label span::before {
  transform: rotate(45deg);
}

.nav-toggle:checked ~ .nav-toggle-label span::after {
  transform: rotate(-45deg);
}

@media (max-width: 800px) {
  .nav-toggle-label {
    display: block;
  }

  /* Enters and exits along the same path — down from the bar it belongs to. */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--gutter) 18px;
    background: var(--chrome-heavy);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line-soft);
    transform-origin: top center;
    transform: translateY(-8px) scale(0.98);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--resp) var(--ease-in), opacity 0.2s linear,
      visibility 0s linear var(--resp);
  }

  .nav-toggle:checked ~ .main-nav {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: transform var(--resp) var(--ease-out), opacity 0.2s linear,
      visibility 0s;
  }

  .main-nav a {
    padding: 13px 2px;
    font-size: 1rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line-soft);
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .site-header .container {
    position: relative;
  }
}

/* ==========================================================================
   Buttons — feedback lands on press, not release
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.002em;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out),
    border-color 0.15s var(--ease-out), transform 0.1s var(--ease-out);
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  color: #fff;
  background: var(--accent-fill);
}

.btn-primary:hover {
  background: var(--accent-fill-press);
  color: #fff;
}


.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn svg.i-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-item.is-active .kbd-hint {
  color: #fff;
}

/* Text link with a chevron that leans in the direction it takes you */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 1.0625rem;
  font-weight: 400;
}

.link-arrow:hover {
  text-decoration: none;
}

.link-arrow::after {
  content: "›";
  content: "›" / ""; /* decorative: keep it out of the link's name */
  font-size: 1.25em;
  line-height: 1;
  transition: transform var(--resp) var(--ease-out);
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: clamp(72px, 11vw, 128px) 0;
}

.section-alt {
  background: var(--bg-alt);
}

/* Follows a .page-head, which already carries the top space */
.section-tight {
  padding-top: 0;
}

.section-head {
  max-width: 34ch;
  margin: 0 0 clamp(40px, 6vw, 64px);
}

.section-head.center {
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head .lead {
  margin-top: 16px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: clamp(64px, 10vw, 108px) 0 0;
  text-align: center;
  overflow: hidden;
}

/* Home: a little tighter, so the headline and the flow band share the first screen */
.hero-home {
  padding-top: clamp(48px, 7vw, 80px);
}

/* Small status pill above the headline */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 clamp(20px, 3vw, 28px);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* The hero headline runs larger and tighter than other display type */
.hero .display {
  max-width: 16ch;
  margin: 0 auto;
  font-size: clamp(3.25rem, 10vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero .display .accent {
  color: var(--accent);
}

/* Indigo → teal, like the icon. Large bold type: the teal end stays ≥ 3:1. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero .display .accent {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.hero .lead {
  max-width: 48ch;
  margin: 22px auto 0;
}

.hero-note {
  margin: 18px 0 0;
  font-size: 0.875rem;
  color: var(--ink-faint);
}

/* The Quick Search mockup sits just under the flow band; the glow stays contained */
.hero-search {
  overflow-x: clip;
  padding-bottom: clamp(24px, 4vw, 48px);
}

.nowrap {
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 28px;
  margin-top: 32px;
}

.hero-stage {
  position: relative;
  margin-top: clamp(16px, 3vw, 32px);
  display: flex;
  justify-content: center;
  padding-bottom: 4px;
}

/* A soft pool of brand light behind the panel, not a hard gradient band */
.hero-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1000px, 130%);
  aspect-ratio: 2 / 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    closest-side,
    var(--accent-tint) 0%,
    transparent 100%
  );
}

/* ==========================================================================
   Flow band — files flow into Recall and come out as remembered entries.
   Left: the activity ribbon carries file chips into the card. Right: each
   swallowed file prints one entry along a curved text path. js/flow.js
   animates it; without JS or with reduced motion the static frame stays.
   ========================================================================== */
/* ===== Flow band ===== */
.flow {
  /* Band tokens, derived from the palette so light/dark stay in sync */
  --flow-in-a: color-mix(in srgb, var(--accent-2) 12%, var(--bg));
  --flow-in-b: color-mix(in srgb, var(--accent) 16%, var(--bg));
  --flow-tick: var(--accent);
  --flow-out: var(--bg-alt);
  --flow-chip: var(--surface);
  --flow-chip-line: var(--line-soft);
  --flow-chip-shade: rgba(40, 40, 90, 0.08);
  /* Opaque enough that entries never read through the glass; the backdrop
     blur still frosts the ribbons at the edges */
  --flow-card: color-mix(in srgb, var(--surface) 90%, transparent);
  --flow-card-line: rgba(255, 255, 255, 0.7);

  /* File-type tints (decorative — the chip text carries the meaning) */
  --kind-pdf: #e5484d;
  --kind-doc: #3d7bf5;
  --kind-image: #b15ce0;
  --kind-sheet: #2f9e52;
  --kind-slides: #f08c00;
  --kind-text: #8e8e93;

  position: relative;
  padding: clamp(8px, 2vw, 24px) 0 clamp(16px, 3vw, 32px);
}

@media (prefers-color-scheme: dark) {
  .flow {
    --flow-in-a: color-mix(in srgb, var(--accent-2) 16%, var(--bg));
    --flow-in-b: color-mix(in srgb, var(--accent) 24%, var(--bg));
    --flow-out: var(--surface);
    --flow-chip: var(--surface-sunken);
    --flow-chip-line: var(--line);
    --flow-chip-shade: rgba(0, 0, 0, 0.35);
    --flow-card: color-mix(in srgb, var(--surface-sunken) 92%, transparent);
    --flow-card-line: rgba(255, 255, 255, 0.12);

    --kind-pdf: #ff6369;
    --kind-doc: #5b93ff;
    --kind-image: #c27df0;
    --kind-sheet: #3fb867;
    --kind-slides: #ffa21f;
    --kind-text: #98989f;
  }
}

/* Edges fade into the page instead of ending in a hard cut */
.flow-stage {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

/* Crop rather than shrink on small screens, so chips and entries stay legible */
.flow-art {
  position: relative;
  left: 50%;
  display: block;
  width: clamp(860px, 100%, 1320px);
  max-width: none;
  height: auto;
  transform: translateX(-50%);
  overflow: visible;
}

.flow-ribbon {
  fill: none;
  stroke-width: 48;
  stroke-linecap: round;
}

.flow-ribbon-in {
  stroke: url(#flow-in-fill);
}

.flow-stop-a {
  stop-color: var(--flow-in-a);
}

.flow-stop-b {
  stop-color: var(--flow-in-b);
}

/* Activity ticks across the ribbon, like a waveform */
.flow-ticks {
  fill: none;
  stroke: var(--flow-tick);
  stroke-width: 18;
  stroke-dasharray: 1.5 9;
  opacity: 0.16;
}

.flow-ribbon-out {
  stroke: var(--flow-out);
}

.flow-text {
  fill: var(--ink-soft);
  font: 500 18px var(--font);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.005em;
}

.flow-name {
  fill: var(--ink);
  font-weight: 600;
}

.flow-sep {
  fill: var(--accent-2);
}

/* ---- File chips ---- */
.flow-chip-bg {
  fill: var(--flow-chip);
  stroke: var(--flow-chip-line);
  stroke-width: 1;
}

.flow-chip-shadow {
  fill: var(--flow-chip-shade);
}

.flow-chip-text {
  fill: var(--ink);
  font: 500 15px var(--font);
  letter-spacing: 0.005em;
}

.flow-chip[data-kind="pdf"] { color: var(--kind-pdf); }
.flow-chip[data-kind="doc"] { color: var(--kind-doc); }
.flow-chip[data-kind="image"] { color: var(--kind-image); }
.flow-chip[data-kind="sheet"] { color: var(--kind-sheet); }
.flow-chip[data-kind="slides"] { color: var(--kind-slides); }
.flow-chip[data-kind="text"] { color: var(--kind-text); }

/* ---- The Recall card: a glassy tile over the join of the two ribbons ---- */
.flow-card {
  --card: clamp(84px, 9vw, 124px);
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--card);
  height: var(--card);
  transform: translate(-50%, -50%);
}

/* A second card peeking out behind, for depth */
.flow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26%;
  background: var(--flow-card);
  border: 1px solid var(--line-soft);
  box-shadow: var(--lift-1);
  transform: translate(6%, -6%) scale(0.94) rotate(4deg);
  opacity: 0.85;
}

.flow-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6%;
  border-radius: 26%;
  background: var(--flow-card);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 var(--flow-card-line), var(--lift-2);
  will-change: transform;
}

.flow-card-face img {
  width: 46%;
  height: auto;
  margin-top: 4%;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
}

.flow-card-name {
  font-size: clamp(0.75rem, 1.05vw, 0.875rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Thin progress line: fills and glows when a file arrives */
.flow-card-bar {
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 11%;
  height: 3px;
  border-radius: 3px;
  background: var(--line-soft);
  overflow: hidden;
}

.flow-card-bar i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent-grad);
  transform: scaleX(0.62);
  transform-origin: left center;
  will-change: transform, opacity;
}

/* ---- Pause / play ---- */
.flow-controls {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.flow-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: var(--surface-sunken);
  color: var(--ink-soft);
  cursor: pointer;
  transition: color var(--resp) var(--ease-out), background-color var(--resp) var(--ease-out);
}

.flow-toggle:hover {
  color: var(--ink);
}

.flow-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.flow-toggle[hidden] {
  display: none;
}

.flow-toggle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.flow-toggle[aria-pressed="true"] .i-pause,
.flow-toggle:not([aria-pressed="true"]) .i-play {
  display: none;
}
/* ===== End flow band ===== */

/* ==========================================================================
   Showcase — alternating copy / mockup rows
   ========================================================================== */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.showcase + .showcase {
  margin-top: clamp(72px, 10vw, 120px);
}

.showcase.flip .showcase-media {
  order: -1;
}

/* The mockup sits centred on a sunken tile, so it reads as a composed surface. */
.showcase-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: clamp(28px, 5vw, 48px) clamp(16px, 4vw, 40px);
  background: var(--surface-sunken);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.showcase-copy {
  min-width: 0;
}

.showcase-copy .lead {
  margin-top: 16px;
}

.showcase-points {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}

.showcase-points li {
  position: relative;
  padding: 7px 0 7px 26px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.showcase-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 800px) {
  .showcase {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .showcase.flip .showcase-media {
    order: 0;
  }

  .showcase-points {
    display: inline-block;
    text-align: left;
  }
}

/* ==========================================================================
   Feature grid
   ========================================================================== */
/* Three headline features get room to explain themselves */
.new-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

/* Eight features — four columns land as two full rows, never a ragged one. */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(212px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--lift-1);
  padding: 26px 24px 28px;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  color: var(--accent);
}

.card-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 7px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.008em;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.47;
}

.badge-pro {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  border-radius: var(--r-pill);
  vertical-align: middle;
}

/* ==========================================================================
   Plans — index teaser and the pricing page share these
   ========================================================================== */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
  align-items: start;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--lift-1);
  padding: 32px 30px 34px;
}

.plan-featured {
  border-color: var(--accent);
  box-shadow: var(--lift-2);
}

.plan-name {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 4px;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.plan-tag {
  margin: 0 0 24px;
  color: var(--ink-faint);
  font-size: 0.9375rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.plan-price .amount {
  font-size: clamp(2.25rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.024em;
  line-height: 1;
}

.plan-featured .plan-price .amount {
  color: var(--accent);
}

.plan-price .period {
  font-size: 1rem;
  color: var(--ink-soft);
}

.plan-note {
  display: inline-block;
  margin: -8px 0 24px;
  padding: 4px 11px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-tint);
  border-radius: var(--r-pill);
}

.plan-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 26px;
}

.plan-option {
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: var(--surface-sunken);
}

.plan-option .amount {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.plan-option .label {
  display: block;
  margin-top: 1px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

@media (max-width: 420px) {
  .plan-options {
    grid-template-columns: 1fr;
  }
}

.includes-label {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plan li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 7px 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.plan li::before {
  content: "";
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.4l2.6 2.6L12 5.4'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

.plan li.soon {
  color: var(--ink-faint);
}

.plan li.soon::before {
  background: var(--surface-sunken)
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' d='M8 4.5v7M4.5 8h7'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

.plan-cta {
  text-align: center;
  margin-top: 40px;
}

.pricing-note {
  max-width: 56ch;
  margin: 36px auto 0;
  text-align: center;
}

/* ==========================================================================
   Closing call to action
   ========================================================================== */
.cta {
  padding: clamp(72px, 10vw, 112px) 0;
  text-align: center;
}

.cta .lead {
  max-width: 44ch;
  margin: 18px auto 0;
}

.cta .hero-actions {
  margin-top: 30px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line-soft);
  padding: 34px 0 40px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.site-footer a {
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.site-footer a:hover {
  color: var(--ink);
}

.site-footer .copyright {
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

/* ==========================================================================
   Page header (pricing, support, legal)
   ========================================================================== */
.page-head {
  padding: clamp(56px, 8vw, 84px) 0 clamp(32px, 5vw, 48px);
  text-align: center;
}

.page-head .lead {
  max-width: 44ch;
  margin: 16px auto 0;
}

.page-head.left {
  text-align: left;
}

.page-head.left .lead {
  margin-left: 0;
}

/* ==========================================================================
   Legal & long-form copy
   ========================================================================== */
.legal {
  padding: clamp(56px, 8vw, 84px) 0 clamp(72px, 10vw, 104px);
}

.legal .container {
  max-width: 720px;
}

.legal h1 {
  /* Long German compounds ("Datenschutzerklärung") must wrap at 320px */
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 700;
  margin: 0 0 10px;
}

.legal .updated {
  margin: 0 0 40px;
  font-size: 0.875rem;
  color: var(--ink-faint);
}

.legal h2 {
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 44px 0 12px;
}

.legal h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 28px 0 8px;
}

.legal p,
.legal ul,
.legal ol {
  color: var(--ink-soft);
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.62;
}

.legal ul,
.legal ol {
  padding-left: 22px;
}

.legal li {
  margin: 7px 0;
}

.legal a {
  word-break: break-word;
}

.legal address {
  margin: 0 0 16px;
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.62;
}

.legal code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
}

/* ==========================================================================
   Support form
   ========================================================================== */
.contact-form {
  display: grid;
  gap: 18px;
  margin: 0 0 26px;
}

.contact-form .field {
  display: grid;
  gap: 7px;
}

.contact-form label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form .btn {
  justify-self: start;
}

/* ==========================================================================
   Skip link — first stop for keyboard users
   ========================================================================== */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 8px;
  z-index: 200;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--accent-fill);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus {
  transform: none;
  text-decoration: none;
}

/* ==========================================================================
   Language switch — a small segmented control in the header
   ========================================================================== */
.lang-switch {
  order: 3;
  display: inline-flex;
  padding: 2px;
  border-radius: var(--r-pill);
  background: var(--surface-sunken);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

.lang-switch a {
  min-width: 32px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-align: center;
  color: var(--ink-soft);
  transition: color 0.15s var(--ease-out), background 0.15s var(--ease-out);
}

.lang-switch a:hover {
  color: var(--ink);
  text-decoration: none;
}

.lang-switch a[aria-current="true"] {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 0.5px var(--line);
}

@media (max-width: 380px) {
  .site-header .container {
    gap: 10px;
  }
}

/* At 320px the bar can't fit name, switch, Download and menu: the icon stays,
   the name is hidden visually but still names the link. */
@media (max-width: 359px) {
  .brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ==========================================================================
   Keys — ⌥Space, ↩, ⌘↩
   ========================================================================== */
.kbd,
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.05em 0.42em;
  font: inherit;
  font-size: 0.86em;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  vertical-align: 0.06em;
}

/* ==========================================================================
   Prose — guide and legal pages, long-form reading
   ========================================================================== */
.prose {
  max-width: 68ch;
}

.prose.center {
  margin-left: auto;
  margin-right: auto;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  font-size: clamp(1.375rem, 2.6vw, 1.625rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.016em;
  margin: 2.2em 0 0.55em;
}

.prose h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  margin: 1.8em 0 0.45em;
}

.prose p,
.prose ul,
.prose ol,
.prose dl,
.prose address {
  margin: 0 0 1em;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.62;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li {
  margin: 0.35em 0;
}

.prose li::marker {
  color: var(--ink-faint);
}

.prose address {
  font-style: normal;
}

.prose a {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: 0.18em;
  word-break: break-word;
}

.prose a:hover {
  text-decoration-color: currentColor;
}

.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: var(--surface-sunken);
  color: var(--ink);
  word-break: break-word;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 2.5em 0;
}

/* A highlighted aside: tips in the guide, summaries in legal pages */
.prose .callout,
.callout {
  margin: 1.5em 0;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: var(--accent-tint);
  color: var(--ink);
}

.callout > :last-child {
  margin-bottom: 0;
}

/* .prose p would make callout text --ink-soft: 4.4:1 on the tint, too low */
.prose .callout p {
  color: var(--ink);
}

/* Scrollable tables are focusable regions (see the markup), so show focus */
.table-wrap:focus-visible {
  outline-offset: 2px;
}

/* ==========================================================================
   Table — Free / Pro comparison
   ========================================================================== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--lift-1);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.table caption {
  padding: 0 0 12px;
  text-align: left;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.table th,
.table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}

.table tbody tr:last-child th,
.table tbody tr:last-child td {
  border-bottom: 0;
}

.table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--surface-sunken);
}

.table tbody th {
  font-weight: 600;
  color: var(--ink);
}

.table td {
  color: var(--ink-soft);
}

/* The Pro column carries the accent, like the featured plan */
.table .col-pro {
  color: var(--ink);
  background: var(--accent-tint);
}

.table thead .col-pro {
  color: var(--accent);
}

@media (max-width: 560px) {
  .table th,
  .table td {
    padding: 12px 12px;
  }
}

/* ==========================================================================
   Quick Search mockup — a macOS floating panel in HTML/CSS
   ========================================================================== */
.qs {
  --qs-bg: rgba(250, 250, 252, 0.82);
  --qs-edge: rgba(0, 0, 0, 0.12);
  --qs-sel: var(--accent-fill);
  position: relative;
  width: min(640px, 100%);
  margin: 0 auto;
  text-align: left;
  background: var(--qs-bg);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  backdrop-filter: saturate(180%) blur(30px);
  border-radius: 22px;
  box-shadow: 0 0 0 0.5px var(--qs-edge), inset 0 1px 0 rgba(255, 255, 255, 0.6),
    var(--lift-3);
  overflow: hidden;
}

.qs-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: clamp(1.125rem, 2.6vw, 1.5rem);
  letter-spacing: -0.012em;
  color: var(--ink);
}

.qs-field svg {
  flex: 0 0 auto;
  width: 1.05em;
  height: 1.05em;
  fill: none;
  stroke: var(--ink-faint);
  stroke-width: 2;
  stroke-linecap: round;
}

.qs-query {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qs-caret {
  flex: 0 0 auto;
  width: 2px;
  height: 1.15em;
  margin-left: -10px;
  border-radius: 1px;
  background: var(--accent);
  /* Blinks four times (4.4 s), then stays on: blinking past 5 s would need a
     pause control (WCAG 2.2.2) */
  animation: qs-blink 1.1s steps(1) 4;
}

@keyframes qs-blink {
  50% {
    opacity: 0;
  }
}

.qs-results {
  padding: 8px;
}

.qs-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
}

.qs-row.is-selected {
  background: var(--qs-sel);
  color: #fff;
}

.qs-glyph {
  flex: 0 0 auto;
  width: 30px;
  height: 36px;
}

.qs-glyph svg {
  width: 100%;
  height: 100%;
}

.qs-glyph .page {
  fill: var(--surface);
  stroke: var(--line);
}

.qs-glyph .fold {
  fill: var(--surface-sunken);
  stroke: var(--line);
}

.qs-glyph .tag {
  fill: var(--glyph, var(--accent));
}

.qs-glyph text {
  fill: #fff;
  font: 700 6.5px var(--font);
  letter-spacing: 0.02em;
}

.qs-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.qs-name,
.qs-path {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qs-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.qs-path {
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.qs-meta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  text-align: right;
}

.qs-meta .when {
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.qs-row.is-selected .qs-name,
.qs-row.is-selected .qs-meta {
  color: #fff;
}

.qs-row.is-selected .qs-path,
.qs-row.is-selected .qs-meta .when {
  color: #fff; /* translucent white fell below 4.5:1 on the dark fill */
}

.qs-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 18px;
  padding: 10px 18px 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.qs-foot .kbd {
  margin-right: 4px;
  font-size: 0.78rem;
}

@media (max-width: 480px) {
  .qs {
    border-radius: 18px;
  }

  .qs-field {
    padding: 15px 16px 13px;
  }

  .qs-results {
    padding: 6px;
  }

  .qs-row {
    gap: 10px;
    padding: 8px 10px;
  }

  .qs-glyph {
    width: 26px;
    height: 32px;
  }

  /* The app name is the first thing to go when space runs out */
  .qs-meta .app {
    display: none;
  }

  .qs-foot {
    justify-content: center;
  }
}

@media (prefers-color-scheme: dark) {
  .qs,
  .menu {
    --qs-bg: rgba(40, 40, 46, 0.78);
    --qs-edge: rgba(255, 255, 255, 0.16);
  }

  .qs {
    box-shadow: 0 0 0 0.5px var(--qs-edge), inset 0 1px 0 rgba(255, 255, 255, 0.08),
      var(--lift-3);
  }

  .menu {
    box-shadow: 0 0 0 0.5px var(--qs-edge), var(--lift-2);
  }

  /* Document icons stay paper-white in dark mode, as in Finder */
  .qs-glyph .page {
    fill: #ececf0;
    stroke: transparent;
  }

  .qs-glyph .fold {
    fill: #c9c9d0;
    stroke: transparent;
  }
}

/* ==========================================================================
   Showcase mockups — time-word queries and the history menu
   ========================================================================== */
.queries {
  display: grid;
  gap: 12px;
  width: min(380px, 100%);
}

.query {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 0 0 0.5px var(--line), var(--lift-1);
  font-size: 1.0625rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
}

.query svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ink-faint);
  stroke-width: 2;
  stroke-linecap: round;
}

/* The part Recall understands as time or type gets a token */
.query .tok {
  padding: 1px 8px;
  border-radius: 7px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-tint);
}

.query .hint {
  margin-left: auto;
  padding-left: 8px;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

/* A macOS menu, drawn in CSS */
.menu {
  width: min(300px, 100%);
  padding: 6px;
  border-radius: 12px;
  background: var(--qs-bg, rgba(250, 250, 252, 0.86));
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.16), var(--lift-2);
  font-size: 0.9375rem;
  text-align: left;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 10px;
  border-radius: 7px;
  color: var(--ink);
}

.menu-item.is-active {
  background: var(--accent-fill);
  color: #fff;
}

.menu-item .kbd-hint {
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.menu-sep {
  height: 1px;
  margin: 5px 10px;
  background: var(--line);
}

.menu-label {
  padding: 4px 10px 2px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-faint);
}

/* ==========================================================================
   Privacy facts — three short promises
   ========================================================================== */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.fact-cta {
  text-align: center;
  margin-top: 36px;
}

.price-line {
  max-width: 56ch;
  margin: 36px auto 0;
  text-align: center;
  color: var(--ink-soft);
}

.price-line strong {
  color: var(--ink);
}

.price-line .hero-actions {
  margin-top: 20px;
}

/* ==========================================================================
   Scroll reveal — opacity + a short rise, started by JS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Nothing hides if JS never runs */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Accessibility preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    transform: none;
    transition: opacity 0.2s ease;
  }

  .btn:active,
  .nav-cta:active {
    transform: none;
  }

  .qs-caret {
    animation: none;
  }

  .skip-link {
    transition: none;
  }

  .link-arrow:hover::after {
    transform: none;
  }

  .main-nav {
    transition: opacity 0.2s ease, visibility 0s !important;
    transform: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .qs {
    --qs-bg: var(--surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-header,
  .main-nav {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .flow {
    --flow-card: var(--surface);
  }
}

@media (prefers-contrast: more) {
  :root {
    --ink-soft: #3c3c40;
    --ink-faint: #4a4a4e;
    --line: rgba(0, 0, 0, 0.45);
    --line-soft: rgba(0, 0, 0, 0.3);
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --ink-soft: #e4e4e7;
      --ink-faint: #d0d0d4;
      --line: rgba(255, 255, 255, 0.5);
      --line-soft: rgba(255, 255, 255, 0.35);
    }
  }

  .site-header,
  .main-nav {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 1px solid var(--line);
  }

  .card,
  .plan,
  .table-wrap {
    border-color: var(--line);
  }

  .qs,
  .menu,
  .query,
  .lang-switch {
    --qs-bg: var(--surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 0 0 1px var(--line);
  }

  .hero .display .accent {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--accent);
  }

  .flow {
    --flow-card: var(--surface);
  }

  .flow-toggle {
    border-color: var(--line);
    color: var(--ink);
  }
}

/* Windows High Contrast / forced colors: backgrounds are dropped, so give
   fills an outline, draw icons in system colours and keep the gradient
   headline readable. */
@media (forced-colors: active) {
  .btn,
  .nav-cta,
  .skip-link,
  .lang-switch a[aria-current="true"],
  .flow-toggle {
    border: 1px solid ButtonText;
  }

  .lang-switch a[aria-current="true"] {
    text-decoration: underline;
  }

  .hero .display .accent {
    background: none;
    -webkit-text-fill-color: CanvasText;
    color: CanvasText;
  }

  .nav-toggle-label span::before,
  .nav-toggle-label span::after,
  .nav-toggle:not(:checked) ~ .nav-toggle-label span {
    forced-color-adjust: none;
    background: ButtonText;
  }

  .qs-row.is-selected,
  .menu-item.is-active {
    forced-color-adjust: none;
    background: Highlight;
    color: HighlightText;
  }

  .qs-row.is-selected *,
  .menu-item.is-active * {
    color: HighlightText !important;
  }

  .flow-card-face {
    border: 1px solid CanvasText;
  }

  :focus-visible,
  .nav-toggle:focus-visible ~ .nav-toggle-label {
    outline: 2px solid Highlight;
  }
}

/* ===== FAQ (pricing, support) ===== */
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq details:first-of-type, .faq h2 + details { border-top: 1px solid var(--line-soft); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; content: "+" / ""; color: var(--accent); font-weight: 400; transition: transform .25s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 12px; }
.faq h2 + details { margin-top: 0; }
