/* Site do produto.
 *
 * Uma fita métrica atravessa o topo e sustenta os passos: é a única coisa
 * enfeitada da página. O resto é papel, tinta e a ficha de avaliação. */

/* Archivo variável (largura 62–125%, peso 300–900), servida daqui.
 * Licença OFL em fonts/OFL-Archivo.txt. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/site/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/site/fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --paper: #F2F4EF;
  --paper-raised: #FBFCFA;
  --grid: #D9DFD6;
  --ink: #0F2B27;
  --ink-soft: #56685F;
  --tape: #F1C04A;
  --tape-deep: #D9A42A;
  --clinic: #1E6B58;
  --flag: #B5452F;

  --cond: 'Archivo', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --cm: 40px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--cond);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

h1, h2 {
  font-weight: 760;
  font-variation-settings: 'wdth' 72;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(46px, 7.2vw, 92px); }
h2 { font-size: clamp(34px, 4.6vw, 58px); }
h3 { font-size: 19px; font-weight: 650; line-height: 1.3; }

:focus-visible { outline: 3px solid var(--clinic); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { top: 12px; }

/* Botões e links ------------------------------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 620;
  text-decoration: none;
  transition: background-color .15s;
}
.button:hover { background: var(--clinic); }
.button--small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.button--tape { background: var(--tape); color: var(--ink); }
.button--tape:hover { background: #F6D277; }

.link-strong { font-weight: 620; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--tape-deep); }
.link-strong:hover { text-decoration-color: var(--ink); }
.link-light { color: var(--paper); font-weight: 600; text-underline-offset: 5px; }

/* A fita ------------------------------------------------------------- */

.tape {
  position: relative;
  height: 30px;
  background-color: var(--tape);
  /* Milímetro, meio centímetro e centímetro: três riscos de alturas
     diferentes, como na fita de verdade. */
  background-image:
    linear-gradient(90deg, var(--ink) 1.5px, transparent 1.5px),
    linear-gradient(90deg, var(--ink) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 43, 39, .7) 1px, transparent 1px);
  background-size: var(--cm) 14px, calc(var(--cm) / 2) 9px, calc(var(--cm) / 10) 5px;
  background-repeat: repeat-x;
  background-position: 0 0;
  overflow: hidden;
}
.tape__numbers { position: absolute; inset: 0; display: flex; font-size: 11px; font-weight: 650; font-feature-settings: 'tnum'; }
.tape__numbers span { flex: 0 0 var(--cm); padding: 12px 0 0 4px; line-height: 1; }

/* Cabeçalho ---------------------------------------------------------- */

.top { position: sticky; top: -30px; z-index: 5; background: rgba(242, 244, 239, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--grid); }
.bar { display: flex; align-items: center; gap: 32px; min-height: 68px; }
/* A marca: "medidas" largo e o ".app" num pedaço da fita, com os riscos
   de milímetro embaixo. */
.wordmark { display: inline-flex; align-items: flex-start; gap: 4px; font-weight: 800; font-variation-settings: 'wdth' 72; font-size: 27px; line-height: 1; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.wordmark__app {
  display: inline-block;
  margin-top: 2px;
  padding: 2px 5px 7px;
  border-radius: 2px;
  font-size: .42em;
  font-variation-settings: 'wdth' 90;
  letter-spacing: 0;
  background-color: var(--tape);
  background-image:
    linear-gradient(90deg, var(--ink) 1.2px, transparent 1.2px),
    linear-gradient(90deg, rgba(15, 43, 39, .6) 1px, transparent 1px);
  background-size: 10px 5px, 2.5px 3px;
  background-repeat: repeat-x;
  background-position: 3px 100%, 3px 100%;
}
.bar__links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.bar__links a { text-decoration: none; color: var(--ink-soft); }
.bar__links a:hover { color: var(--ink); }
.bar__actions { display: flex; align-items: center; gap: 20px; font-size: 15px; }
/* Sem os links do meio (página dos termos), as ações vão para a direita. */
.bar__actions--end { margin-left: auto; }

@media (max-width: 860px) {
  .bar__links { display: none; }
  .bar__actions { margin-left: auto; }
}
@media (max-width: 480px) {
  .bar { gap: 12px; }
  .wordmark { font-size: 24px; }
  .bar__actions { gap: 14px; }
}

/* Hero --------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 104px) var(--section);
}
.hero__text { display: grid; gap: 28px; align-content: start; }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-soft); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.fine { font-size: 14px; color: var(--ink-soft); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .sheet { max-width: 560px; }
}

/* A ficha ------------------------------------------------------------ */

.sheet {
  background: var(--paper-raised);
  border: 1px solid var(--grid);
  border-radius: 12px;
  box-shadow: 0 1px 0 var(--grid), 0 24px 48px -28px rgba(15, 43, 39, .35);
  font-size: 14px;
  /* Papel milimetrado de fundo: a ficha é a folha que o avaliador usaria. */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: -1px -1px;
  overflow: hidden;
}
.sheet > * { background: var(--paper-raised); }
.sheet__head { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 20px 22px 16px; border-bottom: 1px solid var(--grid); }
.sheet__who { font-weight: 680; font-size: 16px; }
.sheet__meta { color: var(--ink-soft); font-size: 13px; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--grid); color: var(--ink-soft); white-space: nowrap; }

