/* Alo Saigon — site styles. Alô Saigon brand tokens (navy #0F2A44, orange #FD6800/#EA580C, off-white #FAF7F2); tone colours mirror the app. */

:root {
  color-scheme: light dark;
  --bg: #faf7f2;
  --bg-glow-1: rgba(253, 104, 0, 0.08);
  --bg-glow-2: rgba(15, 42, 68, 0.06);
  --card: #ffffff;
  --surface: #f1ece3;
  --text: #13233a;
  --muted: #5b6675;
  --border: #e8e1d6;
  --border-strong: #d5ccbe;
  --primary: #0f2a44;
  --on-primary: #ffffff;
  --primary-soft: #e6ecf3;
  --jade-text: #0f2a44;
  --lotus: #ea580c;
  --lotus-bg: #fdebdd;
  --lotus-text: #9a3412;
  --saffron: #c2410c;
  --saffron-bg: #fef3c7;
  --saffron-text: #854d0e;
  --hero-from: #0b2138;
  --hero-to: #15395f;
  --glow: #fd6800;
  --bezel: #0b1413;
  --bezel-edge: transparent;
  --shadow: 0 1px 2px rgba(11, 36, 32, 0.05), 0 10px 30px -12px rgba(11, 36, 32, 0.16);
  --phone-shadow: 0 34px 60px -24px rgba(11, 36, 32, 0.5);
  --cta-shadow: 0 6px 14px rgba(15, 42, 68, 0.25);
  /* Tone colours (stroke / readable text) */
  --t-ngang: #4b6b8a;
  --t-ngang-text: #4b6b8a;
  --t-huyen: #5b4fc4;
  --t-huyen-text: #5b4fc4;
  --t-sac: #d97706;
  --t-sac-text: #a35a00;
  --t-hoi: #c2416c;
  --t-hoi-text: #b83a64;
  --t-nang: #b42318;
  --t-nang-text: #b42318;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 32px);
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1626;
    --bg-glow-1: rgba(253, 104, 0, 0.10);
    --bg-glow-2: rgba(156, 195, 238, 0.05);
    --card: #12223a;
    --surface: #172a44;
    --text: #f3efe8;
    --muted: #a7b3c2;
    --border: #1e3350;
    --border-strong: #2a4364;
    --primary: #fd6800;
    --on-primary: #0b1626;
    --primary-soft: #1c3352;
    --jade-text: #bfd3ea;
    --lotus: #fb923c;
    --lotus-bg: #3a1f10;
    --lotus-text: #fdba74;
    --saffron: #fdba74;
    --saffron-bg: #3a2410;
    --saffron-text: #fcd34d;
    --hero-from: #0e2440;
    --hero-to: #173d66;
    --glow: #fd6800;
    --bezel: #050c0b;
    --bezel-edge: #2f4440;
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.02);
    --phone-shadow: 0 34px 60px -24px rgba(0, 0, 0, 0.8);
    --cta-shadow: 0 6px 14px rgba(253, 104, 0, 0.25);
    --t-ngang: #8fb0d0;
    --t-ngang-text: #8fb0d0;
    --t-huyen: #a79bff;
    --t-huyen-text: #a79bff;
    --t-sac: #fbbf24;
    --t-sac-text: #fbbf24;
    --t-hoi: #f58fb0;
    --t-hoi-text: #f58fb0;
    --t-nang: #ff7b72;
    --t-nang-text: #ff7b72;
  }
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(900px 520px at 88% -120px, var(--bg-glow-1), transparent 70%),
    radial-gradient(700px 420px at -10% 0, var(--bg-glow-2), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3 {
  font-weight: 600;
  /* >= 1.2 so stacked Vietnamese diacritics (ể, ặ, ỗ) never clip */
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
p + p {
  margin-top: 0.9em;
}
a {
  color: var(--primary);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}
[lang="vi"] {
  font-weight: 600;
}
.wrap {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
}
.skip:focus {
  top: 12px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- header ---------- */
.site-head {
  padding-block: 18px;
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand img {
  display: block;
  width: auto;
  height: 40px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 12px;
}
.nav a:not(.btn):hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
}
@media (max-width: 559px) {
  .nav .nav-link {
    display: none;
  }
}
@media (max-width: 479px) {
  .actions .btn {
    width: 100%;
  }
}

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  font: inherit;
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--cta-shadow);
}
.btn-ghost {
  color: var(--text);
  border-color: var(--border-strong);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--surface);
}
.btn-small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.95rem;
  border-radius: 14px;
}
.btn-light {
  background: #ffffff;
  color: #0b4f4a;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--jade-text);
  font-size: 0.875rem;
  font-weight: 500;
}
.chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- hero ---------- */
.hero {
  padding-block: clamp(24px, 5vw, 64px) clamp(48px, 8vw, 96px);
}
.hero .wrap {
  display: grid;
  gap: clamp(36px, 6vw, 64px);
  align-items: center;
}
@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1.05fr 1fr;
  }
}
.hero h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);
  margin-top: 18px;
  letter-spacing: -0.03em;
}
.hero .lead {
  margin-top: 18px;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--muted);
  max-width: 34em;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.install-note {
  margin-top: 16px;
  max-width: 36em;
  font-size: 0.9375rem;
  color: var(--muted);
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--saffron-bg);
  border: 1px solid var(--border);
}
.install-note strong {
  color: var(--text);
  font-weight: 600;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9375rem;
}
.facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.facts svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-badge {
  display: block;
  width: clamp(80px, 18vw, 112px);
  height: auto;
  margin: 0 0 22px;
  border-radius: 22%;
  box-shadow: 0 1px 2px rgba(15, 42, 68, 0.08), 0 14px 28px -12px rgba(15, 42, 68, 0.35);
}

