/* DND Digital Services: agency site. Tokens first; everything below references them. */
:root {
  --ground: #08090b;
  --ground-2: #0f1115;
  --ground-3: #171a20;
  --ground-4: #20242c;
  --ink: #f4f5f7;
  --muted: #a7adb9;
  --line: #2b303a;
  --accent: #2e5bff;
  --accent-hi: #4a72ff;
  --accent-press: #2049e0;
  --accent-text: #86a2ff;
  --on-accent: #ffffff;
  --danger: #ff8a7a;

  --m: clamp(20px, 2.8vw, 40px);
  --gap: clamp(16px, 1.6vw, 24px);
  --sec: clamp(64px, 8vw, 120px);
  --bar-h: 72px;

  --font: "Hanken Grotesk", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-svc: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.6vw, 4.5rem);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --grid-tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M32 0H0V32' fill='none' stroke='%23ffffff' stroke-opacity='.05'/%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box }
[hidden] { display: none !important }
html { overscroll-behavior-y: none; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); -webkit-text-size-adjust: 100% }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 var(--step-body)/1.5 var(--font); letter-spacing: 0;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0 }
ul, ol { padding: 0; list-style: none }
img, svg { display: block; max-width: 100% }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit }
button { cursor: pointer }
::selection { background: var(--accent); color: var(--on-accent) }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px }
html { scrollbar-color: var(--ground-4) var(--ground) }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 60; background: var(--ink); color: var(--ground); padding: 10px 14px }
.skip:focus { top: 10px }

.wrap { padding-inline: var(--m); max-width: 1680px; margin-inline: auto }
.canvas { background-color: var(--ground-2); background-image: var(--grid-tile) }
.canvas { position: relative }
.canvas > :not(.grid-fx) { position: relative; z-index: 1 }
.grid-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; color: var(--accent-hi); overflow: hidden }
.grid-fx rect { fill: currentColor; fill-opacity: .2; transition: fill-opacity 1s ease-out }
.grid-fx rect.out { fill-opacity: 0 }

/* Type roles */
.h-sec { font-size: var(--step-head); font-weight: 300; line-height: 1.02; letter-spacing: -.02em; text-wrap: balance }
.statement { font-size: var(--step-lead); line-height: 1.32; letter-spacing: 0; max-width: 34em; text-wrap: pretty }

/* Buttons: one shape, square */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  background: var(--accent); color: var(--on-accent); border: 0; text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1.1; white-space: nowrap;
  transition: background-color .2s ease, transform .18s var(--ease);
}
.btn:hover { background: var(--accent-press) }
.btn:active { transform: scale(.98) }
.btn-sm { min-height: 44px; padding: 0 16px }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: var(--step-body) }
.btn[aria-busy="true"] { opacity: .75; cursor: progress }
.link-cta { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 600; color: var(--accent-text); text-decoration: none }
.link-cta:hover { color: var(--ink) }

/* Sticky bar */
.bar { position: sticky; top: 0; z-index: 40; background: var(--ground); transition: background-color .25s ease }
.bar-in { display: flex; align-items: center; gap: 32px; height: var(--bar-h); padding-inline: var(--m); max-width: 1680px; margin-inline: auto; transition: height .3s var(--ease) }
.bar.is-scrolled { background: var(--ground-3) }
.bar.is-scrolled .bar-in { height: 60px }
.mark { display: inline-block; padding-block: 10px; font-weight: 700; font-size: var(--step-body); letter-spacing: -.02em; text-decoration: none; white-space: nowrap; margin-right: auto }
.mark-r { font-weight: 500; color: var(--muted) }
.nav { display: flex; gap: 24px }
.nav a { font-size: 1rem; font-weight: 500; color: var(--muted); text-decoration: none; padding-block: 8px; transition: color .2s ease }
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink) }
.burger { display: none; width: 44px; height: 44px; padding: 10px; background: none; border: 0 }