.sheet__table { padding: 8px 22px 16px; margin-bottom: 1px; }
.sheet table { width: 100%; border-collapse: collapse; font-feature-settings: 'tnum'; }
.sheet th, .sheet td { padding: 6px 0; text-align: right; font-weight: 450; }
.sheet thead th { font-size: 12px; color: var(--ink-soft); font-weight: 550; border-bottom: 1px solid var(--grid); }
.sheet tbody th, .sheet thead th:first-child { text-align: left; }
.sheet tbody th { font-weight: 520; }
.sheet td:last-child { font-weight: 700; padding-left: 12px; }
.sheet td { width: 3.6em; color: var(--ink-soft); }
.sheet td:last-child { color: var(--ink); }
.sheet tbody tr + tr > * { border-top: 1px dashed var(--grid); }
.sheet .is-flagged td:nth-child(2),
.sheet .is-flagged td:nth-child(3) { color: var(--flag); }
.sheet__note { margin-top: 10px; font-size: 12.5px; line-height: 1.45; color: var(--flag); padding-left: 10px; border-left: 2px solid var(--flag); }

.sheet__result { display: grid; grid-template-columns: 1fr 168px; gap: 20px; align-items: center; padding: 18px 22px 20px; border-top: 3px solid var(--tape); }
.sheet__result dl { display: grid; gap: 10px; }
.sheet__result dt { font-size: 12.5px; color: var(--ink-soft); }
.sheet__result dd { font-size: 24px; font-weight: 720; font-variation-settings: 'wdth' 84; line-height: 1.1; font-feature-settings: 'tnum'; }
.sheet__result dd small { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.sheet__result dd span { color: var(--ink-soft); font-weight: 400; }

.somato { width: 100%; height: auto; overflow: visible; }
.somato__shape { fill: rgba(241, 192, 74, .18); stroke: var(--ink); stroke-width: .12; }
.somato__axis { stroke: var(--ink-soft); stroke-width: .07; stroke-dasharray: .3 .25; fill: none; }
.somato__before { fill: var(--paper-raised); stroke: var(--ink-soft); stroke-width: .12; }
.somato__trail { stroke: var(--ink-soft); stroke-width: .1; }
.somato__now { fill: var(--clinic); }
.somato text { font-size: 1.3px; fill: var(--ink-soft); font-family: var(--cond); }

@media (max-width: 420px) {
  .sheet__head, .sheet__table, .sheet__result { padding-inline: 14px; }
  .sheet__result { grid-template-columns: 1fr 120px; }
  .sheet__result dd { font-size: 20px; }
}

/* O único movimento da página: a ficha se preenche uma vez. */
@media (prefers-reduced-motion: no-preference) {
  .sheet tbody tr { animation: fill .35s ease-out both; }
  .sheet tbody tr:nth-child(1) { animation-delay: .15s; }
  .sheet tbody tr:nth-child(2) { animation-delay: .25s; }
  .sheet tbody tr:nth-child(3) { animation-delay: .35s; }
  .sheet tbody tr:nth-child(4) { animation-delay: .45s; }
  .sheet tbody tr:nth-child(5) { animation-delay: .55s; }
  .sheet tbody tr:nth-child(6) { animation-delay: .65s; }
  .sheet tbody tr:nth-child(7) { animation-delay: .75s; }
  .sheet tbody tr:nth-child(8) { animation-delay: .85s; }
  .sheet__note { animation: fill .35s ease-out 1s both; }
  .sheet__result dd, .somato__now, .somato__trail { animation: fill .4s ease-out 1.2s both; }
}
@keyframes fill { from { opacity: 0; transform: translateY(4px); } }

/* Passos sobre a fita ------------------------------------------------- */

.steps { padding-block: var(--section); background: var(--paper-raised); border-block: 1px solid var(--grid); }
.steps h2 { max-width: 14em; }
.steps__tape {
  height: 22px;
  margin-top: 56px;
  background-color: var(--tape);
  background-image:
    linear-gradient(90deg, var(--ink) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(15, 43, 39, .7) 1px, transparent 1px);
  background-size: var(--cm) 11px, calc(var(--cm) / 10) 5px;
  background-repeat: repeat-x;
}
.steps__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: none; }
.steps__list li { position: relative; padding-top: 28px; display: grid; gap: 10px; align-content: start; }
/* Cada passo pendura na fita por um risco, como uma marcação de medida. */
.steps__list li::before { content: ''; position: absolute; top: 0; left: 15px; width: 2px; height: 20px; background: var(--ink); }
.steps__mark {
  display: grid; place-items: center;
  width: 32px; height: 32px; margin-top: 8px;
  border-radius: 50%;
  background: var(--ink); color: var(--tape);
  font-weight: 750; font-size: 15px;
}
.steps__list p { color: var(--ink-soft); font-size: 16px; }

