/* ============================================================
   Groomy - verification & policy site
   Tokens
   ============================================================ */
:root {
  --ink: #241f3d;
  --ink-soft: #524b73;
  --primary: #5b4fbe;
  --primary-deep: #322a70;
  --paper: #f8f8fc;
  --surface: #f4f2ff;
  --line: #e3dff5;
  --white: #ffffff;
  --warn-bg: #fff6e9;
  --warn-line: #f0dcb0;
  --warn-ink: #7a5a12;
  --accent-text: #322a70;
  --focus-ring: #5b4fbe;
  --paper-fixed: #ffffff;
  --ink-fixed: #241f3d;
  --ink-soft-fixed: #524b73;
  --accent-fixed: #322a70;
  --surface-fixed: #f4f2ff;
  --line-fixed: #e3dff5;

  --font-head: "Libre Franklin", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --measure: 68ch;
  --radius: 3px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #ece9f9;
    --ink-soft: #b7afd9;
    --primary: #6e62d6;
    --paper: #1a1626;
    --surface: #241f35;
    --line: #3a3354;
    --white: #2a2440;
    --warn-bg: #3a2a0f;
    --warn-line: #5c4419;
    --warn-ink: #f0c572;

    --accent-text: #a99bff;
    --focus-ring: #a99bff;
  }
}

