/* nudda.nu. Signage palette: white ground, ink lettering, one chrome-yellow moment. */

:root {
  --ink: #111111;
  --sign: #ffcc00;
  --ground: #ffffff;
  --well: #f2f2f0;
  --line: #e4e4e4;
  --muted: #5e5e5e;
  --text-2: #2b2b2b;
  --text-3: #3d3d3d;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
}

@media (min-width: 720px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
svg { display: block; }
img { max-width: 100%; height: auto; }

.wrap { width: min(1200px, 100% - var(--gutter) * 2); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

section[id] { scroll-margin-top: 24px; }

/* ---------- Type ---------- */

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.h1 {
  font-size: clamp(46px, 6.4vw, 92px);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.h1-split { font-size: clamp(42px, 5.5vw, 80px); }
.h2 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.97;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.h2-xl { font-size: clamp(48px, 6.2vw, 88px); line-height: 0.93; letter-spacing: -0.045em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.48; color: var(--text-2); max-width: 34em; }
.body-lg { font-size: 19px; line-height: 1.47; color: var(--text-2); }

/* Words in display headings sit in their own masks so they can rise into place. */
.w { display: inline-block; vertical-align: top; }
.w > span { display: inline-block; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 44px;
  border: 0; border-radius: 999px;
  background: var(--ink); color: #fff;
  font: 600 15px/1 var(--font);
  text-decoration: none;
  padding: 12px 20px;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 200ms ease;
}
.btn-lg { font-size: 18px; padding: 20px 30px; min-height: 60px; }
.btn-block { width: 100%; }
.btn .arrow { width: 18px; height: 18px; fill: none; stroke: var(--sign); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #2a2a2a; }
  .btn:hover .arrow { transform: translateX(4px); }
}

/* ---------- Scroll progress ---------- */

.progress {
  position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 50;
  background: var(--sign);
  transform-origin: 0 50%;
  transform: scaleX(0);
  display: none;
}

/* ---------- Nav ---------- */

.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 24px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 26px; letter-spacing: -0.04em; font-stretch: 112%;
  text-decoration: none; color: var(--ink);
  min-height: 44px;
}
.logo-dot {
  width: 26px; height: 26px; border-radius: 50%; background: var(--sign);
  display: grid; place-items: center;
}
.logo-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-link { font-size: 15px; font-weight: 500; text-decoration: none; padding-block: 12px; }
@media (hover: hover) and (pointer: fine) {
  .nav-link { background: linear-gradient(var(--sign), var(--sign)) 0 calc(100% - 8px) / 0 3px no-repeat; transition: background-size 250ms var(--ease-out); }
  .nav-link:hover { background-size: 100% 3px; }
}
@media (max-width: 760px) {
  .nav-link { display: none; }
  .logo { font-size: 22px; }
  .logo-dot { width: 22px; height: 22px; }
  .logo-dot::after { width: 7px; height: 7px; }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  gap: 40px;
  padding-block: 24px 72px;
  overflow-x: clip;
}
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 6px; }
.cta-note { display: flex; flex-direction: column; font-size: 15px; line-height: 1.4; }
.cta-note strong { font-weight: 600; }
.cta-note span { color: var(--muted); }

@media (max-width: 559px) {
  .cta-row .btn { width: 100%; }
  .cta-note { width: 100%; text-align: center; }
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
    align-items: center;
    gap: 48px;
    padding-block: 56px 112px;
  }
  .hero-text { gap: 32px; }
}

/* The visual is drawn in container units, so it scales as one piece. 1cqw = 5px at full size. */
.visual {
  container-type: inline-size;
  position: relative;
  width: min(500px, 100%);
  aspect-ratio: 500 / 560;
  justify-self: center;
  perspective: 1400px;
}
@media (max-width: 1023px) { .visual { width: min(460px, 100%); } }

.tilt { position: absolute; inset: 0; transform-style: preserve-3d; }
.layer { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }

