/* Cyberlink IT Solution · direction "The product performs" (taste-skill), colours kept from the logo.
 * Idea: the service is shown working. The visitor switches on parts of their own office in a live panel,
 * the quote page is a cash register that prints each line as it is chosen, and sending the request
 * prints a receipt they can keep, save as PDF or share. */

/* Tokens */
:root {
  /* Every hue is measured from the logo files in assets/ */
  --paper: oklch(98.6% 0.006 245);
  --paper-2: oklch(95.6% 0.014 243);
  --paper-3: oklch(91.8% 0.024 243);
  --white: oklch(100% 0 0);
  --ink: oklch(16.1% 0.095 273);
  --ink-2: oklch(21% 0.09 271);
  --ink-3: oklch(28% 0.085 268);
  --ink-4: oklch(36% 0.08 264);
  --soft: oklch(42% 0.06 262);
  --accent: oklch(48.8% 0.135 250);
  --accent-press: oklch(42% 0.13 252);
  --sky: oklch(64.1% 0.126 233);
  --lamp: oklch(80% 0.11 230);
  --ok: oklch(76% 0.14 160);
  --ok-ink: oklch(45% 0.12 160);
  --on-dark-2: oklch(82% 0.04 240);
  --error: oklch(52% 0.19 27);
  --veil: oklch(10% 0.06 273 / 0.78);
  --lift: 0 24px 64px oklch(8% 0.05 273 / 0.45);

  --font: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --step-head: clamp(2rem, 1rem + 2.8vw, 3.75rem);
  --step-display: clamp(2.75rem, 1rem + 4.6vw, 5.75rem);

  --r-btn: 10px;
  --r-tile: 12px;
  --r-panel: 18px;
  --margin: clamp(16px, 3vw, 48px);
  --gap: clamp(16px, 2.4vw, 40px);
  --section: clamp(88px, 10vw, 160px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* Foundation */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 var(--step-body)/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
button, input, textarea, select { font: inherit; color: inherit; }
fieldset { padding: 0; border: 0; min-inline-size: 0; }
legend { padding: 0; }
::selection { background: var(--sky); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--margin); top: -100px; z-index: 50; padding: 12px 16px; border-radius: var(--r-btn); background: var(--paper); color: var(--ink); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--margin); }
.ico { width: 24px; height: 24px; flex: none; }

/* Buttons: one shape, one radius */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 0; border-radius: var(--r-btn); background: var(--sky); color: var(--ink); font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color 200ms var(--ease-out), transform 120ms var(--ease-out); }
.btn .arrow { width: 20px; height: 20px; transition: transform 200ms var(--ease-out); }
.btn:hover { background: var(--lamp); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn--small { min-height: 42px; padding: 0 16px; font-size: var(--step-small); }
.btn--big { min-height: 56px; padding: 0 26px; font-size: var(--step-lead); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--paper-3); }
.btn--ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 2px var(--ink-4); } /* taste-skill-ignore: a control's outline */
.btn--ghost:hover { background: var(--ink-3); }
.btn[aria-busy="true"] { opacity: 0.6; pointer-events: none; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; font-size: var(--step-small); font-weight: 600; }
.top__logo img { height: 40px; width: auto; }
.top__nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.top__nav a:not(.btn) { padding: 10px 0; text-decoration: underline 2px; text-decoration-color: transparent; text-underline-offset: 6px; transition: text-decoration-color 200ms var(--ease-out); }
.top__nav a:not(.btn):hover, .top__nav a[aria-current="page"] { text-decoration-color: currentColor; }

/* Headline that rises from behind its baseline */
.mask .mask__line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.mask [data-line] { display: block; }

/* Hero: a plain headline beside the working panel */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: center; min-height: calc(100svh - 88px); padding-block: 32px 80px; }
.hero__text { display: grid; gap: 28px; justify-items: start; }
.hero h1 { font-size: var(--step-display); line-height: 0.98; }
.hero__say { max-width: 40ch; font-size: var(--step-lead); color: var(--on-dark-2); }
.hero--page { min-height: 0; padding-block: clamp(48px, 8vw, 112px); }
.hero--short { grid-template-columns: minmax(0, 1fr); padding-block: clamp(40px, 6vw, 88px); }

