/* HiGHLiGHTR website: shared styles for every page.
   The world: register receipts on a night counter, and Tiopay's yellow highlighter marking the line that matters. */

:root {
  --night: #0B0B0A;
  --surface: #161614;
  --raised: #201F1C;
  --line: #302E29;
  --text: #F6F4EE;
  --muted: #AAA596;
  --faint: #78736A;
  --lime: #FFE500;
  --ink: #1A1600;
  --paper: #F3EFE2;
  --paper-shade: #E6E1D0;
  --paper-ink: #2A2721;
  --paper-muted: #6E685A;
  --red: #FF5A4F;
  --green: #3DDC84;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Archivo", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --hl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'%3E%3Cpath d='M6 9 C60 4 120 7 190 5 S330 3 396 8 L392 18 L398 27 C320 35 250 32 170 35 S60 37 3 33 L8 22 Z' fill='%23FFE500'/%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: var(--lime); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--line) var(--night); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--lime); color: var(--ink); padding: 10px 14px; border-radius: 999px; font-weight: 700; }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 108%; letter-spacing: -0.03em; line-height: 0.98; text-wrap: balance; }
h1 { font-size: clamp(44px, 6.4vw, 92px); }
h2 { font-size: clamp(34px, 4.6vw, 64px); }
h3 { font-size: clamp(21px, 2vw, 26px); letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); max-width: 46ch; }
.small { font-size: 14px; color: var(--muted); }

/* Tiopay's highlighter: a hand-drawn yellow stroke behind words */
.hl { color: var(--ink); padding: .06em .12em .02em; background: var(--hl) left center / 100% 100% no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--raised); color: var(--text);
  font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease-out), background-color .2s, border-color .2s;
}
.btn:hover { border-color: var(--muted); transform: translateY(-1px); }
.btn svg { transition: transform .3s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn.lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn.lime:hover { background: #FFEE4D; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--lime); }
.btn.dark:hover { background: #2C2600; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(11, 11, 10, .9); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.wm { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 20px/1.3 "Syne", "Arial Black", sans-serif; letter-spacing: .3px; margin-right: auto; padding-block: 2px; }
.wm svg { width: 44px; height: 22px; flex: none; overflow: visible; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 9px; border-radius: 999px; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
.nav .btn { min-height: 44px; padding: 10px 16px; font-size: 15px; margin-left: 6px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--raised); color: var(--text); cursor: pointer; place-items: center; }
.menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px var(--gutter) 18px; background: var(--night); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { font-size: 18px; padding: 14px 12px; }
  .nav .btn { margin: 10px 0 0; min-height: 52px; }
  .head-cta { display: inline-flex; min-height: 44px; padding: 10px 16px; font-size: 15px; }
}
@media (min-width: 861px) { .head-cta { display: none; } }
/* the header row never wraps a word: when the whole menu doesn't fit on one line (a long language, a small laptop),
   site.js adds .nav-fold and the menu folds behind the menu button, like on a tablet */
.nav a, .head-cta { white-space: nowrap; }
.nav-fold .menu-btn { display: grid; }
.nav-fold .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px var(--gutter) 18px; background: var(--night); border-bottom: 1px solid var(--line); display: none; }
.nav-fold .nav.open { display: flex; }
.nav-fold .nav a:not(.btn) { font-size: 18px; padding: 14px 12px; }
.nav-fold .nav .btn { margin: 10px 0 0; min-height: 52px; }
.nav-fold .head-cta { display: inline-flex; min-height: 44px; padding: 10px 16px; font-size: 15px; }
.nav-fold .lang-wrap { order: 1; }
.nav-fold .menu-btn { order: 2; }

/* language switch: EN / ES / ΕΛ, top right (site.js builds it) */
.lang-wrap { order: 10; position: relative; flex: none; }
.lang { display: inline-flex; padding: 3px; gap: 2px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--raised); }
.lang button, .lang-pick { min-width: 38px; height: 34px; padding: 0 9px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 700 12.5px/1 var(--body); letter-spacing: .06em; cursor: pointer; }
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--lime); color: var(--ink); }
.lang button:focus-visible, .lang-pick:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.lang-pick { display: none; }
@media (max-width: 860px) { .lang-wrap { order: 1; } .menu-btn { order: 2; } .site-head .wrap { gap: 12px; } }
/* phones: one button, the list drops down under it */
@media (max-width: 560px) {
  .lang-pick { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border: 1.5px solid var(--line); background: var(--raised); color: var(--text); }
  .lang-pick::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
  .lang { display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; flex-direction: column; align-items: stretch; min-width: 170px; padding: 6px; border-radius: 16px; box-shadow: 0 16px 34px rgba(0, 0, 0, .5); }
  .lang-wrap.open .lang { display: flex; }
  .lang button { height: 44px; text-align: left; padding: 0 14px; font-size: 15px; letter-spacing: .02em; }
  .lang button::after { content: "  " attr(title); font-weight: 500; letter-spacing: 0; }
}
/* narrow phones: the wordmark, the language button and the menu button share one row */
@media (max-width: 420px) {
  .site-head .wrap { gap: 10px; }
  .wm { font-size: 17px; gap: 8px; }
  .wm svg { width: 38px; height: 19px; }
  .lang-pick { padding: 0 11px; gap: 5px; }
  .menu-btn { flex: none; }
}
@media (max-width: 380px) {
  .site-head .wrap { gap: 8px; }
  .wm { font-size: 15px; gap: 7px; }
  .wm svg { width: 34px; height: 17px; }
}
.i18n-wait main, .i18n-wait .site-foot { opacity: 0; }
@media (max-width: 560px) { .head-cta { display: none; } }