:root[data-theme="dark"] {
  --ink: #ece9f9;
  --ink-soft: #b7afd9;
  --primary: #6e62d6;
  --paper: #1a1626;
  --surface: #241f35;
  --line: #3a3354;
  --white: #2a2440;
  --warn-bg: #3a2a0f;
  --warn-line: #5c4419;
  --warn-ink: #f0c572;

  --accent-text: #a99bff;
  --focus-ring: #a99bff;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-weight: 800; }
h2 { font-weight: 800; }
h3, h4 { font-weight: 700; }

p { margin: 0 0 1.1em; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Nav - ticket-stub header, dashed bottom edge
   ============================================================ */
.site-header {
  border-bottom: 1px dashed var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 40;
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(248, 248, 252, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px -22px rgba(50, 42, 112, 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header.is-scrolled {
    background: rgba(26, 22, 38, 0.85);
    box-shadow: 0 12px 28px -22px rgba(0, 0, 0, 0.6);
  }
}

:root[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(26, 22, 38, 0.85);
  box-shadow: 0 12px 28px -22px rgba(0, 0, 0, 0.6);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

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

.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.nav-toggle-bar:nth-child(1) { top: 14px; }
.nav-toggle-bar:nth-child(2) { top: 19px; }
.nav-toggle-bar:nth-child(3) { top: 24px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

.nav-divider {
  width: 1px;
  height: 22px;
  background: var(--line);
  flex-shrink: 0;
}

.theme-toggle {
  position: relative;
  width: 56px;
  height: 30px;
  padding: 3px;
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.theme-toggle:hover { border-color: var(--primary); }
.theme-toggle:active { transform: scale(0.95); }

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-toggle-icon {
  position: absolute;
  width: 14px;
  height: 14px;
  color: var(--paper-fixed);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-toggle-icon--sun { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle-icon--moon { opacity: 0; transform: rotate(90deg) scale(0.5); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle-thumb { transform: translateX(26px); }
  :root:not([data-theme="light"]) .theme-toggle-icon--sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
  :root:not([data-theme="light"]) .theme-toggle-icon--moon { opacity: 1; transform: rotate(0deg) scale(1); }
}

:root[data-theme="dark"] .theme-toggle-thumb { transform: translateX(26px); }
:root[data-theme="dark"] .theme-toggle-icon--sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
:root[data-theme="dark"] .theme-toggle-icon--moon { opacity: 1; transform: rotate(0deg) scale(1); }

@media (prefers-reduced-motion: reduce) {
  .theme-toggle-thumb,
  .theme-toggle-icon { transition: opacity 0.01s linear; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--paper);
    border-bottom: 1px dashed var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 24px 18px;
    display: none;
    box-shadow: 0 16px 28px -22px rgba(50, 42, 112, 0.55);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { width: 100%; padding: 10px 0; }
}

@media (max-width: 760px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-links { box-shadow: 0 16px 28px -22px rgba(0, 0, 0, 0.6); }
}

@media (max-width: 760px) {
  :root[data-theme="dark"] .nav-links { box-shadow: 0 16px 28px -22px rgba(0, 0, 0, 0.6); }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 72px 0 56px;
}

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

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { margin-top: 16px; }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    opacity: 0;
    animation: hero-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .hero-copy .eyebrow-note { animation-delay: 0.02s; }
  .hero-copy h1 { animation-delay: 0.09s; }
  .hero-copy .hero-lede { animation-delay: 0.18s; }
  .hero-copy .hero-actions { animation-delay: 0.27s; }
  .hero-visual {
    opacity: 0;
    animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.16s forwards;
  }
}

.eyebrow-note {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-text);
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4rem);
  max-width: 17ch;
  letter-spacing: -0.02em;
}

.hero-lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 44ch;
  margin-bottom: 1.7em;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-block;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--paper-fixed);
}
.btn-primary:hover { background: var(--primary-deep); }

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

/* Ticket stub illustration, with a glow and a peeking second card for depth */
.hero-visual {
  position: relative;
}

.ticket-glow {
  position: absolute;
  top: -34px;
  left: 8%;
  right: 8%;
  height: 220px;
  background: radial-gradient(ellipse at center, rgba(91, 79, 190, 0.26), rgba(91, 79, 190, 0) 72%);
  z-index: 0;
  pointer-events: none;
}

.ticket-ghost {
  position: absolute;
  top: 18px;
  left: 14px;
  right: -14px;
  bottom: -14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  transform: rotate(-2.5deg);
  z-index: 1;
}

/* Floating app-icon badges, the two real apps orbiting the booking ticket */
.app-chip {
  --chip-rot: 0deg;
  position: absolute;
  z-index: 3;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: var(--paper-fixed);
  border: 1px solid var(--line-fixed);
  border-radius: 10px;
  box-shadow: 0 18px 36px -16px rgba(50, 42, 112, 0.55);
  transform: rotate(var(--chip-rot));
}

.app-chip::before {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--chip-glow, transparent), transparent 70%);
}

.app-chip img {
  width: 36px;
  height: 36px;
  display: block;
}

.app-chip--owner {
  --chip-rot: -8deg;
  --chip-glow: rgba(80, 73, 157, 0.4);
  top: -28px;
  left: -6px;
}

.app-chip--customer {
  --chip-rot: 6deg;
  --chip-glow: rgba(108, 197, 170, 0.4);
  top: 54%;
  right: -6px;
}

@keyframes chip-float {
  0%, 100% { transform: translateY(0) rotate(var(--chip-rot)); }
  50% { transform: translateY(-10px) rotate(var(--chip-rot)); }
}

@media (prefers-reduced-motion: no-preference) {
  .app-chip--owner {
    animation: chip-float 5.2s ease-in-out infinite;
    animation-delay: 0.3s;
  }
  .app-chip--customer {
    animation: chip-float 6.4s ease-in-out infinite;
    animation-delay: 1s;
  }
  .hero-visual:hover .ticket,
  .hero-visual:focus-within .ticket {
    transform: translateY(-4px) rotate(-1deg);
  }
}

.ticket {
  position: relative;
  z-index: 2;
  background: var(--paper-fixed);
  border: 1px solid var(--line-fixed);
  border-radius: 10px;
  padding: 22px 22px 0;
  box-shadow: 0 22px 44px -20px rgba(50, 42, 112, 0.4);
}

.ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.ticket-time {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--accent-fixed);
}

.ticket-tag {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--accent-fixed);
  background: var(--surface-fixed);
  border: 1px solid var(--line-fixed);
  padding: 4px 9px;
  border-radius: 20px;
}

