/* Public website (homepage and guides). System fonts only, no external requests, for speed. */
:root {
  --bg: #ffffff;
  --bg-alt: #f3f8f6;
  --text: #11201a;
  --muted: #55665f;
  --border: #e0e9e5;
  --brand: #128c7e;
  --brand-strong: #0b6b60;
  --brand-soft: #e2f4f0;
  --accent: #25d366;
  --dark: #0d2620;
  --card: #ffffff;
  --chat: #efe7dd;
  --bubble: #d9fdd3;
  --bubble-in: #ffffff;
  --shadow: 0 1px 2px rgba(16, 32, 27, .05), 0 10px 30px rgba(16, 32, 27, .07);
  --r: 16px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  color: var(--text);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1412; --bg-alt: #111c19; --text: #e5eeea; --muted: #98aba4; --border: #22312c;
    --brand: #2bb39f; --brand-strong: #5fd6c2; --brand-soft: #143029; --dark: #07100e; --card: #131f1c;
    --chat: #0b1411; --bubble: #005c4b; --bubble-in: #1f2c28; --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 80px; } /* keep jumped-to headings clear of the sticky header */
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
img, svg { max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: .7em; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--text); text-decoration: none; font-weight: 650; font-size: .95rem; transition: .15s; white-space: nowrap; }
.btn:hover { border-color: var(--brand); }
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.lg { padding: 14px 24px; font-size: 1.02rem; border-radius: 12px; }
.btn.light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; color: var(--text); text-decoration: none; }
.logo .mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), #128c7e); color: #fff; display: grid; place-items: center; }
.logo .mark svg { width: 19px; height: 19px; }
.nav nav { display: flex; gap: 22px; margin-left: 12px; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 550; font-size: .95rem; white-space: nowrap; }
.nav nav a:hover { color: var(--text); }
.nav .cta { margin-left: auto; display: flex; gap: 6px; flex: none; }
@media (max-width: 1000px) { .nav nav { display: none; } }
.logo .mark { flex: none; }
.nav .logo { line-height: 1.15; min-width: 0; }
@media (max-width: 480px) {
  .nav .cta .ghost { display: none; }
  .nav .wrap { gap: 10px; }
  .nav .logo { font-size: .82rem; letter-spacing: .01em; }
  .nav .logo .mark { width: 30px; height: 30px; }
  .nav .cta .btn { padding: 8px 12px; font-size: .85rem; }
}

/* hero */
.hero { padding: 70px 0 60px; background: radial-gradient(900px 420px at 85% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent), radial-gradient(700px 400px at 0% 100%, var(--brand-soft), transparent); }
.hero.small { padding: 50px 0 30px; }
.hero h1 span { color: var(--brand); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.lead-sm { font-size: 1.08rem; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.grid2.top { align-items: start; }
@media (max-width: 920px) { .grid2 { grid-template-columns: 1fr; gap: 36px; } }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .95rem; }
.ticks li { display: flex; gap: 7px; align-items: center; }
.ticks svg { width: 18px; height: 18px; color: var(--brand); flex: none; }

/* phone mock */
.phone { border-radius: 30px; overflow: hidden; border: 10px solid var(--dark); background: var(--chat); box-shadow: 0 30px 70px rgba(13, 38, 32, .22); max-width: 380px; margin: 0 auto; width: 100%; }
.phone .bar { background: #075e54; color: #fff; padding: 12px 14px; display: flex; gap: 10px; align-items: center; }
.phone .bar small { display: block; opacity: .8; font-size: .75rem; }
.phone .av { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.25); display: grid; place-items: center; font-weight: 700; }
.phone .chat { padding: 18px 12px 22px; display: flex; flex-direction: column; gap: 10px; min-height: 360px; background-image: radial-gradient(rgba(0,0,0,.04) 1px, transparent 1px); background-size: 14px 14px; }
.bubble { align-self: flex-end; background: var(--bubble); border-radius: 12px 2px 12px 12px; padding: 7px 10px 5px; max-width: 88%; font-size: .9rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.1); }
.bubble i { display: block; text-align: right; font-style: normal; font-size: .68rem; color: var(--muted); margin-top: 2px; }
.bubble.in { align-self: flex-start; background: var(--bubble-in); border-radius: 2px 12px 12px 12px; }
.bubble .poster { height: 120px; border-radius: 8px; margin-bottom: 7px; background: linear-gradient(135deg, #f59e0b, #e11d48); color: #fff; display: grid; place-content: center; text-align: center; }
.bubble .poster b { font-size: 1.4rem; }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); margin: 0; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .typing i { animation: none; } html { scroll-behavior: auto; } }

