/* ==========================================================================
   Annimark — Flip-Date Plaque Web Design System
   Zero external CDNs, zero trackers, Light + Dark parity from DESIGN.md
   ========================================================================== */

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

:root {
  color-scheme: light dark;
  --ground: #f5f5f2;
  --surface: #ffffff;
  --surface-subtle: #f9f9f6;
  --tile-ground: #f1f1ec;
  --tile-border: #dcdcd4;
  --today-ground: #0f1012;
  --today-ink: #ffffff;
  --today-caption: #ff7657;
  --ink: #0f1012;
  --ink-2: #575b64;
  --ink-3: #626770;
  --seam: #dfdfd8;
  --divider: #ecece6;
  --flap-seam: rgba(15, 16, 18, 0.12);
  --flap-today-seam: rgba(255, 255, 255, 0.18);
  --accent: #d43d1d;
  --accent-fill: #d43d1d;
  --accent-fill-hover: #bc3316;
  --accent-soft: #fff0ec;
  --badge-ink: #b02c10;
  --badge-ground: #ffebe5;
  --success: #1d6b48;
  --success-soft: #eaf5ef;
  --bezel: #16181c;
  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --radius-badge: 7px;
  --radius-tile: 10px;
  --radius-control: 12px;
  --radius-plaque: 14px;
  --radius-pill: 9999px;
  --container: 1120px;
  --prose: 70ch;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #111214;
    --surface: #1a1c20;
    --surface-subtle: #15171b;
    --tile-ground: #24272e;
    --tile-border: #343944;
    --today-ground: #f5f5f2;
    --today-ink: #0f1012;
    --today-caption: #c43618;
    --ink: #f5f5f2;
    --ink-2: #a1a7b3;
    --ink-3: #8f96a4;
    --seam: #2c3038;
    --divider: #252931;
    --flap-seam: rgba(255, 255, 255, 0.14);
    --flap-today-seam: rgba(15, 16, 18, 0.16);
    --accent: #ff6b4a;
    --accent-fill: #d94222;
    --accent-fill-hover: #c5381a;
    --accent-soft: rgba(255, 107, 74, 0.18);
    --badge-ink: #ffa691;
    --badge-ground: #401c15;
    --success: #42c482;
    --success-soft: rgba(66, 196, 130, 0.16);
    --bezel: #272b33;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #111214;
  --surface: #1a1c20;
  --surface-subtle: #15171b;
  --tile-ground: #24272e;
  --tile-border: #343944;
  --today-ground: #f5f5f2;
  --today-ink: #0f1012;
  --today-caption: #c43618;
  --ink: #f5f5f2;
  --ink-2: #a1a7b3;
  --ink-3: #8f96a4;
  --seam: #2c3038;
  --divider: #252931;
  --flap-seam: rgba(255, 255, 255, 0.14);
  --flap-today-seam: rgba(15, 16, 18, 0.16);
  --accent: #ff6b4a;
  --accent-fill: #d94222;
  --accent-fill-hover: #c5381a;
  --accent-soft: rgba(255, 107, 74, 0.18);
  --badge-ink: #ffa691;
  --badge-ground: #401c15;
  --success: #42c482;
  --success-soft: rgba(66, 196, 130, 0.16);
  --bezel: #272b33;
}

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

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

html {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scrollbar-color: var(--seam) var(--ground);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection {
  background: var(--badge-ground);
  color: var(--badge-ink);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 1.5px;
}

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

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
  letter-spacing: -0.025em;
}

p {
  margin: 0;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

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

/* Bilingual visibility controlled via html[lang] */
html[lang="en"] [data-lang="es"],
html[lang="es"] [data-lang="en"] {
  display: none !important;
}

/* App icon dark/light swap */
.icon-dark {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-light { display: none; }
  :root:not([data-theme="light"]) .icon-dark { display: block; }
}
:root[data-theme="dark"] .icon-light { display: none; }
:root[data-theme="dark"] .icon-dark { display: block; }

/* Layout shell */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap--narrow {
  max-width: 820px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ground);
  border-bottom: 1px solid var(--seam);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--seam);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 2px;
  transition: color 0.15s ease;
}

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

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.segmented-control {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--seam);
  border-radius: 9px;
  padding: 2px;
}