@media (max-width: 900px) {
  .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 560px) {
  .steps__list { grid-template-columns: 1fr; }
}

/* O que vem junto ---------------------------------------------------- */

.extras { padding-block: var(--section); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px clamp(40px, 6vw, 96px); }
.extras h2 { position: sticky; top: 120px; align-self: start; }
.extras__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 40px; }
.extras__grid > div { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 2px solid var(--ink); }
.extras__grid p { color: var(--ink-soft); font-size: 16px; }

@media (max-width: 900px) {
  .extras { grid-template-columns: 1fr; }
  .extras h2 { position: static; }
}
@media (max-width: 560px) {
  .extras__grid { grid-template-columns: 1fr; }
}

/* Equações ------------------------------------------------------------ */

.science { padding-bottom: var(--section); display: grid; gap: 48px; }
.science__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.science__intro p { color: var(--ink-soft); max-width: 34em; }
.science__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 40px; }
.science__grid > div { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 2px solid var(--ink); }
.science__grid p { color: var(--ink-soft); font-size: 16px; }
.science__grid ul { display: grid; gap: 6px; margin-top: 8px; font-size: 16px; font-feature-settings: 'tnum'; }
.science__grid li { padding-left: 18px; position: relative; }
.science__more { color: var(--ink-soft); max-width: 60ch; }
.science__grid li::before { content: ''; position: absolute; left: 0; top: .78em; width: 10px; height: 2px; background: var(--tape-deep); }

@media (max-width: 900px) {
  .science__intro, .science__grid { grid-template-columns: 1fr; }
}

/* Planos -------------------------------------------------------------- */