/* Hero */
.hero {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  grid-template-rows: auto 1fr; padding: clamp(28px, 4.5vh, 56px) var(--m) 0;
  max-width: 1680px; margin-inline: auto;
}
.hero-h { grid-column: 1 / -1; font-size: clamp(2rem, 4.6vw, 4.5rem); font-weight: 300; line-height: 1; letter-spacing: -.02em; margin-bottom: clamp(24px, 3.4vh, 40px) }
.hero-copy { grid-column: 1 / span 4; padding-right: 12px; padding-bottom: 40px }
.lead { font-size: var(--step-lead); line-height: 1.3; letter-spacing: 0; text-wrap: pretty }
.hero-ask { margin-top: 20px; font-size: var(--step-lead); line-height: 1.3; font-weight: 500; color: var(--accent-text) }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px }
.stage {
  grid-column: 5 / -1; margin-right: calc(var(--m) * -1); padding: clamp(24px, 3vw, 44px) var(--m) clamp(24px, 3vw, 44px) clamp(24px, 3vw, 48px);
  clip-path: polygon(72px 0, 100% 0, 100% 100%, 0 100%, 0 72px);
}
@media (min-width: 1681px) { .stage { margin-right: 0 } }

/* Interface fragments: the product's own conventions apply inside data-ui */
[data-ui] { font-size: .9375rem; line-height: 1.42 }
.panel-tag { color: var(--muted); font-size: .8125rem; font-weight: 400; white-space: nowrap }

/* Hero flow */
.flow { max-width: 1040px }
.flow-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 18px; padding-left: 40px }
.flow-title { font-weight: 600 }
.flow-tabs { display: flex; flex-wrap: wrap; gap: 4px }
.tab { min-height: 38px; padding: 0 14px; background: var(--ground-3); color: var(--muted); border: 0; font-size: .875rem; font-weight: 500; transition: background-color .2s ease, color .2s ease }
.tab:hover { background: var(--ground-4); color: var(--ink) }
.tab[aria-pressed="true"] { background: var(--ink); color: var(--ground) }
.graph { width: 100%; height: auto; margin-bottom: 18px; overflow: visible }
.graph text { font: 500 14px var(--font); fill: var(--muted); text-anchor: middle; transition: fill .25s ease }
.graph rect { fill: var(--ground-3); stroke: var(--line); transition: fill .25s ease, stroke .25s ease }
.edges path { stroke: var(--line); stroke-width: 1.2 }
.edges path.lit { stroke: var(--accent-hi); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .42s var(--ease) forwards }
@keyframes draw { to { stroke-dashoffset: 0 } }
.edges path.beam { display: none; stroke-width: 2; stroke-linecap: round }
.edges path.beam.on { display: inline }
[data-node].on rect { fill: var(--accent); stroke: var(--accent) }
[data-node].on text { fill: #fff }
[data-node].human.on rect { fill: var(--ink); stroke: var(--ink) }
[data-node].human.on text { fill: var(--ground) }
.steps-mini { display: none }
.flow-panels { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px }
.panel { background: var(--ground-3); padding: 14px 16px; display: flex; flex-direction: column; min-height: 210px }
.panel-h { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .875rem; font-weight: 500; margin-bottom: 8px }
.panel-msg { margin-bottom: 8px }
.panel-sense { margin-top: auto; color: var(--accent-text); font-size: .875rem; transition: opacity .3s ease }
.panel-sense.off { opacity: 0 }
.panel-out { background: var(--ground-4) }
.panel-draft { flex: 1; margin-bottom: 12px }
.panel-draft table { width: 100%; border-collapse: collapse; font-size: .875rem }
.panel-draft td { padding: 2px 0; border-bottom: 1px solid var(--line) }
.panel-draft td:last-child { text-align: right }
.panel-draft p + table, .panel-draft table + p { margin-top: 6px }
.panel-actions { display: flex; flex-wrap: wrap; gap: 6px }
.ui-btn { min-height: 38px; padding: 0 14px; background: var(--ground-3); border: 0; font-size: .875rem; font-weight: 600; transition: background-color .2s ease, opacity .2s ease, transform .15s var(--ease) }
.ui-btn:hover:not(:disabled) { background: var(--ground-2) }
.ui-btn:active:not(:disabled) { transform: scale(.98) }
.ui-btn:disabled { opacity: .45; cursor: default }
.ui-yes { background: var(--accent); color: #fff }
.ui-yes:hover:not(:disabled) { background: var(--accent-press) }
.flow-foot { margin-top: 10px; color: var(--muted); font-size: .8125rem; padding-right: 8px }

/* Services */
.services { padding-top: var(--sec) }
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; margin-bottom: clamp(64px, 8vw, 120px) }
.sec-head .h-sec { grid-column: 1 / span 5 }
.sec-head .statement { grid-column: 6 / -1 }
.services .sec-head { margin-bottom: clamp(32px, 4vw, 56px) }
.sgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: var(--sec) }
.sg-item { display: block; height: 100%; text-decoration: none }
.sg-in { display: flex; flex-direction: column; justify-content: space-between; gap: clamp(32px, 4vw, 64px); height: 100%; padding: clamp(18px, 1.6vw, 24px); background: var(--ground-2); transition: transform .3s var(--ease), background-color .2s ease }
.sg-icon { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; color: var(--accent-text); transition: transform .3s var(--ease) }
.sg-name { font-size: var(--step-body); line-height: 1.2; transition: color .2s ease }
.sg-item:hover .sg-in, .sg-item:focus-visible .sg-in { transform: translateY(-5px); background: var(--ground-3) }
.sg-item:hover .sg-icon { transform: scale(1.1) }
.sg-item:hover .sg-name { color: var(--accent-text) }