/* answer box (AEO) */
.answer-box { padding: 10px 0 40px; }
.answer-box .wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); padding: 32px 36px; }
.answer-box h2 { font-size: 1.5rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 26px; margin: 22px 0 0; }
.facts div { border-left: 3px solid var(--brand); padding-left: 12px; }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: .95rem; }
@media (max-width: 560px) { .answer-box .wrap { padding: 24px 20px; border-radius: 0; border-left: 0; border-right: 0; } }

/* sections */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.head p:last-child { color: var(--muted); font-size: 1.08rem; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .cards, .cards.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards, .cards.three { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.card .ic svg { width: 22px; height: 22px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; position: relative; }
.steps .n { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; }
.steps p { color: var(--muted); font-size: .96rem; margin: 0; }

/* tables */
.table-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); overflow-x: auto; margin: 10px 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
caption { text-align: left; padding: 16px 20px 6px; font-weight: 700; }
th, td { text-align: left; padding: 12px 20px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tbody th { font-weight: 600; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
.note { color: var(--muted); font-size: .88rem; padding: 0 20px 16px; margin: 6px 0 0; }

/* compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare ul { padding-left: 1.1em; color: var(--muted); margin: 0 0 12px; }
.compare li { margin-bottom: 6px; }
.compare h3 { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pill { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; }
.pill.ok { background: #dcf5e6; color: #11743f; }
.pill.soon { background: #efe7fb; color: #6a3fb5; }
@media (prefers-color-scheme: dark) { .pill.ok { background: #12301f; color: #5bd68f; } .pill.soon { background: #2a1f3d; color: #c3a6f5; } }
.more { font-weight: 650; text-decoration: none; }

/* faq */
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 12px; font-size: 1.5rem; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq summary h3 { margin: 0; font-size: 1.02rem; }
.faq .answer { padding: 0 20px 6px; color: var(--muted); }

/* article */
.prose h2 { margin-top: 1.8em; font-size: 1.55rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose code { background: var(--bg-alt); padding: 1px 6px; border-radius: 5px; font-size: .9em; }
.tldr { background: var(--brand-soft); border-radius: var(--r); padding: 22px 26px; }
.tldr h2 { margin-top: 0; font-size: 1.15rem; }
.tldr ul { margin: 0; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.meta { color: var(--muted); font-size: .9rem; }

/* cta & footer */
.cta-band { background: linear-gradient(135deg, #0b6b60, #128c7e 60%, #1fa463); color: #fff; padding: 70px 0; text-align: center; }
.cta-band p { opacity: .9; font-size: 1.1rem; }
.cta-band .actions { justify-content: center; }
.cta-band .btn.primary { background: #fff; color: #0b6b60; border-color: #fff; }
.foot { background: var(--dark); color: #b8cbc4; padding: 56px 0 30px; font-size: .94rem; }
.foot .logo { color: #fff; }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr 1fr; } }
.foot h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 12px; }
.foot a:not(.logo) { display: block; color: #b8cbc4; text-decoration: none; margin-bottom: 7px; }
.foot a:hover { color: #fff; }
.foot p { margin-top: 12px; }
.fine { border-top: 1px solid rgba(255,255,255,.1); margin-top: 34px; padding-top: 20px; font-size: .82rem; color: #8aa098; }

/* pricing: homepage slabs */
.slab-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 28px; }
.slab { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 20px 16px; text-align: center; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.slab .vol { font-weight: 700; }
.slab .per { color: var(--muted); font-size: .82rem; }
.slab b { font-size: 1.6rem; color: var(--brand); margin-top: 8px; }
.slab.best { border-color: var(--brand); background: var(--brand-soft); }
.center { text-align: center; }

/* pricing: hero + calculator */
.price-hero { padding: 34px 0 70px; background: radial-gradient(900px 420px at 90% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent), radial-gradient(700px 380px at 0% 30%, var(--brand-soft), transparent); }
.price-head { max-width: 760px; margin: 0 0 30px; }
.price-head h1 { margin-bottom: .35em; }
.calc { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .9fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.calc-in { background: var(--card); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); padding: 30px; display: grid; gap: 26px; }
.q-block { display: grid; gap: 12px; }
.q-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.q-top label { font-weight: 700; font-size: 1rem; margin: 0; }
.q-num { display: flex; align-items: baseline; gap: 8px; }
.q-num input { width: 150px; font: inherit; font-size: 1.6rem; font-weight: 800; color: var(--brand); text-align: right; border: 0; border-bottom: 2px solid var(--border); background: transparent; padding: 2px 4px; -moz-appearance: textfield; }
.q-num input:focus { outline: none; border-color: var(--brand); }
.q-num input::-webkit-outer-spin-button, .q-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.q-num span { color: var(--muted); font-weight: 600; }
.q-hint { margin: 0; color: var(--muted); font-size: .86rem; }

.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--brand) var(--p, 0%), var(--border) var(--p, 0%)); outline: none; cursor: pointer; margin: 6px 0; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 2px 8px rgba(18, 140, 126, .35); }
.slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 2px 8px rgba(18, 140, 126, .35); }
.slider:focus-visible::-webkit-slider-thumb { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); }

.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { font: inherit; font-size: .85rem; font-weight: 650; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--border); background: var(--bg); color: var(--text); cursor: pointer; }
.pick:hover, .pick.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.tier { font: inherit; text-align: center; padding: 12px 8px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg); color: var(--text); cursor: pointer; display: grid; gap: 2px; transition: .15s; }
.tier .t-vol { font-size: .78rem; font-weight: 700; color: var(--muted); }
.tier b { font-size: 1.15rem; color: var(--text); }
.tier .t-per { font-size: .7rem; color: var(--muted); }
.tier:hover { border-color: var(--brand); }
.tier.on { background: var(--brand); border-color: var(--brand); box-shadow: 0 6px 18px rgba(18, 140, 126, .3); transform: translateY(-2px); }
.tier.on .t-vol, .tier.on b, .tier.on .t-per { color: #fff; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
.pill-out { font-weight: 800; color: var(--brand); background: var(--brand-soft); padding: 2px 10px; border-radius: 99px; font-size: .9rem; }
.stepper { display: inline-grid; grid-template-columns: 44px 80px 44px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; width: max-content; }
.stepper button { font: inherit; font-size: 1.3rem; font-weight: 700; border: 0; background: var(--bg-alt); color: var(--brand-strong); cursor: pointer; }
.stepper button:hover { background: var(--brand-soft); }
.stepper input { font: inherit; font-size: 1.1rem; font-weight: 700; text-align: center; border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border); background: var(--card); color: var(--text); padding: 9px 4px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.periods { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.period { margin: 0; display: block; cursor: pointer; }
.period input { position: absolute; opacity: 0; pointer-events: none; }
.period span { display: grid; gap: 2px; text-align: center; padding: 12px 8px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); transition: .15s; }
.period b { font-size: .95rem; }
.period em { font-style: normal; font-size: .76rem; font-weight: 700; color: var(--brand); }
.period em.none { visibility: hidden; }
.period:hover span { border-color: var(--brand); }
.period input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.period input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.calc-out { position: sticky; top: 86px; border-radius: 20px; padding: 30px; color: #fff; background: linear-gradient(160deg, #0b6b60 0%, #128c7e 55%, #1fa463 100%); box-shadow: 0 24px 50px rgba(11, 107, 96, .3); }
.out-label { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 800; opacity: .85; margin: 0 0 6px; }
.calc-out .total span { display: block; font-size: clamp(2.2rem, 4.6vw, 3rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.calc-out .total small { display: block; opacity: .85; margin-top: 4px; font-size: .9rem; }
.per-msg { margin: 12px 0 18px; font-weight: 650; background: rgba(255, 255, 255, .14); display: inline-block; padding: 5px 12px; border-radius: 99px; font-size: .88rem; }
.lines { border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 8px; }
.ln { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; font-size: .93rem; border-bottom: 1px dashed rgba(255, 255, 255, .22); }
.ln span { opacity: .88; }
.ln b { white-space: nowrap; }
.ln.good b { color: #c8ffd9; }
.hint-sm { font-size: .86rem; margin: 12px 0 0; background: rgba(255, 255, 255, .12); border-radius: 10px; padding: 9px 12px; }
.out-actions { display: grid; gap: 10px; margin: 22px 0 6px; }
.btn.on-dark { background: #fff; color: #0b6b60; border-color: #fff; }
.btn.on-dark:hover { background: #e9fbf6; }
.btn.ghost-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn.ghost-dark:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.note-sm { font-size: .8rem; opacity: .8; margin: 12px 0 0; }
@media (max-width: 560px) { .calc-in, .calc-out { padding: 22px; border-radius: 16px; } .q-num input { width: 120px; font-size: 1.35rem; } }
@media (max-width: 600px) {
  .tiers { display: flex; overflow-x: auto; gap: 8px; scroll-snap-type: x mandatory; padding: 4px 2px 8px; margin: 0 -2px; scrollbar-width: thin; }
  .tier { flex: 0 0 104px; scroll-snap-align: start; padding: 10px 6px; }
  .tier b { font-size: 1.02rem; }
  .tier.on { transform: none; }
}

/* API plan box (pricing + docs) */
.api-price { display: grid; grid-template-columns: auto 1fr; gap: 6px 28px; align-items: center; background: var(--card); border: 1px solid #c9b6ef; border-radius: 18px; padding: 22px 26px; margin: 22px 0 0; box-shadow: var(--shadow); }
.api-price > div:first-child { display: grid; }
.api-price b { font-size: 2rem; font-weight: 800; color: #6a3fb5; line-height: 1.1; }
.api-price span { color: var(--muted); font-size: .88rem; }
.api-price p { margin: 0; color: var(--muted); font-size: .95rem; }
.api-price .btn, .api-price .row-btns { grid-column: 1 / -1; justify-self: start; }
.api-price .row-btns { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .api-price { grid-template-columns: 1fr; } }
@media (prefers-color-scheme: dark) { .api-price { border-color: #4a3a6b; } .api-price b { color: #c3a6f5; } }

/* API docs */
.docs h3 { margin-top: 1.4em; }
.docs table { margin: 10px 0 18px; }
.docs td, .docs th { padding: 9px 14px; font-size: .92rem; }
pre.code { background: #0f1d1a; color: #d7efe8; border-radius: 12px; padding: 16px 18px; overflow-x: auto; font-size: .84rem; line-height: 1.6; margin: 10px 0 18px; }
pre.code code { background: none; padding: 0; color: inherit; font-size: inherit; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-alt); font-size: .9rem; margin-bottom: 10px; }
.toc b { width: 100%; }
.toc a { text-decoration: none; }
.eps { display: grid; gap: 6px; margin: 10px 0 18px; }
.ep { display: grid; grid-template-columns: 58px minmax(180px, auto) 1fr; gap: 12px; align-items: center; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: .9rem; }
.ep code { font-weight: 600; }
.ep span:last-child { color: var(--muted); }
.ep .m { font-size: .72rem; font-weight: 800; text-align: center; padding: 3px 0; border-radius: 6px; }
.ep .m.get { background: #e4eefa; color: #2563a8; }
.ep .m.post { background: #e2f5ea; color: #138a4a; }
@media (max-width: 640px) { .ep { grid-template-columns: 52px 1fr; } .ep span:last-child { grid-column: 1 / -1; } }

[hidden] { display: none !important; }
.calc-in > [data-svc] { display: grid; gap: 26px; }

/* phones */
@media (max-width: 640px) {
  .table-card th, .table-card td { padding: 10px 12px; }
  pre.code { font-size: .8rem; }
  .ep { grid-template-columns: 52px minmax(0, 1fr); }
  .ep span:last-child { grid-column: 1 / -1; }
  .ep code { word-break: break-all; }
}

/* phone menu (the header links are hidden below 1000px) */
.menu { display: none; position: relative; flex: none; }
.menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-content: center; gap: 4px; background: var(--card); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: .2s; }
.menu[open] summary span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu[open] summary span:nth-child(2) { opacity: 0; }
.menu[open] summary span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav .menu nav { gap: 0; margin: 0; flex-direction: column; position: absolute; right: 0; top: 50px; width: min(280px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; display: grid; }
.nav .menu nav a { font-size: .95rem; padding: 11px 12px; border-radius: 9px; color: var(--text); text-decoration: none; font-weight: 600; }
.menu nav a:hover { background: var(--brand-soft); }
.menu nav .app-link { color: var(--brand); border-top: 1px solid var(--border); border-radius: 0 0 9px 9px; margin-top: 4px; }
@media (max-width: 1000px) { .menu { display: block; } .nav .menu nav { display: grid; } }
.in-app .app-link { display: none !important; }
