/* ============================================================
   iTimeSheet — Landing site stylesheet
   Design system mirrors Code/iTimeSheet/iTimeSheet/Views/Common/DesignTokens.swift
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --accent: #6B5BFF;
  --accent-2: #FF7A50;
  --accent-3: #FFB36B;

  /* Neutrals (light) */
  --bg: #FFFFFF;
  --card: #FFFFFF;
  --sheet-bg: #F4F2EE;
  --surface: #FAFAFB;
  --ink: #0E0E10;
  --ink-2: #3A3A40;
  --ink-3: #76767E;
  --hair: #EDEDF0;

  /* States */
  --success: #0F7A3F;
  --success-bg: #E7F7EE;
  --live: #22C55E;
  --warn-bg: #FFF4E6;
  --warn: #A35200;

  /* Bloom backdrop */
  --bloom-lavender: #E8DEFF;
  --bloom-peach: #FFE0CC;
  --bloom-mint: #D4F0E2;

  /* Chart palette */
  --chart-1: #6B5BFF;
  --chart-2: #14B8A6;
  --chart-3: #FB7185;
  --chart-4: #F59E0B;
  --chart-5: #4F46E5;
  --chart-6: #10B981;
  --chart-7: #0EA5E9;
  --chart-8: #EC4899;
  --chart-9: #A3E635;
  --chart-slate: #64748B;

  /* Geometry */
  --r-card: 18px;
  --r-hero: 24px;
  --r-button: 14px;
  --r-tile: 16px;
  --r-pill: 999px;

  --pad-outer: 22px;
  --pad-card: 18px;

  /* Shadows */
  --shadow-card: 0 1px 2px rgba(14, 14, 16, .04), 0 12px 32px -16px rgba(14, 14, 16, .08);
  --shadow-pop: 0 24px 60px -20px rgba(107, 91, 255, .35);
  --shadow-pop-soft: 0 24px 60px -28px rgba(14, 14, 16, .25);

  /* Type scale */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Menlo", monospace;

  /* Gradients */
  --grad-hero: linear-gradient(135deg, #E8DEFF 0%, #FFE0CC 100%);
  --grad-submit: linear-gradient(135deg, #E8DEFF 0%, #D4F0E2 100%);
  --grad-primary: linear-gradient(135deg, #6B5BFF 0%, #FF7A50 55%, #FFB36B 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1C1C1E;
    --sheet-bg: #121214;
    --surface: #2A2A2E;
    --ink: #F5F5F7;
    --ink-2: #C7C7CC;
    --ink-3: #8E8E93;
    --hair: #2C2C2E;
    --success: #30D158;
    --success-bg: #143821;

    --bloom-lavender: #2A1F4D;
    --bloom-peach: #4D2A1F;
    --bloom-mint: #1F4D2A;

    --shadow-card: 0 1px 2px rgba(0, 0, 0, .35), 0 16px 32px -16px rgba(0, 0, 0, .55);
    --shadow-pop-soft: 0 24px 60px -28px rgba(0, 0, 0, .75);
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16.5px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: white; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.08;
  font-weight: 640;
}
h1 { font-size: clamp(2.4rem, 4.6vw, 4.1rem); letter-spacing: -0.038em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); letter-spacing: -0.02em; }
h4 { font-size: 1.075rem; letter-spacing: -0.015em; }

p { margin: 0 0 1em; color: var(--ink-2); }
p.lead {
  font-size: clamp(1.075rem, 1.5vw, 1.275rem);
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 38ch;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow-quiet { color: var(--ink-3); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--r-pill);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}
.kicker-quiet {
  background: var(--surface);
  color: var(--ink-2);
  border-color: var(--hair);
}

/* ---------- Layout primitives ---------- */
.container {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}
.section {
  padding-block: clamp(72px, 9vw, 128px);
}
.section-tight { padding-block: clamp(48px, 6vw, 80px); }

.split-2 {
  display: grid;
  gap: clamp(36px, 5vw, 80px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) {
  .split-2 { grid-template-columns: 1.05fr 1fr; }
  .split-2.swap > *:first-child { order: 2; }
}

.cluster { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Top nav ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--hair) 60%, transparent);
}
.topnav-inner {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 640;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-size: 17px;
  color: var(--ink);
}
.brand-mark {
  width: 30px; height: 30px;
  display: inline-grid; place-items: center;
  border-radius: 9px;
  background: url('icons/icon-96.png') center / cover no-repeat, var(--grad-primary);
  color: transparent;
  font-size: 0;
  letter-spacing: 0;
  box-shadow: 0 6px 20px -8px rgba(107, 91, 255, .55);
}

