/* Byjan Finstacc — site styles.
   Light and playful: off-white page, butter / sky / blush tiles, white spotlight
   cards, one amber accent. css/static.css is the no-motion version. */

@font-face {
  font-family: "Google Sans";
  src: url("/fonts/google-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* The rupee sign lives in a separate 1 KB file, fetched only when used. */
@font-face {
  font-family: "Google Sans";
  src: url("/fonts/google-sans-rupee.woff2") format("woff2");
  font-weight: 400 700;
  unicode-range: U+20B9;
  font-display: swap;
}
/* Fallback sized to Google Sans so the font swap does not move text. */
@font-face {
  font-family: "Google Sans Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Roboto"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 100.9%;
  ascent-override: 95.8%;
  descent-override: 28.4%;
  line-gap-override: 0%;
}

:root {
  --bg: #FFFDF6;
  --white: #FFFFFF;
  --butter: #FFF0B8;
  --butter-2: #FFE68A;
  --sky: #DCEBFF;
  --blush: #FFE1E7;
  --cloud: #F2F0EA;
  --amber: #F08A24;
  --ink: #1D1815;
  --ink-2: #57504A;
  --line: #ECE6DA;
  --focus: #1D1815;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --r: 28px;
  --sans: "Google Sans", "Google Sans Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow: 0 1px 2px rgba(29, 24, 21, .04), 0 12px 32px -18px rgba(29, 24, 21, .22);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
.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; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding-inline: var(--gut); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 10px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 12px; text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }

/* ── Buttons and links ───────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 1.3em; border-radius: 999px; border: 1.5px solid transparent;
  font: 500 .95rem/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--spring), background-color .2s, box-shadow .3s var(--ease);
}
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: translateY(0) scale(.97); }
.pill-lg { min-height: 54px; padding: 0 1.6em; font-size: 1rem; }
.pill-ink { background: var(--ink); color: var(--white); }
.pill-ink:hover { box-shadow: 0 10px 24px -10px rgba(29, 24, 21, .55); }
.pill-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.pill-line:hover { background: var(--white); }
.link { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; font-weight: 500; text-decoration: none; }
.link .arr, .more .arr { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--spring); }
.link:hover .arr, a:hover > .more .arr, .more:hover .arr { transform: translateX(4px); }
.link span { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1.5px; padding-bottom: 2px; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px; font-weight: 500; font-size: .95rem; }

/* ── Header ──────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 246, .88); border-bottom: 1px solid transparent; transition: border-color .3s; }
@supports (backdrop-filter: blur(8px)) { .top { backdrop-filter: saturate(1.4) blur(12px); background: rgba(255, 253, 246, .76); } }
.top.is-stuck { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 10px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; border-radius: 8px; }
.logo { width: 150px; height: auto; overflow: visible; }
.logo .coin { transform-box: fill-box; transform-origin: 50% 100%; }
.brand:hover .logo .coin { animation: hop .7s var(--spring); }
@keyframes hop { 0% { transform: none; } 35% { transform: translateY(-34%) scale(.92, 1.08); } 60% { transform: translateY(0) scale(1.1, .9); } 80% { transform: translateY(-8%); } 100% { transform: none; } }
.nav ul { display: flex; align-items: center; gap: 2px; }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: .95rem; color: var(--ink-2); text-decoration: none; transition: background-color .2s, color .2s; }
.nav a:hover { background: var(--butter); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--amber); }
.top-cta { min-height: 44px; margin-left: 6px; }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 500 .92rem var(--sans); cursor: pointer; }
.menu-ico, .menu-ico::before, .menu-ico::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), background-color .2s; }
.menu-ico { position: relative; }
.menu-ico::before, .menu-ico::after { content: ""; position: absolute; left: 0; }
.menu-ico::before { top: -5px; } .menu-ico::after { top: 5px; }
.menu-btn[aria-expanded="true"] .menu-ico { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-ico::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-ico::after { transform: translateY(-5px) rotate(-45deg); }

/* ── Surfaces ────────────────────────────────────────────── */
.tile, .card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 26px; border-radius: var(--r); color: var(--ink); text-decoration: none; overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transition: transform .5s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.t-butter { background: var(--butter); }
.t-sky { background: var(--sky); }
.t-blush { background: var(--blush); }
.t-cloud { background: var(--cloud); }
/* White card with a soft butter spotlight that follows the cursor. */
.card { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 230, 138, .45), transparent 60%); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
a.tile:hover, a.card:hover, .card:hover, li.tile:hover { --ty: -4px; box-shadow: 0 1px 2px rgba(29, 24, 21, .04), 0 26px 44px -26px rgba(29, 24, 21, .38); }
.card:hover { border-color: #E2D9C6; }
.tile-h { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.tile-p { font-size: .95rem; color: var(--ink-2); }

/* Line icons built from the logo: same round stroke, same coin. */
.ico { width: 52px; height: 52px; margin-bottom: 18px; overflow: visible; flex: none; }
.ico-tile { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 20px; border-radius: 18px; }
.ico-tile .ico { width: 40px; height: 40px; margin: 0; }
.ico .ln, .art .ln { fill: none; stroke: var(--ink); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ico .cn, .art .cn { fill: var(--amber); transform-box: fill-box; transform-origin: 50% 100%; }
.tile:hover .ico .cn, .card:hover .ico .cn, .feature:hover .art .cn { animation: hop .7s var(--spring); }

/* Pop in on view. js/site.js adds .js-motion to <html>, then .in per element. */
.js-motion .pop { opacity: 0; transform: translateY(26px) scale(.97); transition: opacity .7s var(--ease) var(--d, 0s), transform .8s var(--spring) var(--d, 0s), box-shadow .4s var(--ease); }
.js-motion .pop.in { opacity: 1; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); }
.js-motion .pop:not(.in) .ln { stroke-dashoffset: 1; }
.js-motion .pop .ln { transition: stroke-dashoffset 1.1s var(--ease) calc(var(--d, 0s) + .25s); }
.stagger > :nth-child(2) { --d: .07s; } .stagger > :nth-child(3) { --d: .14s; } .stagger > :nth-child(4) { --d: .21s; } .stagger > :nth-child(5) { --d: .28s; } .stagger > :nth-child(6) { --d: .35s; }

/* ── Page hero (inner pages) ─────────────────────────────── */
.dots { position: relative; isolation: isolate; }
.dots::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(29, 24, 21, .12) 1px, transparent 1.2px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.page-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 4vw, 48px); }
.page-hero h1 { font-size: clamp(2.8rem, 1.2rem + 5vw, 5.6rem); line-height: .98; letter-spacing: -0.055em; max-width: 14ch; }
.page-hero p { margin-top: 18px; max-width: 36em; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); }

