/* Web Design Depot: site styles */

@font-face { font-family: "Young Serif"; src: url("/fonts/young-serif-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url("/fonts/host-grotesk-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url("/fonts/host-grotesk-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Host Grotesk"; src: url("/fonts/host-grotesk-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --white: #FFFFFF;
  --ink: #0B0B0C;
  --body: #3E4048;
  --muted: #62656E;
  --soft: #9A9DA6;
  --line: #E3E4E8;
  --box: #F1F2F4;
  --blue: #1463F3;
  --blue-light: #5B9BFF;
  --dark-line: #24252A;
  --dark-line-2: #3A3C42;

  --serif: "Young Serif", Georgia, serif;
  --sans: "Host Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --h1: 76px;
  --h2: 56px;
  --h3: 24px;
  --lead: 19px;
  --text: 16px;
  --small: 14px;

  --wrap: 1440px;
  --gutter: 64px;
  --section: 128px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: var(--text); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: #0F4FCC; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--h1); line-height: 1; }
h2 { font-size: var(--h2); line-height: 1.1; }
h3 { font-size: var(--h3); line-height: 1.25; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.ruled { border-top: 1px solid var(--ink); padding-top: 32px; }
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split > .side { flex: 1 1 300px; font-weight: 500; }
.split > .main { flex: 3 1 720px; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: var(--small); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 10; }
.skip:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: var(--white); text-decoration: none;
  border: 1px solid var(--blue); border-radius: 999px;
  padding: 16px 28px; font: 500 16px/1.2 var(--sans); cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, filter .25s ease;
}
.btn:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(20,99,243,.55); filter: brightness(1.08); }
.btn:active { transform: translateY(0); box-shadow: 0 4px 10px -6px rgba(20,99,243,.5); }
.btn .arr { display: inline-block; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.btn:hover .arr { transform: translateX(4px); }
.btn-sm { padding: 11px 22px; }
.link-u { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--soft); transition: text-decoration-color .2s ease, text-underline-offset .2s ease; }
.link-u:hover { color: var(--ink); text-decoration-color: var(--ink); text-underline-offset: 4px; }
.btn-ghost { background: transparent; color: var(--soft); border: 1px solid var(--dark-line-2); border-radius: 999px; padding: 10px 18px; min-height: 44px; font: 14px var(--sans); cursor: pointer; transition: border-color .2s ease, color .2s ease, background-color .2s ease; }
.btn-ghost:hover { border-color: var(--soft); color: #C9CBD2; background-color: rgba(255,255,255,.04); }

/* Header */
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-block: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: -0.02em; }
.brand img { display: block; width: 30px; height: 30px; flex: none; }
.brand:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 36px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--blue); }
.menu-btn { display: none; }

/* Hero */
.hero { padding-top: 72px; }
.hero h1 { max-width: 1240px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-grid { padding-block: 72px var(--section); }
.hero-grid .split { gap: 56px; }
.hero-copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-copy .lead { font-size: var(--lead); color: var(--body); }
.cta-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }

/* Speed panel */
.speed { position: relative; overflow: hidden; flex: 1 1 520px; min-width: 0; background: var(--ink); color: var(--white); border-radius: 20px; padding: 36px 40px; display: flex; flex-direction: column; gap: 20px; }
.speed > *:not(canvas) { position: relative; z-index: 1; }
.speed canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; filter: blur(10px); opacity: 0; transition: opacity 1.2s ease; }
.speed canvas.on { opacity: 1; }
.speed-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: var(--small); color: var(--soft); }
.live { display: inline-flex; align-items: center; gap: 8px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--blue-light); }
.speed-label { font-size: var(--lead); color: #C9CBD2; }
.speed-num { font-family: var(--serif); font-size: 112px; line-height: .9; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.speed-num small { font-family: var(--sans); font-size: .3em; letter-spacing: 0; color: var(--soft); margin-left: 10px; }
.bars { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.bar-row { display: flex; flex-direction: column; gap: 6px; }
.bar-label { display: flex; justify-content: space-between; font-size: var(--small); color: var(--soft); }
.bar { height: 6px; background: var(--dark-line); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 100%; border-radius: 99px; transform: scaleX(0); transform-origin: left center; }
.bar .fast { background: var(--blue-light); }
.bar .slow { background: var(--muted); }
.racing .fast { animation: fill .5s cubic-bezier(.2,.8,.2,1) forwards; }
.racing .slow { animation: fill 6s linear forwards; }
@keyframes fill { from { transform: scaleX(0) } to { transform: scaleX(1) } }
.speed-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid transparent; padding-top: 18px; }
.speed-foot p { font-size: var(--small); line-height: 1.5; color: var(--soft); max-width: 340px; }

/* Work strip */
.work-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; }
/* Without JavaScript the strip scrolls natively; with it, the track slides (see site.js) */
.strip { overflow-x: auto; padding: 0 var(--gutter); max-width: var(--wrap); margin: 0 auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip-track { display: flex; gap: 24px; }
.strip.js { overflow: hidden; scroll-snap-type: none; touch-action: pan-y; }
.strip.js .strip-track { will-change: transform; }
.strip.grab { cursor: grab; }
.strip.dragging { cursor: grabbing; user-select: none; }
.work-card { scroll-snap-align: start; flex: none; width: min(860px, 86vw); display: flex; flex-direction: column; gap: 16px; }
.work-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-radius: 16px; border: 1px solid var(--line); background: var(--box); user-select: none; -webkit-user-drag: none; }
.card-meta h3 a { color: var(--ink); text-decoration: none; }
.card-meta h3 a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.strip-nav { display: flex; gap: 8px; align-self: flex-end; }
.strip-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); cursor: pointer; transition: border-color .2s ease, opacity .2s ease; }
.strip-btn:hover:not(:disabled) { border-color: var(--ink); }
.strip-btn:disabled { opacity: .35; cursor: default; }
.strip-btn svg { width: 18px; height: 18px; }
.card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; align-items: baseline; }
.card-meta h3 { font-size: var(--h3); }