/* The jade panel with two phones (like the app's hero card: 135° jade gradient + lotus glow). */
.stage {
  position: relative;
  border-radius: 32px;
  padding: clamp(22px, 4vw, 40px) clamp(14px, 3vw, 32px);
  background: radial-gradient(360px 260px at 92% 0%, rgba(243, 154, 180, 0.55), transparent 70%),
    linear-gradient(135deg, var(--hero-from), var(--hero-to));
  overflow: hidden;
  isolation: isolate;
}
.stage .ribbon {
  position: absolute;
  inset: auto -4% 8% -4%;
  width: 108%;
  height: auto;
  z-index: -1;
  opacity: 0.9;
}
.ribbon .glow {
  stroke: #fbbf24;
  stroke-width: 18;
  opacity: 0.35;
  fill: none;
  filter: url(#blur);
}
.ribbon .core {
  stroke: #fff4d6;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
}
.ribbon .dot {
  fill: #ffffff;
}
.phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(10px, 3vw, 22px);
}
.phone {
  flex: 0 1 260px;
  min-width: 0;
  border-radius: clamp(24px, 6vw, 38px);
  padding: clamp(4px, 1.1vw, 7px);
  background: var(--bezel);
  box-shadow: var(--phone-shadow), 0 0 0 1px var(--bezel-edge);
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: clamp(20px, 5vw, 31px);
}
.stage .phone:nth-child(1) {
  margin-bottom: 9%;
}
.stage .phone:nth-child(2) {
  margin-top: 9%;
}

/* ---------- tone strip ---------- */
.tone-strip {
  padding-block: 8px clamp(16px, 3vw, 32px);
}
.tone-strip .wrap > p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}
.tones {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(6px, 1.6vw, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.tone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: clamp(12px, 2.6vw, 20px) 4px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  min-width: 0;
}
.tone svg {
  width: clamp(36px, 9vw, 56px);
  height: auto;
  overflow: visible;
}
.tone .guide {
  stroke: var(--border-strong);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}
.tone .curve {
  fill: none;
  stroke: var(--tc);
  stroke-width: 2.6;
  stroke-linecap: round;
}
.tone .pt {
  fill: var(--tc);
}
.tone .name {
  font-weight: 600;
  font-size: clamp(0.8125rem, 0.7rem + 0.6vw, 1.0625rem);
  color: var(--tt);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.tone .sample {
  font-size: clamp(0.8125rem, 0.75rem + 0.4vw, 0.9375rem);
  color: var(--muted);
  font-weight: 500;
}
.tone .en {
  display: none;
  font-size: 0.875rem;
  color: var(--muted);
}
@media (min-width: 720px) {
  .tone .en {
    display: block;
  }
}
.t-ngang {
  --tc: var(--t-ngang);
  --tt: var(--t-ngang-text);
}
.t-huyen {
  --tc: var(--t-huyen);
  --tt: var(--t-huyen-text);
}
.t-sac {
  --tc: var(--t-sac);
  --tt: var(--t-sac-text);
}
.t-hoi {
  --tc: var(--t-hoi);
  --tt: var(--t-hoi-text);
}
.t-nang {
  --tc: var(--t-nang);
  --tt: var(--t-nang-text);
}

/* ---------- feature sections ---------- */
.section {
  padding-block: clamp(56px, 9vw, 112px);
}
.section + .section {
  border-top: 1px solid var(--border);
}
.feature {
  display: grid;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 900px) {
  .feature {
    grid-template-columns: 1fr 1fr;
  }
  .feature.flip .copy {
    order: 2;
  }
}
.overline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tt, var(--jade-text));
  margin-bottom: 14px;
}
.overline svg {
  width: 30px;
  height: auto;
  overflow: visible;
}
.overline .curve {
  fill: none;
  stroke: var(--tc);
  stroke-width: 3;
  stroke-linecap: round;
}
.overline .pt {
  fill: var(--tc);
}
.copy h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.625rem);
}
.copy > p {
  margin-top: 16px;
  color: var(--muted);
  max-width: 36em;
}
.copy > p strong {
  color: var(--text);
  font-weight: 600;
}
.points {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}
.points li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}
.points .ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--jade-text);
}
.points .ico.lotus {
  background: var(--lotus-bg);
  color: var(--lotus-text);
}
.points .ico.saffron {
  background: var(--saffron-bg);
  color: var(--saffron-text);
}
.points .ico svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.points h3 {
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.points p {
  color: var(--muted);
  font-size: 0.975rem;
  margin-top: 2px;
}
.shots {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(12px, 3vw, 24px);
}
.shots .phone {
  flex-basis: 250px;
}
.shots .phone:nth-child(2) {
  margin-top: 12%;
}
.shots figcaption,
.caption {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}
.shots figure {
  margin: 0;
  flex: 0 1 250px;
  min-width: 0;
}
.shots figure .phone {
  width: 100%;
}
.shots figure:nth-child(2) {
  margin-top: 12%;
}

/* Southern vs northern table */
.pairs {
  width: 100%;
  margin-top: 28px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 0.975rem;
}
.pairs caption {
  text-align: left;
  font-size: 0.875rem;
  color: var(--muted);
  /* indent clears the table's rounded top-left corner (overflow: hidden clips the caption there) */
  padding: 0 0 10px 14px;
  caption-side: top;
}
.pairs th,
.pairs td {
  padding: 12px clamp(10px, 2.4vw, 18px);
  text-align: left;
  vertical-align: baseline;
  border-bottom: 1px solid var(--border);
}
.pairs tr:last-child td {
  border-bottom: 0;
}
.pairs thead th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
}
.pairs .south {
  font-size: 1.1875rem;
  color: var(--text);
  white-space: nowrap;
}
.pairs .north {
  color: var(--muted);
  font-weight: 500;
}
.pairs .en {
  color: var(--muted);
}
.pairs thead .south-h {
  color: var(--jade-text);
}