/* ── Home hero ───────────────────────────────────────────── */
.hero { padding: clamp(28px, 4.5vw, 56px) 0 clamp(28px, 4vw, 44px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: clamp(28px, 4vw, 56px); }
.hero h1 { font-size: clamp(2.9rem, 1rem + 5.4vw, 6.2rem); line-height: .98; letter-spacing: -0.055em; }
.mark { white-space: nowrap; padding: 0 .1em; border-radius: .18em; background: linear-gradient(var(--butter), var(--butter)) no-repeat 0 60% / 100% 80%; -webkit-box-decoration-break: clone; box-decoration-break: clone; animation: sweep 1s var(--ease) .35s both; }
@keyframes sweep { from { background-size: 0% 80%; } to { background-size: 100% 80%; } }
.hero-sub { margin-top: 20px; max-width: 30em; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* Product stage: the real Extraby screen with real close-ups from the app. */
.stage { position: relative; aspect-ratio: 1 / .94; border-radius: 34px; overflow: hidden; background: linear-gradient(150deg, var(--sky) 0%, #EAF1FF 45%, var(--butter) 100%); box-shadow: inset 0 0 0 1px rgba(29, 24, 21, .05); animation: rise .9s var(--spring) both; }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(29, 24, 21, .1) 1px, transparent 1.2px); background-size: 20px 20px; -webkit-mask-image: radial-gradient(closest-side, transparent 55%, #000); mask-image: radial-gradient(closest-side, transparent 55%, #000); opacity: .6; }
.stage-phone { position: absolute; left: 50%; bottom: -14%; width: 44%; padding: 7px; border-radius: 34px; background: var(--ink); box-shadow: 0 40px 70px -30px rgba(29, 24, 21, .55); translate: -50% 0; transform: translate3d(calc(var(--px, 0) * -10px), calc(var(--py, 0) * -8px), 0); transition: transform .8s var(--ease); z-index: 1; }
.stage-phone img { width: 100%; height: auto; border-radius: 27px; }
.crop { position: absolute; z-index: 2; margin: 0; border-radius: 18px; overflow: hidden; background: var(--white); box-shadow: 0 1px 2px rgba(29, 24, 21, .06), 0 24px 44px -20px rgba(29, 24, 21, .35); transform: translate3d(calc(var(--px, 0) * var(--k, 18px)), calc(var(--py, 0) * var(--k, 18px)), 0) rotate(var(--rot, 0deg)); transition: transform .8s var(--ease); }
.crop img { width: 100%; height: auto; }
.crop-a { left: 4%; top: 12%; width: 42%; --rot: -3deg; --k: 22px; animation: rise .9s var(--spring) .25s both; }
.crop-b { right: 4%; top: 44%; width: 40%; --rot: 3deg; --k: 30px; animation: rise .9s var(--spring) .4s both; }
.crop figcaption { padding: 8px 12px 10px; font-size: .78rem; color: var(--ink-2); border-top: 1px solid var(--line); }
@keyframes rise { from { opacity: 0; translate: 0 30px; scale: .96; } }
.stage-phone { animation: rise-phone 1s var(--spring) .1s both; }
@keyframes rise-phone { from { opacity: 0; translate: -50% 60px; } to { translate: -50% 0; } }

/* Value strip */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.value { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); }
.value .ico { width: 36px; height: 36px; margin: 0; }
.value b { display: block; font-weight: 500; letter-spacing: -0.01em; }
.value span { font-size: .9rem; color: var(--ink-2); }

/* ── Sections ────────────────────────────────────────────── */
.sec { padding: clamp(28px, 3.6vw, 44px) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 32px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 30px); }
.sec-head h2 { font-size: clamp(2.1rem, 1.2rem + 2.6vw, 3.6rem); letter-spacing: -0.045em; }
.sec-head p { max-width: 28em; color: var(--ink-2); }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid4 .card, .grid4 .tile { min-height: 290px; }

/* Featured work (home) */
.feat { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 0; padding: 0; min-height: 460px; }
.feat-copy { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(26px, 4vw, 52px); }
.feat-copy h3 { font-size: clamp(2.4rem, 1.4rem + 2.8vw, 3.8rem); letter-spacing: -0.05em; }
.feat-copy p { color: var(--ink-2); font-size: 1.05rem; max-width: 30em; }
.feat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-top: 6px; }
.feat-list li { position: relative; padding-left: 20px; font-size: .95rem; }
.feat-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.feat-art { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--butter) 0%, #FFF6D4 60%, var(--blush) 100%); }
.fa { position: absolute; bottom: -60px; padding: 6px; border-radius: 26px; background: var(--ink); box-shadow: 0 30px 50px -24px rgba(29, 24, 21, .45); transition: transform .7s var(--spring); }
.fa img { width: 100%; height: auto; border-radius: 20px; }
.fa-1 { width: 30%; left: 8%; transform: rotate(-7deg) translateY(30px); }
.fa-2 { width: 35%; left: 33%; z-index: 2; }
.fa-3 { width: 30%; right: 6%; transform: rotate(7deg) translateY(30px); }
.feat:hover .fa-1 { transform: rotate(-11deg) translate(-12px, 16px); }
.feat:hover .fa-2 { transform: translateY(-14px); }
.feat:hover .fa-3 { transform: rotate(11deg) translate(12px, 16px); }

/* Process with the rolling coin */
.rail { position: relative; height: 34px; margin: 0 12px 6px; }
.rail::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed #DDD5C5; }
.rail-fill { position: absolute; left: 0; top: calc(50% - 1px); height: 2px; width: calc(var(--roll, 0) * 100%); background: var(--ink); border-radius: 2px; }
.rail-coin { position: absolute; top: 50%; left: calc(var(--roll, 0) * 100%); width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--amber); box-shadow: inset -4px -4px 0 rgba(0, 0, 0, .08); transform: rotate(calc(var(--roll, 0) * 720deg)); }
.rail-coin::after { content: ""; position: absolute; left: 50%; top: 4px; width: 2px; height: 7px; margin-left: -1px; border-radius: 2px; background: rgba(255, 255, 255, .7); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.step { padding: 22px; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--butter); font-weight: 600; font-size: .9rem; }
.step:nth-child(2) .step-n { background: var(--sky); } .step:nth-child(3) .step-n { background: var(--blush); } .step:nth-child(4) .step-n { background: var(--cloud); }
.step h3 { margin-top: 14px; font-size: 1.3rem; letter-spacing: -0.03em; }
.step p { margin-top: 6px; font-size: .95rem; color: var(--ink-2); }

