/* Atpin marketing site. One stylesheet for every page.
   Tokens follow mobile/DESIGN.md: warm paper, teal-ink accent, Manrope display, Inter body. */

:root {
  --paper: #F7F6F2;
  --card: #FDFCF9;
  --wash: #F2F1EC;
  --wash-2: #EDEBE5;
  --ink: #13201F;
  --ink-2: #3E4B49;
  --muted: #55605E;
  --subtle: #7D8683;
  --line: #E4E2DA;
  --line-strong: #D3D0C6;
  --teal: #0F6E66;
  --teal-deep: #0B534C;
  --teal-forest: #07332F;
  --teal-soft: #E0EEEA;
  --on-teal-soft: #0A4A44;
  --on-teal: #F3FAF8;
  --live: #7A2A22;
  --icon-accent: #0F6E66;

  --f-display: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-chip: 8px;
  --r-tile: 12px;
  --r-btn: 14px;
  --r-card: 22px;
  --r-panel: 28px;

  --shadow-float: 0 1px 2px rgba(11, 59, 54, .06), 0 12px 28px -8px rgba(11, 59, 54, .16);
  --shadow-device: 0 2px 4px rgba(11, 59, 54, .08), 0 30px 60px -18px rgba(11, 59, 54, .32);

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);

  --gutter: 16px;
  --max: 1200px;
  color-scheme: light;
}