/* The panel and its switches: a real piece of interface */
.panel { display: grid; gap: 16px; padding: 20px; border-radius: var(--r-panel); background: var(--ink-2); color: var(--paper); box-shadow: var(--lift); } /* taste-skill-ignore: the panel floats as the product */
.panel__bar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.panel__bar strong { font-size: var(--step-lead); }
.panel__bar span { font-size: var(--step-small); color: var(--on-dark-2); }
.score { display: flex; align-items: baseline; gap: 12px; }
.score b { font-size: clamp(2.5rem, 1.5rem + 3vw, 4rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.score span { color: var(--on-dark-2); }
.meter { height: 10px; border-radius: 99px; background: var(--ink-3); overflow: hidden; }
.meter span { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--ok); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform 600ms var(--ease-out); }
.switches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.switches--one { grid-template-columns: minmax(0, 1fr); }
.sw { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 12px 14px; border: 0; border-radius: var(--r-tile); background: var(--ink-3); color: var(--paper); text-align: left; cursor: pointer; transition: background-color 200ms var(--ease-out), transform 120ms var(--ease-out); }
.sw:hover { background: var(--ink-4); }
.sw:active { transform: scale(0.98); }
.sw .ico { color: var(--sky); }
.sw__text { display: grid; gap: 2px; }
.sw__name { font-weight: 600; line-height: 1.25; }
.sw__note { font-size: var(--step-small); color: var(--on-dark-2); }
.sw__state { font-size: 0.8125rem; color: var(--on-dark-2); }
.sw__on { display: none; color: var(--ok); }
.sw[aria-pressed="true"] .sw__off { display: none; }
.sw[aria-pressed="true"] .sw__on { display: inline; }
.toggle { position: relative; width: 44px; height: 26px; border-radius: 99px; background: var(--ink-4); transition: background-color 200ms var(--ease-out); }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); transition: transform 280ms var(--ease-spring); }
.sw[aria-pressed="true"] .toggle { background: var(--ok); }
.sw[aria-pressed="true"] .toggle::after { transform: translateX(18px); }
.panel--small { align-self: end; }
.panel--area { background: var(--ink-2); }

/* Statements beside small proofs of interface */
.rows { background: var(--paper); color: var(--ink); padding-block: var(--section); }
.rows .wrap { display: grid; gap: clamp(80px, 9vw, 140px); }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: center; }
.row--1 .row__text { order: 2; }
.row h2 { font-size: var(--step-head); }
.row__text p { margin-top: 18px; max-width: 38ch; font-size: var(--step-lead); color: var(--soft); }
.row__frag { display: flex; justify-content: center; }
.frag { width: 100%; padding: 20px; border-radius: var(--r-panel); background: var(--ink); color: var(--paper); box-shadow: var(--lift); } /* taste-skill-ignore: interface fragment */
.frag__head { font-size: var(--step-small); color: var(--on-dark-2); margin-bottom: 12px; }
.frag--list { max-width: 560px; display: grid; gap: 8px; }
.frag__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-tile); background: var(--ink-2); }
.frag__row em { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-weight: 600; color: var(--ok); white-space: nowrap; }
.frag__row .ico { width: 18px; height: 18px; }
.frag--log { max-width: 680px; }
.frag__days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.frag__days p { display: grid; gap: 4px; padding: 14px 12px; border-radius: var(--r-tile); background: var(--ink-2); font-size: var(--step-small); margin: 0; color: var(--paper); }
.frag__days em { font-style: normal; font-weight: 600; color: var(--ok); }
.frag--pay { max-width: 400px; display: grid; gap: 10px; }
.frag__card { display: flex; justify-content: space-between; align-items: center; padding: 18px; border-radius: var(--r-tile); background: var(--accent); }
.frag__dots { letter-spacing: 0.1em; }