/* CTA band */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; padding: clamp(28px, 4vw, 48px); border-radius: 32px; background: linear-gradient(120deg, var(--butter) 0%, #FFF4CC 50%, var(--blush) 100%); }
.cta-band h2 { font-size: clamp(2rem, 1.2rem + 2.2vw, 3.2rem); letter-spacing: -0.045em; }
.cta-band p { margin-top: 10px; color: var(--ink-2); max-width: 34em; }

/* ── Services page ───────────────────────────────────────── */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(20px, 3vw, 32px) 0; scroll-margin-top: 96px; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature:nth-child(even) .feature-art { order: 2; }
.feature-art { display: grid; place-items: center; aspect-ratio: 5 / 4; border-radius: 30px; overflow: hidden; }
.art { width: 70%; height: auto; overflow: visible; }
.art .ln { stroke-width: 3.2; }
.feature h2 { font-size: clamp(2rem, 1.2rem + 2.2vw, 3.2rem); letter-spacing: -0.045em; }
.feature > div > p { margin-top: 12px; color: var(--ink-2); font-size: 1.05rem; max-width: 32em; }
.checks { margin-top: 18px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 50%; background: var(--butter); }
.checks li::after { content: ""; position: absolute; left: 6px; top: .47em; width: 8px; height: 4px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.proof { margin-top: 16px; font-size: .9rem; color: var(--ink-2); }
.proof a { color: var(--ink); text-underline-offset: 4px; }

.models .card { min-height: 220px; }
.models h3 { font-size: 1.5rem; }
.models p { color: var(--ink-2); }

.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { border-radius: 20px; background: var(--white); border: 1px solid var(--line); transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 22px; cursor: pointer; list-style: none; font-weight: 500; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--butter) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D1815' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .35s var(--spring); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); max-width: 46em; }

/* ── Work page (case study) ──────────────────────────────── */
.cs-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px 48px; align-items: end; }
.cs-head p { color: var(--ink-2); font-size: 1.08rem; }
.cs-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(20px, 3vw, 32px); }
.cs-fact { padding: 20px 22px; }
.cs-fact b { display: block; font-size: clamp(1.6rem, 1.1rem + 1.2vw, 2.2rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
.cs-fact span { display: block; margin-top: 6px; font-size: .9rem; color: var(--ink-2); }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 22vw, 250px); gap: 16px; overflow-x: auto; padding: 8px 4px 22px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.gallery figure { scroll-snap-align: start; }
.gallery .shot { padding: 6px; border-radius: 28px; background: var(--ink); box-shadow: 0 24px 44px -26px rgba(29, 24, 21, .5); transition: transform .5s var(--spring); }
.gallery figure:hover .shot { transform: translateY(-6px) rotate(-1deg); }
.gallery img { width: 100%; height: auto; border-radius: 22px; }
.gallery figcaption { margin-top: 12px; font-size: .92rem; color: var(--ink-2); }
.gallery figcaption b { display: block; color: var(--ink); font-weight: 500; }
.built .card { min-height: 200px; }
.built h3 { font-size: 1.25rem; }
.built p { color: var(--ink-2); font-size: .95rem; }
.stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border-radius: 24px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.stack div { padding: 18px 20px; background: var(--white); }
.stack dt { font-size: .85rem; color: var(--ink-2); }
.stack dd { margin: 4px 0 0; font-weight: 500; }
.soon { flex-direction: row; align-items: baseline; justify-content: space-between; }
.soon .tile-h { font-size: 1.6rem; }

/* ── About page ──────────────────────────────────────────── */
.about-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 56px; align-items: start; }
.about-lead p { color: var(--ink-2); font-size: 1.08rem; }
.about-lead p + p { margin-top: 14px; }
.principles .card { min-height: 230px; }
.principles h3 { font-size: 1.4rem; }
.principles p { color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; border-radius: 22px; overflow: hidden; background: var(--line); border: 1px solid var(--line); margin: 0; }
.facts div { padding: 16px 20px; background: var(--white); }
.facts dt { font-size: .85rem; color: var(--ink-2); }
.facts dd { margin: 4px 0 0; font-weight: 500; }
.facts a { text-underline-offset: 4px; }