.nav-links {
  display: none;
  gap: 24px;
  margin-left: 12px;
}
@media (min-width: 760px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 14.5px;
  color: var(--ink-2);
  padding: 6px 4px;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links details {
  position: relative;
}
.nav-links details summary {
  list-style: none;
  cursor: pointer;
  font-size: 14.5px;
  color: var(--ink-2);
  padding: 6px 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-links details summary::-webkit-details-marker { display: none; }
.nav-links details summary::after {
  content: "";
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
}
.nav-links details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }

.dd-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-pop-soft);
  padding: 8px;
  display: grid;
  gap: 2px;
}
.dd-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14.5px;
}
.dd-panel a:hover { background: var(--surface); }
.dd-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: inline-grid; place-items: center;
  font-size: 14px;
  background: color-mix(in srgb, currentColor 12%, transparent);
}

.nav-spacer { flex: 1; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--r-button);
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: var(--grad-primary);
  box-shadow: 0 8px 22px -8px rgba(107, 91, 255, .55);
  transition: transform .15s ease;
}
.nav-cta:hover { transform: translateY(-1px); }

.nav-burger {
  display: inline-flex;
  width: 38px; height: 38px;
  border-radius: 10px;
  align-items: center; justify-content: center;
  border: 1px solid var(--hair);
  background: var(--card);
}
@media (min-width: 760px) { .nav-burger { display: none; } }
.nav-burger svg { width: 18px; height: 18px; stroke: var(--ink); }

/* Mobile menu */
.mobile-menu {
  display: none;
  padding: 12px 20px 24px;
  border-bottom: 1px solid var(--hair);
  background: var(--bg);
}
.mobile-menu a {
  display: block;
  padding: 12px 8px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--ink-2);
}
.mobile-menu.open { display: block; }

/* ---------- Bloom backdrop ---------- */
.bloom {
  position: absolute;
  inset: -10% -5% -10% -5%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  filter: blur(40px);
  opacity: .9;
}
.bloom::before, .bloom::after, .bloom > .blob {
  content: "";
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  animation: drift 24s linear infinite;
}
.bloom::before {
  background: radial-gradient(circle, var(--bloom-lavender) 0%, transparent 65%);
  top: -25%; left: -15%;
  animation-delay: 0s;
}
.bloom::after {
  background: radial-gradient(circle, var(--bloom-peach) 0%, transparent 65%);
  top: -15%; right: -20%;
  animation-delay: -8s;
  animation-direction: reverse;
}
.bloom > .blob {
  background: radial-gradient(circle, var(--bloom-mint) 0%, transparent 65%);
  bottom: -25%; left: 15%;
  opacity: .7;
  animation-delay: -16s;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(3%, -2%) scale(1.05); }
  66% { transform: translate(-2%, 3%) scale(0.97); }
}
@media (prefers-reduced-motion: reduce) {
  .bloom::before, .bloom::after, .bloom > .blob { animation: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 120px);
  overflow: hidden;
  isolation: isolate;
}
.hero > .container { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; }
}

.hero-text h1 {
  margin-block: 18px 22px;
  max-width: 18ch;
}
.hero-text .cta-row { margin-top: 28px; }
.trust-bar {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  color: var(--ink-3);
  font-size: 13.5px;
}
.trust-bar span {
  display: inline-flex; align-items: center; gap: 6px;
}
.trust-bar svg {
  width: 14px; height: 14px;
  stroke: var(--success);
  flex-shrink: 0;
}

