/* utlagt.no, the landing page.
   One motif: the torn edge of a receipt. It tops the bands of the hero stack, the demo receipt,
   the showcase shape, the security tiles, the list marker and the blocks of the footer mark.
   Brand: Utlagt green on Apple's calm neutral ground, system font, five type steps.
   Grid: one pair of margins (--pad), content up to 1440px, 12 columns where a section splits. */

:root {
  color-scheme: light dark;
  --ground: #F2F2F7;
  --surface: #FFFFFF;
  --raised: #E5E5EA;
  --rule: #D1D1D6;
  --text: #000000;
  --muted: #6E6E73;
  --accent: #0B7A55;
  --accent-hover: #096A4A;
  --accent-text: #0A6B4B;
  --on-accent: #FFFFFF;
  --accent-soft: rgba(11, 122, 85, .12);
  --band-1: #1C1C1E;
  --band-1-ink: #FFFFFF;
  --band-3: #DCDCE1;
  --band-3-ink: #000000;
  --field: #075A3F;
  --field-ink: #FFFFFF;
  --bar: #000000;
  --bar-ink: #FFFFFF;
  --negative: #D70015;
  --positive-fg: #04250E;
  --positive-bg: #DCFAE5;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --s-display: clamp(40px, 11vw, 136px);
  --s-head: clamp(28px, 3vw, 44px);
  --s-statement: clamp(24px, 2.5vw, 36px);
  --s-title: 20px;
  --s-body: 17px;
  --s-small: 15px;

  --margin: clamp(16px, 2.5vw, 40px);
  --max: 1440px;
  --pad: max(var(--margin), calc((100% - var(--max)) / 2));
  --sheet-w: min(100% - 2 * var(--margin), 1240px);
  --gap: clamp(112px, 12vw, 176px);
  --r: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* the torn edge: teeth 18px wide and 9px tall, drawn as a mask so it takes any colour */
  --zz-w: 18px;
  --zz-h: 9px;
  --zz-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 9' preserveAspectRatio='none'%3E%3Cpath d='M0 9.5L9 0l9 9.5z'/%3E%3C/svg%3E");
  --zz-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 9' preserveAspectRatio='none'%3E%3Cpath d='M0-.5L9 9l9-9.5z'/%3E%3C/svg%3E");
  --solid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100%25' height='100%25'/%3E%3C/svg%3E");
  --chevron-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #000000;
    --surface: #1C1C1E;
    --raised: #2C2C2E;
    --rule: #3A3A3C;
    --text: #FFFFFF;
    --muted: #98989D;
    --accent-hover: #0C8A60;
    --accent-text: #4CD69B;
    --accent-soft: rgba(76, 214, 155, .16);
    --band-1: #E5E5EA;
    --band-1-ink: #000000;
    --band-3: #3A3A3C;
    --band-3-ink: #FFFFFF;
    --negative: #FF6961;
    --positive-fg: #7FE0A0;
    --positive-bg: #0F2A18;
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 var(--s-body)/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
[hidden] { display: none !important; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, canvas { display: block; }
button, input, select { font: inherit; color: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip {
  position: absolute; z-index: 10; left: var(--margin); top: 12px;
  padding: 12px 18px; border-radius: 999px; background: var(--surface); font-weight: 600;
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

/* the torn edge */
.zz-top {
  -webkit-mask: var(--zz-up) 0 0 / var(--zz-w) var(--zz-h) round no-repeat, var(--solid) 0 calc(var(--zz-h) - 1px) / 100% calc(100% - var(--zz-h) + 1px) no-repeat;
  mask: var(--zz-up) 0 0 / var(--zz-w) var(--zz-h) round no-repeat, var(--solid) 0 calc(var(--zz-h) - 1px) / 100% calc(100% - var(--zz-h) + 1px) no-repeat;
}
.zz-bottom {
  -webkit-mask: var(--zz-down) 0 100% / var(--zz-w) var(--zz-h) round no-repeat, var(--solid) 0 0 / 100% calc(100% - var(--zz-h) + 1px) no-repeat;
  mask: var(--zz-down) 0 100% / var(--zz-w) var(--zz-h) round no-repeat, var(--solid) 0 0 / 100% calc(100% - var(--zz-h) + 1px) no-repeat;
}
.zz-both {
  -webkit-mask: var(--zz-up) 0 0 / var(--zz-w) var(--zz-h) round no-repeat, var(--zz-down) 0 100% / var(--zz-w) var(--zz-h) round no-repeat, var(--solid) 0 calc(var(--zz-h) - 1px) / 100% calc(100% - 2 * var(--zz-h) + 2px) no-repeat;
  mask: var(--zz-up) 0 0 / var(--zz-w) var(--zz-h) round no-repeat, var(--zz-down) 0 100% / var(--zz-w) var(--zz-h) round no-repeat, var(--solid) 0 calc(var(--zz-h) - 1px) / 100% calc(100% - 2 * var(--zz-h) + 2px) no-repeat;
}

/* ---------- type ---------- */
.display { text-wrap: balance; font-size: var(--s-display); line-height: .94; letter-spacing: -0.045em; font-weight: 700; }
.display .line, .coupon-title .line { display: block; }
.h2 { font-size: var(--s-head); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
.lead { font-size: var(--s-title); line-height: 1.45; max-width: 40ch; }
p, li, summary { text-wrap: pretty; }
h2, h3 { text-wrap: balance; }
.small { font-size: var(--s-small); line-height: 1.4; color: var(--muted); }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  font: 600 var(--s-body)/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: transform .3s var(--ease), opacity .2s ease, background-color .2s ease;
}
.btn.filled { background: var(--accent); color: var(--on-accent); }
.btn.filled:hover { background: var(--accent-hover); }
.btn.plain { background: var(--raised); color: var(--text); }
.btn.plain:hover { background: var(--rule); }
.btn:active { transform: scale(.97); opacity: .88; }
.btn:disabled { opacity: .4; cursor: default; transform: none; }
.btn.small { min-height: 44px; padding: 0 20px; font-size: var(--s-small); }

.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--accent-text); }
.link .icon { transition: transform .3s var(--ease); }
.link:hover .icon { transform: translateX(4px); }

/* ---------- page frame ---------- */
main > section, .foot { padding-inline: var(--pad); }

.top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 16px var(--pad);
}
.brand { grid-column: 2; display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: var(--s-title); font-weight: 700; letter-spacing: -0.02em; }
.brand .mark { width: 32px; height: 32px; border-radius: 8px; }
.top-link {
  justify-self: end; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; margin-right: -18px;
  border-radius: 999px; font-size: var(--s-small); font-weight: 600; transition: background-color .2s ease;
}
.top-link:hover { background: var(--raised); }

/* ---------- hero: the headline and the stack of receipts ---------- */
.hero { padding-top: clamp(20px, 5vh, 56px); text-align: center; }
.hero-sub { text-wrap: balance; max-width: 54ch; margin: clamp(24px, 3.5vh, 36px) auto 0; font-size: var(--s-title); line-height: 1.45; }

.stack { display: flex; flex-direction: column; align-items: center; margin-top: clamp(40px, 7vh, 80px); }
.band {
  --tab: 64px;
  position: relative; display: flex; align-items: flex-start; width: min(100%, 1240px);
  height: calc(var(--tab) + 30px); margin-bottom: -30px;
  padding: calc(var(--zz-h) + 17px) 32px 0;
  font-size: var(--s-body); font-weight: 600;
  transition: transform .35s var(--ease);
}
.band span { display: inline-flex; align-items: center; min-height: 28px; }
.band:hover { transform: translateY(-8px); }
.band:focus-visible { outline: 2px solid currentColor; outline-offset: -14px; }
.b1 { background: var(--band-1); color: var(--band-1-ink); justify-content: flex-start; }
.b2 { background: var(--accent); color: var(--on-accent); justify-content: center; }
.b3 { background: var(--band-3); color: var(--band-3-ink); justify-content: flex-end; }

/* the front receipt: the action and the live demo */
.front {
  position: relative; width: var(--sheet-w); margin: 0 auto;
  padding: calc(var(--zz-h) + 28px) clamp(20px, 3vw, 40px) calc(var(--zz-h) + 44px);
  background: var(--surface);
}
.front-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; }
.demo { display: grid; gap: 40px; margin-top: 24px; }
.demo-intro .small { margin-top: 32px; }