.example {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.example q {
  quotes: none;
  display: inline-flex;
  flex-direction: column;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--lotus-bg);
  color: var(--lotus-text);
  font-size: 1.0625rem;
  line-height: 1.35;
}
.example q small {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  opacity: 0.75;
}

/* Private by design cards */
.cards {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}
@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card .ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--jade-text);
  margin-bottom: 14px;
}
.card .ico svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  font-size: 1.125rem;
}
.card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.975rem;
}
.center-head {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}
.center-head .overline {
  justify-content: center;
}
.center-head h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.625rem);
}
.center-head p {
  margin-top: 16px;
  color: var(--muted);
}
.more {
  margin-top: 26px;
  text-align: center;
}

/* ---------- beta CTA ---------- */
.beta {
  padding-block: clamp(24px, 5vw, 56px) clamp(56px, 9vw, 112px);
}
.beta-panel {
  position: relative;
  border-radius: 32px;
  padding: clamp(28px, 6vw, 64px);
  color: #ffffff;
  background: radial-gradient(420px 300px at 100% 0%, rgba(243, 154, 180, 0.5), transparent 70%),
    linear-gradient(135deg, var(--hero-from), var(--hero-to));
  overflow: hidden;
  display: grid;
  gap: 28px;
}
@media (min-width: 900px) {
  .beta-panel {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}
.beta-panel h2 {
  font-size: clamp(1.875rem, 1.3rem + 2.4vw, 2.75rem);
}
.beta-panel p {
  color: #d4efea;
  margin-top: 14px;
  max-width: 34em;
}
.beta-panel a.on-dark {
  color: #ffffff;
  font-weight: 600;
}
.beta-panel .overline {
  color: #ffebc9;
}
.mailbox {
  background: rgba(4, 28, 26, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 22px;
}
.mail-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mail-head img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.mailbox .label {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d4efea;
  font-weight: 600;
}
.email {
  display: block;
  margin: 6px 0 16px;
  font-size: clamp(1.25rem, 1rem + 1.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
  user-select: all;
  -webkit-user-select: all;
  overflow-wrap: anywhere;
}
.mailbox .btn {
  width: 100%;
}
.mailbox .hint {
  margin-top: 12px;
  font-size: 0.875rem;
  color: #d4efea;
}

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--border);
  padding-block: 36px 44px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  justify-content: space-between;
}
.site-foot .foot-cta {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
}
.foot-cta p {
  color: var(--muted);
  font-size: 1rem;
}
.foot-cta strong {
  color: var(--text);
  font-weight: 600;
}
.site-foot .brand {
  font-size: 1rem;
}
.site-foot .brand img {
  width: auto;
  height: 30px;
}
.site-foot nav [lang="vi"] {
  font-weight: inherit;
}
.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}
.site-foot nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 6px;
}
.site-foot nav a:hover {
  color: var(--text);
  text-decoration: underline;
}
.site-foot .sep {
  opacity: 0.5;
}
.foot-tones {
  display: flex;
  gap: 8px;
  align-items: center;
}
.foot-tones svg {
  width: 26px;
  height: auto;
  overflow: visible;
}
.foot-tones path {
  fill: none;
  stroke: var(--tc);
  stroke-width: 3;
  stroke-linecap: round;
}
.foot-tones circle {
  fill: var(--tc);
}