/* ---------- Buttons / CTAs ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--r-button);
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.cta-primary {
  color: white;
  background: var(--grad-primary);
  box-shadow: 0 18px 36px -12px rgba(107, 91, 255, .55);
}
.cta-primary:hover { transform: translateY(-1px); box-shadow: 0 20px 40px -10px rgba(107, 91, 255, .65); }
.cta-primary svg { width: 18px; height: 18px; fill: currentColor; }

.cta-ghost {
  color: var(--ink);
  background: color-mix(in srgb, var(--card) 65%, transparent);
  border-color: var(--hair);
  backdrop-filter: blur(10px);
}
.cta-ghost:hover { background: var(--card); }

.cta-small {
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 12px;
}

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: black;
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14.5px;
}
.appstore-badge .row-1 { font-size: 10px; opacity: .8; letter-spacing: 0.04em; text-transform: uppercase; }
.appstore-badge .row-2 { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.appstore-badge svg { width: 24px; height: 24px; }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  padding: var(--pad-card);
  box-shadow: var(--shadow-card);
}
.card-pad-lg { padding: 28px; }
.card-flush { padding: 0; overflow: hidden; }
.card-glass {
  background: color-mix(in srgb, var(--card) 80%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 48px;
}
.feature {
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop-soft); }
.feature-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: 14.5px; margin: 0; }
.feature-tint-2 .feature-ico { background: color-mix(in srgb, var(--chart-2) 14%, transparent); color: var(--chart-2); }
.feature-tint-3 .feature-ico { background: color-mix(in srgb, var(--chart-3) 14%, transparent); color: var(--chart-3); }
.feature-tint-4 .feature-ico { background: color-mix(in srgb, var(--chart-4) 16%, transparent); color: var(--chart-4); }
.feature-tint-5 .feature-ico { background: color-mix(in srgb, var(--chart-5) 14%, transparent); color: var(--chart-5); }
.feature-tint-6 .feature-ico { background: color-mix(in srgb, var(--chart-6) 14%, transparent); color: var(--chart-6); }

/* ---------- Persona cards ---------- */
.personas {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 40px;
}
.persona {
  position: relative;
  padding: 26px 24px;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  display: grid;
  gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
  overflow: hidden;
}
.persona:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-pop-soft);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--hair));
}
.persona-mono {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: inline-grid; place-items: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hair);
}
.persona-name { font-size: 17px; font-weight: 640; letter-spacing: -0.015em; color: var(--ink); }
.persona-blurb { font-size: 14px; color: var(--ink-3); line-height: 1.45; }
.persona-arrow {
  position: absolute;
  bottom: 22px; right: 22px;
  width: 22px; height: 22px;
  color: var(--ink-3);
  transition: transform .2s ease, color .2s ease;
}
.persona:hover .persona-arrow { transform: translateX(3px); color: var(--accent); }

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 48px;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--r-hero);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.price-card.featured {
  border-color: transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    var(--grad-primary) border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--shadow-pop);
}
.price-flag {
  position: absolute;
  top: 18px; right: 18px;
  background: var(--accent);
  color: white;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.price-name { font-size: 14px; color: var(--ink-3); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.price-amount { font-size: 2.6rem; letter-spacing: -0.04em; font-weight: 640; line-height: 1; color: var(--ink); }
.price-amount small { font-size: 14px; color: var(--ink-3); font-weight: 500; letter-spacing: 0; margin-left: 6px; }
.price-sub { font-size: 13.5px; color: var(--ink-3); margin-top: -8px; }
.price-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 14px; color: var(--ink-2); }
.price-list li { display: flex; align-items: flex-start; gap: 9px; }
.price-list svg { width: 16px; height: 16px; color: var(--accent); margin-top: 3px; flex-shrink: 0; }
.price-cta {
  display: inline-flex; justify-content: center; align-items: center;
  padding: 13px 18px;
  font-size: 14.5px; font-weight: 600;
  border-radius: var(--r-button);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--hair);
}
.price-card.featured .price-cta {
  background: var(--grad-primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 12px 30px -10px rgba(107, 91, 255, .55);
}

/* ---------- Privacy / trust section ---------- */
.trust {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-hero);
  padding: clamp(28px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}
.trust .row {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 24px;
}
.trust-item h4 { font-size: 1rem; margin-bottom: 6px; }
.trust-item p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.5; }
.trust-item .tick {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: inline-grid; place-items: center;
  background: var(--success-bg);
  color: var(--success);
  margin-bottom: 12px;
}
.trust-item .tick svg { width: 16px; height: 16px; }