/* How we start: a stepper the visitor clicks through */
.steps { padding-block: var(--section); }
.steps h2 { font-size: var(--step-head); }
.stepper { margin-top: 40px; display: grid; gap: 28px; max-width: 980px; }
.stepper__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stepper__tabs button { min-height: 56px; padding: 0 14px; border: 0; border-radius: var(--r-tile); background: var(--ink-2); color: var(--on-dark-2); font-weight: 600; cursor: pointer; transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), transform 120ms var(--ease-out); }
.stepper__tabs button:hover { background: var(--ink-3); color: var(--paper); }
.stepper__tabs button:active { transform: scale(0.97); }
.stepper__tabs button[aria-selected="true"] { background: var(--sky); color: var(--ink); }
.stepper__panel p { font-size: clamp(1.375rem, 1rem + 1.4vw, 2.25rem); line-height: 1.25; letter-spacing: -0.02em; max-width: 36ch; }
.js .stepper__panel[hidden] { display: none; }
.stepper__panel.is-new p { animation: rise 500ms var(--ease-out); }
html:not(.js) .stepper__tabs, html:not(.js) .stepper__bar { display: none; }
html:not(.js) .stepper { gap: 20px; }
.stepper__bar { height: 6px; border-radius: 99px; background: var(--ink-3); overflow: hidden; }
.stepper__bar span { display: block; height: 100%; border-radius: inherit; background: var(--sky); transform: scaleX(var(--s, 0.25)); transform-origin: left; transition: transform 500ms var(--ease-out); }

/* The four areas as two-ended rows */
.areas { background: var(--paper); color: var(--ink); padding-block: var(--section); }
.areas__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap); align-items: start; }
.areas h2 { font-size: var(--step-head); }
.areas__list { display: grid; gap: 8px; }
.areas__list a { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 24px; border-radius: var(--r-tile); background: var(--paper-2); text-decoration: none; transition: background-color 200ms var(--ease-out); }
.areas__list a:hover { background: var(--paper-3); }
.areas__name { display: grid; gap: 4px; font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.02em; }
.areas__name small { font-size: var(--step-small); font-weight: 400; letter-spacing: 0; color: var(--soft); }
.areas__count { display: inline-flex; align-items: center; gap: 8px; font-size: var(--step-small); font-weight: 600; color: var(--accent); white-space: nowrap; }
.areas__count .arrow { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
.areas__list a:hover .arrow { transform: translateX(4px); }

/* A sentence with a blank */
.ask { background: var(--accent); color: var(--paper); padding-block: clamp(72px, 8vw, 128px); }
.ask__form { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.ask h2 { font-size: var(--step-head); }
.ask__line { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ask select { min-height: 56px; padding: 0 48px 0 18px; border: 0; border-radius: var(--r-btn); background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 18px; color: var(--paper); font-size: var(--step-lead); font-weight: 600; appearance: none; cursor: pointer; }

/* Services page areas */
.area { padding-block: var(--section); }
.area--light { background: var(--paper); color: var(--ink); }
.area__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: start; }
.area--dark .area__text { order: 2; }
.area h2 { font-size: var(--step-head); }
.area__text p { margin-top: 16px; max-width: 34ch; font-size: var(--step-lead); }
.area--light .area__text p { color: var(--soft); }
.area--dark .area__text p { color: var(--on-dark-2); }
.area .area__count { font-size: var(--step-small); font-weight: 600; }
.area--light .area__count { color: var(--accent); }
.area--dark .area__count { color: var(--lamp); }
/* Service pages: breadcrumb, what is included, questions */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--step-small); font-weight: 600; color: var(--on-dark-2); }
.crumbs a { text-decoration: underline 2px; text-decoration-color: transparent; text-underline-offset: 6px; transition: text-decoration-color 200ms var(--ease-out); }
.crumbs a:hover { text-decoration-color: currentColor; }
.incl { display: grid; gap: 8px; }
.incl li { display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; border-radius: var(--r-tile); background: var(--paper-2); }
.incl .ico { color: var(--accent); margin-top: calc((var(--step-lead) * 1.5 - 24px) / 2); } /* centred on the first line */
.incl b { display: block; font-size: var(--step-lead); letter-spacing: -0.02em; }
.incl b + span { display: block; margin-top: 4px; color: var(--soft); }
.area--dark .incl li { background: var(--ink-2); }
.area--dark .incl .ico { color: var(--lamp); }
.incl--signs li { font-size: var(--step-lead); }
.area__grid--list-wide { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } /* the list sits first here, so it gets the wide column */
.faq { display: grid; gap: 8px; }
.faq details { border-radius: var(--r-tile); background: var(--paper-2); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 24px; font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.02em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { max-width: 62ch; padding: 0 24px 22px; color: var(--soft); }
.areas__say { margin-top: 16px; max-width: 34ch; font-size: var(--step-lead); color: var(--soft); }
.jump ul { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-flex; min-height: 42px; align-items: center; padding: 0 14px; border-radius: var(--r-btn); background: var(--ink-3); font-size: var(--step-small); font-weight: 600; text-decoration: none; transition: background-color 200ms var(--ease-out); }
.jump a:hover { background: var(--ink-4); }

/* Tray: what is in the quote so far, docked to the bottom edge */
.tray { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--margin); background: var(--ink-2); color: var(--paper); transform: translateY(110%); transition: transform 420ms var(--ease-out); }
.tray.is-on { transform: none; }
body:has(.tray.is-on) .foot { padding-bottom: 96px; }
.tray__count { font-weight: 600; }
.tray.is-bump .tray__count { animation: bump 360ms var(--ease-out); }
html:not(.js) .tray { display: none; }