.plans { padding-block: var(--section); background: var(--ink); color: var(--paper); }
.plans__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.plans__intro p { color: #C3CEC8; max-width: 34em; }
.plans__table { display: grid; grid-template-columns: repeat(var(--plans, 3), minmax(0, 1fr)); border-top: 1px solid rgba(242, 244, 239, .22); }
.plan { display: grid; gap: 6px; align-content: start; padding: 28px 28px 32px 0; }
.plan + .plan { padding-left: 28px; border-left: 1px solid rgba(242, 244, 239, .22); }
.plan__name { font-size: 26px; font-weight: 720; font-variation-settings: 'wdth' 80; }
.plan__seats { color: #C3CEC8; font-size: 15px; }
.plan__price { margin-top: 20px; font-size: clamp(40px, 4vw, 52px); font-weight: 760; font-variation-settings: 'wdth' 72; line-height: 1; font-feature-settings: 'tnum'; color: var(--tape); }
.plan__price small { font-size: 16px; font-weight: 500; color: #C3CEC8; font-variation-settings: 'wdth' 100; }
.plan__extra { margin-top: 6px; font-size: 14px; color: #C3CEC8; }
.plan .button { margin-top: 24px; justify-self: start; }
.plans__status { color: #C3CEC8; padding-top: 28px; grid-column: 1 / -1; }
.plans__status a { color: var(--paper); }

@media (max-width: 860px) {
  .plans__intro { grid-template-columns: 1fr; }
  .plans__table { grid-template-columns: 1fr; }
  .plan, .plan + .plan { padding: 28px 0; border-left: 0; }
  .plan + .plan { border-top: 1px solid rgba(242, 244, 239, .22); }
}

/* Dúvidas ------------------------------------------------------------- */

.faq { padding-block: var(--section); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px clamp(40px, 6vw, 96px); }
.faq__list { border-top: 1px solid var(--grid); }
.faq details { border-bottom: 1px solid var(--grid); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; font-size: 18px; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; font-weight: 400; color: var(--ink-soft); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-soft); max-width: 40em; }

@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; }
}

/* Fechamento e rodapé ------------------------------------------------- */

.closing { background: var(--clinic); color: var(--paper); padding-block: clamp(64px, 8vw, 104px); }
.closing__inner { display: grid; gap: 32px; }
.closing h2 { max-width: 16em; }
.closing__actions { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; padding-block: 40px 56px; font-size: 15px; color: var(--ink-soft); }
.foot__name { display: inline-flex; align-items: flex-start; gap: 3px; font-weight: 800; font-variation-settings: 'wdth' 72; font-size: 20px; line-height: 1; color: var(--ink); }
.foot__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.foot__links a { text-underline-offset: 4px; }
.foot__legal { flex-basis: 100%; display: grid; gap: 4px; padding-top: 20px; border-top: 1px solid var(--grid); font-size: 13px; line-height: 1.5; }
.foot__legal a { text-underline-offset: 3px; }

/* Termos de uso e privacidade ----------------------------------------- */

.legal { max-width: 760px; padding-block: 56px 80px; display: grid; gap: 56px; }
.legal h1 { font-size: clamp(38px, 5.4vw, 60px); }
.legal h2 { font-size: clamp(28px, 3.6vw, 40px); padding-top: 24px; border-top: 3px solid var(--ink); }
.legal h3 { margin-top: 28px; }
.legal section { display: grid; gap: 12px; }
.legal p, .legal li { max-width: 68ch; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; }
.legal a { text-underline-offset: 3px; text-decoration-color: var(--tape-deep); }
.legal__head { display: grid; gap: 16px; }
.legal__meta { color: var(--ink-soft); font-feature-settings: 'tnum'; }
.legal__toc { display: flex; flex-wrap: wrap; gap: 10px 24px; font-weight: 620; }
/* As cláusulas que limitam direitos, em destaque (Decreto 7.962, art. 4º). */
.legal h3.legal__limit { padding-left: 14px; border-left: 4px solid var(--tape); }
.legal .legal__limit:not(h3) { padding: 12px 14px; background: var(--paper-raised); border-left: 4px solid var(--tape); border-radius: 0 6px 6px 0; display: grid; gap: 10px; }
.legal__table { overflow-x: auto; border: 1px solid var(--grid); border-radius: 8px; background: var(--paper-raised); }
.legal__table table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--grid); }
.legal__table th { font-weight: 680; }
.legal__table tr:last-child td { border-bottom: 0; }
@media print {
  .top, .skip, .foot__links { display: none; }
  .legal { padding-block: 0; }
}

/* Calculadoras --------------------------------------------------------- */