/* ---------- Comparison table (vs SaaS) ---------- */
.compare {
  overflow-x: auto;
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  background: var(--card);
}
.compare table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
}
.compare th {
  font-weight: 600;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.compare td.cell-us { color: var(--ink); }
.compare td.cell-them { color: var(--ink-3); }
.compare .yes { color: var(--success); font-weight: 600; }
.compare .no { color: var(--ink-3); }
.compare tr:last-child td { border-bottom: none; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; margin-top: 32px; }
.faq {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  padding: 4px 6px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--ink-3);
  font-weight: 300;
  transition: transform .2s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq-body {
  padding: 0 20px 20px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--hair);
  padding-block: 60px 40px;
  margin-top: 80px;
  background: var(--surface);
}
footer .container {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  footer .container { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
footer h5 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
  font-weight: 700;
}
footer a {
  display: block;
  padding: 5px 0;
  color: var(--ink-2);
  font-size: 14px;
}
footer a:hover { color: var(--ink); }
.footer-brand p {
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 12px;
  max-width: 32ch;
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-size: 13px; color: var(--ink-3);
}

/* ============================================================
   PHONE MOCKUPS
   ============================================================ */
.phone {
  --phone-w: 320px;
  --phone-h: 660px;
  width: var(--phone-w);
  height: var(--phone-h);
  border-radius: 46px;
  position: relative;
  background: #0E0E10;
  padding: 8px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .1) inset,
    0 0 0 1px rgba(0, 0, 0, .25),
    var(--shadow-pop);
  margin-inline: auto;
  flex-shrink: 0;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  background: var(--bg);
  isolation: isolate;
}
.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 28px;
  background: #0E0E10;
  border-radius: 18px;
  z-index: 30;
}
.phone-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 30% 20%, rgba(232, 222, 255, .55) 0%, transparent 55%),
              radial-gradient(circle at 75% 15%, rgba(255, 224, 204, .45) 0%, transparent 55%);
  filter: blur(35px);
  z-index: -1;
}
.phone-shadow {
  position: absolute;
  bottom: -32px;
  left: 10%;
  right: 10%;
  height: 60px;
  background: radial-gradient(ellipse at center, rgba(14, 14, 16, .35) 0%, transparent 70%);
  filter: blur(20px);
  z-index: -1;
}

/* Real screenshot variant — hide the synthetic notch (the screenshot's
   own status bar takes its place) and full-bleed the image. */
.phone-real .phone-notch { display: none; }
.phone-real .phone-screen { background: transparent; }
.phone-real .phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Screen content shared */
.statusbar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px 0 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.statusbar-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.statusbar-icons svg { width: 16px; height: 11px; fill: var(--ink); }
.statusbar-icons .battery {
  width: 25px; height: 12px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  position: relative;
  display: inline-block;
}
.statusbar-icons .battery::after {
  content: "";
  position: absolute;
  top: 3px; right: -3px;
  width: 2px; height: 4px;
  background: var(--ink);
  border-radius: 0 1px 1px 0;
}
.statusbar-icons .battery::before {
  content: "";
  position: absolute;
  inset: 2px;
  width: 16px;
  background: var(--ink);
  border-radius: 1px;
}

.appbar {
  padding: 8px 20px 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.appbar .appbar-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 640;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.1;
}
.appbar .appbar-eyebrow {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.appbar .iconbtn {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--surface);
  display: inline-grid; place-items: center;
  color: var(--ink);
  font-size: 17px;
}

.app-content {
  padding: 0 16px 18px;
  display: grid;
  gap: 14px;
}