@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-deep); }
::selection { background: #BFE0D9; color: var(--teal-forest); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; color: var(--paper); }
.ico { width: 24px; height: 24px; flex: none; color: var(--ink); }
.ph { background: #FFF3C4; color: #5C4300; padding: 0 .3em; border-radius: 4px; font-weight: 500; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 242, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease-out);
}
.site-head.scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand svg { height: 30px; width: auto; }
.nav { display: none; gap: 4px; margin-left: 8px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 10px; transition: background-color .15s, color .15s; }
.nav a:hover { background: var(--wash-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--teal); }
.head-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.head-cta .btn-ghost { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .head-cta .btn-ghost { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 20px; border-radius: var(--r-btn);
  font: 600 15px/1 var(--f-body); letter-spacing: .005em; white-space: nowrap;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .16s var(--ease-out), background-color .16s, box-shadow .16s, border-color .16s;
}
.btn:active { transform: scale(.97); }
.btn .ico { width: 20px; height: 20px; color: currentColor; --icon-accent: currentColor; }
.btn-primary { background: var(--teal); color: var(--on-teal); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 20px -10px rgba(15, 110, 102, .8); }
.btn-primary:hover { background: var(--teal-deep); color: var(--on-teal); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--card); color: var(--ink); border-color: var(--subtle); }
.btn-soft { background: var(--teal-soft); color: var(--on-teal-soft); }
.btn-soft:hover { background: #D2E7E1; color: var(--on-teal-soft); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn-lg { --h: 56px; padding: 0 26px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: 24px 48px; }
.hero-grid { display: grid; gap: 24px; align-items: center; }
.hero h1 {
  font-size: clamp(2.35rem, 1.4rem + 4.2vw, 4.6rem);
  line-height: 1.02; letter-spacing: -.035em; font-weight: 800;
  max-width: 13ch;
}
.hero h1 em { font-style: normal; color: var(--teal); }
.hero-sub { margin-top: 20px; font-size: clamp(1.05rem, .98rem + .35vw, 1.25rem); line-height: 1.5; color: var(--muted); max-width: 40ch; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; aspect-ratio: 4 / 3; margin-inline: calc(var(--gutter) * -1); }
.hero-visual .poster, .hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-visual .poster, .hero-visual canvas { -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 52%, #000 58%, transparent 100%); }
.hero-visual .poster { object-fit: cover; transition: opacity .8s var(--ease-out); }
.hero-visual canvas { opacity: 0; transition: opacity .9s var(--ease-out); touch-action: pan-y; }
.hero-visual.is-3d canvas { opacity: 1; }
.hero-visual.is-3d .poster { opacity: 0; }
.phone.hero-phone { position: absolute; right: 4%; bottom: -6%; width: 34%; max-width: 230px; z-index: 2; }
@media (min-width: 960px) {
  .hero { padding-block: 24px 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; }
  .hero-visual { margin-inline: 0 calc(var(--gutter) * -1); aspect-ratio: 1 / .86; }
  .phone.hero-phone { right: -2%; bottom: -8%; width: 26%; rotate: 4deg; }
}
@media (max-width: 959px) {
  .hero-visual { margin-top: -32px; }
}

/* ---------- Devices ---------- */
.phone {
  position: relative; border-radius: 15% / 7%; padding: 3.2%;
  background: linear-gradient(160deg, #2A3634, #13201F 40%, #0B1413);
  box-shadow: var(--shadow-device), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.phone img { width: 100%; aspect-ratio: 412 / 915; object-fit: cover; object-position: top; border-radius: 12.4% / 5.6%; background: var(--card); }
.tilt { transform-style: preserve-3d; will-change: transform; transition: transform .6s var(--ease-out); }
.tilt-left { transform: perspective(1400px) rotateY(16deg) rotateX(4deg) rotateZ(-2deg); }
.tilt-right { transform: perspective(1400px) rotateY(-16deg) rotateX(4deg) rotateZ(2deg); }

.laptop { position: relative; }
.laptop-screen { border-radius: 14px 14px 4px 4px; padding: 1.6%; background: linear-gradient(180deg, #2A3634, #13201F); box-shadow: var(--shadow-device); }
.laptop-screen img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-radius: 6px; background: var(--card); }
.laptop-base { height: 0; padding-bottom: 3.2%; margin: 0 -6%; background: linear-gradient(180deg, #D9D6CC, #BDB9AD); border-radius: 0 0 18px 18px / 0 0 60% 60%; position: relative; }
.laptop-base::after { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 36%; transform: translateX(-50%); background: #A9A598; border-radius: 0 0 10px 10px; }

.window { border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-device); border: 1px solid var(--line); }
.window-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding-inline: 14px; background: var(--wash); border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #D3D0C6; }
.window img { width: 100%; }

/* ---------- Sections ---------- */
.section { padding-block: 72px; }
.section-tight { padding-block: 48px; }
@media (min-width: 960px) { .section { padding-block: 120px; } }
.h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.25rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; max-width: 20ch; }
.lede { margin-top: 16px; font-size: 1.125rem; line-height: 1.55; color: var(--muted); max-width: 56ch; }
.section-head { margin-bottom: 40px; }
@media (min-width: 960px) { .section-head { margin-bottom: 64px; } }

/* How it works */
.flow { display: grid; gap: 48px; }
.flow-step { display: grid; gap: 20px; align-content: start; }
.flow-step h3 { font-size: 1.375rem; letter-spacing: -.02em; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.flow-step p { color: var(--muted); max-width: 36ch; }
.flow-art { display: grid; place-items: center; min-height: 0; }
.flow-art .phone { width: min(62%, 240px); }
.flow-art .laptop { width: 88%; max-width: 420px; }
.flow-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--teal-soft); color: var(--on-teal-soft); font: 700 14px/1 var(--f-display); flex: none; }
@media (min-width: 960px) {
  .flow { grid-template-columns: 1.25fr 1fr 1fr; gap: 40px; align-items: start; }
  .flow-art { height: 480px; align-items: end; }
  .flow-art .phone { width: 200px; }
  .flow-art .laptop { width: 100%; }
}

/* Bento */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--r-panel);
  background: var(--card); border: 1px solid var(--line);
  padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 240px;
}
.tile h3 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
.tile p { color: var(--muted); font-size: .98rem; max-width: 40ch; }
.tile .ico-badge { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-soft); }
.tile .ico-badge .ico { width: 26px; height: 26px; }
.tile-dark { background: var(--teal-forest); border-color: var(--teal-forest); color: #E2F3EF; }
.tile-dark h3 { color: #F3FAF8; }
.tile-dark p { color: #B5D4CE; }
.tile-dark .ico { color: #E2F3EF; --icon-accent: #3AA79C; }
.tile-dark .ico-badge { background: rgba(255,255,255,.08); }
.tile-teal { background: var(--teal); border-color: var(--teal); }
.tile-teal h3 { color: var(--on-teal); }
.tile-teal p { color: #CFE7E2; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--wash); color: var(--ink-2); font-size: 13.5px; font-weight: 500; }
.chip .ico { width: 16px; height: 16px; }
.tile-shot { margin-top: auto; }
.tile-emp .tile-shot { margin: 24px auto -170px; width: min(86%, 380px); }
.tile-mgr .tile-shot, .tile-pay .tile-shot { margin: 8px -4px -120px auto; width: min(70%, 250px); }
.tile-admin .tile-shot { margin: 12px -48px -60px 0; }
.notif-list { display: grid; gap: 8px; margin-top: auto; }
.notif { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.notif b { display: block; color: var(--ink); font-weight: 600; }
.notif .ico { width: 20px; height: 20px; margin-top: 1px; }
.notif:nth-child(2) { margin-left: 16px; }
.notif:nth-child(3) { margin-left: 32px; opacity: .8; }
.mask-row { display: grid; gap: 8px; margin-top: auto; font: 500 15px/1.3 var(--f-body); font-variant-numeric: tabular-nums; }
.mask-row div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.mask-row span:first-child { color: var(--muted); }
.mask-row span:last-child { letter-spacing: .04em; }
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-admin { grid-column: span 2; }
}
@media (min-width: 1080px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(260px, auto); }
  .tile-emp { grid-column: span 3; grid-row: span 2; }
  .tile-mgr { grid-column: span 3; }
  .tile-pay { grid-column: span 3; }
  .tile-admin { grid-column: span 4; grid-row: span 2; }
  .tile-docs { grid-column: span 2; }
  .tile-notif { grid-column: span 2; }
  .tile-multi { grid-column: span 3; }
  .tile-cal { grid-column: span 3; }
  .tile-admin .tile-shot { margin-right: -120px; }
}

/* Monitoring band */
.band { background: linear-gradient(180deg, #EAF2EF, #F2F1EC); border-block: 1px solid var(--line); }
.mon-grid { display: grid; gap: 48px; align-items: center; }
.mon-art { position: relative; padding-bottom: 56px; }
.mon-art .window { max-width: 400px; margin-inline: auto; }
.mon-art .live { position: absolute; left: 50%; bottom: 0; width: min(94%, 520px); transform: translateX(-50%); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-float); }
.rules { display: grid; gap: 0; margin-top: 32px; border-top: 1px solid var(--line-strong); }
.rule { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-strong); align-items: start; }
.rule .ico { width: 28px; height: 28px; margin-top: 2px; }
.rule h3 { font: 600 1.06rem/1.35 var(--f-body); color: var(--ink); }
.rule p { color: var(--muted); font-size: .96rem; margin-top: 2px; }
.platforms { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
@media (min-width: 960px) {
  .mon-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
}

/* Trust grid */
.trust { display: grid; gap: 0; border-top: 1px solid var(--line); }
.trust-item { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.trust-item .ico-wrap { width: 56px; height: 56px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; }
.trust-item .ico { width: 28px; height: 28px; }
.trust-item h3 { font: 600 1.06rem/1.35 var(--f-body); }
.trust-item p { color: var(--muted); font-size: .96rem; margin-top: 4px; }
@media (min-width: 720px) {
  .trust { grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
}
@media (min-width: 1080px) {
  .trust { grid-template-columns: repeat(3, 1fr); }
}

/* Pricing teaser */
.price-card {
  position: relative; overflow: hidden; border-radius: var(--r-panel);
  background: var(--teal); color: var(--on-teal); padding: 40px 28px;
  display: grid; gap: 28px; align-items: center;
}
.price-card h2 { color: var(--on-teal); font-size: clamp(1.8rem, 1.3rem + 2vw, 2.75rem); letter-spacing: -.03em; line-height: 1.08; font-weight: 800; max-width: 18ch; }
.price-card p { color: #CFE7E2; margin-top: 12px; max-width: 46ch; }
.price-card .btn-primary { background: var(--on-teal); color: var(--teal-forest); box-shadow: none; }
.price-card .btn-primary:hover { background: #FFFFFF; color: var(--teal-forest); }
.price-card .btn-ghost { color: var(--on-teal); border-color: rgba(243, 250, 248, .35); }
.price-card .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(243,250,248,.6); }
.price-rings { position: absolute; right: -120px; top: 50%; width: 420px; height: 420px; transform: translateY(-50%); pointer-events: none; opacity: .5; }
.price-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; }
@media (min-width: 960px) {
  .price-card { grid-template-columns: 1fr auto; padding: 56px 64px; }
  .price-actions { margin-right: 200px; }
}

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line-strong); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font: 600 1.075rem/1.4 var(--f-body); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { width: 22px; height: 22px; transition: transform .25s var(--ease-out); color: var(--muted); }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq .answer { padding: 0 0 24px; color: var(--muted); max-width: 68ch; }
.faq .answer p + p { margin-top: 10px; }
.faq-layout { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq-layout { grid-template-columns: 1fr 1.6fr; gap: 72px; } }

/* Get the app */
.get { display: grid; gap: 40px; align-items: center; }
.get-actions { display: grid; gap: 12px; margin-top: 28px; max-width: 420px; }
.store-btn { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .16s var(--ease-out), box-shadow .15s; }
.store-btn:hover { border-color: var(--line-strong); color: var(--ink); box-shadow: var(--shadow-float); }
.store-btn:active { transform: scale(.98); }
.store-btn .ico-wrap { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-soft); display: grid; place-items: center; flex: none; }
.store-btn strong { display: block; font: 600 1rem/1.3 var(--f-body); }
.store-btn small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.35; }
.store-btn.primary { background: var(--teal); border-color: var(--teal); color: var(--on-teal); }
.store-btn.primary small { color: #CFE7E2; }
.store-btn.primary .ico-wrap { background: rgba(255,255,255,.12); }
.store-btn.primary .ico { color: var(--on-teal); --icon-accent: var(--on-teal); }
.get-phones { position: relative; display: flex; justify-content: center; gap: 0; padding-block: 24px; }
.get-phones .phone { width: 46%; max-width: 230px; }
.get-phones .phone + .phone { margin-left: -8%; margin-top: 48px; }
@media (min-width: 960px) { .get { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 48px 40px; font-size: .94rem; color: var(--muted); }
.foot-grid { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot-brand { grid-column: 1 / -1; }
.foot-brand svg { height: 28px; width: auto; color: var(--ink); }
.foot-brand p { margin-top: 12px; max-width: 34ch; }
.site-foot h2 { font: 600 .82rem/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--teal); text-decoration: underline; }
.foot-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .86rem; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.6fr repeat(3, 1fr); } .foot-brand { grid-column: auto; } }

/* ---------- Reveal motion (only with JS, only without reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .fan .phone { transition: transform 1.1s var(--ease-out); }
  .js .fan:not(.in) .phone:first-child { transform: translateX(30%) rotate(0); }
  .js .fan:not(.in) .phone:last-child { transform: translateX(-30%) rotate(0); }
  .hero-copy > * { animation: rise .9s var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-phone { animation: phone-in 1.2s .25s var(--ease-out) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes phone-in { from { opacity: 0; transform: translateY(40px); } }

/* ---------- Document pages (legal, support, monitoring) ---------- */
.doc-hero { padding-block: 48px 32px; border-bottom: 1px solid var(--line); }
.doc-hero h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; max-width: 22ch; }
.doc-hero p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.doc-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; color: var(--muted); }
.doc-layout { display: grid; gap: 40px; padding-block: 40px 96px; }
.toc { font-size: .92rem; }
.toc h2 { font: 600 .8rem/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; }
.toc a:hover { background: var(--wash-2); color: var(--ink); }
.toc a.active { background: var(--teal-soft); color: var(--on-teal-soft); }
.toc details summary { cursor: pointer; font-weight: 600; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.toc details[open] summary { margin-bottom: 8px; }
@media (max-width: 1023px) { .toc h2 { display: none; } }
@media (min-width: 1024px) {
  .doc-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 72px; }
  .toc { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
  .toc details summary { display: none; }
}
.prose { max-width: 72ch; font-size: 1.02rem; line-height: 1.7; color: var(--ink-2); }
.prose h2 { font-size: 1.6rem; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; margin: 56px 0 14px; padding-top: 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 600 1.1rem/1.4 var(--f-body); margin: 28px 0 8px; color: var(--ink); }
.prose p, .prose ul, .prose ol, .prose table, .prose .note { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--teal); }
.prose strong { color: var(--ink); font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; line-height: 1.5; margin: 0; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--wash); font-weight: 600; color: var(--ink); font-size: .86rem; }
.prose tr:last-child td { border-bottom: 0; }
.note { padding: 16px 18px; border-radius: 14px; background: var(--teal-soft); color: var(--on-teal-soft); font-size: .97rem; }
.note.plain { background: var(--wash); color: var(--ink-2); }
.note strong { color: inherit; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 16px 16px 16px 60px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); margin: 0; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--on-teal-soft); font: 700 14px/1 var(--f-display); }

/* Support / monitoring page bits */
.cards-2 { display: grid; gap: 16px; }
@media (min-width: 720px) { .cards-2 { grid-template-columns: repeat(2, 1fr); } }
.contact-card { padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.contact-card .ico { width: 28px; height: 28px; margin-bottom: 4px; }
.contact-card h3 { margin: 0 !important; }
.contact-card p { margin: 0 !important; color: var(--muted); }
.shot-row { display: grid; gap: 24px; margin: 24px 0 32px; align-items: start; }
.shot-row figure { margin: 0; }
.shot-row figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); }
@media (min-width: 720px) { .shot-row { grid-template-columns: 1fr 1fr; } }

/* Company switcher rows, store placeholders */
.co-rows span:first-child { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.co-rows .av { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--wash-2); font: 600 12px/1 var(--f-body); color: var(--ink-2); }
.co-rows .ico { width: 20px; height: 20px; color: var(--teal); }
.co-rows div { align-items: center; background: var(--wash); border-color: transparent; }
.store-btn.is-soon { opacity: .6; cursor: default; }
.store-btn.is-soon:hover { box-shadow: none; border-color: var(--line); }

/* Mobile menu */
.menu-btn { display: inline-grid; place-content: center; gap: 5px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; padding: 0; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s var(--ease-out); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav-admin { display: none; }
@media (max-width: 899px) {
  .nav.open { display: flex; flex-direction: column; position: fixed; top: 68px; inset-inline: 0; margin: 0; padding: 8px var(--gutter) 16px; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-float); }
  .nav.open a { padding: 0 12px; height: 48px; display: flex; align-items: center; font-size: 16px; }
  .nav.open .nav-admin { display: flex; }
}
@media (min-width: 900px) { .menu-btn { display: none; } }

@media (max-width: 519px) {
  .hero-actions { display: grid; grid-template-columns: 1fr; max-width: 320px; }
  .hero-actions .btn { width: 100%; }
}
@media (max-width: 899px) {
  .nav.open { box-shadow: var(--shadow-float), 0 100vh 0 100vh rgba(23, 28, 27, .18); }
}
.doc-layout > * { min-width: 0; }