.segmented-control button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 9px;
  border-radius: 7px;
  cursor: pointer;
  min-height: 30px;
  min-width: 34px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.segmented-control button[aria-pressed="true"] {
  background: var(--today-ground);
  color: var(--today-ink);
}

.theme-btn {
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--seam);
  color: var(--ink);
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.theme-btn:hover {
  border-color: var(--ink-3);
}

.theme-btn svg {
  width: 17px;
  height: 17px;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-control);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

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

.btn--primary:hover {
  background: var(--accent-fill-hover);
}

.btn--primary:active {
  transform: scale(0.985);
}

.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--seam);
}

.btn--secondary:hover {
  border-color: var(--ink-3);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pill--accent {
  background: var(--badge-ground);
  color: var(--badge-ink);
}

.pill--success {
  background: var(--success-soft);
  color: var(--success);
}

.pill--neutral {
  background: var(--tile-ground);
  color: var(--ink-2);
  border: 1px solid var(--tile-border);
}

/* ==========================================================================
   Signature Flip-Date Tile Component
   ========================================================================== */
.flip-tile {
  position: relative;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: var(--radius-tile);
  background: var(--tile-ground);
  border: 1px solid var(--tile-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  overflow: hidden;
  user-select: none;
  transform-style: preserve-3d;
}

.flip-tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--flap-seam);
  pointer-events: none;
}

.flip-tile__day {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.18rem;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.flip-tile__month {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink-2);
}

.flip-tile--today {
  background: var(--today-ground);
  border-color: var(--today-ground);
}

.flip-tile--today::after {
  background: var(--flap-today-seam);
}

.flip-tile--today .flip-tile__day {
  color: var(--today-ink);
}

.flip-tile--today .flip-tile__month {
  color: var(--today-caption);
}

.flip-tile--lg {
  width: 68px;
  height: 68px;
  border-radius: 12px;
}

.flip-tile--lg .flip-tile__day {
  font-size: 1.55rem;
}

.flip-tile--lg .flip-tile__month {
  font-size: 0.72rem;
}

@keyframes flapFlip {
  0% { transform: perspective(260px) rotateX(0deg); }
  45% { transform: perspective(260px) rotateX(-78deg); }
  100% { transform: perspective(260px) rotateX(0deg); }
}

.flip-tile.is-flipping {
  animation: flapFlip 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .flip-tile.is-flipping {
    animation: none;
  }
  .btn--primary:active {
    transform: none;
  }
}

/* ==========================================================================
   Icon Badge (28x28 continuous square)
   ========================================================================== */
.icon-badge {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: var(--radius-badge);
  background: var(--tile-ground);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-badge svg {
  width: 16px;
  height: 16px;
}

.icon-badge--success {
  background: var(--success-soft);
  color: var(--success);
}

.icon-badge--accent {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ==========================================================================
   Plaque Container & Divided List
   ========================================================================== */
.plaque {
  background: var(--surface);
  border: 1px solid var(--seam);
  border-radius: var(--radius-plaque);
  overflow: hidden;
}

.plaque--padded {
  padding: 20px;
}

.plaque-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
}

.plaque-row + .plaque-row {
  border-top: 1px solid var(--divider);
}

.plaque-footer {
  background: var(--surface-subtle);
  border-top: 1px solid var(--divider);
  padding: 12px 18px;
  font-size: 0.84rem;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.plaque-footer__meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--ink-3);
}

/* ==========================================================================
   Landing Page — Hero
   ========================================================================== */
.hero {
  padding: 64px 0 72px;
  border-bottom: 1px solid var(--seam);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.45rem, 5vw, 3.85rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.032em;
  max-width: 15ch;
}

.hero-lead {
  margin-top: 20px;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 48ch;
}

.hero-actions {
  margin-top: 28px;
}

.hero-meta {
  margin-top: 16px;
  font-size: 0.86rem;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Live interactive split-flap preview strip inside hero */
.hero-board {
  margin-top: 32px;
  max-width: 480px;
}

.hero-board .plaque-row {
  cursor: pointer;
  transition: background-color 0.14s ease;
}

.hero-board .plaque-row:hover {
  background: var(--surface-subtle);
}

.row-main {
  flex: 1;
  min-width: 0;
}

.row-title {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink);
  line-height: 1.25;
}