/* Hero timer card */
.hero-card {
  border-radius: var(--r-hero);
  padding: 18px;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-card .live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: white;
  padding: 5px 11px 5px 9px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  box-shadow: 0 6px 16px -6px rgba(107, 91, 255, .5);
}
.heartbeat-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: white;
  animation: heartbeat 2.4s ease-in-out infinite;
}
.heartbeat-dot::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  animation: heartbeat-halo 2.4s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); opacity: 1; }
  20% { transform: scale(1.25); opacity: .85; }
  40% { transform: scale(.95); opacity: 1; }
  60% { transform: scale(1.15); opacity: .9; }
}
@keyframes heartbeat-halo {
  0% { transform: scale(.8); opacity: .6; }
  100% { transform: scale(2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .heartbeat-dot, .heartbeat-dot::before { animation: none; }
}

.hero-card .timer-big {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 660;
  letter-spacing: -0.035em;
  margin: 14px 0 4px;
  color: #1a1830;
  font-variant-numeric: tabular-nums;
}
.hero-card .timer-meta {
  font-size: 13px;
  color: #2c2950;
  margin-bottom: 16px;
}
.hero-card .timer-meta strong { font-weight: 600; }
.hero-btns { display: flex; gap: 8px; }
.btn-pause {
  flex: 1;
  padding: 12px;
  background: rgba(255, 255, 255, .9);
  border: none;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1830;
  letter-spacing: -0.01em;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.btn-stop {
  flex: 1;
  padding: 12px;
  background: #1a1830;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Row list (clients / projects) */
.row-list {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  overflow: hidden;
}
.row-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  position: relative;
}
.row-item + .row-item::before {
  content: "";
  position: absolute;
  top: 0; left: 58px; right: 14px;
  height: 1px;
  background: var(--hair);
}
.row-mono {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-grid; place-items: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: color-mix(in srgb, var(--mono-c, var(--chart-1)) 14%, transparent);
  color: var(--mono-c, var(--chart-1));
  flex-shrink: 0;
}
.row-meta { flex: 1; min-width: 0; }
.row-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.row-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 1px;
}
.row-amount {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.row-amount small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
}

/* Tab bar */
.tabbar {
  position: absolute;
  bottom: 8px; left: 8px; right: 8px;
  height: 58px;
  background: color-mix(in srgb, var(--card) 85%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--hair);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
}
.tab {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.tab.active { color: var(--accent); }
.tab.active svg { fill: color-mix(in srgb, var(--accent) 14%, transparent); }
.tab .live-mini {
  position: absolute;
  top: 4px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--live);
  margin-left: 16px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 30%, transparent);
}

/* Mockup variants */
.mockup-reports .hero-card { background: var(--grad-submit); }

/* Reports — revenue card */
.revenue-card {
  border-radius: var(--r-hero);
  padding: 18px;
  background: var(--grad-hero);
  position: relative;
}
.revenue-card .label {
  font-size: 11px;
  color: #2c2950;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.revenue-card .amount {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 660;
  letter-spacing: -0.035em;
  color: #1a1830;
  margin: 8px 0 4px;
  font-variant-numeric: tabular-nums;
}
.revenue-card .delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, .8);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
}

/* Pie chart */
.pie-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: center;
}
.legend { display: grid; gap: 6px; font-size: 11.5px; }
.legend .leg {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 8px;
  align-items: center;
  color: var(--ink-2);
}
.legend .swatch {
  width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--chart-1));
}
.legend strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Bar chart */
.bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: end;
  height: 110px;
  padding: 8px 4px 0;
  border-top: 1px solid var(--hair);
}
.bar {
  background: var(--accent);
  border-radius: 5px 5px 0 0;
  position: relative;
  background: linear-gradient(180deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 70%, white) 100%);
}
.bar.faint { background: color-mix(in srgb, var(--accent) 28%, transparent); }
.bars-meta {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  font-size: 9.5px;
  color: var(--ink-3);
  text-align: center;
  margin-top: 4px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Timesheet month grid */
.month-card { padding: 14px; }
.month-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.month-header h4 { font-size: 13px; }
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.month-day {
  aspect-ratio: 1;
  background: var(--surface);
  border-radius: 6px;
  position: relative;
  padding: 4px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink-3);
  display: flex; flex-direction: column;
  justify-content: space-between;
}
.month-day.filled { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--ink); }
.month-day.full   { background: color-mix(in srgb, var(--accent) 28%, transparent); color: var(--ink); }
.month-day.today  {
  background: var(--accent); color: white;
  box-shadow: 0 6px 14px -6px rgba(107, 91, 255, .5);
}
.month-day .h { font-size: 8px; font-weight: 500; opacity: .7; }
.month-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-3);
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}