.article { max-width: 920px; padding-block: 40px 88px; display: grid; gap: 40px; }
.article h1 { font-size: clamp(40px, 5.6vw, 68px); }
.article .lede { max-width: 44em; }
.article__section { display: grid; gap: 16px; }
.article__section h2 { font-size: clamp(28px, 3.4vw, 38px); padding-top: 22px; border-top: 3px solid var(--ink); }
.article__section > p { max-width: 68ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--ink-soft); }
.crumbs a { text-underline-offset: 3px; }

.calc { display: grid; gap: 20px; padding: clamp(20px, 3vw, 32px); background: var(--paper-raised); border: 1px solid var(--grid); border-top: 6px solid var(--tape); border-radius: 10px; }
.calc__title { font-size: 26px; }
.calc__sex { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; border: 0; font-weight: 600; }
.calc__sex legend { float: left; margin-right: 12px; color: var(--ink-soft); font-weight: 500; }
.calc__sex label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.calc__sex input { accent-color: var(--clinic); width: 18px; height: 18px; }
.calc__fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 18px; }
.calc__field { display: grid; gap: 4px; font-size: 15px; font-weight: 600; }
.calc__field[hidden] { display: none; }
.calc__field--wide { grid-column: 1 / -1; max-width: 360px; }
.calc__field small { color: var(--ink-soft); font-weight: 500; }
.calc__field input, .calc__field select { font: inherit; font-weight: 500; font-size: 17px; min-height: 46px; padding: 0 12px; border: 1.5px solid var(--grid); border-radius: 8px; background: #fff; color: var(--ink); font-feature-settings: 'tnum'; }
.calc__field input:focus, .calc__field select:focus { outline: none; border-color: var(--clinic); box-shadow: 0 0 0 3px rgba(30, 107, 88, .18); }
.calc__out { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding-top: 18px; border-top: 1px dashed var(--grid); }
.calc__result dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px 24px; }
.calc__result dt { font-size: 14px; color: var(--ink-soft); }
.calc__result dd { font-size: 26px; font-weight: 720; font-variation-settings: 'wdth' 80; font-feature-settings: 'tnum'; line-height: 1.15; }
.calc__empty { color: var(--ink-soft); }
.calc__chart { width: 220px; height: auto; overflow: visible; }
.calc__chart .somato__shape { fill: rgba(241, 192, 74, .18); stroke: var(--ink); stroke-width: .12; }
.calc__chart .somato__axis { stroke: var(--ink-soft); stroke-width: .07; stroke-dasharray: .3 .25; fill: none; }
.calc__chart .somato__now { fill: var(--clinic); }
.calc__chart text { font-size: 1.2px; fill: var(--ink-soft); font-family: var(--cond); }
@media (max-width: 640px) {
  .calc__out { grid-template-columns: 1fr; }
  .calc__chart { justify-self: center; }
}

.formulas { display: grid; gap: 18px; }
.formulas h3 { font-size: 16px; margin-bottom: 6px; }
.formulas pre { margin: 0; padding: 14px 16px; overflow-x: auto; background: var(--paper-raised); border: 1px solid var(--grid); border-radius: 8px; font: 500 15px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }
.facts { display: grid; gap: 12px; }
.facts > div { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: 4px 20px; padding-bottom: 12px; border-bottom: 1px solid var(--grid); }
.facts dt { font-weight: 650; }
.facts dd { color: var(--ink-soft); }
@media (max-width: 560px) { .facts > div { grid-template-columns: 1fr; } }
.ref { font-size: 15px; color: var(--ink-soft); line-height: 1.55; }
.related ul { display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; }
.related a { text-underline-offset: 4px; text-decoration-color: var(--tape-deep); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cards a { display: grid; gap: 8px; align-content: start; height: 100%; padding: 22px; background: var(--paper-raised); border: 1px solid var(--grid); border-top: 4px solid var(--ink); border-radius: 8px; text-decoration: none; transition: border-color .15s; }
.cards a:hover { border-top-color: var(--tape); }
.cards h2 { font-size: 24px; }
.cards p { color: var(--ink-soft); font-size: 15px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--grid); border-radius: 8px; background: var(--paper-raised); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--grid); }
.compare thead th { font-weight: 680; }
.compare tbody th { font-weight: 620; }
.compare a { text-underline-offset: 3px; }
.compare tr:last-child > * { border-bottom: 0; }