.ticket-service {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-fixed);
  margin-bottom: 2px;
}

.ticket-meta {
  color: var(--ink-soft-fixed);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.ticket-perf {
  position: relative;
  border-top: 1px dashed var(--line-fixed);
  margin: 0 -22px;
}

.ticket-perf::before,
.ticket-perf::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
}
.ticket-perf::before { left: -8px; }
.ticket-perf::after { right: -8px; }

.ticket-foot {
  display: flex;
  justify-content: space-between;
  padding: 14px 0 18px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  color: var(--ink-soft-fixed);
  font-weight: 600;
}

.ticket-foot strong { color: var(--ink-fixed); }

/* ============================================================
   Flow / steps - literal booking sequence, justified numbering
   ============================================================ */
.flow {
  padding: 40px 0 72px;
  border-top: 1px dashed var(--line);
}

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

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
}

.step {
  padding: 28px 26px 30px;
  position: relative;
}

.step + .step {
  border-left: 1px dashed var(--line);
}

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: none; border-top: 1px dashed var(--line); }
}

.step-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--paper-fixed);
  background: var(--primary);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 0; }

/* ============================================================
   Feature grid - icon-badge cards
   ============================================================ */
.features {
  padding: 8px 0 72px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px -20px rgba(50, 42, 112, 0.4);
  }
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--accent-text);
  font-size: 1.35rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin-bottom: 0;
}

/* ============================================================
   Two apps - customer app + owner app, one card each
   ============================================================ */
.apps {
  padding: 8px 0 72px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.4s; }

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 700px) {
  .app-grid { grid-template-columns: 1fr; }
}

.app-card {
  border-radius: 10px;
  padding: 34px 32px;
  border: 1px solid var(--line);
}

.app-card--customer {
  background: var(--paper-fixed);
  border-color: var(--line-fixed);
}

.app-card--owner {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
}

.app-card-badge {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: var(--paper-fixed);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 28px -16px rgba(50, 42, 112, 0.5);
  margin-bottom: 20px;
}

.app-card--owner .app-card-badge {
  box-shadow: 0 14px 28px -16px rgba(0, 0, 0, 0.6);
}

.app-card-badge img {
  width: 46px;
  height: 46px;
  display: block;
}

.app-tag {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 8px;
  color: var(--accent-text);
}

.app-card--customer .app-tag { color: var(--accent-fixed); }
.app-card--owner .app-tag { color: rgba(255, 255, 255, 0.72); }

.app-card h3 {
  font-size: 1.45rem;
  margin-bottom: 16px;
}

.app-card--customer h3 { color: var(--ink-fixed); }
.app-card--owner h3 { color: var(--paper-fixed); }

.app-card ul {
  margin: 0;
  padding-left: 1.15em;
}

.app-card li {
  margin-bottom: 9px;
  font-size: 0.98rem;
}

.app-card li:last-child { margin-bottom: 0; }

.app-card--customer li { color: var(--ink-soft-fixed); }
.app-card--owner li { color: rgba(255, 255, 255, 0.9); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 56px 0 0;
  border-top: 1px dashed var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 40px;
}

@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer-top { gap: 28px 20px; }
}

.footer-brand .brand { margin-bottom: 12px; }

.footer-tagline {
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 32ch;
  margin: 0;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-col-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0 0 2px;
}

.footer-col a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-col a:hover { color: var(--accent-text); }

.footer-bottom {
  border-top: 1px dashed var(--line);
  padding-top: 18px;
  padding-bottom: 28px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ============================================================
   Legal document pages - TOC sidebar + narrow serif measure
   ============================================================ */
.doc-hero {
  padding: 52px 0 36px;
  border-bottom: 1px dashed var(--line);
}

.doc-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }

.doc-hero .doc-updated {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, var(--measure));
  gap: 64px;
  padding-top: 48px;
  padding-bottom: 90px;
  align-items: start;
}

@media (max-width: 900px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}