/* ---------- sections ---------- */
section { padding-block: clamp(64px, 8vw, 112px); }
.sec-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }

/* ---------- receipts: the site's material ---------- */
.receipt {
  position: relative;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .18 0 0 0 0 .1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(90deg, var(--paper-shade), var(--paper) 7%, var(--paper) 93%, var(--paper-shade));
  color: var(--paper-ink);
  font: 500 14px/1.6 var(--mono);
  font-variant-numeric: tabular-nums;
  padding: 26px 22px 40px;
  /* torn zig-zag bottom edge */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 9px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 9px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 14px 9px repeat-x;
}
.rc-shadow { filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .55)) drop-shadow(0 2px 3px rgba(0, 0, 0, .4)); }
.receipt .rc-store { font-weight: 700; font-size: 16px; text-align: center; letter-spacing: .06em; }
.receipt .rc-center { text-align: center; color: var(--paper-muted); }
.receipt .rc-rule { border: 0; border-top: 1.5px dashed #B9B29F; margin: 12px 0; }
.receipt .rc-row { position: relative; z-index: 0; display: grid; grid-template-columns: 1fr 3.4ch 5.4ch; gap: 10px; padding: 1px 4px; margin-inline: -4px; }
.receipt .rc-row span:nth-child(n+2) { text-align: right; }
.receipt .rc-head { color: var(--paper-muted); font-size: 12px; letter-spacing: .04em; }
.receipt .rc-total { font-weight: 700; }
.receipt .rc-row.is-hl::before {
  content: ""; position: absolute; z-index: -1; inset: -1px -6px -1px -8px;
  background: var(--hl) center / 100% 100% no-repeat; mix-blend-mode: multiply;
  clip-path: inset(0 0 0 0); transition: clip-path .55s var(--ease-out);
}
.receipt .rc-row.is-hl { font-weight: 700; }
.receipt .rc-stamp {
  position: absolute; top: 14px; right: 12px; transform: rotate(8deg);
  font: 700 11px/1 var(--mono); letter-spacing: .14em; color: #B4442F;
  border: 1.5px solid #B4442F; border-radius: 4px; padding: 5px 6px 4px; opacity: .85;
}
.leader { display: flex; gap: 8px; align-items: baseline; }
.leader::after { content: ""; order: 1; flex: 1; border-bottom: 1.5px dotted #A9A290; transform: translateY(-4px); }
.leader > :last-child { order: 2; text-align: right; }

/* ---------- shared pieces: buttons row, chips, plan tags ---------- */
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .ctas:has(.btn + .btn) { flex-direction: column; align-items: stretch; width: 100%; } .ctas:has(.btn + .btn) .btn { justify-content: center; } }
.pick { display: grid; gap: 10px; margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: 600 15px/1 var(--body); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.tag { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 4px 9px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); color: var(--muted); font: 600 12px/1 var(--body); letter-spacing: 0; white-space: nowrap; }

/* ---------- a post as Tiopay drafts it (flyer + caption + approve) ---------- */
.post { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px; display: grid; gap: 12px; }
.post-head { display: flex; align-items: center; gap: 10px; }
.av { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; font: 800 15px/1 var(--display); background: var(--fb); color: var(--ff); flex: none; }
.post-head b { display: block; font-size: 14px; line-height: 1.2; }
.post-head div span { display: block; font-size: 13px; color: var(--muted); line-height: 1.3; }
.flyer { min-width: 0; aspect-ratio: 1 / 1; border-radius: 12px; background: var(--fb); color: var(--ff); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.flyer .f-big { margin-top: auto; font: 400 clamp(72px, 7vw, 96px)/.86 "Bowlby One", "Arial Black", sans-serif; letter-spacing: -0.02em; }
.flyer .f-1 { font: 400 17px/1.1 "Bowlby One", "Arial Black", sans-serif; max-width: 13ch; }
.flyer .f-2 { margin-top: 10px; font: 700 12px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.flyer .f-name { margin-top: auto; padding-top: 10px; font: 800 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.cap { font-size: 14px; line-height: 1.5; color: var(--text); }
.post-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.approve { min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--raised); color: var(--text); font: 700 14px/1 var(--body); display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.approve svg { width: 16px; height: 16px; }
.approve[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #062B16; }
.post-foot .small { font-size: 13px; }
/* ---------- industry pages: headline row, tool list, lime close ---------- */
.ind-hero { padding: clamp(56px, 8vw, 104px) 0 0; }
.ind-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.ind-top h1 { font-size: clamp(40px, 5.2vw, 80px); }
.ind-side { display: grid; gap: 24px; justify-items: start; padding-bottom: 8px; }
@media (max-width: 900px) { .ind-top { grid-template-columns: 1fr; } }
.close { background: var(--lime); color: var(--ink); }
.close .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.close h2 { font-size: clamp(40px, 6vw, 88px); }
.close p { font-size: 18px; color: #3D3500; max-width: 42ch; }
.close .side { display: grid; gap: 22px; justify-items: start; }
.close .ctas a:not(.btn) { color: var(--ink); font-weight: 700; align-self: center; padding: 10px 4px; }
@media (max-width: 820px) { .close .wrap { grid-template-columns: 1fr; } }

/* ---------- a phone showing a real app screen ---------- */
.device { position: relative; flex: none; transform: var(--dev, none); width: min(300px, 74vw); aspect-ratio: 9 / 19.5; padding: 11px; border-radius: 48px;
  background: linear-gradient(150deg, #3A3832, #161513 38%, #0E0D0C);
  box-shadow: inset 0 0 0 1.5px #4A473F, inset 0 0 0 5px #0B0B0A, 0 34px 64px rgba(0, 0, 0, .55), 0 4px 10px rgba(0, 0, 0, .35); }
.device::after { content: ""; position: absolute; right: -3px; top: 22%; width: 3px; height: 64px; border-radius: 0 3px 3px 0; background: #2C2A25; }
.device .screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: #0B0B0A; padding-top: 40px; }
.device .screen::before { content: ""; position: absolute; z-index: 1; top: 12px; left: 50%; transform: translateX(-50%); width: 34%; height: 25px; border-radius: 999px; background: #000; }
.device .screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* ---------- legal pages: one paper document with a contents list ---------- */
.legal { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 112px); }
.legal-grid { display: grid; grid-template-columns: 220px minmax(0, 780px); gap: clamp(32px, 5vw, 72px); justify-content: center; align-items: start; }
.toc { position: sticky; top: 100px; }
.toc p { font: 700 13px/1 var(--mono); letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1.5px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 14px; margin-left: -1.5px; border-left: 1.5px solid transparent; color: var(--muted); text-decoration: none; font-size: 14.5px; line-height: 1.35; }
.toc a:hover { color: var(--text); border-left-color: var(--lime); }
.doc { background: var(--paper); color: var(--paper-ink); border-radius: 6px; padding: clamp(28px, 5vw, 64px); box-shadow: 0 30px 60px rgba(0, 0, 0, .5); font: 17px/1.7 var(--body); }
.doc h1 { font-size: clamp(36px, 5vw, 60px); color: var(--paper-ink); }
.doc .updated { font: 600 13px/1 var(--mono); letter-spacing: .08em; color: var(--paper-muted); margin: 14px 0 28px; padding-bottom: 24px; border-bottom: 1.5px dashed #B9B29F; }
.doc h2 { font-size: clamp(21px, 2.2vw, 26px); letter-spacing: -0.02em; line-height: 1.2; margin: 40px 0 12px; color: var(--paper-ink); scroll-margin-top: 96px; }
.doc p, .doc ul { margin: 0 0 16px; max-width: 68ch; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: #9C8F2E; }
.doc a { color: #5E4B00; text-decoration-color: #C9B200; }
.doc ::selection { background: var(--lime); color: var(--ink); }
@media (max-width: 900px) { .legal-grid { grid-template-columns: 1fr; } .toc { position: static; } .toc ol { grid-template-columns: 1fr 1fr; border-left: 0; gap: 0 16px; } .toc a { padding-left: 0; border-left: 0; } }
@media (max-width: 480px) { .toc ol { grid-template-columns: 1fr; } .doc { margin-inline: calc(var(--gutter) * -1 + 6px); } }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding-block: 56px 40px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { margin: 0 0 12px; color: var(--text); font: 700 14px/1.2 var(--body); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-grid a { color: var(--muted); text-decoration: none; display: inline-block; padding: 6px 0; }
.foot-grid a:hover { color: var(--text); text-decoration: underline; }
.foot-line { margin-top: 14px; font-size: 16px; color: var(--text); max-width: 26ch; }
.foot-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- forms (the demo slip) ---------- */
.field label { display: block; font: 600 14px/1.3 var(--body); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; min-height: 50px; font: 16px/1.4 var(--body); color: var(--paper-ink);
  background: #FFFDF6; border: 1.5px solid #CFC8B4; border-radius: 12px; padding: 12px 14px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: #B4442F; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- photo cutouts: real moments, cut into shapes ---------- */
.ph { position: relative; margin: 0; transform: translateY(var(--y, 0)) rotate(var(--r, 0deg)); transition: transform .5s var(--ease-out); }
.ph:hover { transform: translateY(var(--y, 0)) rotate(0deg) scale(1.03); }
.cut { display: block; overflow: hidden; background: var(--raised); box-shadow: 0 24px 44px rgba(0, 0, 0, .5); aspect-ratio: 4 / 5; border-radius: 18px; }
.cut img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.cut.circle { border-radius: 50%; aspect-ratio: 1; }
.cut.arch { border-radius: 999px 999px 18px 18px; aspect-ratio: 3 / 4; }
.cut.pill { border-radius: 999px; aspect-ratio: 5 / 8; }
.cut.wide { aspect-ratio: 3 / 2; }
.cut.ticket { border-radius: 4px; box-shadow: none; --z: 9px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%; }
.cut.sticker { border: 5px solid var(--paper); }
.ph .note { position: absolute; z-index: 1; left: var(--nx, 8%); bottom: var(--ny, 6%); transform: rotate(var(--nr, -4deg)); background: var(--paper); color: var(--paper-ink); font: 700 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 7px 9px; border-radius: 3px; box-shadow: 0 8px 16px rgba(0, 0, 0, .35); white-space: nowrap; }
.ph .note.lime { background: var(--lime); color: var(--ink); }

/* a collage: each photo placed by percent, so it scales as one piece */
.collage { position: relative; width: 100%; aspect-ratio: var(--ar, 1); }
.collage .ph { position: absolute; }
@media (max-width: 900px) { .collage { max-width: 92%; margin-inline: auto; } }

/* a strip of photos between sections */
/* the strip runs edge to edge: photos keep their size and the ends bleed off the page */
.photo-band { --k: 1.4; overflow: hidden; padding-block: clamp(48px, 7vw, 96px); }
.photo-band ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; gap: clamp(12px, 2vw, 28px); }
.photo-band li { flex: none; width: calc(var(--w, 180px) * var(--k)); }
@media (max-width: 1100px) { .photo-band { --k: 1.1; } }
@media (max-width: 760px) { .photo-band ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline: var(--gutter); } .photo-band li { width: auto; } .photo-band li:nth-child(n+5) { display: none; } .photo-band .note { font-size: 10px; padding: 5px 7px; } }
@media (max-width: 460px) { .photo-band ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } .photo-band li:nth-child(n+4) { display: none; } .photo-band .note { font-size: 9px; letter-spacing: .06em; } }

/* a photo that peeks over the top of the lime closing band */
.close { position: relative; }
.close-cut { position: absolute; z-index: 2; top: 0; right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); width: clamp(120px, 18vw, 270px); --y: -50%; --r: 6deg; }
.close-cut .cut { border: 5px solid var(--night); }

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

/* Raccoon Tiopay (2026-10-18): his pictures and walking clip are on pure black, and lighten blends that black into the
   page, so he stands on the dark sections with a soft yellow glow under his feet (like in the app). */
.tim-cut { position: relative; margin: 0; background: var(--night); } /* his own backdrop, so the blend works even inside a sticky or layered parent */
.tim-cut::before { content: ""; position: absolute; left: 14%; right: 14%; bottom: 1.5%; height: 9%; background: radial-gradient(closest-side, rgba(255, 229, 0, .34), rgba(255, 229, 0, 0)); }
.tim-cut img, .tim-cut video { position: relative; display: block; width: 100%; height: auto; mix-blend-mode: lighten; }
.tim-cut .tim-note { position: absolute; z-index: 1; left: 50%; bottom: -4%; transform: translateX(-50%) rotate(-3deg); background: var(--lime); color: var(--ink); font: 700 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 7px 9px; border-radius: 3px; box-shadow: 0 8px 16px rgba(0, 0, 0, .35); white-space: nowrap; }
/* Tiopay's walk as a flipbook of frames (site.js swaps it in for the clip on phones, or where the clip can't play) */
.tim-cut .tim-sheet { position: relative; display: block; width: 100%; aspect-ratio: 5 / 9; background-repeat: no-repeat; mix-blend-mode: lighten; }

/* ---------- motion (2026-10-20): the site moves, lightly ----------
   site.js marks what should rise in (.rv), which highlighter strokes draw themselves (.sw on .hl and mark, .swb on the
   receipt rows and calls that use a ::before stroke), which receipts print out of a slot (.printer), and which hanging
   things sway (.sway). Everything is opacity, translate and transform only. Visitors who ask for less motion get none of it:
   the script adds no classes, so every page reads exactly as before. */
.rv { opacity: 0; translate: 0 18px; }
.rv.in { opacity: 1; translate: 0 0; transition: opacity .7s var(--ease-out), translate .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.labels > li.rv { translate: -14px 0; }
.collage .ph.rv, .photo-band li.rv { translate: 0 10px; }

/* the stroke grows from the left */
.sw { transition: background-size .65s var(--ease-out) .45s; }
.swb::before { clip-path: inset(0 100% 0 0) !important; transition: clip-path .6s var(--ease-out) .4s !important; }
.swb.in::before { clip-path: inset(0 0 0 0) !important; }

/* a receipt that prints: a dark slot on top, the paper slides out of it, then Tiopay's stroke lands */
.printer { position: relative; clip-path: inset(-4px -60px -90px -60px); }
.printer::before { content: ""; position: absolute; z-index: 3; top: -6px; left: -10px; right: -10px; height: 16px; border-radius: 8px; background: #050505; box-shadow: inset 0 -5px 8px rgba(0, 0, 0, .9), 0 1px 0 #2C2A25; }
.printer::after { content: ""; position: absolute; z-index: 3; top: 4px; left: 4px; right: 4px; height: 2px; border-radius: 2px; background: #000; }
.printer .receipt { transform: translateY(-103%); }
.printer.in .receipt { transform: none; transition: transform 1.5s cubic-bezier(.33, .8, .3, 1); }
.printer .swb::before { transition-delay: 1.45s !important; }
.printer .sw { transition-delay: 1.45s; }

/* hangers, price tags and kitchen tickets sway on their hooks; a hover holds one still */
@keyframes sway { from { transform: rotate(calc(var(--r, 0deg) - var(--k, 1.2deg))); } to { transform: rotate(calc(var(--r, 0deg) + var(--k, 1.2deg))); } }
.sway { animation: sway var(--sp, 4.6s) ease-in-out var(--d, 0s) infinite alternate; }
.ticket-item.sway { --k: .6deg; }
.sway:hover { animation-play-state: paused; }

/* phones tilt toward the mouse, with a sheen across the glass */
@media (hover: hover) {
  .device { transition: transform .45s var(--ease-out); }
  .device.tilt { transform: var(--dev, none) perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
  .device .screen::after { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .07) 50%, transparent 58%); transform: translateX(var(--gx, -70%)); transition: transform .45s var(--ease-out); }
  /* plan cards lift a little */
  .plan { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
  .plan:hover { transform: perspective(1200px) rotateX(1.2deg) translateY(-5px); box-shadow: 0 26px 48px rgba(0, 0, 0, .45); }
}

/* footer links: the underline draws in */
.foot-grid a { background: linear-gradient(currentColor, currentColor) left bottom / 0 1.5px no-repeat; transition: background-size .3s var(--ease-out), color .2s; }
.foot-grid a:hover { text-decoration: none; background-size: 100% 1.5px; }

/* the demo slip, sent: the paper jogs like a printer and a SENT stamp lands on it */
@keyframes slipJog { 30% { transform: translateY(-6px); } }
@keyframes stampIn { from { transform: rotate(-22deg) scale(2.4); opacity: 0; } to { transform: rotate(-12deg) scale(1); opacity: .9; } }
.receipt.sent { animation: slipJog .55s var(--ease-out); }
.receipt .rc-stamp.sent-stamp { top: auto; right: 22px; bottom: 26px; font-size: 15px; padding: 7px 10px 6px; color: #2E7D4F; border-color: #2E7D4F; border-width: 2px; animation: stampIn .5s cubic-bezier(.2, 1.4, .4, 1) both; }

/* Tiopay's sky behind the Home hero (the app's star sky, simplified) */
.creed { position: relative; z-index: 0; background: var(--night); } /* the page color inside his stacking context: without it his clip blends against nothing and its black shows as a box (owner, 2026-10-21) */ /* its own stacking context, so the sky can sit under everything and Tiopay's lighten blend still sees it */
.creed-tim { background: transparent; } /* no black box over the stars: his clip blends with the sky itself */
.creed-sky { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* Tiopay's 18-second video (Home after the top banner, top of How it works): landscape on computers, vertical on phones; tap to play with sound */
.watch { padding: clamp(56px, 7vw, 104px) 0 clamp(24px, 3vw, 48px); }
.watch-head { margin-bottom: 28px; }
.watch-head h2 { margin: 0; }
.watch-head p { color: var(--muted); margin: 12px 0 0; max-width: 58ch; }
.vframe { --vp: clamp(14px, 2vw, 22px); --vb: 68px; position: relative; margin: 0; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, .5); }
.vframe video { display: block; width: 100%; height: auto; background: #000; }
.vframe .v-tall { display: none; }
.vplay { position: absolute; inset: 0; display: grid; place-items: end start; width: 100%; padding: var(--vp); border: 0; background: transparent; cursor: pointer; }
.vplay b { width: var(--vb); height: var(--vb); border-radius: 50%; background: var(--lime); display: grid; place-items: center; box-shadow: 0 10px 40px rgba(0, 0, 0, .55); transition: transform .2s ease; }
.vplay b::before { content: ""; border-left: 22px solid var(--ink); border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }
.vplay:hover b, .vplay:focus-visible b { transform: scale(1.08); }
.vplay:focus-visible { outline: 3px solid var(--lime); outline-offset: -6px; border-radius: 22px; }
.vsound { position: absolute; left: calc(var(--vp) + var(--vb) + 12px); bottom: calc(var(--vp) + var(--vb) / 2 - 14px); font: 700 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: rgba(0, 0, 0, .65); color: var(--text); padding: 8px 11px; border-radius: 999px; pointer-events: none; }
.vframe.playing .vplay, .vframe.playing .vsound { display: none; }
.vmute { display: none; position: absolute; right: var(--vp); top: var(--vp); align-items: center; gap: 8px; font: 700 13px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: var(--lime); color: var(--ink); padding: 11px 15px 11px 12px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); pointer-events: none; }
.vmute svg { width: 20px; height: 20px; }
.vframe.auto .vplay b, .vframe.auto .vsound { display: none; } /* playing by itself, silent: one pill asks for sound instead */
.vframe.auto .vmute { display: flex; }
@media (max-width: 720px) {
  .vframe { width: 100%; max-width: 360px; margin-inline: auto; justify-self: center; }
  .vframe .v-wide { display: none; }
  .vframe .v-tall { display: block; }
  .vframe { --vb: 60px; }
}