/* Respuesta inmediata: the working example bleeds left, the mirror of the hero board */
.h-svc { font-size: var(--step-svc); font-weight: 300; line-height: 1.05; letter-spacing: -.02em; text-wrap: balance }
.svc-lede { font-size: var(--step-lead); line-height: 1.32; letter-spacing: 0; text-wrap: pretty }
.facts { display: grid; gap: 20px }
.facts dt { font-weight: 600; margin-bottom: 2px }
.instant { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: clamp(28px, 3vw, 48px); margin-bottom: var(--sec) }
.instant-head { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap) }
.instant-head .h-svc { grid-column: 1 / span 5 }
.instant-head .svc-lede { grid-column: 6 / -1; max-width: 34em }
.instant-stage {
  grid-column: 1 / span 8; margin-left: calc(var(--m) * -1); padding: clamp(24px, 3vw, 44px) clamp(24px, 3vw, 48px) clamp(24px, 3vw, 44px) var(--m);
  clip-path: polygon(0 0, calc(100% - 72px) 0, 100% 72px, 100% 100%, 0 100%);
}
@media (min-width: 1681px) { .instant-stage { margin-left: 0 } }
.instant-side { grid-column: 9 / -1 }
.instant-price { margin-top: 28px; font-size: var(--step-lead); line-height: 1.3 }
.instant-price strong { font-weight: 500 }
.instant-side .btn { margin-top: 20px }