.toc {
  position: sticky;
  top: 90px;
  font-family: var(--font-head);
}

.toc-label {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
}

.toc li { margin: 0; }

.toc a {
  display: block;
  padding: 7px 0 7px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
}

.toc a:hover,
.toc a.is-active {
  color: var(--accent-text);
  border-left-color: var(--primary);
}

@media (max-width: 900px) {
  .toc { position: static; }
  .toc ol { columns: 2; }
}

@media (max-width: 480px) {
  .toc ol { columns: 1; }
}

.doc-body h2 {
  font-size: 1.35rem;
  margin-top: 2.2em;
  padding-top: 0.2em;
  scroll-margin-top: 90px;
}

.doc-body h2:first-child { margin-top: 0; }

.doc-body h3 {
  font-size: 1.08rem;
  margin-top: 1.6em;
  scroll-margin-top: 90px;
}

.doc-body p, .doc-body li {
  color: var(--ink);
  font-size: 1.02rem;
}

.doc-body ul, .doc-body ol {
  padding-left: 1.3em;
  margin-bottom: 1.1em;
}

.doc-body li { margin-bottom: 0.4em; }

.doc-body strong { color: var(--ink); }

.placeholder {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.05em 0.4em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.94em;
  color: var(--accent-text);
}

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  background: var(--surface);
  border-radius: 0 6px 6px 0;
  padding: 16px 20px;
  margin: 1.6em 0;
  font-size: 0.98rem;
}

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

.callout-warn {
  border-left-color: #c98a1f;
  background: var(--warn-bg);
  border-color: var(--warn-line);
  color: var(--warn-ink);
}

.callout-warn strong { color: var(--warn-ink); }

.table-scroll {
  overflow-x: auto;
  margin: 1.4em 0;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.95rem;
}

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

.data-table th {
  font-family: var(--font-head);
  background: var(--surface);
  font-weight: 700;
}

/* Deletion steps (delete-account page) reuse .steps but stacked */
.delete-steps {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  margin: 1.6em 0 2em;
}

.delete-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 20px 22px;
}

.delete-step + .delete-step { border-top: 1px dashed var(--line); }

.delete-step .step-num { margin-bottom: 0; }

.delete-step h3 { margin-top: 4px; margin-bottom: 4px; font-size: 1rem; }
.delete-step p { margin-bottom: 0; color: var(--ink-soft); font-size: 0.96rem; }

.delete-steps--owner {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
}

.delete-steps--owner .delete-step + .delete-step {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.delete-steps--owner .delete-step h3,
.delete-steps--owner .delete-step strong {
  color: var(--paper-fixed);
}

.delete-steps--owner .delete-step p {
  color: rgba(255, 255, 255, 0.78);
}

@media (prefers-reduced-motion: no-preference) {
  .ticket { transition: transform 0.4s ease; }
}

/* ============================================================
   Contact page
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 90px;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; gap: 28px; }
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 40px;
}

.contact-card h2 { font-size: 1.5rem; }

.contact-card > p {
  color: var(--ink-soft);
  max-width: 52ch;
  font-size: 1.02rem;
}

.contact-card .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
}

.contact-card .btn-primary i { font-size: 1.05rem; }

.contact-facts {
  display: grid;
  gap: 22px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px dashed var(--line);
}

.contact-fact {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}

.contact-fact .feature-icon { margin-bottom: 0; }

.contact-fact h3 { font-size: 1rem; margin-bottom: 4px; }

.contact-fact p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin-bottom: 0;
}

.contact-fact p a {
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

.contact-fact p a:hover { text-decoration: underline; }

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-sidebar .footer-col-label { margin: 4px 0 2px; }

.contact-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-link-card:hover {
  border-color: var(--primary);
  transform: translateX(2px);
}

.contact-link-copy h3 { font-size: 0.98rem; margin-bottom: 2px; }

.contact-link-copy p {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.contact-link-card i {
  color: var(--accent-text);
  font-size: 1.1rem;
  flex-shrink: 0;
}