/* ---------- document pages (privacy, support, 404) ---------- */
.doc {
  padding-block: clamp(24px, 5vw, 56px) clamp(56px, 9vw, 96px);
}
.doc .wrap {
  max-width: 800px;
}
.doc h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  letter-spacing: -0.03em;
}
.doc .meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.doc .intro {
  margin-top: 18px;
  font-size: 1.125rem;
  color: var(--muted);
}
.doc h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.625rem);
  margin-top: 48px;
  scroll-margin-top: 20px;
}
.doc h3 {
  font-size: 1.125rem;
  margin-top: 28px;
  letter-spacing: -0.01em;
}
.doc h2 + p,
.doc h3 + p,
.doc h2 + ul,
.doc h3 + ul {
  margin-top: 12px;
}
.doc ul,
.doc ol {
  padding-left: 1.3em;
  margin: 12px 0 0;
}
.doc li + li {
  margin-top: 8px;
}
.doc li::marker {
  color: var(--primary);
}
.doc p + ul,
.doc ul + p,
.doc table + p {
  margin-top: 14px;
}
.doc strong {
  font-weight: 600;
}
.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}
.summary {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  border: 1px solid var(--border);
}
.summary h2 {
  margin-top: 0;
  font-size: 1.125rem;
  color: var(--jade-text);
}
.summary ul {
  list-style: none;
  padding: 0;
}
.summary li {
  position: relative;
  padding-left: 28px;
}
.summary li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--primary);
  border-bottom: 2.5px solid var(--primary);
  transform: rotate(-45deg);
}
.toc {
  margin-top: 28px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.toc p {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ol {
  columns: 2 14em;
  column-gap: 24px;
  font-size: 0.975rem;
}
.toc li {
  break-inside: avoid;
}
.toc li + li {
  margin-top: 4px;
}
.data-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.data-table th,
.data-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  font-weight: 600;
  width: 34%;
}
.data-table td {
  color: var(--muted);
}
.data-table tr:last-child th,
.data-table tr:last-child td {
  border-bottom: 0;
}
@media (max-width: 520px) {
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
  }
  .data-table th {
    border-bottom: 0;
    padding-bottom: 0;
  }
}
.note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--saffron-bg);
  color: var(--saffron-text);
  font-size: 0.95rem;
}
.contact-card {
  margin-top: 24px;
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
@media (min-width: 640px) {
  .contact-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.contact-card .email {
  color: var(--text);
  margin: 2px 0 0;
  font-size: clamp(1.125rem, 1rem + 0.8vw, 1.375rem);
}
.contact-card .label {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}

/* how-to with a screenshot */
.howto {
  display: grid;
  gap: 28px;
  margin-top: 20px;
  align-items: start;
}
@media (min-width: 720px) {
  .howto {
    grid-template-columns: 1fr 260px;
  }
}
.howto .phone {
  max-width: 260px;
  margin-inline: auto;
  border-radius: 30px;
}
.howto .phone img {
  border-radius: 24px;
}
.inline-icon {
  display: inline-block;
  vertical-align: -0.2em;
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* FAQ */
.faq {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0 18px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 32px 16px 0;
  font-weight: 600;
  position: relative;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq details > :not(summary) {
  color: var(--muted);
}
.faq details > :last-child {
  padding-bottom: 18px;
}
.faq details ol,
.faq details ul {
  margin-top: 0;
}
.faq details p + ol,
.faq details p + ul {
  margin-top: 8px;
}

/* 404 */
.lost {
  text-align: center;
  padding-block: clamp(48px, 12vw, 120px);
}
.lost .wrap {
  max-width: 640px;
}
.lost svg {
  width: 140px;
  margin: 0 auto 18px;
  overflow: visible;
}
.lost .curve {
  fill: none;
  stroke: var(--tc);
  stroke-width: 2.4;
  stroke-linecap: round;
}
.lost .pt {
  fill: var(--tc);
}
.lost .guide {
  stroke: var(--border-strong);
  stroke-width: 0.8;
  stroke-dasharray: 2 3;
}
.lost h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
}
.lost p {
  margin-top: 14px;
  color: var(--muted);
}
.lost .actions {
  justify-content: center;
}