.row-sub {
  margin-top: 2px;
  font-size: 0.84rem;
  color: var(--ink-2);
  line-height: 1.3;
}

.star-btn {
  appearance: none;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--seam);
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.star-btn[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.star-btn svg {
  width: 16px;
  height: 16px;
}

/* Device showcase frame */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.phone-frame {
  width: 100%;
  max-width: 316px;
  background: var(--bezel);
  padding: 10px;
  border-radius: 44px;
  border: 1px solid var(--seam);
}

.phone-screen {
  border-radius: 34px;
  overflow: hidden;
  background: var(--ground);
  border: 1px solid rgba(128, 128, 128, 0.16);
}

.phone-screen img {
  width: 100%;
  height: auto;
}

.screen-switcher {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--seam);
  border-radius: 11px;
}

.screen-switcher button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  min-height: 34px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.screen-switcher button[aria-selected="true"] {
  background: var(--today-ground);
  color: var(--today-ink);
}

/* ==========================================================================
   Sections — Editorial Asymmetric Rhythm
   ========================================================================== */
.section {
  padding: 76px 0;
  border-bottom: 1px solid var(--seam);
  scroll-margin-top: 72px;
}

.section--subtle {
  background: var(--surface-subtle);
}

.section-head {
  max-width: 58ch;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 700;
  line-height: 1.14;
}

.section-head p {
  margin-top: 12px;
  font-size: 1.04rem;
  color: var(--ink-2);
  line-height: 1.55;
}

/* Use-cases editorial split */
.use-cases-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}

.use-cases-intro {
  position: sticky;
  top: 92px;
}

.use-cases-intro h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 700;
  line-height: 1.12;
}

.use-cases-intro p {
  margin-top: 14px;
  font-size: 1.02rem;
  color: var(--ink-2);
  line-height: 1.58;
  max-width: 42ch;
}

.use-case-row {
  padding: 20px 22px;
  display: grid;
  gap: 6px;
}

.use-case-row + .use-case-row {
  border-top: 1px solid var(--divider);
}

.use-case-row__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.use-case-row h3 {
  font-size: 1.04rem;
  font-weight: 650;
  line-height: 1.3;
}

.use-case-row p {
  font-size: 0.93rem;
  color: var(--ink-2);
  line-height: 1.56;
}

.use-case-row__solve {
  margin-top: 4px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.use-case-row__solve svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
}

/* Capabilities Ledger (replaces generic 3-col card grids) */
.ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--seam);
  border-bottom: 1px solid var(--seam);
}

.ledger-item {
  padding: 28px 28px 28px 0;
  border-bottom: 1px solid var(--divider);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ledger-item:nth-child(even) {
  padding-left: 32px;
  padding-right: 0;
  border-left: 1px solid var(--divider);
}

.ledger-item:nth-last-child(-n+2) {
  border-bottom: 0;
}

.ledger-item h3 {
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.28;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ledger-item p {
  margin-top: 6px;
  font-size: 0.94rem;
  color: var(--ink-2);
  line-height: 1.52;
  max-width: 44ch;
}

/* Spotlight split: Calendar Sync */
.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.split-feature__copy h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  line-height: 1.14;
}

.split-feature__copy > p {
  margin-top: 14px;
  font-size: 1.02rem;
  color: var(--ink-2);
  max-width: 48ch;
}

.spec-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--seam);
}

.spec-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--divider);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  font-size: 0.93rem;
}

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

.spec-list span {
  color: var(--ink-2);
}

/* Privacy Architecture Matrix */
.privacy-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--seam);
  border-radius: var(--radius-plaque);
  overflow: hidden;
}

.privacy-table th,
.privacy-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
  font-size: 0.94rem;
}

.privacy-table thead th {
  background: var(--surface-subtle);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid var(--seam);
}

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

.privacy-table td:first-child {
  font-weight: 600;
  color: var(--ink);
  width: 28%;
}

.privacy-table td:nth-child(2) {
  color: var(--ink-2);
  width: 42%;
}

.privacy-table td:last-child {
  font-weight: 600;
  color: var(--success);
  width: 30%;
}

