/* kokorosoft.com — direction E, "Circuito claro".
   The design canvas lives in docs/design/kokorosoft-web/ (CircuitoClaro*.dc.html).
   Light ground, the logo's circuit as structure: a spine runs down each page
   with a node per section, services hang off a bus, cases read before, what
   was done, after. Motion is ambient and linear where it is constant; all of
   it stops under prefers-reduced-motion and while off screen (site.js). */

:root {
  --ground: #F5F7FB;
  --surface: #FFFFFF;
  --ink: #13233A;
  --brand: #213F66;
  --muted: #5A6A82;
  --label: #6B7A90;
  --line: #E1E7EF;
  --trace: #D8E0EB;
  --trace-node: #C3CFDF;
  --tint: #EEF2F8;
  --coral: #F27D64;
  --coral-hover: #EE6B4F;
  --coral-text: #C4502F;        /* coral dark enough to read as text on white */
  --coral-tint: #FDECE7;
  --display: 'Sora', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(20px, 5.5vw, 80px);
  --rail-x: 20px;                /* spine position inside the content box */
  --rail-pad: 100px;             /* section content offset from the spine */
  --sec-top: clamp(36px, 4vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
p, h1, h2, h3, h4, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(19, 35, 58, 0.28); text-underline-offset: 3px; }
a:hover { color: var(--brand); text-decoration-color: var(--coral); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
strong { font-weight: 600; }
[hidden] { display: none !important; }

h1, h2, h3, h4, .display { font-family: var(--display); letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(38px, 4.5vw, 64px); line-height: 1.03; font-weight: 600; }
h2 { font-size: clamp(26px, 2.7vw, 38px); line-height: 1.1; font-weight: 600; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 600; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.muted { color: var(--muted); }
.small { font-size: 15px; line-height: 1.5; color: var(--muted); }
.label { font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--label); }
.label-after { color: var(--coral-text); }
.lede { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--muted); max-width: 34em; }

.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

/* Buttons, chips, surfaces ----------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 24px; border: 0; border-radius: 10px; font-family: var(--display); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms ease, box-shadow 160ms ease; }
.btn:active { transform: scale(0.97); }
.btn-coral { background: var(--coral); color: var(--ink); }
.btn-coral:hover { background: var(--coral-hover); color: var(--ink); }
.btn-line { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(19, 35, 58, 0.2); }
.btn-line:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--coral); }
.btn-small { height: 40px; padding: 0 16px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-strong { font-weight: 600; font-size: 15px; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(19, 35, 58, 0.28); }
.linkbtn:hover { color: var(--ink); text-decoration-color: var(--coral); }

.panel { background: var(--surface); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(19, 35, 58, 0.04); }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 3px 12px; border-radius: 999px; background: var(--tint); font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--brand); }
.chip-coral { background: var(--coral-tint); color: #A8432A; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tile { padding: 18px 20px; border-radius: 12px; background: var(--ground); display: flex; flex-direction: column; gap: 4px; }
.tile .num { font-size: clamp(24px, 2.1vw, 30px); font-weight: 600; line-height: 1.1; }
.tile .small { font-size: 14px; }

@media (max-width: 640px) {
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
}

/* Header and footer ------------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--ground); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.brand { display: inline-flex; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav > a:not(.btn) { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink); }
.nav > a:not(.btn):hover, .nav > a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 6px; }
.lang { display: inline-flex; gap: 8px; font-size: 14px; font-weight: 600; }
.lang a { color: #8A97AA; text-decoration: none; }
.lang a[aria-current="true"] { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; margin: -8px; cursor: pointer; color: var(--ink); }

@media (max-width: 960px) {
  .site-header { position: relative; }
  .site-header .wrap { height: 64px; }
  .brand img { height: 24px; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; z-index: 20; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--ground); border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav > a:not(.btn) { padding: 12px 0; font-size: 17px; border-top: 1px solid var(--line); }
  .nav > a:not(.btn):first-child { border-top: 0; }
  .nav .lang { padding: 14px 0; }
  .nav .btn { height: 48px; }
}

.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 48px; align-items: center; padding-block: 32px 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 28px; height: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: flex-end; }
.footer-nav a { font-size: 14px; font-weight: 500; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-decoration-color: var(--coral); }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr); } .footer-nav { justify-content: flex-start; } }

/* Circuit: spine, nodes, signals ------------------------------------------ */
.circuit { position: relative; }
.spine { position: absolute; left: calc(var(--gutter) + var(--rail-x)); top: 0; bottom: 0; width: 2px; background: var(--trace); overflow: hidden; }
.spine-signal { position: absolute; inset: 0; animation: spine 18s linear infinite; }
.spine-signal::before { content: ""; position: absolute; left: 0; top: -160px; width: 2px; height: 160px; background: linear-gradient(to bottom, rgba(242, 125, 100, 0), var(--coral)); }
@keyframes spine { from { transform: translateY(0); } to { transform: translateY(100%); } }

.csec { position: relative; padding-left: var(--rail-pad); padding-block: var(--sec-top) clamp(48px, 5.5vw, 76px); }
.node { position: absolute; left: calc(var(--rail-x) - 9px); top: calc(var(--sec-top) + 8px); width: 20px; height: 20px; border-radius: 999px; background: var(--ground); box-shadow: inset 0 0 0 2px var(--trace-node); }
.node.on { box-shadow: inset 0 0 0 2px var(--coral); }
.node.on::after { content: ""; position: absolute; inset: 6px; border-radius: 999px; background: var(--coral); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 40px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head .small { max-width: 40em; }

/* A dot running along a trace; the trace sets the length. */
.trace { position: relative; height: 2px; background: var(--trace); overflow: hidden; }
.run { position: absolute; inset: 0; animation: across 2.8s linear infinite; }
.run::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 999px; background: var(--coral); box-shadow: 0 0 10px 2px rgba(242, 125, 100, 0.45); }
@keyframes across { from { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

.led { width: 10px; height: 10px; margin-top: 8px; flex-shrink: 0; border-radius: 999px; background: var(--coral); box-shadow: 0 0 0 4px var(--coral-tint); }

@media (max-width: 760px) {
  :root { --rail-x: 0px; --rail-pad: 28px; }
  .node { width: 16px; height: 16px; left: -7px; }
  .node.on::after { inset: 5px; }
}

/* Hero ---------------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 40px; align-items: center; padding-block: clamp(28px, 5vw, 72px) clamp(32px, 4.5vw, 64px); }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.hero-sub { font-family: var(--display); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.35; font-weight: 500; color: var(--brand); letter-spacing: -0.02em; }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 14px; }
.figures > div { display: flex; flex-direction: column; gap: 2px; padding-inline: 20px; box-shadow: -1px 0 0 #DCE3EC; }
.figures > div:first-child { padding-left: 0; box-shadow: none; }
.figures .num { font-size: clamp(18px, 2.4vw, 36px); font-weight: 600; line-height: 1.1; white-space: nowrap; }
.figures .small { font-size: 14px; line-height: 1.4; }
.heart-visual { width: 100%; max-width: 560px; justify-self: end; }
.heart-visual svg, .philosophy-visual svg, .cta-visual svg { width: 100%; height: auto; overflow: visible; }

.rise { animation: rise 600ms var(--ease-out) both; }
.rise-2 { animation-delay: 60ms; } .rise-3 { animation-delay: 120ms; } .rise-4 { animation-delay: 180ms; } .rise-5 { animation-delay: 240ms; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .heart-visual { order: -1; max-width: 320px; justify-self: center; }
}
@media (max-width: 460px) {
  .figures > div { padding-inline: 10px; }
  .figures .num { font-size: clamp(17px, 4.9vw, 22px); }
  .figures .small { font-size: 12px; }
}

/* Problems -------------------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.problem { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.problem-title { display: flex; align-items: flex-start; gap: 12px; }
.problem p { font-size: 16px; color: var(--muted); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* Philosophy -------------------------------------------------------------------- */
.philosophy { display: grid; grid-template-columns: minmax(260px, 440px) minmax(0, 1fr); gap: 32px 56px; align-items: center; }
.philosophy-text { display: flex; flex-direction: column; gap: 22px; }
.philosophy-text > p { font-size: clamp(17px, 1.35vw, 19px); max-width: 36em; }
.principles { position: relative; display: flex; flex-direction: column; gap: 18px; padding-left: 34px; }
.principles::before { content: ""; position: absolute; left: 9px; top: 14px; bottom: 14px; width: 2px; background: var(--trace); }
.principles li { position: relative; display: flex; flex-direction: column; gap: 2px; }
.principles li::before { content: ""; position: absolute; left: -34px; top: 5px; width: 20px; height: 20px; border-radius: 999px; background: var(--ground); box-shadow: inset 0 0 0 2px var(--trace-node); }
.principles li:first-child::before { box-shadow: inset 0 0 0 2px var(--coral); }
.principles p { font-size: 16px; color: var(--muted); }
@media (max-width: 900px) { .philosophy { grid-template-columns: minmax(0, 1fr); } .philosophy-visual { max-width: 300px; } }

/* Services on a bus --------------------------------------------------------------- */
.bus { position: relative; padding-top: 37px; }
.bus > .trace { position: absolute; left: 0; right: 0; top: 0; }
.services { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.svc { position: relative; padding: 26px; display: flex; flex-direction: column; gap: 12px; color: var(--ink); transition: box-shadow 200ms ease, transform 200ms var(--ease-out); }
.svc .stub { position: absolute; left: 50%; top: -37px; width: 2px; height: 37px; background: var(--trace); transition: background-color 200ms ease; }
.svc .stub::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 999px; background: var(--ground); box-shadow: inset 0 0 0 2px var(--trace-node); transition: box-shadow 200ms ease; }
.svc .price { font-size: clamp(22px, 1.9vw, 26px); font-weight: 600; line-height: 1.1; color: var(--coral-text); }
.svc .price-note { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--coral-text); }
.svc h3 { font-size: 20px; line-height: 1.2; }
.svc.featured h3 { font-size: 24px; }
.svc p { font-size: 15px; color: var(--muted); }
.svc .chip { align-self: flex-start; }
.svc .link-strong { margin-top: auto; }
@media (hover: hover) and (pointer: fine) {
  .svc:hover { box-shadow: inset 0 0 0 1px var(--coral), 0 14px 30px -18px rgba(19, 35, 58, 0.25); transform: translateY(-2px); }
  .svc:hover .stub { background: var(--coral); }
  .svc:hover .stub::before { box-shadow: inset 0 0 0 2px var(--coral); }
}
@media (max-width: 1100px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } .svc .stub { display: none; } .bus { padding-top: 24px; } }
@media (max-width: 640px) { .services { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* Cases ----------------------------------------------------------------------------- */
.cases { display: flex; flex-direction: column; gap: 20px; }
.case-featured { padding: clamp(22px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 28px; }
.case-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 32px; flex-wrap: wrap; }
.case-top-text { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.case-top h3 { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.15; }
.case-headline { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.case-headline .num { font-size: clamp(32px, 3.1vw, 44px); font-weight: 600; line-height: 1; }
.case-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); column-gap: 24px; row-gap: 10px; align-items: start; }
.case-row > .label { padding-top: 4px; }
.before-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; font-size: 16px; color: var(--muted); }
.case-steps { display: flex; flex-direction: column; gap: 14px; padding-top: 10px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.case { padding: clamp(22px, 2.2vw, 30px); display: grid; grid-template-columns: 260px minmax(0, 1fr) 260px; gap: 18px 32px; align-items: center; }
.case-side { display: flex; flex-direction: column; gap: 6px; }
.case-side .num { font-size: clamp(28px, 2.8vw, 40px); font-weight: 600; line-height: 1.1; }
.case-side.before .num { color: #8C9AAE; }
.case-mid { display: flex; flex-direction: column; gap: 14px; }
.case-mid-head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.case-mid h3 { font-size: 21px; line-height: 1.25; }
.case-mid > p { font-size: 15px; color: var(--muted); text-align: center; }

@media (max-width: 1100px) {
  .case { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-mid { grid-column: 1 / -1; grid-row: 1; }
}
@media (max-width: 760px) {
  .case-row { grid-template-columns: minmax(0, 1fr); }
  .before-points { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-headline { align-items: flex-start; }
}
@media (max-width: 520px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile { flex-direction: row; align-items: baseline; gap: 12px; }
  .tile .num { flex-shrink: 0; min-width: 7.5ch; }
}
@media (max-width: 760px) {
  .case { grid-template-columns: minmax(0, 1fr); }
  .case-mid-head { align-items: flex-start; text-align: left; }
  .case-mid > p { text-align: left; }
}

/* Founder ------------------------------------------------------------------------- */
.founder { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 32px 56px; align-items: center; }
.founder-photo { position: relative; }
.founder-photo img { width: 100%; aspect-ratio: 34 / 42; object-fit: cover; border-radius: 20px; }
.founder-photo .panel { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 12px 16px; display: flex; flex-direction: column; }
.founder-photo .panel strong { font-family: var(--display); font-size: 16px; }
.founder-text { display: flex; flex-direction: column; gap: 18px; max-width: 820px; }
.founder-text > p:first-of-type { font-size: clamp(17px, 1.35vw, 19px); }
.tiles-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tiles-3 .tile { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 900px) { .founder { grid-template-columns: minmax(0, 1fr); } .founder-photo { max-width: 320px; } }
@media (max-width: 640px) { .tiles-3 { grid-template-columns: minmax(0, 1fr); } }

/* Own products ------------------------------------------------------------------ */
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.product p { font-size: 15px; color: var(--muted); }
.product a { margin-top: auto; font-size: 14px; font-weight: 600; }
@media (max-width: 1100px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .products { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* Call to action --------------------------------------------------------------- */
.cta { position: relative; overflow: hidden; padding: clamp(26px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: center; box-shadow: inset 0 0 0 1px rgba(242, 125, 100, 0.45), 0 20px 50px -30px rgba(19, 35, 58, 0.25); }
.cta-text { display: flex; flex-direction: column; gap: 18px; }
.cta h2 { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.06; max-width: 15ch; }
@media (max-width: 900px) { .cta { grid-template-columns: minmax(0, 1fr); } .cta-visual { display: none; } }

/* Forms ------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--display); font-weight: 500; font-size: 14px; color: var(--label); }
.field input, .field textarea { width: 100%; height: 48px; padding: 0 14px; border: 1px solid rgba(19, 35, 58, 0.18); border-radius: 10px; background: var(--surface); color: var(--ink); font-family: var(--body); font-size: 16px; }
.field textarea { height: 128px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--coral); outline-offset: 1px; border-color: transparent; }
.error, .errorlist { font-size: 14px; color: var(--coral-text); }
.errorlist { list-style: none; padding: 0; margin: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--muted); }
.consent input { margin: 4px 0 0; accent-color: var(--coral); width: 16px; height: 16px; flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .form-row { grid-template-columns: minmax(0, 1fr); } }

/* Inner pages -------------------------------------------------------------------- */
.page-head { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px 56px; align-items: start; }
.page-head .title { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.page-head h1 { font-size: clamp(34px, 4vw, 58px); max-width: 16ch; }
.ficha { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.ficha > div { display: flex; flex-direction: column; gap: 2px; }
.ficha .num { font-size: 22px; font-weight: 600; line-height: 1.2; }
@media (max-width: 1000px) { .page-head { grid-template-columns: minmax(0, 1fr); } }

.prose { display: flex; flex-direction: column; gap: 16px; max-width: 44em; }
.prose > p:first-child { font-size: clamp(17px, 1.35vw, 19px); }
.prose h2 { font-size: 24px; padding-top: 10px; }
.prose ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.step { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.step p { font-size: 16px; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

.scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.scope .panel { padding: 26px; }
.scope h3 { font-size: 22px; padding-bottom: 12px; }
.scope .no-panel { box-shadow: inset 0 0 0 1px rgba(242, 125, 100, 0.45); }
.item { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; padding-block: 12px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.item svg { width: 20px; height: 20px; margin-top: 2px; }
@media (max-width: 760px) { .scope { grid-template-columns: minmax(0, 1fr); } }

.conditions { padding: 26px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px 32px; font-size: 16px; }
.conditions dt { font-family: var(--display); font-weight: 600; }
@media (max-width: 640px) { .conditions { grid-template-columns: minmax(0, 1fr); gap: 4px; } .conditions dd + dt { padding-top: 12px; } }

.estimate-example { padding: clamp(22px, 3vw, 36px); display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px 48px; align-items: center; }
.estimate-example .text { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.estimate-example .figures-col { display: flex; flex-direction: column; gap: 4px; }
.estimate-example .range { font-size: clamp(28px, 2.6vw, 38px); font-weight: 600; line-height: 1.05; }
@media (max-width: 900px) { .estimate-example { grid-template-columns: minmax(0, 1fr); } }

/* Calculator -------------------------------------------------------------------- */
.calc { display: grid; grid-template-columns: 280px minmax(0, 680px); gap: 28px 64px; align-items: start; }
.calc-aside { display: flex; flex-direction: column; gap: 14px; }
.calc-main { display: flex; flex-direction: column; gap: 28px; }
.calc-main h2 { font-size: clamp(26px, 3vw, 42px); }
.stepper { position: relative; display: flex; justify-content: space-between; align-items: center; padding-block: 8px; }
.stepper::before { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; background: var(--trace); }
.stepper span { position: relative; width: 20px; height: 20px; border-radius: 999px; background: var(--ground); box-shadow: inset 0 0 0 2px var(--trace-node); transition: box-shadow 200ms ease; }
.stepper span.done, .stepper span.current { box-shadow: inset 0 0 0 2px var(--coral); }
.stepper span.current::after { content: ""; position: absolute; inset: 6px; border-radius: 999px; background: var(--coral); }
.calc-screen { display: flex; flex-direction: column; gap: 24px; }
.calc-screen[hidden] { display: none; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { display: grid; grid-template-columns: minmax(0, 1fr) 24px; column-gap: 16px; align-items: center; width: 100%; min-height: 72px; padding: 16px 20px; background: var(--surface); border: 0; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); text-align: left; cursor: pointer; font-family: inherit; color: var(--ink); transition: box-shadow 160ms ease, transform 160ms var(--ease-out); }
.opt:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) { .opt:hover { box-shadow: inset 0 0 0 1px var(--coral); } }
.opt .t { font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.25; display: block; letter-spacing: -0.02em; }
.opt .d { font-size: 15px; line-height: 1.45; color: var(--muted); display: block; padding-top: 3px; }
.opt svg { width: 24px; height: 24px; opacity: 0; }
.opt[aria-pressed="true"] { background: var(--coral-tint); box-shadow: inset 0 0 0 2px var(--coral); }
.opt[aria-pressed="true"] svg { opacity: 1; }
.result-panel { padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 22px; }
.result-range { font-size: clamp(32px, 3.8vw, 52px); line-height: 1; font-weight: 600; }
.result-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.result-lists h3 { font-size: 17px; padding-bottom: 6px; }
.result-lists .item { font-size: 15px; padding-block: 10px; }
.notice { font-size: 15px; color: var(--muted); padding: 14px 16px; border-radius: 12px; background: var(--tint); }
.fixed-grid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px 32px; align-items: start; }
.done-panel { padding: 22px; display: flex; flex-direction: column; gap: 8px; box-shadow: inset 0 0 0 1px rgba(242, 125, 100, 0.45); }
@media (max-width: 960px) { .calc { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .result-lists, .fixed-grid { grid-template-columns: minmax(0, 1fr); } }

.page { max-width: 760px; }
.page .intro { display: flex; flex-direction: column; gap: 20px; }
.page h1 { font-size: clamp(32px, 3.6vw, 48px); }
.form-panel { padding: clamp(20px, 3vw, 32px); }

/* Motion off when asked for, or while off screen (site.js adds .is-paused). ---- */
.is-paused .run, .is-paused .spine-signal { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .run, .spine-signal, .rise { animation: none; }
  .run { opacity: 0; }
  .btn, .svc, .svc .stub, .opt, .stepper span { transition: none; }
}