/* Expense card */
.expense-card { padding: 14px; }
.expense-row {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px solid var(--hair);
}
.expense-row:last-child { border-bottom: none; }
.expense-thumb {
  width: 50px; height: 50px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FFE0CC 0%, #E8DEFF 100%);
  position: relative;
  overflow: hidden;
}
.expense-thumb.t-2 { background: linear-gradient(135deg, #D4F0E2 0%, #E8DEFF 100%); }
.expense-thumb.t-3 { background: linear-gradient(135deg, #FFE0CC 0%, #FB7185 90%); opacity: .9; }
.expense-thumb::before {
  content: "";
  position: absolute;
  inset: 30% 25% 25% 25%;
  background: rgba(255, 255, 255, .6);
  border-radius: 3px;
}
.expense-thumb::after {
  content: "";
  position: absolute;
  bottom: 14%;
  left: 30%;
  width: 40%;
  height: 8%;
  background: rgba(14, 14, 16, .2);
  border-radius: 1px;
}
.expense-info .title { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -0.015em; }
.expense-info .sub { font-size: 11px; color: var(--ink-3); }
.expense-amount { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Hierarchy picker chips */
.hierarchy-chips {
  display: flex; flex-direction: column; gap: 6px;
}
.hierarchy-chip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 12px;
  font-size: 13px;
}
.hierarchy-chip.lvl-2 { margin-left: 16px; background: var(--surface); }
.hierarchy-chip.lvl-3 { margin-left: 32px; background: var(--surface); }
.hierarchy-chip .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c, var(--chart-1));
}
.hierarchy-chip .rate { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hierarchy-chip .rate strong { color: var(--ink); font-weight: 600; }

/* ---------- Tip box ---------- */
.tip {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 22px;
  border-left: 3px solid var(--accent);
  display: grid;
  gap: 8px;
}
.tip .tip-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.tip h4 { font-size: 17px; margin: 0; letter-spacing: -0.015em; }
.tip p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* ---------- Workflow timeline ---------- */
.timeline {
  display: grid;
  gap: 0;
  position: relative;
  margin-top: 32px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 20px 0;
  position: relative;
}
.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 50px; bottom: -20px; left: 24px;
  width: 1.5px;
  background: var(--hair);
}
.timeline-num {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: inline-grid; place-items: center;
  background: var(--card);
  border: 1px solid var(--hair);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 660;
  color: var(--accent);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.timeline-item h4 { font-size: 17px; margin-bottom: 4px; }
.timeline-item p { color: var(--ink-2); font-size: 14.5px; margin: 0; }

/* ---------- Banner / persona hero ---------- */
.persona-hero {
  position: relative;
  padding-block: clamp(56px, 7vw, 96px);
  overflow: hidden;
  isolation: isolate;
}
.persona-hero .container { position: relative; z-index: 2; }
.persona-hero .grid {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 980px) {
  .persona-hero .grid { grid-template-columns: 1.1fr 1fr; }
}
.persona-hero h1 { max-width: 16ch; margin: 16px 0 18px; }
.persona-hero .lead { max-width: 44ch; }

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 18px;
  width: fit-content;
}
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--ink); }
.crumb svg { width: 12px; height: 12px; stroke: currentColor; }

/* ---------- Quote ---------- */
.quote {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--r-hero);
  padding: clamp(28px, 4vw, 48px);
  position: relative;
}
.quote::before {
  content: "“";
  position: absolute;
  top: -10px; left: 24px;
  font-size: 90px;
  font-family: Georgia, serif;
  color: var(--accent);
  opacity: .3;
  line-height: 1;
}
.quote p {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.45;
}
.quote .attr {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}

/* ---------- Cross-personas footer block ---------- */
.cross-personas {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 28px;
}
.cross-persona {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--hair);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex; align-items: center; gap: 10px;
  transition: transform .15s ease, border-color .15s ease;
}
.cross-persona:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--hair));
}
.cross-persona .ico {
  width: 26px; height: 26px;
  background: var(--surface);
  border-radius: 8px;
  display: inline-grid; place-items: center;
  color: var(--ink-3);
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.gap-tight { gap: 6px; }
.max-w-prose { max-width: 60ch; }
.muted { color: var(--ink-3); }
.center { display: flex; justify-content: center; align-items: center; }

/* Tabular numerals throughout for time/money */
.num { font-variant-numeric: tabular-nums; }

/* Section header pattern */
.section-head {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--ink-3); font-size: 1.05rem; margin: 0; }