/* ==========================================================================
   Pricing Section (Free vs Annimark Plus)
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: start;
}

.pricing-tier {
  background: var(--surface);
  border: 1px solid var(--seam);
  border-radius: var(--radius-plaque);
  overflow: hidden;
}

.pricing-tier--plus {
  border: 2px solid var(--accent);
}

.pricing-tier__head {
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--divider);
}

.pricing-tier__head h3 {
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pricing-tier__head p {
  margin-top: 6px;
  font-size: 0.94rem;
  color: var(--ink-2);
}

.plan-options {
  padding: 18px 24px;
  border-bottom: 1px solid var(--divider);
  background: var(--surface-subtle);
  display: grid;
  gap: 10px;
}

.plan-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--seam);
  border-radius: 12px;
}

.plan-line--featured {
  border: 2px solid var(--accent);
}

.plan-line__name {
  font-weight: 650;
  font-size: 0.96rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.plan-line__note {
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--ink-2);
}

.plan-line__price {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink);
  white-space: nowrap;
}

.plan-line__price small {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--ink-2);
}

.check-list {
  margin: 0;
  padding: 20px 24px;
  list-style: none;
  display: grid;
  gap: 11px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--ink-2);
  line-height: 1.42;
}

.check-list li strong {
  color: var(--ink);
  font-weight: 600;
}

.check-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--success);
}

.pricing-footnote {
  margin-top: 20px;
  font-size: 0.86rem;
  color: var(--ink-3);
  max-width: 68ch;
}

/* ==========================================================================
   Read Mode Pages (/privacy, /terms, /support)
   ========================================================================== */
.doc-hero {
  padding: 52px 0 36px;
  border-bottom: 1px solid var(--seam);
}

.doc-hero h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.12;
}

.doc-hero p {
  margin-top: 12px;
  font-size: 1.04rem;
  color: var(--ink-2);
  max-width: 62ch;
}

.doc-meta {
  margin-top: 16px;
  font-size: 0.84rem;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.doc-body {
  padding: 44px 0 80px;
}

.prose {
  max-width: var(--prose);
}

.prose h2 {
  margin-top: 40px;
  margin-bottom: 12px;
  font-size: 1.38rem;
  font-weight: 700;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 650;
}

.prose p {
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.68;
}

.prose p + p {
  margin-top: 14px;
}

.prose ul {
  margin: 14px 0;
  padding-left: 20px;
  color: var(--ink-2);
  display: grid;
  gap: 8px;
  font-size: 0.96rem;
  line-height: 1.62;
}

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

.summary-strip {
  margin-bottom: 32px;
}

/* FAQ Accordion on /support */
.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--seam);
  border-radius: var(--radius-plaque);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  padding: 16px 20px;
  font-weight: 650;
  font-size: 0.98rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-3);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--accent);
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--divider);
}

.faq-answer {
  padding: 16px 20px;
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.64;
}

.faq-answer p + p {
  margin-top: 10px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--seam);
  background: var(--surface-subtle);
  padding: 36px 0 44px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-note {
  font-size: 0.85rem;
  color: var(--ink-3);
}

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

.footer-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 920px) {
  .hero-grid,
  .use-cases-grid,
  .split-feature,
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .use-cases-intro {
    position: static;
  }

  .hero {
    padding: 40px 0 56px;
  }

  .hero h1 {
    max-width: none;
  }

  .ledger {
    grid-template-columns: 1fr;
  }

  .ledger-item,
  .ledger-item:nth-child(even) {
    padding: 22px 0;
    border-left: 0;
    border-bottom: 1px solid var(--divider);
  }

  .ledger-item:last-child {
    border-bottom: 0;
  }

  .spec-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 680px) {
  .wrap {
    padding: 0 18px;
  }

  .nav-links {
    display: none;
  }

  .section {
    padding: 52px 0;
  }

  .privacy-table thead {
    display: none;
  }

  .privacy-table,
  .privacy-table tbody,
  .privacy-table tr,
  .privacy-table td {
    display: block;
    width: 100% !important;
  }

  .privacy-table tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--divider);
  }

  .privacy-table tr:last-child {
    border-bottom: 0;
  }

  .privacy-table td {
    padding: 3px 0;
    border-bottom: 0;
  }

  .btn {
    width: 100%;
  }

  .btn-row {
    width: 100%;
  }
}
