/* pharmaan.com. Colours, type and motion from the Pharmaan identity (brand/pharmaan-identity, design/BRAND-KIT.md).
   One idea runs through it: the cut. The symbol is a capsule closed by one stroke at 62°; here that stroke crosses out
   the chores, marks every section and ends the counter's story. Motion is calm, one easing, nothing for its own sake. */

@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/fonts/inter-latin-700-normal.woff2) format('woff2'); }

:root {
  --navy: #101a2a;
  --navy-deep: #0a1220;
  --slate: #1d2838;
  --line-dark: #273447;
  --blue: #0a66c2;
  --blue-deep: #0a5aad;
  --blue-light: #a9cdf4;
  --mist: #c3ccd8;
  --dim: #8b99ad;
  --paper: #f5f7fa;
  --white: #ffffff;
  --ink: #101a2a;
  --ink-soft: #4a5668;
  --line: #e1e6ee;
  --leaf: #157a52;
  --amber: #9a5806;
  --max: 1200px;
  --t-fast: 200ms;
  --t-mid: 250ms;
  --t-slow: 300ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --font: Inter, 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--navy); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
main { background: var(--paper); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
img { display: block; max-inline-size: 100%; block-size: auto; }
a { color: inherit; }
.sprite { position: absolute; }
svg:not(.sprite) { inline-size: 1em; block-size: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.wrap { inline-size: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 1rem; inset-block-start: -4rem; z-index: 50; padding: 0.5rem 1rem; border-radius: 8px; background: var(--white); color: var(--ink); }
.skip:focus { inset-block-start: 1rem; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; border-radius: 8px; }

/* ---------- The cut: the symbol's stroke, as a mark ---------- */
.cut {
  display: inline-block;
  inline-size: 3px;
  block-size: 1.05em;
  margin-inline: 0.25em;
  border-radius: 2px;
  background: var(--blue);
  transform: skewX(-28deg);
  vertical-align: -0.15em;
}

.label { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 1.5rem; color: var(--ink-soft); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.label span { color: var(--blue); font-variant-numeric: tabular-nums; }
.label .cut { margin-inline: 0.125rem 0.25rem; }
.label--dark { color: var(--dim); }
.label--dark span { color: var(--blue-light); }
.label--dark .cut { background: var(--blue-light); }

/* ---------- Buttons: lift on hover, press in on click, the arrow leans forward ---------- */
.btn {
  --lift: 0px;
  --press: 1;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-block-size: 44px;
  padding: 0.625rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transform: translateY(var(--lift)) scale(var(--press));
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-mid) var(--ease), color var(--t-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { --lift: -2px; }
.btn:active { --lift: 0px; --press: 0.97; transition-duration: 90ms; }
.btn--large { min-block-size: 52px; padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn--small { min-block-size: 44px; padding: 0.5rem 1.125rem; }
.btn--primary { background: var(--blue); color: var(--white); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16), 0 8px 20px -10px rgb(10 102 194 / 0.8); }
.btn--primary:hover { background: var(--blue-deep); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16), 0 16px 32px -14px rgb(10 102 194 / 0.95); }
.btn--primary:active { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16), 0 4px 10px -6px rgb(10 102 194 / 0.8); }
.btn--ghost { border-color: #3a475b; color: var(--paper); }
.btn--ghost:hover { border-color: var(--mist); background: rgb(255 255 255 / 0.06); }
.btn--quiet { color: var(--mist); }
.btn--quiet:hover { color: var(--white); background: rgb(255 255 255 / 0.06); }
.btn .btn__arrow { font-size: 18px; stroke-width: 2.25; transition: transform var(--t-mid) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Navigation ---------- */
.nav { position: sticky; inset-block-start: 0; z-index: 40; background: rgb(16 26 42 / 0.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-block-end: 1px solid rgb(255 255 255 / 0.06); transition: background-color var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease); }
.nav.is-scrolled { background: rgb(12 20 33 / 0.94); box-shadow: 0 10px 30px -20px rgb(0 0 0 / 0.8); }
.nav__inner { display: flex; align-items: center; gap: 2rem; min-block-size: 72px; }
.nav__logo { display: block; padding-block: 0.5rem; }
.nav__logo img { block-size: 28px; inline-size: auto; }
.nav__links { display: none; gap: 0.25rem; margin-inline-start: 0.5rem; }
.nav__links a { display: inline-flex; align-items: center; min-block-size: 44px; padding: 0 0.875rem; border-radius: 999px; color: var(--mist); font-size: 0.9375rem; font-weight: 500; text-decoration: none; transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.nav__links a:hover { color: var(--white); background: rgb(255 255 255 / 0.06); }
.nav__actions { display: flex; align-items: center; gap: 0.5rem; margin-inline-start: auto; }
@media (min-width: 900px) { .nav__links { display: flex; } }
@media (max-width: 440px) { .nav__actions .btn--quiet { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(3.5rem, 7vw, 5.5rem); background: var(--navy); color: var(--paper); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: center; }
@media (min-width: 1020px) { .hero__grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 { margin: 0; font-size: clamp(3.25rem, 8.6vw, 7rem); line-height: 0.98; font-weight: 700; letter-spacing: -0.05em; }
.hero__lead { margin: 1.75rem 0 2.5rem; max-inline-size: 32rem; color: var(--mist); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* The counter: a real-sized till telling the offline story. */
.till-wrap { margin: 0; }
.till {
  position: relative;
  overflow: hidden;
  padding: clamp(1.125rem, 2.6vw, 1.75rem);
  border-radius: 28px;
  background: var(--white);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.till-wrap { filter: drop-shadow(0 40px 50px rgb(0 0 0 / 0.45)); }
.till__head, .stock__head, .owner__top { padding-inline-end: 22px; }
.till__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.till__name { font-weight: 600; }
.till__name em { display: block; color: var(--ink-soft); font-size: 0.8125rem; font-style: normal; font-weight: 400; }
.till__net { position: relative; display: grid; }
.net { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 0.375rem; justify-self: end; padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.net--on { background: #e2f3ea; color: var(--leaf); }
.net--off { background: #fbefdc; color: var(--amber); opacity: 0; transform: translateY(6px); }
.till.offline .net--on { opacity: 0; transform: translateY(-6px); }
.till.offline .net--off { opacity: 1; transform: none; }

.till__scan { display: flex; align-items: center; gap: 0.625rem; margin-block: 1.25rem 0.5rem; padding: 0.875rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink-soft); transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.till__scan svg { font-size: 18px; }
.till.is-scanning .till__scan { border-color: var(--blue); box-shadow: 0 0 0 4px rgb(10 102 194 / 0.12); color: var(--ink); }
.till__caret { inline-size: 2px; block-size: 1.1em; margin-inline-start: -0.4rem; background: var(--blue); opacity: 0; }
.till.is-scanning .till__caret { animation: caret 900ms steps(1) infinite; }
@keyframes caret { 50% { opacity: 1; } }

.till__lines { margin: 0; padding: 0; list-style: none; }
.till__lines li { display: grid; grid-template-columns: 1fr auto 4rem; gap: 1rem; align-items: center; padding-block: 0.8rem; border-block-end: 1px solid var(--line); }
.till__lines strong, .till__lines em { display: block; }
.till__lines em { color: var(--ink-soft); font-size: 0.8125rem; font-style: normal; }
.till__lines .q { color: var(--ink-soft); }
.till__lines .a { text-align: end; font-weight: 600; }
.till__total { display: flex; align-items: baseline; justify-content: space-between; padding-block: 1.125rem; }
.till__total strong { font-size: clamp(1.625rem, 3.4vw, 2.25rem); letter-spacing: -0.03em; }
.till__btn { display: grid; place-items: center; min-block-size: 56px; border-radius: 16px; background: var(--blue); color: var(--white); font-weight: 600; transition: transform 120ms var(--ease), background-color var(--t-fast) var(--ease); }
.till.press .till__btn { transform: scale(0.97); background: var(--blue-deep); }
.till.paid .till__btn { background: var(--slate); }

.till__queue { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-block-size: 44px; margin-block-start: 0.875rem; padding: 0 1rem; border-radius: 14px; background: var(--paper); font-size: 0.875rem; font-weight: 600; }
.queue__text { position: absolute; inset-inline-start: 1rem; display: inline-flex; align-items: center; gap: 0.375rem; opacity: 0; transform: translateY(6px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.queue__text--saved { color: var(--amber); }
.queue__text--sending { color: var(--blue-deep); }
.queue__text--sent { color: var(--leaf); }
.queue__dots { display: flex; gap: 6px; margin-inline-start: auto; }
.queue__dots i { inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--line); transition: background-color var(--t-mid) var(--ease), transform var(--t-mid) var(--ease); }

/* Rest state (no script, reduced motion): the sale done, sent once. */
.till[data-state='done'] .queue__text--sent { opacity: 1; transform: none; }
.till[data-state='done'] .queue__dots i { background: var(--leaf); }
.till[data-state='done'] .till__btn { background: var(--slate); }

/* The story, step by step (main.js adds the classes). */
.till[data-state='play'] .till__lines li { opacity: 0; transform: translateY(-8px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.till.l1 .till__lines li:nth-child(1), .till.l2 .till__lines li:nth-child(2), .till.l3 .till__lines li:nth-child(3) { opacity: 1; transform: none; }
.till[data-state='play'] .till__total strong { opacity: 0; transition: opacity var(--t-slow) var(--ease); }
.till.total .till__total strong { opacity: 1; }
.till.paid:not(.sending):not(.sent) .queue__text--saved { opacity: 1; transform: none; }
.till.sending .queue__text--sending { opacity: 1; transform: none; }
.till.sent .queue__text--sent { opacity: 1; transform: none; }
.till.q1 .queue__dots i:nth-child(1), .till.q2 .queue__dots i:nth-child(2), .till.q3 .queue__dots i:nth-child(3) { background: #e0a24a; }
.till.sending .queue__dots i:nth-child(n) { background: var(--blue); animation: send 600ms var(--ease) both; }
.till.sending .queue__dots i:nth-child(2) { animation-delay: 150ms; }
.till.sending .queue__dots i:nth-child(3) { animation-delay: 300ms; }
.till.sent .queue__dots i:nth-child(n) { background: var(--leaf); }
@keyframes send { 50% { transform: translateY(-6px); } }

/* Sealed: the three queued sales close into the capsule, the brand's own mark for "counted". */
.queue__dots { position: relative; }
.queue__capsule { position: absolute; inset-inline-end: 0; inset-block-start: 50%; inline-size: 34px !important; block-size: auto !important; translate: 0 -50%; fill: var(--leaf) !important; stroke: none !important; opacity: 0; transform: scale(0.6); transition: opacity var(--t-slow) var(--ease), transform 450ms var(--ease); }
.till.sealed .queue__dots i { opacity: 0; transform: scale(0.4); }
.till.sealed .queue__capsule, .till[data-state='done'] .queue__capsule { opacity: 1; transform: none; }
.till[data-state='done'] .queue__dots i { opacity: 0; }

.till__caption { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-block-start: 1.25rem; color: var(--dim); font-size: 0.8125rem; }
.till__step { white-space: nowrap; }
.till__toggle { margin-inline-start: auto; min-block-size: 44px; padding: 0 1rem; border: 1px solid var(--line-dark); border-radius: 999px; background: none; color: var(--mist); font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer; transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.till__toggle:hover { border-color: var(--mist); color: var(--white); }
.till__step { display: inline-flex; align-items: center; gap: 0.5rem; transition: color var(--t-slow) var(--ease); }
.till__step b { display: grid; place-items: center; inline-size: 22px; block-size: 22px; border: 1px solid var(--line-dark); border-radius: 50%; font-size: 0.75rem; font-weight: 600; transition: background-color var(--t-slow) var(--ease), border-color var(--t-slow) var(--ease), color var(--t-slow) var(--ease); }
.till__caption[data-active='1'] [data-step='1'], .till__caption[data-active='2'] [data-step='2'], .till__caption[data-active='3'] [data-step='3'] { color: var(--paper); }
.till__caption[data-active='1'] [data-step='1'] b, .till__caption[data-active='2'] [data-step='2'] b, .till__caption[data-active='3'] [data-step='3'] b { border-color: var(--blue); background: var(--blue); color: var(--white); }

/* ---------- The truth: the chores, crossed out ---------- */
.truth { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(5rem, 11vw, 9rem); background: var(--navy-deep); color: var(--paper); }
/* The symbol's cut, full height: one stroke at 62° through the section, the brand's largest mark on the page. */
.truth::before {
  content: '';
  position: absolute;
  inset-block: -10%;
  inset-inline-start: 46%;
  z-index: -1;
  inline-size: clamp(60px, 9vw, 140px);
  background: linear-gradient(180deg, rgb(10 102 194 / 0.28), rgb(10 102 194 / 0.08));
  transform: skewX(-28deg);
}
@media (max-width: 959px) { .truth::before { inset-inline-start: 72%; opacity: 0.6; } }
.truth__grid { display: grid; gap: 3rem; align-items: end; }
@media (min-width: 960px) { .truth__grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.truth__title { margin: 0; font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.06; letter-spacing: -0.04em; font-weight: 600; }
.chores { display: grid; margin: 0; padding: 0; list-style: none; border-block-start: 1px solid var(--line-dark); }
.chores li { padding-block: 1.125rem; border-block-end: 1px solid var(--line-dark); font-size: clamp(1.125rem, 2vw, 1.5rem); letter-spacing: -0.015em; color: var(--mist); }
.chores span { position: relative; display: inline-block; }
/* The cut strikes each chore, a little after the one before. */
.chores span::after { content: ''; position: absolute; inset-inline: -0.15em; inset-block-start: 54%; block-size: 2.5px; border-radius: 2px; background: var(--blue); transform: rotate(-1.5deg) scaleX(1); transform-origin: left center; }
@supports (animation-timeline: view()) {
  .chores li span::after { animation: strike linear both; animation-timeline: view(); animation-range: entry 60% cover 45%; }
  .chores li span { animation: fade linear both; animation-timeline: view(); animation-range: entry 60% cover 45%; }
}
@keyframes strike { from { transform: rotate(-1.5deg) scaleX(0); } to { transform: rotate(-1.5deg) scaleX(1); } }
@keyframes fade { from { color: var(--paper); } to { color: #a3afc0; } }
.io .chores span::after { transform: rotate(-1.5deg) scaleX(0); transition: transform 600ms var(--ease) 150ms; }
.io .chores li.is-in span::after { transform: rotate(-1.5deg) scaleX(1); }
.truth__answer { margin-block: clamp(3rem, 6vw, 4.5rem) 0; font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.025em; color: var(--mist); }
.truth__answer strong { color: var(--white); font-weight: 600; }

/* ---------- Product ---------- */
.product { padding-block: clamp(5rem, 10vw, 8rem); }
.head { display: grid; gap: 1.25rem 4rem; align-items: end; margin-block-end: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 980px) { .head { grid-template-columns: 1.3fr 1fr; } .head .label { grid-column: 1 / -1; margin: 0; } }
.head__lead { margin: 0; max-inline-size: 30rem; color: var(--ink-soft); font-size: 1.125rem; }
.head__lead--dark { color: var(--mist); }
.head h2 { margin: 0; max-inline-size: 16ch; font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.04; letter-spacing: -0.045em; }
.start .head h2 { color: var(--paper); }

.story { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 5vw, 4rem); border-block-start: 1px solid var(--line); }
@media (min-width: 980px) { .story { grid-template-columns: 4fr 8fr; gap: 4rem; align-items: center; } }
.story__kind { display: flex; align-items: center; gap: 0.5rem; margin: 0; color: var(--blue); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.story__kind::before { content: ''; inline-size: 3px; block-size: 1em; border-radius: 2px; background: currentColor; transform: skewX(-28deg); }
.story h3 { margin: 1rem 0 0.75rem; font-size: clamp(1.625rem, 2.8vw, 2.25rem); line-height: 1.1; letter-spacing: -0.03em; }
.story p:not(.story__kind) { margin: 0; color: var(--ink-soft); font-size: 1.0625rem; }
.note { margin: 0; color: var(--ink-soft); font-size: 0.8125rem; }

.story__card { filter: drop-shadow(0 26px 30px rgb(16 26 42 / 0.16)); }
.catalog, .panel { padding: clamp(1.125rem, 3vw, 1.75rem); border-radius: 24px; background: var(--white); font-variant-numeric: tabular-nums; }

/* The symbol's 62° cut, on one corner of every product card: Pharmaan with the logo covered. */
.till, .catalog, .panel {
  -webkit-mask-image: linear-gradient(242deg, transparent 26px, #000 26.6px);
  mask-image: linear-gradient(242deg, transparent 26px, #000 26.6px);
}

/* Stock */
.stock__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.stock__head strong { display: block; font-size: 1.375rem; letter-spacing: -0.02em; }
.stock__head span { color: var(--ink-soft); font-size: 0.875rem; }
.stock__figures { display: flex; gap: 2.5rem; margin-block: 1.5rem 1rem; }
.stock__figures span { display: block; color: var(--ink-soft); font-size: 0.8125rem; }
.stock__figures strong { font-size: 2rem; line-height: 1.1; letter-spacing: -0.03em; }
.stock__meter { position: relative; block-size: 8px; margin-block-end: 1.25rem; border-radius: 999px; background: #eef1f5; }
.stock__meter i { position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: 35%; border-radius: inherit; background: #b45309; }
.stock__meter b { position: absolute; inset-block: -4px; inset-inline-start: 50%; inline-size: 2px; background: var(--ink); }
.stock__rows { margin: 0; padding: 0; list-style: none; border-block-start: 1px solid var(--line); }
.stock__rows li { display: grid; grid-template-columns: 4.5rem 1fr auto 2rem; gap: 1rem; align-items: center; padding-block: 0.875rem; border-block-end: 1px solid var(--line); font-size: 0.9375rem; }
.stock__rows .num { text-align: end; font-weight: 600; }
.mono { font-variant-numeric: tabular-nums slashed-zero; font-weight: 600; letter-spacing: 0.02em; }

/* Owner */
.owner__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block-end: 1.25rem; border-block-end: 1px solid var(--line); }
.owner__top span { display: block; color: var(--ink-soft); font-size: 0.875rem; }
.owner__top strong, .owner__n, .till__total strong, .till__lines .a, .stock__figures strong { white-space: nowrap; }
.owner__top strong { font-size: clamp(1.75rem, 3.4vw, 2.25rem); letter-spacing: -0.03em; }
.owner__label { margin: 1.25rem 0 0.25rem; color: var(--ink-soft); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.owner__acts { margin: 0; padding: 0; list-style: none; }
.owner__acts li { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: 1rem; align-items: center; padding-block: 0.875rem; border-block-end: 1px solid var(--line); }
.owner__acts li:last-child { border-block-end: 0; }
.owner__n { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; color: #b45309; }
.owner__n--red { color: #b42318; }
.owner__n--dim { color: var(--ink); font-size: 1rem; }
.owner__acts strong, .owner__acts em { display: block; }
.owner__acts em { color: var(--ink-soft); font-size: 0.875rem; font-style: normal; }
.owner__btn { padding: 0.5rem 0.875rem; border: 1px solid #cfd7e2; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 520px) { .owner__acts li { grid-template-columns: 3.5rem 1fr; } .owner__btn { grid-column: 2; justify-self: start; } .stock__rows li { grid-template-columns: 4rem 1fr 1.5rem; } .stock__rows .tag { grid-column: 2; grid-row: 2; justify-self: start; } }
.catalog__search { display: flex; align-items: center; gap: 0.625rem; margin-block-end: 0.75rem; padding: 0.875rem 1rem; border: 1px solid var(--blue); border-radius: 14px; box-shadow: 0 0 0 4px rgb(10 102 194 / 0.1); color: var(--ink-soft); }
.catalog__search svg { font-size: 18px; }
.catalog__search span { color: var(--ink); font-weight: 600; font-family: 'Segoe UI', Tahoma, 'Geeza Pro', system-ui, sans-serif; }
.catalog__search em { margin-inline-start: auto; font-size: 0.8125rem; font-style: normal; }
.catalog ul { margin: 0; padding: 0; list-style: none; }
.catalog li { display: grid; grid-template-columns: 1fr auto; gap: 0.125rem 1rem; padding-block: 0.875rem; border-block-end: 1px solid var(--line); }
.catalog li:last-child { border-block-end: 0; }
.catalog li span { grid-column: 1; color: var(--ink-soft); font-size: 0.875rem; }
.catalog li .tag { grid-row: 1 / span 2; grid-column: 2; align-self: center; }

.tag { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.625rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.tag svg { font-size: 13px; stroke-width: 2.5; }
.tag--leaf { background: #e2f3ea; color: var(--leaf); }
.tag--blue { background: #e3effb; color: var(--blue-deep); }
.tag--amber { background: #fbefdc; color: var(--amber); }
.tag--red { background: #fde8e7; color: #b42318; }
.tag--grey { background: #eef1f5; color: var(--ink-soft); }

/* ---------- Cities ---------- */
.start { padding-block: clamp(5rem, 10vw, 8rem); background: var(--navy); color: var(--paper); }
.steps { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; counter-reset: none; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: clamp(1.75rem, 3.5vw, 2.5rem); border: 1px solid var(--line-dark); border-radius: 28px; background: rgb(255 255 255 / 0.03); transition: border-color var(--t-mid) var(--ease); }
.step:hover { border-color: #3a475b; }
.step__n { display: grid; place-items: center; inline-size: 48px; block-size: 48px; border-radius: 999px; background: var(--blue); color: var(--white); font-size: 1.25rem; font-weight: 700; }
.step h3 { margin: 1.5rem 0 0.5rem; font-size: clamp(1.375rem, 2.4vw, 1.75rem); letter-spacing: -0.025em; }
.step p { margin: 0; color: var(--mist); }
.city-grid { display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .city-grid { grid-template-columns: repeat(2, 1fr); } }
.city { padding: clamp(1.75rem, 4vw, 2.75rem); border: 1px solid var(--line-dark); border-radius: 28px; transition: border-color var(--t-mid) var(--ease); }
.city:hover { border-color: #3a475b; }
.city__name { margin: 0; font-size: clamp(2.75rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.05em; }
.city { background: rgb(255 255 255 / 0.03); }
.city__truth { margin: 1rem 0 1.5rem; color: var(--mist); font-size: 1.125rem; }
.city__visual { margin-block-end: 1.75rem; padding: 1rem 1.125rem; border-radius: 16px; background: rgb(255 255 255 / 0.04); font-variant-numeric: tabular-nums; }
.receipt { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem; align-items: center; color: var(--paper); }
.receipt span:nth-child(2) { grid-row: 2; color: var(--mist); font-family: 'Segoe UI', Tahoma, 'Geeza Pro', system-ui, sans-serif; justify-self: start; }
.receipt .num { grid-row: 1 / span 2; grid-column: 2; font-weight: 600; }
.day__power, .day__sales { block-size: 8px; border-radius: 999px; }
.day__power { display: flex; gap: 3px; }
.day__power i { flex: 3; border-radius: 999px; background: #f2bd70; }
.day__power i.off { flex: 1.4; background: transparent; outline: 1px dashed #4a5a70; outline-offset: -1px; }
.day__sales { margin-block-start: 8px; background: #6ee7a0; }
.day__legend { display: flex; justify-content: space-between; margin-block-start: 0.625rem; color: var(--dim); font-size: 0.75rem; }
.day__legend span::before { content: ''; display: inline-block; inline-size: 8px; block-size: 8px; margin-inline-end: 0.375rem; border-radius: 50%; background: #f2bd70; }
.day__legend span:last-child::before { background: #6ee7a0; }
.status { display: grid; margin: 0; padding: 0; list-style: none; border-block-start: 1px solid var(--line-dark); }
.status li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; align-items: center; padding-block: 0.875rem; border-block-end: 1px solid var(--line-dark); color: var(--mist); }
.status .tag { justify-self: start; }
.tag--ready { background: rgb(74 222 128 / 0.12); color: #6ee7a0; }
.tag--soon { background: rgb(240 179 91 / 0.12); color: #f2bd70; }
.next { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem 1.5rem; margin: 2rem 0 0; color: var(--mist); }
.next > span { color: var(--dim); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.next ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.next li { display: inline-flex; align-items: center; gap: 0.625rem; }
.next li::before { content: ''; inline-size: 3px; block-size: 0.95em; border-radius: 2px; background: var(--blue-light); transform: skewX(-28deg); }

/* ---------- Closer and demo request ---------- */
.closer { padding-block: clamp(5rem, 10vw, 8rem); background: var(--paper); }
.closer__inner { display: grid; justify-items: center; text-align: center; }
.closer__inner .hero__actions { justify-content: center; margin-block-start: 2.5rem; }
.closer__talk { margin: 1.5rem 0 0; color: var(--ink-soft); font-size: 0.9375rem; }
.closer__talk a { color: var(--blue-deep); font-weight: 600; }
.btn--line { border-color: #cfd7e2; color: var(--ink); }
.btn--line:hover { border-color: var(--ink-soft); background: var(--white); }
.closer svg.closer__symbol { display: block; inline-size: 120px; block-size: auto; margin: 0 auto 2rem; overflow: visible; }
.closer__capsule { fill: var(--blue); stroke: var(--blue); stroke-width: 1; stroke-dasharray: 340; stroke-dashoffset: 0; }
.closer.will-draw:not(.is-in) .closer__capsule { stroke-dashoffset: 340; fill-opacity: 0; }
.closer.will-draw.is-in .closer__capsule { transition: stroke-dashoffset 1.1s var(--ease), fill-opacity 500ms var(--ease) 800ms; }
.closer h2 { margin: 0; font-size: clamp(3rem, 7vw, 5.5rem); line-height: 0.98; letter-spacing: -0.05em; }
.closer__lead { margin: 1.5rem auto 0; max-inline-size: 32rem; color: var(--ink-soft); font-size: 1.125rem; }

.demo { display: grid; gap: 1rem; padding: clamp(1.5rem, 3.5vw, 2.25rem); border-radius: 28px; background: var(--white); }
.closer__grid > form { filter: none; }
.closer { --shade: drop-shadow(0 26px 30px rgb(16 26 42 / 0.14)); }
.demo-wrap { filter: var(--shade); }
.field { display: grid; gap: 0.375rem; }
.field label { font-size: 0.875rem; font-weight: 600; }
.field input, .field select { min-block-size: 50px; padding: 0 1rem; border: 1px solid #cfd7e2; border-radius: 14px; background: var(--white); color: var(--ink); font: inherit; transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.field input:hover, .field select:hover { border-color: #aab6c6; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(10 102 194 / 0.14); }
.field input[aria-invalid='true'] { border-color: #b42318; box-shadow: 0 0 0 4px rgb(180 35 24 / 0.1); }
.demo__send { margin-block-start: 0.5rem; }
.demo__hint { margin: 0; color: var(--ink-soft); font-size: 0.8125rem; }
.demo__hint a { color: var(--blue-deep); }

/* ---------- Footer ---------- */
.foot { padding-block: 3rem; background: var(--navy-deep); color: var(--dim); font-size: 0.875rem; }
.foot__inner { display: grid; gap: 2rem; }
@media (min-width: 880px) { .foot__inner { grid-template-columns: 1fr auto; align-items: start; } }
.foot__brand img { block-size: 22px; inline-size: auto; }
.foot__brand p { margin: 0.75rem 0 0; color: var(--mist); }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.foot__links a { display: inline-flex; align-items: center; min-block-size: 44px; color: var(--mist); text-decoration: none; transition: color var(--t-fast) var(--ease); }
.foot__links a:hover { color: var(--white); }
.foot__legal { grid-column: 1 / -1; margin: 0; padding-block-start: 2rem; border-block-start: 1px solid var(--line-dark); }

/* ---------- Entrances ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__copy > * { animation: rise 700ms var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: 80ms; }
.hero__copy > :nth-child(3) { animation-delay: 160ms; }
.hero__copy > :nth-child(4) { animation-delay: 240ms; }
.till-wrap { animation: rise 900ms var(--ease) 250ms both; }
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
}
.io .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.io .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.lost { min-block-size: 100dvh; display: grid; place-items: center; background: var(--navy); color: var(--paper); }
main.lost__body { background: none; }
.lost__body { display: grid; justify-items: center; gap: 1rem; padding-block: 4rem; text-align: center; }
.lost__body img { inline-size: 120px; }
.lost__body h1 { margin: 1rem 0 0; font-size: 2.5rem; letter-spacing: -0.03em; }
.lost__body p { margin: 0 0 1rem; color: var(--mist); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover { transform: none; }
  .chores span::after { transform: rotate(-1.5deg) scaleX(1) !important; }
  .chores span { color: #a3afc0; }
}