/* Quote page */
.quote { background: var(--paper); color: var(--ink); padding-block: var(--section); }
.quote__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: start; }
.form { display: grid; gap: 64px; }
.form__block { display: grid; gap: 20px; }
.form__block > legend { margin-bottom: 20px; }
.form__block > legend h2 { font-size: var(--step-head); }
.checks legend { font-weight: 700; margin-bottom: 10px; }
.checks + .checks { margin-top: 12px; }
.checks__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.check { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border-radius: var(--r-tile); background: var(--paper-2); font-weight: 600; cursor: pointer; transition: background-color 200ms var(--ease-out), transform 120ms var(--ease-out); }
.check:hover { background: var(--paper-3); }
.check:active { transform: scale(0.98); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.check .ico { color: var(--accent); }
.check .toggle { background: var(--paper-3); }
.check:has(input:checked) { background: var(--ink); color: var(--paper); }
.check:has(input:checked) .ico { color: var(--sky); }
.check:has(input:checked) .toggle { background: var(--ok); }
.check:has(input:checked) .toggle::after { transform: translateX(18px); }
.check:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; }
.field__opt { font-weight: 400; color: var(--soft); }
.field input, .field textarea { width: 100%; min-height: 56px; padding: 14px 16px; border: 2px solid var(--paper-3); border-radius: var(--r-btn); background: var(--white); font-size: var(--step-body); transition: border-color 200ms var(--ease-out); }
.field textarea { resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--sky); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field [aria-invalid] { border-color: var(--error); }
.field__help { font-size: var(--step-small); color: var(--soft); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.seg legend { font-weight: 600; margin-bottom: 10px; }
.seg__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: var(--r-btn); background: var(--paper-2); font-weight: 600; cursor: pointer; transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out); }
.seg label:hover { background: var(--paper-3); }
.seg input:checked + label { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.form__end { display: grid; justify-items: start; gap: 14px; }
.form__end .btn { background: var(--accent); color: var(--paper); }
.form__end .btn:hover { background: var(--accent-press); }
.form__status { font-weight: 600; }

/* The cash register: each choice prints a line on the receipt */
.side { position: sticky; top: 20px; display: grid; gap: 28px; padding: 18px 18px 28px; border-radius: var(--r-panel); background: var(--ink); color: var(--paper); }
.register { display: grid; }
.register__head { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px 22px; border-radius: var(--r-tile) var(--r-tile) 0 0; background: var(--ink-3); }
.register__head img { width: 26px; height: auto; }
.register__screen { margin-left: auto; min-width: 72px; padding: 4px 10px; border-radius: 6px; background: var(--ink); color: var(--ok); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.register__slot { position: absolute; left: 12px; right: 12px; bottom: 6px; height: 6px; border-radius: 99px; background: var(--ink); }
.receipt { margin-inline: 18px; padding: 18px 18px 34px; background: var(--white); color: var(--ink); font-variant-numeric: tabular-nums; clip-path: var(--zigzag); }
.receipt__brand { font-size: var(--step-small); font-weight: 700; text-align: center; }
.receipt__title { margin-top: 2px; text-align: center; font-size: var(--step-small); color: var(--soft); padding-bottom: 12px; border-bottom: 2px dashed var(--paper-3); }
.summary__count { margin-top: 12px; font-weight: 600; }
.summary__count:focus { outline: none; }
.receipt ul { display: grid; margin-top: 6px; }
.receipt li.is-new, .receipt__fields > div.is-new { animation: print-line 420ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
.receipt button { display: flex; align-items: baseline; gap: 8px; width: 100%; min-height: 40px; padding: 8px 0; border: 0; background: none; text-align: left; cursor: pointer; }
.dots { flex: 1; min-width: 12px; border-bottom: 3px dotted var(--paper-3); transform: translateY(-4px); }
.receipt__x { font-size: 0.8125rem; font-weight: 600; color: var(--soft); transition: color 200ms var(--ease-out); }
.receipt button:hover .receipt__x { color: var(--error); }
.receipt button:hover .receipt__name { text-decoration: line-through 2px; }
.receipt ul:empty { display: none; }
.receipt__fields { display: grid; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 2px dashed var(--paper-3); }
.receipt__fields:not(:has(> div:not([hidden]))) { display: none; }
.receipt__fields > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 8px; font-size: var(--step-small); }
.receipt__fields > div[hidden] { display: none; }
.receipt__fields dt { color: var(--soft); }
.receipt__fields dd { font-weight: 600; overflow-wrap: anywhere; }
.receipt__fields dd.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.15em; background: var(--accent); animation: caret 900ms steps(2) infinite; }
.receipt__total { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 2px dashed var(--paper-3); font-weight: 700; }
html:not(.js) .register { display: none; }
.side__direct { display: grid; gap: 18px; padding-inline: 6px; }
.side__direct h2 { font-size: var(--step-lead); letter-spacing: -0.02em; }
.side dl { display: grid; gap: 12px; }
.side dt { font-size: var(--step-small); color: var(--on-dark-2); }
.side dd { overflow-wrap: anywhere; }
.fill { color: var(--lamp); }
:root { --zigzag: polygon(0 0, 100% 0, 100% calc(100% - 10px), 97.5% 100%, 95% calc(100% - 10px), 92.5% 100%, 90% calc(100% - 10px), 87.5% 100%, 85% calc(100% - 10px), 82.5% 100%, 80% calc(100% - 10px), 77.5% 100%, 75% calc(100% - 10px), 72.5% 100%, 70% calc(100% - 10px), 67.5% 100%, 65% calc(100% - 10px), 62.5% 100%, 60% calc(100% - 10px), 57.5% 100%, 55% calc(100% - 10px), 52.5% 100%, 50% calc(100% - 10px), 47.5% 100%, 45% calc(100% - 10px), 42.5% 100%, 40% calc(100% - 10px), 37.5% 100%, 35% calc(100% - 10px), 32.5% 100%, 30% calc(100% - 10px), 27.5% 100%, 25% calc(100% - 10px), 22.5% 100%, 20% calc(100% - 10px), 17.5% 100%, 15% calc(100% - 10px), 12.5% 100%, 10% calc(100% - 10px), 7.5% 100%, 5% calc(100% - 10px), 2.5% 100%, 0 calc(100% - 10px)); }

/* The printout: sending the request prints a receipt from the register */
.printout { width: min(420px, calc(100vw - 32px)); max-width: none; max-height: 100svh; margin: auto; padding: 24px 0; border: 0; background: none; color: var(--paper); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.printout::backdrop { background: var(--veil); }
.printout[open] { display: grid; justify-items: center; gap: 18px; }
.printer { position: relative; z-index: 2; width: 100%; height: 56px; border-radius: var(--r-panel) var(--r-panel) 10px 10px; background: var(--ink-3); }
.printer__slot { position: absolute; left: 22px; right: 22px; bottom: 12px; height: 8px; border-radius: 99px; background: var(--ink); }
.paper-window { width: calc(100% - 52px); margin-top: -30px; overflow: clip; }
.paper:focus { outline: none; }
.paper { padding: 34px 22px 40px; background: var(--white); color: var(--ink); font-variant-numeric: tabular-nums; clip-path: var(--zigzag); }
.paper__logo { width: 150px; margin: 0 auto 12px; }
.paper__title { font-size: var(--step-lead); letter-spacing: -0.02em; text-align: center; }
.paper__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding-bottom: 12px; border-bottom: 2px dashed var(--paper-3); font-size: var(--step-small); color: var(--soft); }
.paper__lines { display: grid; gap: 4px; margin-top: 12px; }
.paper__lines li { display: flex; align-items: baseline; gap: 8px; }
.paper__total { display: flex; justify-content: space-between; margin-top: 12px; padding-block: 12px; border-block: 2px dashed var(--paper-3); font-weight: 700; }
.paper__fields { display: grid; gap: 6px; margin-top: 12px; font-size: var(--step-small); }
.paper__fields div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 8px; }
.paper__fields dt { color: var(--soft); }
.paper__fields dd { font-weight: 600; overflow-wrap: anywhere; }
.paper__thanks { margin-top: 18px; font-size: var(--step-small); text-align: center; }
.paper__foot { margin-top: 12px; font-size: 0.8125rem; text-align: center; color: var(--soft); }
.printout__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.printout__note { width: 100%; text-align: center; font-size: var(--step-small); color: var(--on-dark-2); min-height: 1.5em; }