.instant-stage { display: flex }
.ld { flex: 1; min-width: 0; display: flex; flex-direction: column }
.ld-panels { flex: 1 }
.ld-top { display: grid; gap: 10px; margin-bottom: 14px }
.ld-title { font-weight: 600; padding-right: 56px }
.ld-channels { display: flex; flex-wrap: wrap; gap: 4px }
.ld-channels .tab { padding: 0 12px }
.ld-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 8px }
.ld-steps li { padding: 8px 4px; text-align: center; background: var(--ground-3); color: var(--muted); font-size: .8125rem; font-weight: 500; transition: background-color .25s ease, color .25s ease }
.ld-steps li.done { background: var(--ground-4); color: var(--ink) }
.ld-steps li.on { background: var(--accent); color: #fff }
.ld-panels { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px }
.ld-log { display: grid; gap: 6px }
.ld-msg { max-width: 88%; padding: 8px 12px; animation: ld-in .3s var(--ease) both }
@keyframes ld-in { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
.ld-in { justify-self: start; background: var(--ground-4) }
.ld-auto { justify-self: end; background: var(--accent); color: #fff }
.ld-you { justify-self: end; background: var(--ink); color: var(--ground) }
.ld-meta { display: block; margin-bottom: 2px; font-size: .8125rem; color: var(--muted) }
.ld-auto .ld-meta { color: #dbe3ff }
.ld-you .ld-meta { color: var(--ground-4) }
.ld-choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px }
.ld-choice { min-height: 38px; padding: 0 14px; background: var(--ground-4); border: 0; font-size: .875rem; font-weight: 600; transition: background-color .2s ease, color .2s ease, transform .15s var(--ease) }
.ld-choice:hover { background: var(--ink); color: var(--ground) }
.ld-choice:active { transform: scale(.98) }
.ld-quiet { background: none; color: var(--muted); font-weight: 500 }
.ld-sum { display: grid; gap: 7px; margin-bottom: 14px }
.ld-sum > div { padding-bottom: 6px; border-bottom: 1px solid var(--line) }
.ld-sum dt { color: var(--muted); font-size: .8125rem }
.ld-state dd { color: var(--accent-text); font-weight: 500 }
.ld-owner-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto }
.ld-human { background: var(--ink); color: var(--ground) }
.ld-human:hover:not(:disabled) { background: #fff }
html:not(.js) .ld-channels, html:not(.js) .ld-title, html:not(.js) .ld-owner-actions { display: none }

/* Solutions: command list */
.solutions { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 24px; padding-bottom: var(--sec) }
.sol-head { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end }
.sol-head .h-sec { grid-column: 1 / span 7 }
.sol-head .statement { grid-column: 8 / -1 }
.cmd { grid-column: 1 / -1; margin-top: clamp(24px, 3vw, 48px) }
.cmd-label { display: block; font-size: 1rem; font-weight: 500; margin-bottom: 8px }
.cmd-input {
  width: 100%; height: clamp(60px, 6vw, 84px); padding: 0 20px; background: var(--ground-3); border: 0; border-radius: 0;
  font-size: clamp(1.25rem, 2.2vw, 2.25rem); letter-spacing: -.02em; outline-offset: -2px; appearance: none;
}
.cmd-input::placeholder { color: var(--muted) }
.cmd-input::-webkit-search-cancel-button { filter: grayscale(1) invert(.6) }
.cmd-list { margin-top: 6px }
.cmd-row {
  display: block; width: 100%; padding: .22em 20px; background: none; border: 0; text-align: left;
  font-size: clamp(1.6rem, 3.7vw, 3.75rem); font-weight: 300; line-height: 1.12; letter-spacing: -.025em;
  transition: background-color .15s ease, color .15s ease;
}
.cmd-list h3 { font: inherit }
.cmd-row:hover { background: var(--ground-3) }
.cmd-row:focus-visible { outline-offset: -2px }
.cmd-row[aria-expanded="true"] { background: var(--accent); color: var(--on-accent) }
.cmd-body { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 2px 20px 22px; background: var(--accent); color: var(--on-accent); font-size: var(--step-body) }
.cmd-body p { max-width: 42em }
.cmd-body a { flex: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center }
.cmd-body :focus-visible { outline-color: #fff }
.js h3:has(> .cmd-row[aria-expanded="false"]) + .cmd-body { display: none }
.cmd-empty { padding: 20px; background: var(--ground-3); font-size: var(--step-lead) }

/* Process */

/* Pricing */
.pricing { padding-block: var(--sec) }
.pricing-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; margin-bottom: clamp(32px, 4vw, 56px) }
.pricing-head .h-sec { grid-column: 1 / span 5 }
.pricing-head .statement { grid-column: 6 / -1 }
.prices { width: 100%; border-collapse: collapse; text-align: left }
.prices thead th { padding: 0 20px 14px 0; font-size: 1rem; font-weight: 500; color: var(--muted); vertical-align: bottom }
.prices tbody tr { border-top: 1px solid var(--line) }
.prices tbody th, .prices td { padding: clamp(20px, 2vw, 28px) 20px clamp(20px, 2vw, 28px) 0; vertical-align: top }
.prices tbody th { width: 21%; font-size: var(--step-lead); font-weight: 400; line-height: 1.2; letter-spacing: -.01em }
.prices td:nth-of-type(1) { width: 34% }
.prices td:nth-of-type(2), .prices td:nth-of-type(3) { width: 17%; white-space: nowrap }
.prices strong { font-size: var(--step-lead); font-weight: 400; letter-spacing: -.01em; line-height: 1.2 }
.price-iva { display: block; margin-top: 4px; font-size: 1rem; color: var(--muted); white-space: normal }
.price-cta { width: 11%; padding-right: 0 !important; text-align: right }
.prices .link-cta { min-height: 32px }

.prices tbody tr { scroll-margin-top: calc(var(--bar-h) + 40px) }
.prices tbody tr:target { background: var(--ground-2) }
.prices tbody tr:last-child { border-bottom: 1px solid var(--line) }
.price-note { padding-top: clamp(20px, 2vw, 28px) }


/* About */
.about { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center; padding-bottom: var(--sec) }
.about-head { grid-column: 1 / span 5; display: flex; align-items: center; gap: clamp(16px, 2vw, 28px) }
.about-img { flex: none; width: clamp(88px, 8vw, 120px); height: clamp(88px, 8vw, 120px); border-radius: 50%; object-fit: cover; background: var(--ground-3) }
.about-text { grid-column: 6 / -1; display: grid; gap: 12px; max-width: 40em }

/* Close and form */
.close { background: var(--ground-2); padding-block: clamp(56px, 7vw, 104px) clamp(28px, 3vw, 40px) }
.close-in { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: clamp(32px, 3.4vw, 56px) }
.h-close { grid-column: 1 / -1; font-size: clamp(1.6875rem, 5vw, 4.5rem); font-weight: 300; line-height: 1.02; letter-spacing: -.02em; max-width: 19em }
.close-side { grid-column: 1 / span 5 }
.close-lead { font-size: var(--step-lead); line-height: 1.32; letter-spacing: 0; max-width: 24em }
.direct { margin-top: clamp(32px, 4vw, 56px); display: grid; gap: 18px }
.direct dt { color: var(--muted); font-size: 1rem }
.direct dd a { font-weight: 600; font-size: var(--step-body); display: inline-block; padding-block: 6px }
.direct dd a:hover { color: var(--accent-text) }
.form-wrap { grid-column: 7 / -1 }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px var(--gap) }
.field { min-width: 0 }
.field-full, .form-end { grid-column: 1 / -1 }
.field > label { display: block; font-weight: 500; font-size: 1rem; margin-bottom: 6px }
.opt { color: var(--muted); font-weight: 400 }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 13px 14px; background: var(--ground-3); border: 0; border-radius: 0; font-size: 1rem; appearance: none;
  transition: background-color .2s ease;
}
.field input:hover, .field select:hover, .field textarea:hover { background: var(--ground-4) }
.field input:not([type="checkbox"]):focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent-text); outline-offset: -2px; background: var(--ground-4) }
.field textarea { resize: vertical; min-height: 124px; display: block }
.field [aria-invalid="true"], .field input[aria-invalid="true"]:not([type="checkbox"]):focus { outline: 2px solid var(--danger); outline-offset: -2px }
.select { position: relative }
.select::after { content: ""; position: absolute; right: 16px; top: 22px; width: 9px; height: 9px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); pointer-events: none }
.select select { padding-right: 40px; text-overflow: ellipsis }
.field select option, .field select optgroup { background: var(--ground-3); color: var(--ink) }
.field-check { display: grid; grid-template-columns: 24px 1fr; gap: 2px 12px; align-items: start }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent) }
.field-check label { margin: 0; font-weight: 400; font-size: 1rem }
.field-check .err { grid-column: 2 }
.err { color: var(--danger); font-size: 1rem; margin-top: 6px }
.form-end { display: grid; gap: 16px; justify-items: start }
.form-error { color: var(--danger); max-width: 34em }
.form-ok { background: var(--ground-3); padding: clamp(24px, 3vw, 44px); outline: 0 }
.form-ok h3 { font-size: var(--step-svc); font-weight: 300; letter-spacing: -.02em; line-height: 1.05; margin-bottom: 14px }

