/* Aligner Tracker site. Colours come from the app's src/theme.ts. */
:root {
  --bg: #F3F6F5;
  --surface: #FFFFFF;
  --surface-2: #EAF0EE;
  --text: #11201C;
  --muted: #5C6E69;
  --faint: #8A9B96;
  --border: #E1E9E6;
  --primary: #0B7466;
  --primary-hover: #095D52;
  --primary-soft: #DDF3EF;
  --on-primary: #FFFFFF;
  --out: #AD5215;
  --out-soft: #FCEBDD;
  --accent: #FF9A4D;
  --band: #0B3F38;
  --band-text: #E8F5F2;
  --band-muted: #A9CFC7;
  --shadow: 0 1px 2px rgba(17, 32, 28, .06), 0 12px 32px -12px rgba(17, 32, 28, .18);
  --radius: 22px;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1513;
    --surface: #13201D;
    --surface-2: #182824;
    --text: #E6EFEC;
    --muted: #9DB1AB;
    --faint: #72877F;
    --border: #22332F;
    --primary: #2FBFAB;
    --primary-hover: #52D1BF;
    --primary-soft: #133A34;
    --on-primary: #06201C;
    --out: #F09A5B;
    --out-soft: #3A2415;
    --band: #0F2E29;
    --band-text: #E6F3F0;
    --band-muted: #93BDB4;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0C1513;
  --surface: #13201D;
  --surface-2: #182824;
  --text: #E6EFEC;
  --muted: #9DB1AB;
  --faint: #72877F;
  --border: #22332F;
  --primary: #2FBFAB;
  --primary-hover: #52D1BF;
  --primary-soft: #133A34;
  --on-primary: #06201C;
  --out: #F09A5B;
  --out-soft: #3A2415;
  --band: #0F2E29;
  --band-text: #E6F3F0;
  --band-muted: #93BDB4;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 18px; letter-spacing: -.3px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand:hover { color: var(--text); }
.nav-links { display: none; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s, transform .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--faint); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

.play-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #0E1412; color: #fff; text-decoration: none;
  padding: 9px 20px 9px 16px; border-radius: 14px; border: 1px solid #2A3431;
  min-height: 56px; transition: transform .15s, background .15s;
}
.play-badge:hover { color: #fff; background: #1A2320; }
.play-badge svg { width: 26px; height: 26px; flex: none; }
.play-badge small { display: block; font-size: 11px; letter-spacing: .4px; text-transform: uppercase; opacity: .8; line-height: 1.2; }
.play-badge strong { display: block; font-size: 18px; line-height: 1.2; font-weight: 700; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 48px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 auto 0; height: 640px; z-index: -1;
  background:
    radial-gradient(600px 360px at 85% 20%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 70%),
    radial-gradient(420px 280px at 10% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; } .hero { padding: 72px 0 104px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  font-size: 14px; font-weight: 600;
  padding: 5px 16px 5px 5px; border-radius: 999px;
}
.eyebrow .tag {
  background: var(--primary); color: var(--on-primary);
  font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.eyebrow svg { width: 18px; height: 18px; color: #3DDC84; flex: none; margin-right: -4px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.hero h1 { font-size: clamp(38px, 7vw, 64px); font-weight: 800; margin-top: 18px; }
.hero h1 .hl { color: var(--primary); }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); margin: 20px 0 0; max-width: 36ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 32px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; font-weight: 600; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--primary); flex: none; }

/* ---------- Phone mockup (mirrors the app's Today screen) ---------- */
.phone-stage { display: flex; justify-content: center; position: relative; }
.phone {
  width: 300px; max-width: 100%; border-radius: 44px; padding: 12px;
  background: #0E1412; box-shadow: 0 40px 80px -30px rgba(11, 60, 52, .55), 0 0 0 1px #2A3431 inset;
  position: relative;
}
.screen { background: #F3F6F5; color: #11201C; border-radius: 34px; overflow: hidden; padding: 30px 14px 16px; font-size: 13px; line-height: 1.35; }
.notch { position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 84px; height: 22px; background: #0E1412; border-radius: 999px; }
.s-date { font-weight: 700; color: #5C6E69; font-size: 12px; margin: 4px 4px 10px; }
.s-card { background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 1px 2px rgba(17,32,28,.06); }
.s-hero { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ring { position: relative; width: 168px; height: 168px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: #E1E9E6; }
.ring .bar { stroke: #0B7466; stroke-dasharray: 0 100; animation: fill 1.6s cubic-bezier(.2,.7,.2,1) .3s forwards; }
@keyframes fill { to { stroke-dasharray: 94.3 100; } }
@media (prefers-reduced-motion: reduce) { .ring .bar { animation: none; stroke-dasharray: 94.3 100; } }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-val { font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.ring-sub { color: #5C6E69; font-size: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: #DDF3EF; color: #0B7466; font-weight: 700; font-size: 12px; padding: 6px 12px; border-radius: 999px; }
.pill svg { width: 13px; height: 13px; }
.s-btn { width: 100%; background: #AD5215; color: #fff; border-radius: 999px; text-align: center; font-weight: 700; padding: 11px; font-size: 14px; }
.s-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.s-stat { background: #fff; border-radius: 14px; padding: 10px 8px; text-align: center; }
.s-stat b { display: block; font-size: 15px; }
.s-stat span { color: #5C6E69; font-size: 10.5px; }
.s-tray { margin-top: 10px; display: flex; gap: 10px; align-items: center; }
.s-badge { width: 34px; height: 34px; border-radius: 10px; background: #DDF3EF; color: #0B7466; font-weight: 800; display: grid; place-items: center; flex: none; }
.s-tray-body { flex: 1; min-width: 0; }
.s-tray-body b { font-size: 14px; }
.s-tray-body b span { color: #5C6E69; font-weight: 600; }
.s-meta { color: #5C6E69; font-size: 11.5px; }
.s-bar { height: 6px; background: #E1E9E6; border-radius: 99px; margin-top: 6px; overflow: hidden; }
.s-bar i { display: block; height: 100%; width: 64%; background: #0B7466; border-radius: 99px; }

.float-note {
  position: absolute; background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow);
  display: flex; gap: 10px; align-items: center; font-size: 13px; line-height: 1.3; max-width: 230px;
}
.float-note .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float-note .ic svg { width: 18px; height: 18px; }
.float-note b { display: block; font-size: 13.5px; }
.float-note span { color: var(--muted); }
.note-1 { top: 64px; left: -8px; }
.note-1 .ic { background: var(--out-soft); color: var(--out); }
.note-2 { bottom: 70px; right: -8px; }
.note-2 .ic { background: var(--primary-soft); color: var(--primary); }
@media (max-width: 520px) { .float-note { display: none; } }
@media (min-width: 900px) { .note-1 { left: -36px; } .note-2 { right: -24px; } }

/* ---------- Sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { color: var(--primary); font-weight: 800; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; }
.section h2 { font-size: clamp(30px, 4.6vw, 44px); font-weight: 800; margin-top: 10px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 16px 0 0; }

/* Steps */
.steps { display: grid; gap: 16px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; }
.step-num {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary); font-weight: 800; font-size: 18px;
}
.step h3 { font-size: 20px; margin-top: 18px; }
.step p { color: var(--muted); margin: 8px 0 0; font-size: 16px; }

/* Features */
.features { display: grid; gap: 16px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.f-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.f-ic.warm { background: var(--out-soft); color: var(--out); }
.f-ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 19px; margin-top: 18px; }
.feature p { color: var(--muted); margin: 8px 0 0; font-size: 16px; }

/* Privacy band */
.band { background: var(--band); color: var(--band-text); border-radius: 32px; padding: 48px 24px; position: relative; overflow: hidden; }
@media (min-width: 760px) { .band { padding: 72px 64px; } }
.band::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: -200px; border-radius: 50%;
  border: 64px solid rgba(255,255,255,.05);
}
.band-grid { display: grid; gap: 40px; position: relative; z-index: 1; }
@media (min-width: 900px) { .band-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; } }
.band .kicker { color: var(--accent); }
.band h2 { color: #fff; }
.band p { color: var(--band-muted); font-size: 18px; margin: 16px 0 0; }
.band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); margin-top: 28px; }
.band .btn-ghost:hover { border-color: #fff; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 14px 16px; font-weight: 600; }
.checks svg { width: 22px; height: 22px; flex: none; color: #5FE0CC; margin-top: 1px; }
.checks small { display: block; font-weight: 500; color: var(--band-muted); font-size: 14.5px; margin-top: 2px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 0 22px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 12px; flex: none;
  border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { margin: 0 0 20px; color: var(--muted); font-size: 16px; }

/* CTA */
.cta { text-align: center; }
.cta-card { background: var(--surface); border: 1px solid var(--border); border-radius: 32px; padding: 56px 24px; box-shadow: var(--shadow); }
.cta-card img { width: 80px; height: 80px; border-radius: 22px; margin: 0 auto 24px; }
.cta-card h2 { font-size: clamp(28px, 4.4vw, 40px); }
.cta-card p { color: var(--muted); font-size: 18px; margin: 14px auto 0; max-width: 46ch; }
.cta-card .hero-cta { justify-content: center; }

.disclaimer {
  display: flex; gap: 14px; align-items: flex-start; max-width: 860px; margin: 40px auto 0;
  background: var(--out-soft); color: var(--text); border-radius: 18px; padding: 18px 20px; font-size: 15px;
}
.disclaimer svg { width: 22px; height: 22px; color: var(--out); flex: none; margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; color: var(--muted); font-size: 15px; }
.foot { display: flex; flex-wrap: wrap; gap: 20px 32px; justify-content: space-between; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--text); }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 48px 0 32px; }
.legal-hero h1 { font-size: clamp(34px, 6vw, 52px); font-weight: 800; margin-top: 14px; }
.legal-hero .meta { color: var(--muted); margin-top: 12px; font-weight: 600; }
.crumbs { font-size: 14px; font-weight: 600; }
.crumbs a { text-decoration: none; }

.legal-layout { display: grid; gap: 32px; padding-bottom: 40px; }
@media (min-width: 1000px) { .legal-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; } }

.toc { display: none; }
@media (min-width: 1000px) {
  .toc { display: block; position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 8px; }
}
.toc p { font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.35; border-left: 2px solid transparent; }
.toc a:hover { background: var(--surface); color: var(--text); }
.toc a.active { color: var(--primary); background: var(--primary-soft); }

.toc-mobile { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 0 18px; }
.toc-mobile summary { cursor: pointer; padding: 14px 0; font-weight: 700; }
.toc-mobile ol { margin: 0 0 16px; padding-left: 20px; columns: 1; font-size: 15px; }
.toc-mobile li { margin: 4px 0; }
@media (min-width: 1000px) { .toc-mobile { display: none; } }

.summary-card { background: var(--primary-soft); border-radius: 20px; padding: 22px 24px; margin-bottom: 8px; }
.summary-card h2 { font-size: 18px; margin: 0 0 12px; color: var(--primary); }
.summary-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.summary-card li { display: flex; gap: 10px; font-size: 15.5px; font-weight: 600; }
.summary-card li::before { content: ""; width: 18px; height: 18px; flex: none; margin-top: 3px; background: var(--primary); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E") center / contain no-repeat; }

.prose { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 28px 20px; min-width: 0; }
@media (min-width: 640px) { .prose { padding: 40px 44px; } }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 23px; margin: 44px 0 14px; padding-top: 28px; border-top: 1px solid var(--border); scroll-margin-top: 90px; }
.prose h2:first-of-type { border-top: 0; padding-top: 0; }
.prose h3 { font-size: 18px; margin: 28px 0 10px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--primary); }
.prose strong { font-weight: 700; }
.prose .callout { background: var(--out-soft); border-radius: 16px; padding: 18px 20px; margin: 0 0 16px; }
.prose .contact { background: var(--surface-2); border-radius: 16px; padding: 18px 20px; line-height: 1.8; }
.prose a { word-break: break-word; }

.to-top { position: fixed; right: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; text-decoration: none; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: var(--on-primary); background: var(--primary-hover); }
.to-top svg { width: 22px; height: 22px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Footer credit ---------- */
.foot-id { display: grid; gap: 4px; }
.powered { font-size: 14px; }
.powered a { font-weight: 700; }

/* ---------- Blog ---------- */
.legal-main { display: grid; gap: 16px; min-width: 0; }
.post-dek { color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); margin: 14px 0 0; max-width: 60ch; }
.post-hero .meta { font-size: 15px; }
.prose ol { margin: 0 0 16px; padding-left: 24px; }
.prose ol li::marker { font-weight: 700; }
.prose .answer { background: var(--primary-soft); border-radius: 16px; padding: 18px 20px; margin: 0 0 20px; font-size: 17.5px; }
.prose .answer strong:first-child { color: var(--primary); }
.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--border); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.prose thead th { background: var(--surface-2); font-weight: 700; }
.prose tbody tr:last-child > * { border-bottom: 0; }
.prose tbody th { font-weight: 700; }

.app-card { display: flex; gap: 18px; align-items: flex-start; background: var(--band); color: var(--band-text); border-radius: 24px; padding: 24px; }
.app-card img { width: 56px; height: 56px; border-radius: 16px; flex: none; }
.app-card b { font-size: 19px; color: #fff; }
.app-card p { color: var(--band-muted); margin: 6px 0 16px; font-size: 15.5px; }
@media (max-width: 520px) { .app-card { flex-direction: column; } }

.related h2 { font-size: 22px; margin: 24px 0 14px; }
.post-grid { display: grid; gap: 14px; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) { .post-grid-lg { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid-lg { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.post-card h3 { font-size: 18px; }
.post-card p { color: var(--muted); font-size: 15px; margin: 0; flex: 1; }
.post-card span { color: var(--primary); font-weight: 700; font-size: 14.5px; }

/* ---------- Contact ---------- */
.legal-hero.center { text-align: center; }
.legal-hero.center .post-dek { margin-left: auto; margin-right: auto; }
.contact-card { display: grid; gap: 40px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 28px 20px; box-shadow: var(--shadow); max-width: 1000px; margin: 0 auto; }
@media (min-width: 640px) { .contact-card { padding: 40px 44px; } }
@media (min-width: 860px) { .contact-card { grid-template-columns: 1fr 1fr; gap: 56px; } }
.contact-card h2 { font-size: 20px; margin: 0 0 6px; }
.contact-info { display: grid; gap: 26px; align-content: start; }
.contact-info a { font-weight: 600; word-break: break-word; }
.contact-info address { font-style: normal; color: var(--muted); }
.contact-note { margin: 0; font-size: 15px; color: var(--muted); background: var(--surface-2); border-radius: 14px; padding: 14px 16px; }
.contact-form { display: grid; gap: 6px; }
.contact-form h2 { margin-bottom: 12px; }
.contact-form label { font-size: 15px; font-weight: 600; color: var(--muted); margin-top: 8px; }
.contact-form input, .contact-form textarea {
  font: inherit; font-size: 16px; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent); border-color: var(--primary); }
.contact-form .btn { margin-top: 16px; width: 100%; }
.contact-form .btn[disabled] { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 8px 0 0; font-weight: 600; font-size: 15px; min-height: 1.4em; }
.form-status.ok { color: var(--primary); }
.form-status.err { color: var(--out); }