/* ── Contact page ────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 20px; align-items: start; }
.brief { padding: clamp(20px, 3vw, 32px); }
.brief fieldset { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.brief legend, .field label { display: block; padding: 0; margin-bottom: 8px; font-weight: 500; font-size: .92rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; z-index: 1; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg); font-size: .92rem; transition: background-color .2s, border-color .2s, color .2s, transform .35s var(--spring); }
.chip input:hover + span { border-color: var(--ink-2); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); transform: scale(1.04); }
.chip input:checked + span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { margin-bottom: 14px; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 14px; border: 1.5px solid #CFC7B8; background: var(--white); color: var(--ink); font: 400 1rem/1.5 var(--sans); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--sky); outline-offset: 0; border-color: var(--ink); }
.brief-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
.brief-note { flex: 1 1 200px; font-size: .85rem; color: var(--ink-2); }
.side { display: grid; gap: 14px; }
.side .tile h2 { font-size: 1.3rem; letter-spacing: -0.03em; }
.addresses { margin: 8px 0 0; }
.addresses div + div { margin-top: 6px; }
.addresses dt { font-size: .85rem; color: var(--ink-2); }
.addresses dd { margin: 0; }
.addresses a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.08rem; font-weight: 500; text-underline-offset: 5px; word-break: break-all; }
.next { counter-reset: n; display: grid; gap: 12px; margin-top: 10px; }
.next li { counter-increment: n; position: relative; padding-left: 40px; font-size: .95rem; }
.next li::before { content: counter(n); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--white); font-size: .82rem; font-weight: 600; }

/* ── Footer ──────────────────────────────────────────────── */
.foot { margin-top: clamp(24px, 4vw, 40px); border-top: 1px solid var(--line); background: var(--white); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; padding: clamp(32px, 5vw, 56px) 0 28px; }
.foot-brand img { width: 146px; height: auto; }
.foot-brand p { margin-top: 14px; max-width: 26em; font-size: .92rem; color: var(--ink-2); }
.foot-col h2 { font-size: .85rem; font-weight: 500; letter-spacing: 0; color: var(--ink-2); margin-bottom: 8px; }
.foot-col a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--ink); text-decoration: none; font-size: .95rem; word-break: break-all; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; padding: 18px 0 24px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-2); }
.foot-legal { display: flex; gap: 4px; }
.foot-legal a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink-2); text-decoration: none; border-radius: 999px; }
.foot-legal a:hover { background: var(--butter); color: var(--ink); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1023px) {
  .hero-in, .cs-head, .about-lead { grid-template-columns: 1fr; }
  .stage { max-width: 620px; }
  .grid4, .steps, .cs-facts { grid-template-columns: 1fr 1fr; }
  .grid3, .stack { grid-template-columns: 1fr 1fr; }
  .rail { display: none; }
  .feat { grid-template-columns: 1fr; }
  .feat-art { min-height: 320px; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 899px) {
  .menu-btn { display: inline-flex; }
  .top-cta { display: none; }
  .nav { position: absolute; left: var(--gut); right: var(--gut); top: calc(100% + 6px); padding: 8px; border-radius: 22px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 24px 48px -24px rgba(29, 24, 21, .35); visibility: hidden; opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top; transition: opacity .2s, transform .3s var(--ease), visibility 0s .3s; }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .3s var(--ease); }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a { min-height: 52px; font-size: 1.1rem; color: var(--ink); border-radius: 14px; }
  .nav a[aria-current="page"]::after { left: auto; right: 18px; bottom: 50%; margin: 0 0 -2.5px; }
  .values { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-art { order: 0; }
}
@media (max-width: 599px) {
  .logo { width: 134px; }
  .hero-cta .pill { flex: 1 1 100%; }
  .grid4, .grid3, .grid2, .steps, .stack { grid-template-columns: 1fr; }
  .grid4 .card, .grid4 .tile { min-height: 0; }
  .cs-facts { grid-template-columns: 1fr 1fr; }
  .feat-list { grid-template-columns: 1fr; }
  .feat-art { min-height: 260px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .gallery { grid-auto-columns: 62vw; }
}
.about-lead .tile { padding: clamp(24px, 3vw, 36px); }
.about-lead .tile-h { font-size: clamp(1.45rem, 1.05rem + 1.1vw, 2rem); line-height: 1.22; letter-spacing: -0.03em; }

/* ── Home: rotating word in the headline ─────────────────── */
.hero h1 { font-size: clamp(2.7rem, 1rem + 4.4vw, 5.2rem); line-height: 1; }
/* The highlight starts on the text edge, so all three lines align. */
.rot { display: inline-block; vertical-align: bottom; }
.rot-w {
  display: inline-block; white-space: nowrap; padding-right: .14em; border-radius: 0 .18em .18em 0;
  background: linear-gradient(var(--hl, var(--butter)), var(--hl, var(--butter))) no-repeat 0 62% / 100% 78%;
  transition: opacity .28s var(--ease), transform .45s var(--spring);
}
.rot-w.is-out { opacity: 0; transform: translateY(-.35em) rotate(-2deg); }
.rot-w.is-in { opacity: 0; transform: translateY(.35em) rotate(2deg); transition: none; }
/* Centred hero: headline, line, buttons, then one calm showcase panel. */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(24px, 3vw, 36px); }
.hero-center { max-width: 920px; margin: 0 auto; text-align: center; }
.hero-center h1 { font-size: clamp(2.8rem, 1rem + 5.2vw, 6rem); line-height: 1; letter-spacing: -0.055em; }
.hero-center .hero-sub { margin: 22px auto 0; max-width: 34em; }
.hero-center .hero-cta { justify-content: center; margin-top: 30px; }
/* The rotating word's box eases to each word's width, so the centred line glides instead of jumping. */
.rot { display: inline-block; vertical-align: bottom; text-align: left; transition: width .45s var(--ease); }
.hero-center .rot-w { padding: 0 .1em; border-radius: .16em; }

.showcase {
  position: relative; overflow: hidden; margin-top: clamp(36px, 5vw, 60px);
  height: clamp(300px, 42vw, 560px); border-radius: 36px;
  background: linear-gradient(180deg, var(--sky) 0%, #EAF2FF 42%, var(--butter) 100%);
  box-shadow: inset 0 0 0 1px rgba(29, 24, 21, .05);
}
.showcase::after { content: ""; position: absolute; inset: auto 0 0; height: 70px; background: linear-gradient(transparent, rgba(255, 240, 184, .9)); pointer-events: none; z-index: 4; }
.sc-browser {
  position: absolute; left: 50%; top: 9%; width: 60%; margin: 0; z-index: 2;
  border-radius: 16px; overflow: hidden; background: var(--white);
  box-shadow: 0 1px 2px rgba(29, 24, 21, .06), 0 40px 80px -36px rgba(29, 24, 21, .45);
  translate: -50% 0; transform: translate3d(calc(var(--px, 0) * -6px), calc(var(--py, 0) * -4px), 0);
  transition: transform .8s var(--ease); animation: sc-up 1s var(--spring) .05s both;
}
.sc-browser img { width: 100%; height: auto; }
.sc-browser .browser-bar { height: 32px; }
.sc-phone {
  position: absolute; top: 20%; width: 15%; z-index: 3; padding: 6px; border-radius: 30px; background: var(--ink);
  box-shadow: 0 30px 60px -26px rgba(29, 24, 21, .5); transition: transform .8s var(--ease);
}
.sc-phone img { width: 100%; height: auto; border-radius: 24px; }
.sc-phone-l { left: 6%; transform: translate3d(calc(var(--px, 0) * 12px), calc(var(--py, 0) * 10px), 0) rotate(-6deg); animation: sc-left 1s var(--spring) .2s both; }
.sc-phone-r { right: 6%; transform: translate3d(calc(var(--px, 0) * 12px), calc(var(--py, 0) * 10px), 0) rotate(6deg); animation: sc-right 1s var(--spring) .3s both; }
@keyframes sc-up { from { opacity: 0; translate: -50% 50px; } to { translate: -50% 0; } }
@keyframes sc-left { from { opacity: 0; translate: -50px 30px; } }
@keyframes sc-right { from { opacity: 0; translate: 50px 30px; } }
@media (max-width: 899px) {
  .showcase { height: auto; aspect-ratio: 1 / .66; }
  .sc-browser { width: 84%; top: 9%; }
  .sc-phone { display: none; }
}
@media (max-width: 599px) {
  .showcase { aspect-ratio: 1 / .78; border-radius: 26px; }
  .sc-browser { width: 90%; top: 8%; }
  .sc-phone { display: none; }
}

/* ── Home: everything we build (bento) ───────────────────── */
.bento8 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(210px, auto); gap: 14px; }
.bento8 > li { display: flex; }
.bento8 .tile { flex: 1; }
.bento8 .ico { margin-bottom: auto; padding-bottom: 14px; box-sizing: content-box; }
.b-web { grid-column: span 2; }
.b-mob { grid-row: span 2; }
.b-wide { grid-column: span 2; }
.b-web .tile { padding-right: 44%; }
.mini-browser { position: absolute; right: -6%; bottom: -14%; width: 50%; border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: 0 24px 44px -20px rgba(29, 24, 21, .35), 0 0 0 1px rgba(29, 24, 21, .06); transform: rotate(-3deg); transition: transform .6s var(--spring); }
.mini-browser i { display: block; height: 14px; background: #F4F1EA; border-bottom: 1px solid var(--line); }
.mini-browser img { width: 100%; height: auto; }
.b-web .tile:hover .mini-browser { transform: rotate(0) translateY(-8px); }
.b-mob .tile { padding-bottom: 0; }
.mini-phone { display: block; width: 62%; margin: 22px auto -18%; padding: 6px; border-radius: 26px; background: var(--ink); box-shadow: 0 24px 44px -22px rgba(29, 24, 21, .45); transform: rotate(4deg); transition: transform .6s var(--spring); }
.mini-phone img { width: 100%; height: auto; border-radius: 20px; }
.b-mob .tile:hover .mini-phone { transform: rotate(0) translateY(-10px); }
.tile-row { flex-direction: row; align-items: center; gap: 20px; }
.tile-row .ico { margin: 0; padding: 0; }

/* ── Home: solutions ─────────────────────────────────────── */
.solutions .card { min-height: 250px; }
.sol-n { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 14px; font-weight: 600; font-size: .95rem; transition: transform .5s var(--spring); }
.solutions .card:hover .sol-n { transform: rotate(-8deg) scale(1.08); }
.solutions h3 { font-size: 1.35rem; letter-spacing: -0.03em; }
.solutions p { margin-top: 8px; color: var(--ink-2); font-size: .97rem; }
.sol-w { margin-top: auto; padding-top: 16px; font-size: .88rem; font-weight: 500; }

/* ── Home: proof (real websites and the real app) ────────── */
.proof-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 14px; align-items: stretch; }
.proof-site { padding: 18px; gap: 14px; }
.browser { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: 0 18px 36px -24px rgba(29, 24, 21, .3); transition: transform .6s var(--spring); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #F6F3EC; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #E2DACB; }
.browser-bar b { margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: var(--white); font-size: .75rem; font-weight: 500; color: var(--ink-2); }
.browser img { width: 100%; height: auto; }
.proof-site:hover .browser { transform: translateY(-6px); }
.proof-cap b { display: block; font-weight: 500; font-size: 1.1rem; letter-spacing: -0.02em; }
.proof-cap span { font-size: .92rem; color: var(--ink-2); }
.proof-app { padding: 18px; gap: 14px; background: linear-gradient(160deg, var(--blush) 0%, #FFF4D8 100%); border-color: transparent; }
.proof-phones { position: relative; display: block; flex: 1; min-height: 200px; overflow: hidden; border-radius: 14px; }
.pph { position: absolute; bottom: -120px; width: 44%; padding: 5px; border-radius: 22px; background: var(--ink); box-shadow: 0 20px 36px -18px rgba(29, 24, 21, .45); transition: transform .6s var(--spring); }
.pph img { width: 100%; height: auto; border-radius: 17px; }
.pph-1 { left: 8%; transform: rotate(-7deg); }
.pph-2 { left: 48%; transform: rotate(5deg); }
.proof-app:hover .pph-1 { transform: rotate(-10deg) translateY(-10px); }
.proof-app:hover .pph-2 { transform: rotate(8deg) translateY(-16px); }

/* ── Home: tools marquee ─────────────────────────────────── */
.tools-h { font-size: clamp(1.4rem, 1.1rem + .9vw, 1.9rem); letter-spacing: -0.03em; margin-bottom: 18px; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; flex: none; gap: 12px; padding-right: 12px; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { padding: 12px 22px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 500; white-space: nowrap; }
.marquee-track li:nth-child(4n+1) { background: var(--butter); border-color: transparent; }
.marquee-track li:nth-child(4n+3) { background: var(--sky); border-color: transparent; }
@keyframes marquee { to { transform: translateX(-100%); } }

@media (max-width: 1023px) {
  .bento8 { grid-template-columns: 1fr 1fr; }
  .b-mob { grid-row: span 2; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid > .proof-site:first-child { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .bento8 { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .b-web, .b-wide { grid-column: auto; }
  .b-mob { grid-row: auto; }
  .b-web .tile { padding-right: 26px; padding-bottom: 150px; }
  .mini-browser { width: 70%; bottom: -10%; }
  .mini-phone { width: 52%; }
  .tile-row { flex-direction: column; align-items: flex-start; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-phones { min-height: 220px; }
}

/* ── Work: jump tiles, accounting section, proof card ───── */
.work-jump { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 26px; max-width: 760px; }
.work-jump .tile-h, .work-jump .tile-p { display: block; }
.cs-title { font-size: clamp(2.6rem, 1.4rem + 3.4vw, 4.6rem); letter-spacing: -0.05em; }
.acc-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 24px; padding: clamp(24px, 4vw, 48px); }
.acc-hero .cs-head { grid-template-columns: 1fr; gap: 14px; }
.art.acc-art { width: 100%; height: auto; overflow: visible; }
.acc-art .ln { stroke-width: 3; }
.acc-built { margin-top: 14px; }
.proof-acc { grid-column: 1 / -1; gap: 22px; }
.proof-acc > div { flex: 1; }
.proof-acc b.tile-h, .proof-acc .tile-p { display: block; }
.proof-acc .more { margin: 0; padding: 0; white-space: nowrap; }
.facts + .facts { margin-top: 14px; }
@media (max-width: 1023px) { .acc-hero { grid-template-columns: 1fr; } .acc-art { max-width: 420px; } }
@media (max-width: 599px) { .work-jump { grid-template-columns: 1fr; } .proof-acc { flex-direction: column; align-items: flex-start; } }

/* ── Home: solutions by kind of business ─────────────────── */
.inds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.inds > li { display: flex; }
.ind { flex: 1; min-height: 340px; }
.ind .ico { margin-bottom: 26px; }
.ind-list { display: grid; gap: 6px; margin-top: 14px; font-size: .93rem; }
.ind-list li { position: relative; padding-left: 18px; }
.ind-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); transition: transform .4s var(--spring); }
.ind:hover .ind-list li::before { transform: scale(1.4); }
.ind:hover .ind-list li:nth-child(2)::before { transition-delay: .06s; }
.ind:hover .ind-list li:nth-child(3)::before { transition-delay: .12s; }

/* ── Home: clinic token system, step by step ─────────────── */
.tk { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 14px; align-items: stretch; }
.tk-stage {
  --slot: clamp(52px, 6.4vw, 76px); --gap: 10px;
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  min-height: 380px; padding: clamp(20px, 3vw, 34px); border-radius: 30px; overflow: hidden;
  background: linear-gradient(160deg, var(--sky) 0%, #EAF2FF 55%, var(--butter) 100%);
}
.tk-board { align-self: flex-start; padding: 14px 22px 16px; border-radius: 22px; background: var(--white); box-shadow: var(--shadow); }
.tk-board span { display: block; font-size: .85rem; color: var(--ink-2); }
.tk-now { display: block; font-size: clamp(2.6rem, 1.8rem + 2.4vw, 3.8rem); font-weight: 600; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.tk-now.tick { animation: tick .6s var(--spring); }
@keyframes tick { 0% { transform: translateY(40%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.tk-queue { display: flex; align-items: center; gap: 12px; }
.tk-room { position: relative; z-index: 2; flex: none; display: grid; place-items: end center; width: calc(var(--slot) * 1.1); height: calc(var(--slot) * 1.5); padding-bottom: 8px; border: 3px solid var(--ink); border-bottom: 0; border-radius: 18px 18px 0 0; background: var(--white); font-size: .78rem; font-weight: 500; }
.tk-line { position: relative; flex: 1; height: calc(var(--slot) + 24px); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent); mask-image: linear-gradient(90deg, #000 78%, transparent); }
.tk-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed rgba(29, 24, 21, .2); }
.tk-line li {
  position: absolute; top: 12px; left: calc((var(--i) - var(--shift, 0)) * (var(--slot) + var(--gap)));
  display: grid; place-items: center; width: var(--slot); height: var(--slot); border-radius: 50%;
  background: var(--white); border: 2px solid var(--line); font-weight: 600; font-size: clamp(.95rem, .8rem + .4vw, 1.15rem); font-variant-numeric: tabular-nums;
  transition: left .9s var(--spring), opacity .5s var(--ease), transform .6s var(--spring), background-color .3s, color .3s, border-color .3s;
}
.tk-line li:nth-child(2) { --i: 1; } .tk-line li:nth-child(3) { --i: 2; } .tk-line li:nth-child(4) { --i: 3; } .tk-line li:nth-child(5) { --i: 4; } .tk-line li:nth-child(6) { --i: 5; }
.tk-line li:nth-child(1) { --i: 0; }
.tk[data-step="2"] { --shift: 1; } .tk[data-step="3"] { --shift: 2; } .tk[data-step="4"] { --shift: 3; }
.tk[data-step="2"] .tk-line li:nth-child(-n+1), .tk[data-step="3"] .tk-line li:nth-child(-n+2), .tk[data-step="4"] .tk-line li:nth-child(-n+3) { opacity: 0; transform: scale(.4); }
/* The token at the doctor's door. */
.tk[data-step="1"] .tk-line li:nth-child(1), .tk[data-step="2"] .tk-line li:nth-child(2), .tk[data-step="3"] .tk-line li:nth-child(3), .tk[data-step="4"] .tk-line li:nth-child(4) { border-color: var(--ink); background: var(--ink); color: var(--white); }
.tk-line li.tk-you { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.tk[data-step="3"] .tk-you { animation: hop 1.1s var(--spring) .5s 2; }
.tk[data-step="4"] .tk-line li.tk-you { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 4px var(--white), 0 0 0 7px var(--ink); }
.tk-msg { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 10px 18px 10px 14px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow); font-size: .93rem; font-weight: 500; }
.tk-msg.swap { animation: msg .55s var(--spring); }
@keyframes msg { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.tk-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; transform: scale(.8); } }
.tk-steps { display: grid; gap: 10px; align-content: start; }
.tk-step {
  position: relative; display: flex; gap: 14px; width: 100%; padding: 18px 20px; overflow: hidden;
  border: 1.5px solid var(--line); border-radius: 22px; background: var(--white); color: var(--ink);
  font: inherit; text-align: left; cursor: pointer; transition: border-color .3s, box-shadow .3s var(--ease), transform .4s var(--spring);
}
.tk-step:hover { border-color: #D8CFBD; transform: translateX(3px); }
.tk-step[aria-pressed="true"] { border-color: var(--ink); box-shadow: var(--shadow); }
.tk-n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--butter); font-weight: 600; font-size: .9rem; transition: background-color .3s, color .3s, transform .5s var(--spring); }
.tk-step[aria-pressed="true"] .tk-n { background: var(--ink); color: var(--white); transform: rotate(-8deg) scale(1.06); }
.tk-txt b { display: block; font-weight: 500; font-size: 1.08rem; letter-spacing: -0.02em; }
.tk-txt span { display: block; margin-top: 4px; font-size: .93rem; color: var(--ink-2); }
/* While it plays by itself, a bar under the current step shows the time to the next one. */
.tk.is-auto .tk-step[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--amber); transform-origin: left; animation: tkbar 4.2s linear both; }
.tk.is-paused .tk-step::after { animation-play-state: paused !important; }
@keyframes tkbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── Free website offer ──────────────────────────────────── */
.free { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 40px; padding: clamp(24px, 4vw, 44px); border-radius: 32px; background: var(--sky); }
.free-price { font-size: clamp(3.8rem, 2rem + 6vw, 7.2rem); font-weight: 600; line-height: .9; letter-spacing: -0.06em; }
.js-motion .free.in .free-price { animation: hop 1s var(--spring) .45s; }
.free-copy h2 { font-size: clamp(1.9rem, 1.2rem + 2vw, 3rem); letter-spacing: -0.045em; }
.free-copy p { margin-top: 10px; max-width: 38em; color: var(--ink-2); }

/* Buttons lean towards the pointer a little (mouse only, set by js/site.js). */
.pill { translate: var(--mgx, 0px) var(--mgy, 0px); transition: transform .35s var(--spring), translate .4s var(--spring), background-color .2s, box-shadow .3s var(--ease); }

@media (max-width: 1023px) {
  .inds { grid-template-columns: 1fr 1fr; }
  .inds > li:last-child { grid-column: 1 / -1; }
  .inds > li:last-child .ind { min-height: 0; }
  .ind { min-height: 300px; }
  .tk { grid-template-columns: 1fr; }
  .tk-stage { min-height: 320px; }
  .tk-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 899px) {
  .free { grid-template-columns: auto minmax(0, 1fr); }
  .free .pill { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 599px) {
  .inds { grid-template-columns: 1fr; }
  .ind { min-height: 0; }
  .tk-stage { --slot: 50px; --gap: 8px; min-height: 0; gap: 18px; }
  .tk-room { width: 54px; height: 72px; font-size: .72rem; }
  .tk-steps { grid-template-columns: 1fr; }
  .tk-step { padding: 16px; }
  .free { grid-template-columns: 1fr; gap: 14px; }
  .free .pill { justify-self: stretch; }
  .tk-msg { border-radius: 18px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .value { flex-direction: column; align-items: flex-start; }
}
.free-price { display: flex; align-items: center; gap: .04em; }
.free-price span { display: inline-grid; place-items: center; width: 1.55em; height: 1.55em; margin-left: .05em; border-radius: 50%; background: var(--amber); color: var(--ink); font-size: .6em; letter-spacing: 0; box-shadow: inset -.06em -.06em 0 rgba(0, 0, 0, .08); }
@media (min-width: 600px) and (max-width: 1023px) {
  .inds > li:last-child .ind { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-content: start; }
  .inds > li:last-child .ind > * { grid-column: 1; }
  .inds > li:last-child .ind-list { grid-column: 2; grid-row: 1 / span 4; align-self: center; margin: 0; }
}
@media (max-width: 599px) { .tk-line { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); } }

/* ── Tablet and phone refinements ────────────────────────── */
@media (max-width: 1023px) {
  .bento8 { grid-auto-rows: minmax(170px, auto); }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .feature { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); align-items: start; }
  .feature-art { aspect-ratio: 1; border-radius: 24px; }
}
@media (max-width: 599px) {
  .feature-art { aspect-ratio: 16 / 9; border-radius: 22px; }
  .feature-art .art { width: 52%; }
  /* Two small tiles per row, so the list of services stays short on phones. */
  .bento8 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .b-web, .b-mob, .b-wide { grid-column: 1 / -1; }
  .bento8 .tile { padding: 18px; }
  .bento8 .tile-h { font-size: 1.1rem; }
  .bento8 .tile-p { font-size: .88rem; }
  .bento8 .ico { width: 40px; height: 40px; padding-bottom: 10px; }
  .b-mob .tile { flex-direction: row; flex-wrap: wrap; align-items: flex-start; column-gap: 0; padding-bottom: 0; overflow: hidden; }
  .b-mob .tile > :not(.mini-phone) { flex: 0 0 56%; }
  .b-mob .mini-phone { position: absolute; right: -4%; bottom: -30%; width: 40%; margin: 0; }
  .b-mob .tile { min-height: 230px; padding-bottom: 18px; }
  .tile-row { flex-direction: row; align-items: center; gap: 14px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .foot-col:last-child { grid-column: 1 / -1; }
}
/* Services: jump straight to a service. */
.svc-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.svc-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .92rem; font-weight: 500; text-decoration: none; transition: background-color .2s, transform .35s var(--spring), border-color .2s; }
.svc-jump a:hover { background: var(--butter); border-color: transparent; transform: translateY(-2px); }
.svc-jump a.svc-free { background: var(--sky); border-color: transparent; }
@media (max-width: 599px) { .bento8 .b-web .tile { padding: 18px 18px 150px; } }