/* Footer */
.foot { padding-block: 12px; color: var(--muted); font-size: 1rem }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 32px }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px }
.foot a { color: var(--ink); text-decoration: none; display: inline-block; padding-block: 8px; transition: color .2s ease }
.foot a:hover { color: var(--accent-text) }

/* Legal and thank-you pages */
.page { max-width: 760px; margin-inline: auto; padding: clamp(40px, 7vw, 96px) var(--m) 24px }
.page h1 { font-size: clamp(2.25rem, 6vw, 4rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.04; margin-bottom: 28px }
.page h2 { font-size: var(--step-lead); font-weight: 600; letter-spacing: -.015em; margin: 36px 0 8px }
.page p + p, .page ul + p { margin-top: 12px }
.page ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 4px }
.page .note { color: var(--muted); margin-top: 40px; font-size: 1rem }
.page .btn { margin-top: 28px }

/* The demo controls need script; without it the finished example still reads */
html:not(.js) .flow-tabs, html:not(.js) .panel-actions, html:not(.js) .flow-title { display: none }

/* Entrances: only when script is running */
.js [data-rise] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .9s var(--ease); transition-delay: var(--d, 0ms) }
.js [data-rise].in { opacity: 1; transform: none }
@media (min-width: 900px) {
  .js .stage { animation: shutter 1.15s var(--ease) .8s both }
  @keyframes shutter {
    from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%, 100% 72px); opacity: .3 }
    to { clip-path: polygon(72px 0, 100% 0, 100% 100%, 0 100%, 0 72px); opacity: 1 }
  }
}
.hero-h .ln { display: block; overflow: clip; padding-block: .06em .18em; margin-block: -.06em -.18em }
.hero-h .ln-in { display: block }
/* CSS entrance only plays if GSAP has not started by then */
.js .hero-h, .js .hero-copy { animation: rise .9s var(--ease) .8s both }
.js .hero-copy { animation-delay: .89s }
.gsap-on .hero-h, .gsap-on .hero-copy, .gsap-on .stage { animation: none !important }
.gsap-on [data-rise] { transition: none }
.gsap-on .btn[data-rise] { transition: background-color .2s ease }
@keyframes rise { from { opacity: 0; transform: translateY(18px) } to { opacity: 1; transform: none } }