/* Footer: one quiet line */
.foot { padding-block: 48px; border-top: 2px solid var(--ink-3); }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; font-size: var(--step-small); }
.foot__logo img { height: 36px; width: auto; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__links a, .foot__legal a { text-decoration: none; }
.foot__links a:hover, .foot__legal a:hover { text-decoration: underline; }
.foot__legal { color: var(--on-dark-2); }

/* Motion */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bump { 40% { transform: translateY(-3px); } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes print-line { from { opacity: 0; transform: translateY(-10px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
@keyframes feed { from { transform: translateY(-100%); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .js .mask [data-line] { transform: translateY(115%); animation: line-up 900ms var(--ease-out) 150ms forwards; }
  .js [data-rise] { opacity: 0; animation: rise 700ms var(--ease-out) forwards; animation-delay: calc(500ms + var(--d, 0) * 160ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .printout[open] .paper { animation: feed 2400ms steps(30, end) 250ms both; }
  .printout[open] .printout__actions { animation: rise 500ms var(--ease-out) 2600ms both; }
  .printout[open] .printer { animation: shake 160ms linear 250ms 14 alternate; }
}
@keyframes line-up { to { transform: none; } }
@keyframes shake { to { transform: translateY(1px); } }

/* Tablet */
@media (max-width: 64rem) {
  .hero, .row, .areas__grid, .area__grid, .quote__grid { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; padding-block: 40px 72px; }
  .row--1 .row__text, .area--dark .area__text { order: 0; }
  .row__frag { justify-content: flex-start; }
  .side { position: static; }
}

/* Phone */
@media (max-width: 40rem) {
  .top__logo img { height: 32px; }
  .top__nav { gap: 14px; }
  .top__how { display: none; }
  .hero .btn--big { width: 100%; }
  .switches, .checks__grid { grid-template-columns: minmax(0, 1fr); }
  .frag__days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stepper__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .areas__list a { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ask__line, .ask select, .ask .btn { width: 100%; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .side { margin-inline: calc(-1 * var(--margin) + 8px); }
  .tray__count { font-size: var(--step-small); }
  .tray .btn { min-height: 44px; padding: 0 14px; font-size: var(--step-small); }
  .tray .btn .arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}

/* Saving the receipt as a PDF prints only the paper */
@media print {
  @page { margin: 12mm; }
  body { background: var(--white); }
  body * { visibility: hidden !important; }
  .printout, .printout * { visibility: visible !important; }
  .printout::backdrop { background: none; }
  .printout { position: absolute; inset: 0 auto auto 0; width: 80mm; margin: 0; }
  .printer, .printout__actions { display: none !important; }
  .paper-window { width: 100%; margin: 0; max-height: none; overflow: visible; }
  .paper { animation: none !important; clip-path: none; padding: 0; }
}