/* Fade-in on scroll (progressive enhancement) */
.fade-in {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switcher {
  position: relative;
  margin-right: 4px;
  display: none;
}
@media (min-width: 760px) {
  .lang-switcher { display: inline-block; }
}
.lang-switcher summary {
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--hair);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}
.lang-switcher summary::-webkit-details-marker { display: none; }
.lang-switcher summary::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
}
.lang-switcher[open] summary::after { transform: rotate(-135deg); }
.lang-switcher .dd-panel {
  min-width: 200px;
  right: 0;
  left: auto;
  transform: none;
}
.lang-switcher .dd-panel a {
  padding: 8px 12px;
  font-size: 14px;
}

/* ============================================================
   RTL SUPPORT (Arabic)
   ============================================================ */
html[dir="rtl"] body {
  /* Use a font stack that has good Arabic coverage */
  font-family: -apple-system, "SF Arabic", "Geeza Pro", "Tahoma", "Arial", system-ui, sans-serif;
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 {
  font-family: -apple-system, "SF Arabic Rounded", "SF Arabic", "Geeza Pro", system-ui, sans-serif;
  letter-spacing: 0; /* tight Latin tracking doesn't help Arabic */
  line-height: 1.25;
}

/* Mirror crumb arrow */
html[dir="rtl"] .crumb svg { transform: scaleX(-1); }
html[dir="rtl"] .persona-arrow { transform: scaleX(-1); }
html[dir="rtl"] .persona:hover .persona-arrow { transform: scaleX(-1) translateX(3px); }

/* Hierarchy chips indent — flip margin-left to margin-right */
html[dir="rtl"] .hierarchy-chip.lvl-2 { margin-left: 0; margin-right: 16px; }
html[dir="rtl"] .hierarchy-chip.lvl-3 { margin-left: 0; margin-right: 32px; }

/* Tip box — flip left border to right border */
html[dir="rtl"] .tip { border-left: none; border-right: 3px solid var(--accent); }

/* Trust bar tick icons inline gap stays the same but flex direction handled by default RTL */
html[dir="rtl"] .nav-links { margin-right: 12px; margin-left: 0; }

/* Lang switcher panel placement on RTL */
html[dir="rtl"] .lang-switcher .dd-panel {
  left: 0;
  right: auto;
}

/* Compare table — keep visual left-to-right reading for the data but allow Arabic text */
html[dir="rtl"] .compare table { direction: rtl; }
html[dir="rtl"] .compare th,
html[dir="rtl"] .compare td { text-align: right; }

/* Phone mockups keep their natural LTR layout — Arabic UI in iOS mirrors but
   for a single-screen marketing illustration we leave the status-bar order
   and timer cards LTR. Force LTR on the phone screens. */
html[dir="rtl"] .phone-screen,
html[dir="rtl"] .row-list,
html[dir="rtl"] .hero-card,
html[dir="rtl"] .revenue-card,
html[dir="rtl"] .month-card,
html[dir="rtl"] .pie-card,
html[dir="rtl"] .bars,
html[dir="rtl"] .bars-meta,
html[dir="rtl"] .legend,
html[dir="rtl"] .tabbar { direction: ltr; }

/* But internal text in phone mockups can still be Arabic — wrap text in
   <span dir="rtl"> if you want explicit RTL inside a tile. */

/* ============================================================
   COMPLIANCE STAMPS (footer)
   ============================================================ */
.compliance-stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--hair);
}
.compliance-stamps-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  width: 100%;
  margin: 0 0 4px;
}
.compliance-stamp {
  display: block;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid color-mix(in srgb, #2D3F5C 14%, var(--hair));
  box-shadow: 0 1px 2px rgba(45, 63, 92, .05);
  color: #2D3F5C;  /* slate-blue, drives currentColor inside the SVG */
  transition: transform .2s ease, border-color .2s ease;
}
@media (prefers-color-scheme: dark) {
  .compliance-stamp {
    color: #B8C4D9;
    border-color: color-mix(in srgb, #B8C4D9 14%, var(--hair));
  }
}
.compliance-stamp:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, #2D3F5C 30%, var(--hair));
}
.compliance-stamp svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* CJK fine-tuning */
html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3,
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 {
  letter-spacing: 0;
  line-height: 1.25;
  font-weight: 700;
}
html[lang="zh"] body, html[lang="ja"] body {
  letter-spacing: 0;
}