.slips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.slip {
  position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 172px;
  padding: 16px 14px calc(var(--zz-h) + 18px); border: 0; border-radius: 12px 12px 0 0;
  background: var(--ground); text-align: left; cursor: pointer;
  transition: transform .3s var(--ease), background-color .25s ease;
}
.slip:hover:not([aria-disabled="true"]):not(:disabled) { transform: translateY(-4px); }
.slip:active:not([aria-disabled="true"]):not(:disabled) { transform: scale(.97); }
.slip:disabled, .slip[aria-disabled="true"] { cursor: default; }
.slip:focus-visible { outline-offset: -4px; }
.slip-who { font-size: var(--s-small); font-weight: 600; line-height: 1.3; }
.slip-meta { font-size: var(--s-small); line-height: 1.3; color: var(--muted); }
.slip-sum { margin-top: auto; font-size: var(--s-title); font-weight: 700; letter-spacing: -0.01em; }
.slip-who { padding-right: 18px; }
.slip-sum { white-space: nowrap; }
.slip-sum .icon { position: absolute; top: 14px; right: 12px; width: 18px; height: 18px; }
.slip.used { background: var(--accent-soft); }
.slip.used .slip-sum { color: var(--accent-text); }

/* the expense sheet, as in the app */
.sheet { align-self: start; padding: clamp(18px, 2.4vw, 32px); border-radius: var(--r); background: var(--ground); }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.sheet-firm { font-size: var(--s-title); font-weight: 700; letter-spacing: -0.01em; }
.sheet-form { font-size: var(--s-small); color: var(--muted); }
.sheet-meta { display: flex; flex-direction: column; text-align: right; font-size: var(--s-small); }
.sheet-meta span { color: var(--muted); }
.sheet-table { width: 100%; margin-top: 24px; border-collapse: collapse; font-size: var(--s-small); line-height: 1.35; }
.sheet-table th { padding: 0 10px 8px 0; text-align: left; font-weight: 500; color: var(--muted); white-space: nowrap; }
.sheet-table td { padding: 12px 10px 12px 0; border-top: 1px solid var(--rule); vertical-align: top; }
.sheet-table th:first-child, .sheet-table td:first-child { width: 5.5em; }
.sheet-table .num { text-align: right; padding-right: 0; white-space: nowrap; }
.sheet-table .sub { display: block; color: var(--muted); }
.sheet-table .empty td { color: var(--muted); }
.sheet-table tr.row-new td { animation: row-in .5s var(--ease) backwards; }
.sheet-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: var(--surface); font-size: var(--s-small);
}
.sheet-total strong { font-size: var(--s-title); letter-spacing: -0.01em; }
.sheet-total small { font-size: var(--s-small); font-weight: 500; color: var(--muted); }
.sheet-sign { margin-top: 20px; }
.sheet-sign .small { margin-top: 8px; }
.pad { position: relative; height: 128px; border-radius: 12px; background: var(--surface); touch-action: none; }
.pad canvas { width: 100%; height: 100%; border-radius: 12px; cursor: crosshair; }
.pad::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 30px; height: 2px; border-radius: 1px; background: var(--raised); pointer-events: none; }
.pad-hint { position: absolute; left: 20px; bottom: 40px; font-size: var(--s-small); color: var(--muted); pointer-events: none; transition: opacity .2s ease; }
.pad.signed .pad-hint { opacity: 0; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.sheet-done {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; padding: 14px 16px;
  border-radius: 12px; background: var(--positive-bg); color: var(--positive-fg); font-size: var(--s-small);
  animation: row-in .5s var(--ease) backwards;
}

/* ---------- how it works: the steps beside a big green receipt ---------- */
.show { --sh: min(64svh, 600px); position: relative; margin-top: var(--gap); }
.show-stage { position: relative; }
.show-shape { background: var(--accent); }
.show-pic { position: absolute; transition: opacity .12s ease; }
.show-pic img { height: 100%; width: auto; border-radius: calc(var(--sh) * .055); background: var(--surface); }
.show-pic.is-sheet img { border-radius: 6px; }
.show-pic.out, .show-fact.out { opacity: 0; }
.show-fact { font-size: var(--s-body); line-height: 1.45; transition: opacity .12s ease; }
.show-title { font: 400 var(--s-head)/1.15 var(--font); letter-spacing: -0.03em; color: var(--muted); }
.show-list button {
  display: inline-flex; align-items: center; gap: .22em; min-height: 44px; padding: 0; border: 0; background: none;
  font: 700 var(--s-head)/1.15 var(--font); letter-spacing: -0.03em; color: var(--muted); cursor: pointer;
  transition: color .24s ease;
}
.show-list button::before {
  content: ""; flex: none; width: .4em; height: .52em; border-radius: .08em .08em 0 0; background: transparent;
  -webkit-mask: var(--zz-down) 0 100% / .2em .1em round no-repeat, var(--solid) 0 0 / 100% calc(100% - .1em + 1px) no-repeat;
  mask: var(--zz-down) 0 100% / .2em .1em round no-repeat, var(--solid) 0 0 / 100% calc(100% - .1em + 1px) no-repeat;
  transform: scale(.4); transition: transform .3s var(--ease), background-color .2s ease;
}
.show-list button:hover { color: var(--text); }
.show-list button[aria-pressed="true"] { color: var(--text); }
.show-list button[aria-pressed="true"]::before { background: var(--accent); transform: none; }

@media (min-width: 1180px) {
  .show { height: calc(var(--sh) * 1.22); display: flex; align-items: flex-end; padding-bottom: calc(var(--sh) * .11); }
  .show-stage { position: absolute; inset: 0; }
  .show-shape {
    position: absolute; left: 58%; top: 50%; height: var(--sh); width: calc(var(--sh) * .7);
    transform: translate(-50%, -50%);
  }
  .show-pic { left: 58%; top: calc(50% - var(--sh) * .57); height: calc(var(--sh) * .88); transform: translateX(-50%); }
  .show-index {
    position: relative; width: 100%; display: grid; align-items: end; column-gap: 24px;
    grid-template-columns: minmax(0, 1fr) min(300px, calc(42% - var(--sh) * .35 - 40px));
  }
  .show-title, .show-list { grid-column: 1; }
  .show-fact { grid-column: 2; grid-row: 1 / 3; }
}
@media (max-width: 1179px) {
  .show { --sh: min(108vw, 560px); }
  .show-stage { height: calc(var(--sh) * 1.08); }
  .show-shape { position: absolute; left: 50%; bottom: 0; height: var(--sh); width: calc(var(--sh) * .7); transform: translateX(-50%); }
  .show-pic { left: 50%; top: 0; height: calc(var(--sh) * .86); transform: translateX(-50%); }
  .show-index { margin-top: 32px; }
  .show-list { display: flex; flex-wrap: wrap; gap: 0 22px; }
  .show-fact { margin-top: 16px; max-width: 46ch; }
}

/* ---------- the fiddly parts: one statement with real controls in it ---------- */
.details { margin-top: var(--gap); }
.statement { max-width: 34em; font-size: var(--s-statement); line-height: 1.32; font-weight: 600; letter-spacing: -0.02em; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 1em; min-width: 1.9em; padding: 0 .32em; border-radius: .18em; vertical-align: -0.12em;
  background: var(--surface); color: var(--text); white-space: nowrap;
}
.chip b { font-size: var(--s-small); line-height: 1; font-weight: 600; letter-spacing: 0; }
.chip .icon { width: 16px; height: 16px; color: var(--accent-text); }
.chip.pic { width: 1.9em; padding: 0; overflow: hidden; }
.chip.pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 34%; }
.details-more { display: grid; gap: 16px; margin-top: 72px; }
@media (min-width: 900px) {
  .details-more { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .details-more > * { grid-column: 7 / 13; }
  .details-more .lead { max-width: 52ch; }
}

/* ---------- security: facts on receipt tiles ---------- */
.safe { margin-top: var(--gap); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tile {
  display: flex; flex-direction: column; gap: 8px; aspect-ratio: 3 / 2;
  padding: 24px 24px calc(var(--zz-h) + 24px); border-radius: var(--r) var(--r) 0 0; background: var(--surface);
}
.tile h3 { font-size: var(--s-title); line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.tile p { font-size: var(--s-body); line-height: 1.45; }
.tile-head { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; aspect-ratio: auto; background: var(--accent); color: var(--on-accent); }
.tile-pic { position: relative; min-height: 180px; overflow: hidden; border-radius: 10px; background: var(--surface); }
.tile-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 9%; }
.tile-head .h2 { max-width: 13ch; }
@media (max-width: 1099px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile { aspect-ratio: auto; min-height: 180px; } }
@media (max-width: 599px) { .tiles { grid-template-columns: 1fr; gap: 6px; } .tile-head { grid-column: auto; grid-template-columns: 1fr; } .tile-pic { min-height: 200px; } .tile { min-height: 0; } }

/* ---------- price ---------- */
.price { display: grid; gap: 40px; margin-top: var(--gap); }
.price-text .lead { margin-top: 16px; }
.price-fig { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(16px, 4vw, 64px); align-items: start; }
.price-fig > :not(.price-pic) { grid-column: 1; }
.price-fig > .btn { justify-self: start; }
.tiers { display: flex; flex-direction: column; gap: 36px; }
.tier-who { margin-top: 12px; font-size: var(--s-title); line-height: 1.3; font-weight: 600; }
.tier-more .link { display: inline; min-height: 0; text-decoration: underline; text-underline-offset: 3px; }
.tier-who strong { font-weight: 700; }
.tier-alt { margin-top: 2px; font-size: var(--s-body); color: var(--muted); }
.price-terms { margin-top: 16px; font-size: var(--s-body); line-height: 1.5; }
.tier-more .tier-who + .tier-who { margin-top: 12px; }
.tier .figure { transition: color .3s ease; }
.tier.is-best .figure, .tier.is-best .tier-who strong { color: var(--accent-text); }
.calc { margin-top: 32px; padding: 20px; border-radius: 16px; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 1px 1px rgba(0,0,0,.04); }
.calc[hidden] { display: none; }
.calc-q { display: block; font-size: var(--s-body); font-weight: 600; }
.stepper { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; padding: 4px; border-radius: 9999px; background: var(--raised); }
.stepper .step { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 9999px; background: var(--surface); color: var(--text); cursor: pointer; }
.stepper .step .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.stepper .step:active { transform: scale(.97); opacity: .88; }
.stepper input { width: 3.2em; height: 44px; border: 0; background: transparent; color: var(--text); text-align: center; font: inherit; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-out { margin-top: 12px; font-size: var(--s-body); line-height: 1.45; min-height: 2.9em; }
.calc-out strong { font-weight: 700; }
.calc-out .link { display: inline; min-height: 0; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { .calc { box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); } }
.tier-more .tier-who strong { font-weight: 600; }
.tier-more .tier-who { margin-top: 0; max-width: 40ch; font-weight: 400; font-size: var(--s-body); line-height: 1.45; }
.figure { white-space: nowrap; font-size: clamp(56px, 8.5vw, 132px); line-height: .85; font-weight: 700; letter-spacing: -0.05em; }
.figure .fig { display: flex; align-items: flex-start; }
.figure .cur { margin: .04em .08em 0 0; font-size: .5em; line-height: 1; }
.figure .per { align-self: flex-end; margin-left: 14px; font-size: var(--s-title); line-height: 1.4; letter-spacing: 0; font-weight: 600; }
.price-pic {
  grid-column: 2; grid-row: 1 / span 3; justify-self: end; width: clamp(84px, 14vw, 210px);
  aspect-ratio: 990 / 1401; overflow: hidden; margin-top: calc(-1 * clamp(8px, 2vw, 32px)); border-radius: 6px; background: #FFFFFF;
}
.price-pic img { width: 100%; height: 100%; object-fit: cover; }
.included { display: flex; flex-direction: column; gap: 6px; margin-top: 40px; font-size: var(--s-body); }
.price-fig .btn { margin-top: 32px; }
@media (min-width: 900px) {
  .price { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .price-text { grid-column: 1 / 5; align-self: start; padding-top: 8px; }
  .price-fig { grid-column: 5 / 13; }
}

/* ---------- questions ---------- */
.faq { display: grid; gap: 24px; margin-top: var(--gap); }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq details { border-radius: var(--r); background: var(--surface); transition: background-color .25s ease, color .25s ease; }
.faq summary {
  position: relative; display: flex; align-items: center; min-height: 72px; padding: 16px 72px 16px 24px;
  list-style: none; font-size: var(--s-title); line-height: 1.3; font-weight: 600; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 28px; top: 50%; width: 16px; height: 3px; margin-top: -1.5px;
  border-radius: 2px; background: currentColor; transition: transform .3s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] { background: var(--accent); color: var(--on-accent); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:focus-visible { outline-offset: -4px; }
.faq details[open] summary:focus-visible { outline-color: var(--on-accent); }
.faq details p { max-width: 52ch; padding: 0 24px 24px; font-size: var(--s-body); line-height: 1.5; }
@media (min-width: 900px) {
  .faq { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .faq-title { grid-column: 1 / 5; position: sticky; top: 96px; }
  .faq-list { grid-column: 5 / 13; }
}

/* ---------- get started: a coupon to cut out ---------- */
.coupon-wrap { margin-top: var(--gap); }
.coupon {
  display: grid; grid-template-columns: 46fr 54fr; max-width: 1160px; margin: 0 auto;
  border-radius: var(--r); background: var(--accent); color: var(--on-accent);
}
.coupon-left { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 48px; }
.coupon-title { font-size: var(--s-head); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
.coupon-left p { max-width: 34ch; font-size: var(--s-body); }
.coupon-right { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 48px; border-left: 5px dotted var(--ground); }
.coupon-right::before, .coupon-right::after {
  content: ""; position: absolute; left: -16.5px; width: 28px; height: 28px; border-radius: 50%; background: var(--ground);
}
.coupon-right::before { top: -14px; }
.coupon-right::after { bottom: -14px; }
.cf { display: flex; flex-direction: column; gap: 6px; font-size: var(--s-small); font-weight: 600; }
.cf input, .cf select {
  width: 100%; height: 52px; padding: 0 16px; border: 0; border-radius: 12px; appearance: none;
  background: var(--field); color: var(--field-ink); font-size: var(--s-body); font-weight: 400;
}
.cf select { padding-right: 44px; background-image: var(--chevron-light); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; }
.cf [aria-invalid="true"] { outline: 2px solid var(--bar); outline-offset: 2px; }
.coupon :focus-visible { outline-color: var(--on-accent); }
.hp { position: absolute; top: 0; left: 0; width: 0; height: 0; overflow: hidden; opacity: 0; pointer-events: none; }
.submit {
  height: 56px; margin-top: 8px; border: 0; border-radius: 999px; background: var(--bar); color: var(--bar-ink);
  font-weight: 600; cursor: pointer; transition: transform .3s var(--ease), opacity .2s ease;
}
.submit:active { transform: scale(.98); opacity: .88; }
.submit:disabled { opacity: .6; cursor: default; }
.form-msg { display: flex; align-items: flex-start; gap: 8px; font-size: var(--s-small); font-weight: 600; animation: row-in .4s var(--ease) backwards; }
@media (max-width: 899px) {
  .coupon { grid-template-columns: 1fr; }
  .coupon-left { padding: 32px 24px 28px; }
  .coupon-right { padding: 32px 24px; border-left: 0; border-top: 5px dotted var(--ground); }
  .coupon-right::before, .coupon-right::after { top: -16.5px; bottom: auto; }
  .coupon-right::before { left: -14px; }
  .coupon-right::after { left: auto; right: -14px; }
}

/* ---------- footer: the name, built from torn receipt blocks ---------- */
.foot { margin-top: var(--gap); padding-bottom: 32px; }
/* The letters share one size and one baseline across the blocks, sized by the row
   (container units), so the shortest block still holds the tallest letter. */
.foot-mark { display: flex; align-items: flex-end; gap: 4px; height: clamp(180px, 34svh, 340px); container-type: size; }
.blk {
  flex: 1; display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
}
.blk svg { display: block; width: 66%; width: min(16cqw, 70cqh); height: auto; }
.blk text { font-family: var(--font); font-size: 80px; font-weight: 800; text-anchor: middle; fill: var(--ground); }
.k1 { height: 100%; background: var(--accent); }
.k2 { height: 74%; background: var(--band-1); }
.k3 { height: 90%; background: var(--accent); }
.k4 { height: 64%; background: var(--band-1); }
.k5 { height: 96%; background: var(--accent); }
.k6 { height: 80%; background: var(--band-1); }
.foot-links { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; margin-top: 56px; }
.foot-links > div { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.foot-links > div:nth-child(1) { grid-column: 1 / 4; }
.foot-links > div:nth-child(2) { grid-column: 4 / 7; }
.foot-note { grid-column: 9 / 13; }
.foot-h { margin-bottom: 6px; font-size: var(--s-small); font-weight: 600; color: var(--muted); }
.foot-links a { display: inline-flex; align-items: center; min-height: 36px; transition: color .2s ease; }
.foot-links a:hover { color: var(--accent-text); }
.foot-note p { max-width: 44ch; }
.foot-last { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; font-size: var(--s-small); color: var(--muted); }
@media (max-width: 899px) {
  .foot-links { grid-template-columns: 1fr 1fr; }
  .foot-links > div:nth-child(1), .foot-links > div:nth-child(2) { grid-column: auto; }
  .foot-note { grid-column: 1 / -1; }
}

/* ---------- phones and tablets ---------- */
@media (min-width: 1000px) {
  .demo { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
}
@media (max-width: 699px) {
  .band { --tab: 52px; padding: calc(var(--zz-h) + 12px) 20px 0; }
  .front-head .btn { width: 100%; }
  .slips { grid-template-columns: 1fr; gap: 10px; }
  .slip { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; min-height: 0; padding: 14px 16px calc(var(--zz-h) + 16px); }
  .slip-sum { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; }
  .slip-who { padding-right: 0; }
  .slip-sum { display: inline-flex; align-items: center; gap: 6px; }
  .slip-sum .icon { position: static; }
  .sheet-table th:nth-child(3), .sheet-table td:nth-child(3) { display: none; }
  .sheet-table th:first-child, .sheet-table td:first-child { width: 2.6em; }
  .sheet-actions .btn { flex: 1; }
  .figure { font-size: 14vw; }
  .tier-who { font-size: var(--s-body); margin-top: 8px; }
  .tiers { gap: 28px; }
  .figure .per { margin-left: 8px; font-size: var(--s-body); }
  .price-pic { width: 22vw; margin-top: 0; }
  .faq summary { min-height: 64px; padding: 14px 60px 14px 20px; }
  .faq summary::before, .faq summary::after { right: 22px; }
  .faq details p { padding: 0 20px 20px; }
  .foot-mark { height: clamp(120px, 17svh, 160px); gap: 3px; }
}

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes row-in { from { opacity: 0; transform: translateY(-10px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-12px); } }

.top { animation: drop .6s var(--ease) backwards; }
.hero .line { animation: rise .8s var(--ease) backwards; }
.hero .line + .line { animation-delay: .08s; }
.hero-sub { animation: rise .8s var(--ease) .18s backwards; }
.b1 { animation: rise .8s var(--ease) .32s backwards; }
.b2 { animation: rise .8s var(--ease) .4s backwards; }
.b3 { animation: rise .8s var(--ease) .48s backwards; }
.front { animation: rise .9s var(--ease) .56s backwards; }

/* parts of each section rise as it enters; the script only hides what is still below the screen */
.rv { opacity: 0; translate: 0 28px; }
.rv.in { opacity: 1; translate: none; transition: opacity .6s var(--ease) var(--d, 0s), translate .8s var(--ease) var(--d, 0s); }
.blk.rv { opacity: 1; translate: none; clip-path: inset(40% 0 0 0); }
.blk.rv.in { clip-path: inset(0); transition: clip-path .9s var(--ease) var(--d, 0s); }

/* the phone drifts against the green receipt as the section passes */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .show-pic img { animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes drift { from { translate: 0 3svh; } to { translate: 0 -3svh; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-property: opacity, color, background-color !important; }
  .rv, .blk.rv { opacity: 1; translate: none; clip-path: none; }
  .band:hover, .slip:hover, .btn:active { transform: none; }
}

/* ---------- terms and privacy pages ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 48px var(--margin) 64px; }
.doc h1 { font-size: var(--s-head); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.doc-lead { margin-top: 16px; font-size: var(--s-title); line-height: 1.45; }
.doc h2 { margin-top: 40px; font-size: var(--s-title); font-weight: 600; }
.doc p, .doc li { margin-top: 10px; font-size: var(--s-body); line-height: 1.6; }
.doc ul { padding-left: 1.2em; list-style: disc; }
.doc a { color: var(--accent-text); font-weight: 600; }
.doc-date { margin-top: 40px !important; color: var(--muted); font-size: var(--s-small) !important; }
.doc-foot { display: flex; flex-wrap: wrap; gap: 20px; max-width: 720px; margin: 0 auto; padding: 24px var(--margin) 48px; border-top: 1px solid var(--rule); font-size: var(--s-small); }
.doc-foot a { color: var(--muted); }