/* Why */
.why-statement { font-family: var(--sans); font-size: 52px; line-height: 1.1; font-weight: 500; letter-spacing: -0.025em; }
.why-statement span { color: var(--muted); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; margin-top: 56px; }
.why-grid div { display: flex; flex-direction: column; gap: 10px; }
.why-grid .n { font-size: var(--small); color: var(--muted); font-variant-numeric: tabular-nums; }
.why-grid p { color: var(--body); }

/* Timeline */
.dark { background: var(--ink); color: var(--white); }
.timeline { margin: 64px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.timeline li { border-top: 1px solid var(--dark-line-2); padding: 24px 28px 0 0; display: flex; flex-direction: column; gap: 10px; }
.timeline li:first-child { border-top-color: var(--white); }
.timeline .when { font-size: var(--small); color: var(--soft); }
.timeline p { color: var(--soft); }

/* Quote */
.quote figure { margin: 0; }
.quote blockquote { margin: 0; font-family: var(--sans); font-size: 52px; line-height: 1.15; letter-spacing: -0.025em; max-width: 1100px; }
.quote figcaption { margin-top: 28px; color: var(--body); }
.quote figcaption a { color: var(--ink); }

/* Prices */
.prow { display: grid; grid-template-columns: 260px minmax(0, 1fr) 160px; gap: 8px 32px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.prow:hover { color: var(--ink); background: linear-gradient(90deg, rgba(20,99,243,.04), transparent); }
.pname { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.pname h3 { font-size: 26px; line-height: 1.2; }
.badge { font-size: 12px; font-weight: 600; color: var(--blue); border: 1px solid var(--blue); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.pdesc { color: var(--body); max-width: 52ch; }
.pprice { font-family: var(--mono); font-weight: 500; font-size: 32px; line-height: 1.2; letter-spacing: -0.04em; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pprice small { font-family: var(--sans, inherit); font-size: 15px; letter-spacing: 0; font-weight: 400; color: var(--muted, #6B6E76); margin-right: 4px; }
.price-note { padding-top: 24px; color: var(--body); }
.diff { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px 56px; }
.diff div { display: flex; flex-direction: column; gap: 6px; }
.diff p { color: var(--body); }

/* Contact */
.contact h2 { font-size: var(--h2); }
.contact-grid { display: flex; flex-wrap: wrap; gap: 64px; border-top: 1px solid var(--dark-line-2); padding-top: 40px; margin-top: 64px; }
.contact-grid > p { flex: 1 1 320px; font-size: var(--lead); color: var(--soft); }
.form { flex: 2 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 32px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--small); color: var(--soft); }
.field input { background: transparent; color: var(--white); border: 0; border-bottom: 1px solid var(--muted); padding: 10px 0; font: 19px var(--sans); min-height: 48px; border-radius: 0; }
.field input:focus { outline: none; border-bottom-color: var(--blue-light); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.form-foot .small { color: var(--soft); }
.form-foot a { color: var(--white); }
.form-status { grid-column: 1 / -1; font-size: var(--text); min-height: 1.6em; color: var(--soft); }
.form-status.ok { color: var(--blue-light); }
.form-status.err { color: #FF8A80; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Contact: two options (form or chat) */
.contact-main { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.contact-main .form { flex: none; }
.opt-tabs { display: inline-flex; align-self: flex-start; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--dark-line-2); border-radius: 999px; }
.opt-tab { background: transparent; color: var(--soft); border: 0; border-radius: 999px; padding: 10px 18px; min-height: 44px; font: 500 15px var(--sans); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.opt-tab:hover { color: var(--white); }
.opt-tab[aria-selected="true"] { background: var(--white); color: var(--ink); }
.chat { display: flex; flex-direction: column; gap: 16px; }
.contact-main [hidden] { display: none !important; }
.chat-head { color: var(--soft); }
.chat-log { min-height: 300px; max-height: 460px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--dark-line-2); border-radius: 16px; overscroll-behavior: contain; }
.msg { max-width: 85%; padding: 12px 16px; border-radius: 16px; font-size: 16px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.bot { align-self: flex-start; background: #17181B; color: var(--white); border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; background: var(--blue); color: var(--white); border-bottom-right-radius: 4px; }
.msg.note { align-self: center; max-width: 100%; padding: 4px 8px; background: transparent; color: var(--soft); font-size: var(--small); text-align: center; }
.msg.typing { color: var(--soft); }
.chat-input { display: flex; gap: 12px; align-items: flex-end; }
.chat-input textarea { flex: 1; min-width: 0; background: transparent; color: var(--white); border: 0; border-bottom: 1px solid var(--muted); padding: 10px 0; font: 17px/1.4 var(--sans); resize: none; min-height: 48px; max-height: 160px; border-radius: 0; }
.chat-input textarea:focus { outline: none; border-bottom-color: var(--blue-light); }
.chat-input textarea::placeholder { color: var(--muted); }
/* In-chat choices and the details card */
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; }
.chip { background: transparent; color: var(--white); border: 1px solid var(--dark-line-2); border-radius: 999px; padding: 10px 18px; min-height: 44px; font: 500 15px var(--sans); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.chip:hover:not(:disabled) { border-color: var(--soft); background-color: rgba(255,255,255,.04); }
.chip.primary { background: var(--blue); border-color: var(--blue); }
.chip.primary:hover:not(:disabled) { background: var(--blue); filter: brightness(1.08); }
.chip:disabled { opacity: .45; cursor: default; }
.chip.picked { opacity: 1; border-color: var(--soft); }
.msg.card { white-space: normal; display: flex; flex-direction: column; gap: 12px; max-width: 92%; }
.card-rows { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 15px; }
.card-rows dt { color: var(--soft); }
.card-rows dd { margin: 0; overflow-wrap: anywhere; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--ink); color: var(--soft); padding: 32px 0 48px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-size: var(--small); border-top: 1px solid var(--dark-line); padding-top: 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 28px; }
.site-footer a { color: var(--soft); }
.site-footer a:hover { color: var(--white); }
.site-footer .brand-f { color: var(--white); font-weight: 500; }

/* Price calculator (styled like the speed panel) */
.calc { margin-top: 64px; background: var(--ink); color: var(--white); border-radius: 20px; padding: 40px; display: flex; flex-direction: column; gap: 32px; }
.calc-head { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.calc-head h3 { font-size: 34px; }
.calc-head p { color: var(--soft); }
.calc-grid { display: flex; flex-wrap: wrap; gap: 48px; }
.calc-controls { flex: 3 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.calc-row { display: flex; flex-direction: column; gap: 12px; border: 0; margin: 0; padding: 0; min-width: 0; }
.calc-row legend { padding: 0; margin-bottom: 12px; font-size: var(--small); color: var(--soft); }
.calc-label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: var(--small); color: var(--soft); }
.calc-label output { color: var(--white); font-size: 16px; }
.calc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; --pct: 0%; }
.calc input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--blue-light) var(--pct), var(--dark-line-2) var(--pct)); }
.calc input[type=range]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--dark-line-2); }
.calc input[type=range]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--blue-light); }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--white); border: 0; box-shadow: 0 2px 10px rgba(0,0,0,.45); transition: transform .15s ease; }
.calc input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 0; box-shadow: 0 2px 10px rgba(0,0,0,.45); }
.calc input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); }
.calc input[type=range]:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 4px; border-radius: 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border: 1px solid var(--dark-line-2); border-radius: 999px; font-size: 15px; color: var(--soft); transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.seg label:hover span { border-color: var(--soft); color: var(--white); }
.seg input:checked + span { background: var(--white); border-color: var(--white); color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--blue-light); outline-offset: 2px; }
.calc-result { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 28px; border: 1px solid var(--dark-line-2); border-radius: 16px; align-self: flex-start; }
.calc-kicker { font-size: var(--small); color: var(--soft); }
.calc-price { font-family: var(--serif); font-size: 72px; line-height: .95; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.calc-lines li { display: flex; justify-content: space-between; gap: 16px; color: #C9CBD2; }
.calc-lines li span:last-child { font-family: var(--mono); font-weight: 500; color: var(--white); white-space: nowrap; }
label .opt { font-weight: 400; }
.calc-small { font-size: var(--small); color: var(--soft); line-height: 1.5; }
.tick { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; position: relative; }
.tick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick-box { flex: 0 0 auto; width: 24px; height: 24px; margin-top: 1px; border: 1px solid var(--dark-line-2); border-radius: 7px; display: grid; place-items: center; transition: background-color .2s ease, border-color .2s ease; }
.tick-box::after { content: ""; width: 6px; height: 11px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; }
.tick:hover .tick-box { border-color: var(--soft); }
.tick input:checked + .tick-box { background: var(--white); border-color: var(--white); }
.tick input:checked + .tick-box::after { opacity: 1; }
.tick input:focus-visible + .tick-box { outline: 2px solid var(--blue-light); outline-offset: 2px; }
.tick input:disabled + .tick-box { cursor: default; }
.tick:has(input:disabled) { cursor: default; }
.tick-text { display: flex; flex-direction: column; gap: 2px; font-size: 16px; color: var(--white); }
.tick-text small { font-size: var(--small); color: var(--soft); }
.calc-incl { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--dark-line-2); }
.calc-incl ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: #C9CBD2; }
.calc-incl li { display: flex; gap: 10px; }
.calc-incl li::before { content: "✓"; color: var(--blue-light); font-weight: 600; }
.calc-result .btn { align-self: flex-start; }
.calc-note { color: var(--soft); border-left: 2px solid var(--blue-light); padding-left: 14px; }
/* Bot check: invisible unless Cloudflare needs the visitor to tick it */
.ts { min-height: 0; }
.ts:empty { display: none; }
.calc-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 20px; background: #1A1B1F; color: var(--white); border: 1px solid var(--dark-line-2); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.45); opacity: 0; transform: translateY(calc(100% + 24px)); pointer-events: none; transition: transform .25s ease, opacity .25s ease; }
.calc-bar.show { opacity: 1; transform: none; }
.calc-bar span { font-size: var(--small); color: var(--soft); }
.calc-bar strong { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc-bar strong span { font-size: inherit; color: inherit; }

/* Phones and small tablets */
@media (max-width: 820px) {
  :root { --h1: 44px; --h2: 34px; --gutter: 20px; --section: 72px; }
  .site-header { position: relative; z-index: 20; }
  .site-header .wrap { padding-block: 18px; flex-wrap: nowrap; }
  /* Phone menu: brand + menu button; links and the price button open in a panel below */
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 10px; margin-right: -10px; background: transparent; border: 0; cursor: pointer; }
  .menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px var(--gutter) 24px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 18px 24px -18px rgba(11,11,12,.25); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; font-size: 20px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 20px; justify-content: center; }
  .calc { padding: 28px 20px; margin-top: 48px; }
  .calc-head h3 { font-size: 28px; }
  .calc-result { padding: 22px; }
  .calc-price { font-size: 56px; }
  .opt-tabs { display: grid; grid-template-columns: 1fr 1fr; align-self: stretch; }
  .opt-tab { padding: 10px 6px; font-size: 14px; line-height: 1.2; }
  .speed { padding: 28px 24px; }
  .speed-num { font-size: 72px; }
  .why-statement, .quote blockquote { font-size: 32px; }
  .prow { grid-template-columns: 1fr auto; }
  .prow .pdesc { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn .arr, .link-u, .btn-ghost, .menu-btn span, .strip-btn, .opt-tab, .chip, .seg span, .tick-box, .calc-bar, .faq-item summary::after { transition: none; }
  .btn:hover, .btn:hover .arr { transform: none; }
  .racing .fast, .racing .slow { animation-duration: .01s; }
}

/* Privacy and other text pages */
.legal { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.legal h1 { margin-bottom: 8px; }
.legal .lead { font-size: var(--lead); color: var(--body); }
.legal h2 { font-size: 30px; margin-top: 28px; }
.legal p, .legal li { color: var(--body); line-height: 1.7; }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal strong { color: var(--ink); font-weight: 500; }
@media (max-width: 820px) { .legal h2 { font-size: 26px; } }
/* Small link on dark panels (form and chat) */
.link-soft { color: var(--soft); text-decoration: underline; text-underline-offset: 3px; }
.link-soft:hover { color: var(--white); }

/* ---------- Inner pages (Work, Prices, About, Contact) ---------- */
.nav a[aria-current="page"]:not(.btn) { color: var(--blue); }
.site-footer a[aria-current="page"] { color: var(--white); }
.page-hero { padding-block: 72px 64px; display: flex; flex-direction: column; gap: 24px; }
.page-hero .lead { font-size: var(--lead); color: var(--body); max-width: 62ch; }
.side-h { font-family: var(--sans); font-size: 16px; font-weight: 500; letter-spacing: 0; }
.kicker { display: block; font-size: var(--small); color: var(--muted); margin-bottom: 10px; font-weight: 400; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 12px; color: var(--body); }
.ticks li::before { content: "✓"; color: var(--blue); font-weight: 600; flex: none; }
.ticks.crosses li::before { content: "✕"; color: var(--muted); }
.link-light { color: var(--soft); text-decoration: underline; text-underline-offset: 6px; }
.link-light:hover { color: var(--white); }

/* Work */
.case { padding-bottom: var(--section); display: flex; flex-direction: column; gap: 40px; }
.case-img img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-radius: 16px; border: 1px solid var(--line); background: var(--box); display: block; }
.case .side h2 { font-size: 34px; margin-bottom: 14px; }
.case-body { display: flex; flex-direction: column; gap: 32px; }
.case-body h3 { font-family: var(--sans); font-size: 16px; font-weight: 500; letter-spacing: 0; margin-bottom: 14px; }
.case-story { font-size: var(--lead); color: var(--body); max-width: 60ch; }
.case-quote { margin: 0; border-left: 2px solid var(--blue); padding-left: 24px; }
.case-quote blockquote { margin: 0; font-size: 20px; line-height: 1.5; color: var(--ink); }
.case-quote figcaption { margin-top: 12px; font-size: var(--small); color: var(--muted); }

/* Prices */
.after { display: flex; flex-direction: column; gap: 20px; }
.after > p:not(.after-price) { color: var(--body); }
.after-price { font-size: 22px; color: var(--body); }
.after-price span { font-family: var(--mono); font-weight: 500; font-size: 32px; color: var(--ink); letter-spacing: -0.04em; }
.after-price small { font-size: var(--small); color: var(--muted); }
.faq { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 0; font-size: 19px; font-weight: 500; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--muted); transition: transform .2s ease; flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }
.faq-item p { padding: 0 0 24px; color: var(--body); max-width: 68ch; }

/* About */
.prose { display: flex; flex-direction: column; gap: 24px; }
.prose > p:not(.why-statement) { color: var(--body); font-size: 18px; line-height: 1.7; max-width: 66ch; }

/* Call-to-action band */
.cta-band .wrap { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.cta-band p { color: var(--soft); font-size: var(--lead); max-width: 52ch; }
.cta-band .cta-row { margin-top: 8px; }

/* Contact page heading uses the same size as the homepage contact heading */
.contact h1 { font-size: var(--h2); }

@media (max-width: 820px) {
  .page-hero { padding-block: 40px 48px; }
  .case { gap: 28px; }
  .case .side h2 { font-size: 28px; }
  .faq-item summary { font-size: 17px; }
  .prose .why-statement { font-size: 30px !important; }
}