.sun {
  position: absolute; left: 6cqw; top: 8cqw; width: 92cqw; height: 92cqw;
  border-radius: 50%; background: var(--sign);
}

.phone {
  position: absolute; left: 41cqw; top: 2cqw; width: 50cqw; height: 100cqw;
  border-radius: 8.4cqw; background: var(--ink); padding: 1.8cqw;
  transform: rotate(7deg);
  box-shadow: 0 6cqw 12cqw rgba(17, 17, 17, 0.22);
}
.screen {
  height: 100%; border-radius: 6.8cqw; background: #fff;
  padding: 8.8cqw 4cqw 4cqw;
  display: flex; flex-direction: column; gap: 3.6cqw;
}
.ph-head { display: flex; flex-direction: column; gap: 0.8cqw; }
.ph-title { font-size: 3.6cqw; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.ph-sub { font-size: 2.4cqw; line-height: 1.2; color: var(--muted); }
.ph-stars { display: flex; gap: 1.2cqw; }
.ph-star { width: 6cqw; height: 6cqw; fill: var(--line); }
.ph-star.on { fill: var(--sign); }
.ph-box {
  height: 30cqw; border-radius: 2.8cqw; border: 0.3cqw solid var(--line);
  padding: 2.8cqw;
}
.ph-text { font-size: 2.6cqw; line-height: 1.46; color: var(--ink); }
.ph-btn {
  position: relative; display: grid; place-items: center;
  height: 8.6cqw; border-radius: 99cqw; background: var(--ink); color: #fff;
  font-size: 2.8cqw; font-weight: 600;
}
.ph-btn > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 1cqw; }
.ph-btn-b { opacity: 0; }
.ph-btn-b svg { width: 3cqw; height: 3cqw; fill: none; stroke: var(--sign); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.card {
  position: absolute; left: 0; top: 50cqw; width: 76cqw; height: 48cqw;
  border-radius: 4.4cqw; background: var(--ink); color: #fff;
  padding: 5.6cqw;
  display: flex; justify-content: space-between;
  transform: rotate(-9deg);
  box-shadow: 0 6cqw 12cqw rgba(17, 17, 17, 0.28);
}
.card-shine { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.glare {
  position: absolute; inset: -20% auto -20% 0; width: 45%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.16) 50%, transparent 100%);
  transform: translateX(-120%);
}
.card-left { position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.card-stars { display: flex; gap: 0.8cqw; }
.card-stars svg { width: 4cqw; height: 4cqw; fill: var(--sign); }
.card-title { font-size: 8.6cqw; line-height: 0.94; font-weight: 800; letter-spacing: -0.035em; }
.card-sub { margin-top: 1.2cqw; font-size: 2.6cqw; line-height: 1.38; color: #cfcfcf; width: 40cqw; }
.card-right { position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.nfc { position: relative; width: 7.6cqw; height: 7.6cqw; display: grid; place-items: center; }
.nfc svg { position: relative; width: 100%; height: 100%; fill: none; stroke: var(--sign); stroke-width: 2; stroke-linecap: round; }
.ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 0.5cqw solid var(--sign);
  opacity: 0;
}
.qr { width: 14cqw; height: 14cqw; border-radius: 1cqw; background: #fff; display: grid; place-items: center; }
.qr svg { width: 12cqw; height: 12cqw; fill: var(--ink); }

.toast {
  position: absolute; left: 2cqw; top: 15cqw;
  display: inline-flex; align-items: center; gap: 1.4cqw;
  padding: 2cqw 3.2cqw 2cqw 2.4cqw;
  border-radius: 99cqw; border: 0.4cqw solid var(--ink); background: #fff;
  font-size: 2.9cqw; font-weight: 700; white-space: nowrap;
  box-shadow: 1cqw 1cqw 0 var(--ink);
}
.toast svg { width: 3.6cqw; height: 3.6cqw; fill: var(--sign); stroke: var(--ink); stroke-width: 1.5; }

/* Photo variant: the card on a real restaurant table, with the phone tapping it. */
.visual-photo .sun { left: 22cqw; top: 0; width: 78cqw; height: 78cqw; }
.photo {
  position: absolute; left: 0; top: 4cqw; width: 74cqw; aspect-ratio: 1 / 1.12;
  border-radius: 3.6cqw; overflow: hidden;
  box-shadow: 0 6cqw 14cqw rgba(17, 17, 17, 0.24);
}
/* Zoomed in on the card: 135% wide, card centre placed at 45% across and 55% down the frame. */
.photo img { position: absolute; display: block; max-width: none; width: 135%; height: auto; left: -21.8%; top: -37%; }
/* Sits on the contactless symbol printed on the card in the photo. */
.photo-nfc { position: absolute; left: 67.7%; top: 44.2%; width: 13.5%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.photo-nfc .ring { border-width: 0.6cqw; }
.phone-scale { position: absolute; inset: 0; transform: translate(23cqw, 26cqw) scale(0.82); transform-origin: 0 0; }
.visual-photo .toast { left: 3cqw; top: 9cqw; }

/* ---------- Need ---------- */

.need { display: grid; gap: 48px; padding-block: 88px; }
.need-text { display: flex; flex-direction: column; gap: 24px; max-width: 600px; }
.need-punch { font-size: 21px; line-height: 1.45; font-weight: 600; border-left: 4px solid var(--sign); padding-left: 18px; }
.compare {
  margin: 0; align-self: center;
  background: #fff; border: 2px solid var(--ink); border-radius: 22px;
  padding: 24px 24px 12px;
  box-shadow: 8px 8px 0 var(--ink);
}
.compare-label { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; }
.result { display: flex; align-items: center; gap: 16px; padding-block: 18px; }
.result + .result { border-top: 1px solid var(--line); }
.pin { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--ink); }
.result-us .pin { background: #c9c9c9; }
.r-name { font-size: 20px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.r-meta { display: flex; align-items: center; gap: 6px; font-size: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.r-meta strong { color: var(--ink); font-weight: 700; }
.r-meta svg { width: 16px; height: 16px; fill: var(--sign); stroke: var(--ink); stroke-width: 1.2; }
.ask { border-top: 2px solid var(--ink); padding-top: 28px; display: grid; gap: 12px; }
.ask-title { font-size: 28px; line-height: 1.14; font-weight: 800; letter-spacing: -0.02em; }

@media (min-width: 1024px) {
  .need { grid-template-columns: minmax(0, 1fr) 460px; column-gap: 96px; row-gap: 72px; padding-block: 140px 120px; }
  .ask { grid-column: 1 / -1; grid-template-columns: 400px minmax(0, 700px); justify-content: space-between; align-items: start; }
}

/* ---------- How ---------- */

.how { background: var(--well); padding-block: 88px; }
.how-head { display: grid; gap: 20px; align-items: end; }
.how-lead { font-size: 19px; line-height: 1.47; color: var(--text-2); max-width: 440px; }
.steps { display: grid; gap: 40px; margin-top: 56px; counter-reset: none; }
.step { position: relative; display: flex; flex-direction: column; gap: 14px; padding-top: 24px; }
.step::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--ink);
  transform-origin: 0 50%;
}
.step-num { font-size: 15px; font-weight: 700; }
.step-title { font-size: 28px; line-height: 1.14; font-weight: 800; letter-spacing: -0.02em; }
.step-text { font-size: 17px; line-height: 1.53; color: var(--muted); }

@media (min-width: 900px) {
  .how { padding-block: 120px; }
  .how-head { grid-template-columns: 1fr 440px; justify-content: space-between; }
  .steps { grid-template-columns: repeat(3, 1fr); margin-top: 64px; }
}

/* ---------- Pricing ---------- */

.pricing { display: grid; gap: 56px; padding-block: 96px; }
.pricing-text { display: flex; flex-direction: column; gap: 24px; max-width: 520px; }
.price { position: relative; display: flex; flex-direction: column; gap: 40px; }
.big-price { display: flex; align-items: flex-end; gap: 14px; }
.num {
  font-size: clamp(120px, 16vw, 200px); line-height: 0.85; font-weight: 900; letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.unit { display: flex; flex-direction: column; gap: 4px; padding-bottom: 10px; }
.kr { font-size: clamp(30px, 3vw, 40px); line-height: 1; font-weight: 900; letter-spacing: -0.03em; }
.per { font-size: 15px; color: var(--muted); }
.sticker {
  position: absolute; right: 0; top: -36px;
  width: clamp(108px, 11vw, 150px); aspect-ratio: 1; border-radius: 50%;
  background: var(--sign);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  transform: rotate(12deg);
}
.sticker span { font-size: clamp(12px, 1vw, 14px); font-weight: 700; }
.sticker strong { font-size: clamp(32px, 3vw, 44px); line-height: 1; font-weight: 900; letter-spacing: -0.04em; }
@media (max-width: 599px) {
  /* Phones: the unit drops under the number so the sticker has the right side to itself. */
  .big-price { flex-direction: column; align-items: flex-start; gap: 8px; }
  .num { font-size: 104px; }
  .unit { flex-direction: row; align-items: baseline; gap: 8px; padding-bottom: 0; }
  .kr { font-size: 26px; }
  .sticker { width: 96px; top: -8px; }
  .sticker strong { font-size: 30px; }
}
.options { border-top: 2px solid var(--ink); }
.option {
  display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 12px;
  padding-block: 20px; border-bottom: 1px solid var(--line);
}
.opt-name, .opt-price { font-size: 19px; font-weight: 800; }
.opt-note { font-size: 15px; color: var(--muted); }
.opt-price { text-align: right; }
.included { display: grid; gap: 14px 32px; }
.included li { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.included svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 600px) {
  .option { grid-template-columns: 160px 1fr 110px; padding-block: 22px; }
  .opt-name, .opt-price { font-size: 21px; }
  .opt-note { font-size: 16px; }
  .included { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .pricing { grid-template-columns: 520px 600px; justify-content: space-between; padding-block: 140px; }
  .sticker { right: -10px; top: -56px; }
}

/* ---------- Sample ---------- */

.sample { position: relative; isolation: isolate; padding-block: 88px; }
.sample::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sign); }
.sample-inner { display: grid; gap: 48px; }
.sample-text { display: flex; flex-direction: column; gap: 24px; max-width: 520px; }
.sample .body-lg { color: var(--ink); }

.form-wrap { position: relative; width: 100%; max-width: 560px; }
.form-shadow { position: absolute; inset: 0; border-radius: 22px; background: var(--ink); transform: translate(8px, 8px); }
.form-card {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  background: #fff; border: 2px solid var(--ink); border-radius: 22px;
  padding: 28px 22px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 15px; font-weight: 600; }
.field input {
  height: 56px; padding: 0 18px;
  border: 1.5px solid #cfcfcf; border-radius: 12px;
  font: 400 17px var(--font); color: var(--ink); background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field input::placeholder { color: #8a8a8a; }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.75); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hp input { font-size: 16px; }
.form-card .btn { margin-top: 6px; }
.form-msg { font-size: 15px; color: #b3261e; font-weight: 600; }
.form-note { font-size: 14px; line-height: 1.43; color: var(--muted); }

.form-done { align-items: flex-start; gap: 12px; padding-block: 40px; outline: none; }
.done-check { width: 56px; height: 56px; }
.done-check circle { fill: var(--sign); }
.done-check path { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.done-title { font-size: 32px; line-height: 1.05; font-weight: 900; letter-spacing: -0.03em; }
.done-text { font-size: 17px; color: var(--text-2); }

@media (min-width: 720px) { .form-card { padding: 40px; } }
@media (min-width: 1024px) {
  .sample { padding-block: 120px; }
  .sample-inner { grid-template-columns: 520px 560px; justify-content: space-between; align-items: start; }
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 40px; padding-block: 96px 88px; }
.qas { border-top: 2px solid var(--ink); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 26px; cursor: pointer; list-style: none;
  font-size: 22px; line-height: 1.27; font-weight: 800; letter-spacing: -0.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.plus { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
.plus::before, .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2.5px; border-radius: 2px;
  background: var(--ink); transform: translate(-50%, -50%);
}
.plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 220ms var(--ease-out); }
.qa[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa-body { padding-bottom: 26px; font-size: 17px; line-height: 1.53; color: var(--text-3); max-width: 640px; }

@media (min-width: 1024px) {
  .faq { grid-template-columns: 400px 700px; justify-content: space-between; padding-block: 140px 120px; }
}

/* ---------- Footer ---------- */

.footer { background: var(--ink); color: #fff; padding-block: 48px; }
.footer-inner { display: grid; gap: 24px; align-items: center; }
.logo-light { color: #fff; font-size: 22px; }
.logo-light .logo-dot { width: 22px; height: 22px; }
.logo-light .logo-dot::after { width: 7px; height: 7px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-links a { font-size: 15px; font-weight: 600; text-decoration: none; padding-block: 12px; }
.footer-legal { font-size: 14px; line-height: 1.5; color: #bdbdbd; }
.footer-legal p + p { color: #8c8c8c; }
.footer :focus-visible { outline-color: var(--sign); }
@media (hover: hover) and (pointer: fine) { .footer-links a:hover { color: var(--sign); } }
@media (min-width: 1024px) {
  .footer-inner { grid-template-columns: auto 1fr auto; gap: 48px; }
  .footer-legal { text-align: right; }
}

/* ---------- 404 ---------- */

.lost { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-block: 64px; }

/* =====================================================================
   Motion. Everything below runs only for visitors who have not asked
   for reduced motion (.motion is set in <head>). Without it, the page
   above is already in its final state.
   ===================================================================== */

/* Hero copy: words rise out of their masks, then the rest fades up. */
.motion .h1 .w { clip-path: inset(-0.3em -0.15em -0.16em -0.15em); }
.motion .h1 .w > span {
  transform: translateY(135%);
  animation: rise 1000ms var(--ease-out) forwards;
  animation-delay: calc(120ms + var(--i) * 70ms);
}
.motion .h1.settled .w { clip-path: none; }
@keyframes rise { to { transform: translateY(0); } }

.motion [data-hero] {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 900ms var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* Hero visual: the sun grows, the phone rises, the card lands. Starts when the visual is seen. */
.motion .visual:not(.go) .sun { opacity: 0; }
.motion .visual:not(.go) .phone,
.motion .visual:not(.go) .card { opacity: 0; }

.motion .visual.go .sun { animation: sunGrow 1200ms var(--ease-out) both; }
@keyframes sunGrow {
  from { clip-path: circle(14% at 50% 56%); opacity: 0; }
  25% { opacity: 1; }
  to { clip-path: circle(50% at 50% 50%); opacity: 1; }
}

.motion .visual.go .phone {
  animation:
    phoneIn 1100ms var(--ease-out) 250ms both,
    tap 3600ms var(--ease-in-out) 2200ms infinite;
}
@keyframes phoneIn {
  from { opacity: 0; transform: translateY(16%) rotate(15deg); }
  22% { opacity: 1; }
  to { opacity: 1; transform: translateY(0) rotate(7deg); }
}
/* The phone dips to the card, as if a guest taps it, then settles. */
@keyframes tap {
  0%, 30% { transform: translate(0, 0) rotate(7deg); }
  42% { transform: translate(-2%, 2.6%) rotate(5deg); }
  58%, 100% { transform: translate(0, 0) rotate(7deg); }
}

.motion .visual.go .card { animation: cardLand 950ms var(--ease-out) 600ms both; }
@keyframes cardLand {
  0% { opacity: 0; transform: translate(-8%, -34%) rotate(-26deg); }
  18% { opacity: 1; }
  62% { opacity: 1; transform: translate(0, 2.5%) rotate(-7deg); }
  100% { opacity: 1; transform: translate(0, 0) rotate(-9deg); }
}

.motion .visual.go .glare { animation: glare 1100ms var(--ease-in-out) 1500ms both; }
@keyframes glare { from { transform: translateX(-120%); } to { transform: translateX(260%); } }

/* NFC rings pulse each time the phone touches the card. */
.motion .visual.go .ring {
  animation: ripple 3600ms var(--ease-out) infinite;
  animation-delay: calc(2200ms + var(--r, 0) * 160ms);
}
@keyframes ripple {
  0%, 38% { opacity: 0; transform: scale(0.6); }
  42% { opacity: 0.8; transform: scale(0.7); }
  78%, 100% { opacity: 0; transform: scale(2.6); }
}
.motion .visual.off .phone,
.motion .visual.off .ring { animation-play-state: paused; }

/* Phone screen: stars light up, the review types itself, then it is published. */
.motion .ph-star.on:not(.lit) { fill: var(--line); }
.motion .ph-star.lit { animation: pop 460ms var(--ease-out); }
@keyframes pop {
  0% { transform: scale(0.6); }
  55% { transform: scale(1.22); }
  100% { transform: scale(1); }
}
.motion .ph-text:not(.typing) { opacity: 0; }
.ph-text.typing::after {
  content: ""; display: inline-block; width: 0.12em; height: 1em; margin-left: 0.06em;
  background: var(--ink); vertical-align: -0.12em;
  animation: caret 900ms steps(1) infinite;
}
.ph-text.typed::after { display: none; }
@keyframes caret { 50% { opacity: 0; } }

.motion .ph-btn { transition: transform 140ms var(--ease-out); }
.motion .ph-btn.pressed { transform: scale(0.94); }
.motion .ph-btn > span { transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
.motion .ph-btn.done .ph-btn-a { opacity: 0; transform: translateY(-40%); }
.motion .ph-btn.done .ph-btn-b { opacity: 1; }
.motion .ph-btn:not(.done) .ph-btn-b { transform: translateY(40%); }

.motion .toast { transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-out); }
.motion .toast:not(.show) { opacity: 0; transform: translateY(12px) scale(0.94); }

/* Photo: opens up from the table, the picture settles inside its frame. */
.motion .visual-photo:not(.go) .photo { opacity: 0; }
.motion .visual-photo.go .photo { animation: photoIn 1200ms var(--ease-out) 100ms both; }
.motion .visual-photo.go .photo img { animation: settle 2200ms var(--ease-out) 100ms both; }
@keyframes photoIn {
  from { opacity: 0; transform: translateY(8%); clip-path: inset(22% 10% 0 10% round 3.6cqw); }
  25% { opacity: 1; }
  to { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0 round 3.6cqw); }
}
@keyframes settle { from { transform: scale(1.14); } to { transform: scale(1); } }

/* Depth for the pointer tilt (desktop only, added by script). */
.tilt-on .l-phone { transform: translateZ(30px); }
.tilt-on .l-card { transform: translateZ(70px); }
.tilt-on .l-photo { transform: translateZ(10px); }
.tilt-on .l-toast { transform: translateZ(110px); }

/* Scroll progress fills as the page grows. */
@supports (animation-timeline: scroll()) {
  .motion .progress { display: block; animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* Generic reveal: rises into place once, when scrolled into view. */
.motion [data-reveal] {
  transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.motion [data-reveal]:not(.in) { opacity: 0; transform: translateY(28px); }

/* Without motion: a quiet fade, nothing moves. */
.js:not(.motion) [data-reveal] { transition: opacity 300ms ease; }
.js:not(.motion) [data-reveal]:not(.in) { opacity: 0; }

/* Section headings: same masked rise as the hero. */
.motion [data-words] .w { clip-path: inset(-0.3em -0.15em -0.16em -0.15em); }
.motion [data-words] .w > span {
  transition: transform 1000ms var(--ease-out);
  transition-delay: calc(var(--i) * 60ms);
}
.motion [data-words]:not(.in) .w > span { transform: translateY(135%); }
.motion [data-words].settled .w { clip-path: none; }

/* Search example: the two results slide in, the review counts run up (script). */
.motion .result { transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(200ms + var(--i) * 180ms); }
.motion .compare:not(.in) .result { opacity: 0; transform: translateX(-18px); }
.motion .compare { transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); }
.motion .compare:not(.in) { opacity: 0; transform: translateY(24px); }

/* Steps: the rule over each step draws left to right. */
.motion .step::before { transition: transform 1100ms var(--ease-in-out); transition-delay: calc(var(--i) * 160ms); }
.motion .steps:not(.in) .step::before { transform: scaleX(0); }
.motion .step > * { transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(250ms + var(--i) * 160ms); }
.motion .steps:not(.in) .step > * { opacity: 0; transform: translateY(16px); }

/* Price: the number counts up (script), then the sticker slaps on. */
.motion .price:not(.in) .sticker { opacity: 0; }
.motion .price.in .sticker { animation: slap 700ms var(--ease-out) 950ms both; }
@keyframes slap {
  0% { opacity: 0; transform: scale(1.8) rotate(48deg); }
  55% { opacity: 1; transform: scale(0.9) rotate(8deg); }
  100% { opacity: 1; transform: scale(1) rotate(12deg); }
}

/* Included list: checkmarks draw in turn. */
.motion .included path { stroke-dasharray: 1; transition: stroke-dashoffset 450ms var(--ease-out); transition-delay: calc(200ms + var(--i) * 110ms); }
.motion .included:not(.in) path { stroke-dashoffset: 1; }
.motion .included li { transition: opacity 600ms var(--ease-out); transition-delay: calc(150ms + var(--i) * 110ms); }
.motion .included:not(.in) li { opacity: 0; }

/* Sample section: the yellow rises from the bottom with a rounded top, tied to scroll where supported. */
@supports (animation-timeline: view()) {
  .motion .sample::before {
    animation: flood linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 38%;
  }
}
@supports not (animation-timeline: view()) {
  .motion .sample::before { transition: clip-path 1200ms var(--ease-in-out); }
  .motion .sample:not(.in)::before { clip-path: inset(100% 0 0 0 round 50vw 50vw 0 0); }
}
@keyframes flood {
  from { clip-path: inset(100% 0 0 0 round 50vw 50vw 0 0); }
  to { clip-path: inset(0 0 0 0 round 0 0 0 0); }
}

/* Form: the card rises, then its offset shadow slides out from underneath. */
.motion .form-shadow { transition: transform 600ms var(--ease-out) 750ms; }
.motion .form-wrap:not(.in) .form-shadow { transform: translate(0, 0); }

/* Done state after sending. */
.motion .form-done:not([hidden]) { animation: fadeUp 500ms var(--ease-out) both; }
.form-done .done-check path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.motion .form-done:not([hidden]) .done-check path { animation: draw 600ms var(--ease-out) 200ms both; }
.motion .form-done:not([hidden]) .done-check circle { transform-origin: center; animation: pop 500ms var(--ease-out) both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* FAQ: answers open smoothly where the browser can animate to auto height. */
@supports (interpolate-size: allow-keywords) {
  .motion .qa { interpolate-size: allow-keywords; }
  .motion .qa::details-content {
    height: 0; overflow: clip;
    transition: height 260ms var(--ease-out), content-visibility 260ms allow-discrete;
  }
  .motion .qa[open]::details-content { height: auto; }
}

.motion { scroll-behavior: smooth; }