/* Short laptop screens: keep the approval buttons on the first screen */
@media (min-width: 1241px) and (max-height: 800px) {
  .hero { padding-top: 20px }
  .hero-h { margin-bottom: 18px; font-size: min(4.6vw, 9vh) }
  .stage { padding-top: 20px; padding-bottom: 20px }
  .flow-top { margin-bottom: 10px }
  .graph { margin-bottom: 10px }
}

/* Narrow desktop */
@media (max-width: 1240px) {
  .nav { gap: 20px }
  .hero { grid-template-rows: auto auto 1fr }
  .hero-copy { grid-column: 1 / -1; padding-right: 0; padding-bottom: 32px; max-width: 44em }
  .stage { grid-column: 1 / -1; margin-left: calc(var(--m) * -1) }
  .flow { max-width: none }
  .instant-stage { grid-column: 1 / -1; margin-right: calc(var(--m) * -1); padding-right: var(--m) }
  .instant-side { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end }
  .instant-side .facts { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 24px var(--gap) }
  .instant-price { grid-column: 1 / span 8 }
  .instant-side .btn { grid-column: 9 / -1 }
}

/* Tablet and phone */
@media (max-width: 960px) {
  :root { --bar-h: 64px }
  .bar.is-scrolled .bar-in { height: 56px }
  .bar-in { gap: 12px }
  .mark-r { display: none }
  .burger { display: block; margin-right: -10px }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0;
    background: var(--ground-3); padding: 8px var(--m) 20px;
  }
  .nav.open { display: flex }
  .nav a { font-size: 1.5rem; font-weight: 500; color: var(--ink); padding-block: 10px; letter-spacing: -.02em }
  .hero { display: block; padding-top: 28px; min-height: 0 }
  .graph, .steps-mini { display: none }
  .flow .steps-mini { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 8px }
  .steps-mini li { padding: 8px 4px; text-align: center; background: var(--ground-3); color: var(--muted); font-size: .8125rem; font-weight: 500; transition: background-color .25s ease, color .25s ease }
  .steps-mini li.on { background: var(--accent); color: #fff }
  .steps-mini li.human.on { background: var(--ink); color: var(--ground) }
  .flow-panels { grid-template-columns: 1fr }
  .panel { min-height: 0 }
  .panel-draft { min-height: 92px }
  .hero-h { font-size: clamp(1.8rem, 8.4vw, 4rem) }
  .hero-copy { padding-right: 0; padding-bottom: 36px }
  .stage { margin-inline: calc(var(--m) * -1); padding: 44px var(--m) 28px; clip-path: polygon(56px 0, 100% 0, 100% 100%, 0 100%, 0 56px) }
  .flow-top { padding-left: 0; flex-direction: column; align-items: stretch }
  .flow-title { padding-left: 40px }
  .flow-tabs { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr }
  .tab { padding: 0 2px; min-height: 44px; font-size: .8438rem }
  .ui-btn { min-height: 44px; flex: 1 1 auto }
  .sgrid { grid-template-columns: 1fr 1fr }
  .sgrid li:last-child { grid-column: 1 / -1 }
  .sg-in { gap: 24px }
  .instant { display: block }
  .instant-head { display: block }
  .instant-head .svc-lede { margin-top: 14px }
  .instant-stage { margin: 28px calc(var(--m) * -1); padding: 44px var(--m) 28px; clip-path: polygon(0 0, calc(100% - 56px) 0, 100% 56px, 100% 100%, 0 100%) }
  .instant-side { display: block }
  .instant-side .facts { grid-template-columns: 1fr }
  .ld-channels .tab { min-height: 44px }
  .ld-choice { min-height: 44px }
  .pricing-head { display: block }
  .pricing-head .statement { margin-top: 16px }
  .prices, .prices tbody, .prices tr, .prices tbody th, .prices td { display: block; width: auto !important; white-space: normal !important; text-align: left }
  .prices thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }
  .prices tbody tr { padding-block: 24px }
  .prices tbody th { padding: 0 0 10px }
  .prices td { padding: 0 0 14px }
  .prices td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 1rem; font-weight: 500; color: var(--muted) }
  .price-cta { padding: 0 !important }
  .prices tbody tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; padding-block: 20px }
  .prices tbody th, .prices td:nth-of-type(1), .price-cta { grid-column: 1 / -1 }
  .prices td:nth-of-type(1)::before { display: none }
  .prices .link-cta { min-height: 44px }
  .sec-head { display: block }
  .sec-head .statement { margin-top: 16px }
  .about { display: block }
  .about-text { margin-top: 20px }
  .solutions { display: block }
  .sol-head { display: block }
  .sol-head .statement { margin-top: 16px }
  .cmd-row, .cmd-body { padding-inline: 14px }
  .cmd-input { padding-inline: 14px }
  .cmd-body { display: block }
  .cmd-body a { margin-top: 10px }
  .close-in { display: block }
  .close-side, .form-wrap { margin-top: 28px }
}
@media (max-width: 720px) {
  .ld-panels { grid-template-columns: 1fr }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr }
  .instant-side .btn { width: 100% }
  .form .btn { width: 100% }
  .form-end { justify-items: stretch }
  .actions .btn { flex: 1 1 100% }
}

/* Reduced motion: keep the content, drop the travel */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important }
  .js [data-rise] { opacity: 1; transform: none }
  .edges path.lit { stroke-dashoffset: 0 }
}
@media print {
  .bar { display: none }
  .js [data-rise] { opacity: 1; transform: none }
}
