/* Clerkbot website: "chat-first, bright".
   A warm off-white page with one deep green brand colour. The product (a Telegram chat) is the hero,
   features sit in a bento grid, and the security section is the one dark band on the page.
   Motion is layered on top: everything is readable with no JavaScript and with reduced motion.
   System fonts only, nothing loaded from other sites. */

:root {
  --bg: #f7f6f1;
  --bg-sage: #edf1e9;
  --surface: #ffffff;
  --ink: #10201a;
  --muted: #52615a;
  --line: #e0e4dc;
  --line-strong: #cdd5cb;

  --green: #0f6b47;
  --green-hover: #0b5a3b;
  --green-50: #e5f2eb;
  --green-100: #cfe8db;
  --mint: #74e4b6;
  --honey: #f0b35a;

  --deep: #08130f;
  --deep-2: #0f2119;
  --deep-line: #1f3a2e;
  --deep-text: #e6efe9;
  --deep-muted: #9fb3a9;

  --amber: #a8641a;
  --red: #a13d32;
  --red-50: #f8e7e4;
  --amber-50: #fbf1e3;

  /* Telegram-style chat */
  --chat-wall: #dfe8d6;
  --bubble-in: #ffffff;
  --bubble-out: #e3f7cf;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --radius: 22px;
  --radius-sm: 12px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --shadow: 0 1px 2px rgba(16, 32, 26, 0.04), 0 8px 24px rgba(16, 32, 26, 0.06);
  --shadow-lg: 0 2px 6px rgba(16, 32, 26, 0.06), 0 24px 60px rgba(16, 32, 26, 0.14);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-pop: cubic-bezier(.2, 1.5, .4, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }

a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.08; text-wrap: balance; }
h1, h2 { font-weight: 760; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.45rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.15rem; font-weight: 680; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0 0 1em; }

code, .mono { font-family: var(--mono); font-size: 0.92em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--green); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(var(--r0, -5deg)); }
  50% { transform: translateY(-14px) rotate(var(--r1, 5deg)); }
}
@keyframes aurora {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(4%, -3%, 0) rotate(8deg) scale(1.08); }
  100% { transform: translate3d(-4%, 3%, 0) rotate(-6deg) scale(1.02); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marker { from { background-size: 0% 0.3em; } to { background-size: 100% 0.3em; } }
@keyframes shine { 0%, 70% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(31, 181, 122, 0.45); } 80%, 100% { box-shadow: 0 0 0 10px rgba(31, 181, 122, 0); } }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09) translate(-1.5%, -1%); } }
@keyframes grid-pan { to { background-position: 56px 56px, 56px 56px; } }
@keyframes breathe { 0%, 100% { opacity: 0.45; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.08); } }
@keyframes progress { to { transform: scaleX(1); } }
@keyframes hue { 0%, 100% { filter: hue-rotate(0deg); } 50% { filter: hue-rotate(110deg); } }

/* ---------- Scroll progress (browsers with scroll-linked animations) ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none;
  transform-origin: 0 50%; transform: scaleX(0); display: none;
  background: linear-gradient(90deg, var(--green), var(--mint), var(--honey));
}
@supports (animation-timeline: scroll()) {
  .scroll-progress { display: block; animation: progress linear both; animation-timeline: scroll(root); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(247, 246, 241, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease, border-color .3s ease;
}
.js .site-header { border-bottom-color: transparent; }
.js .site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(16, 32, 26, 0.06); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-weight: 780; font-size: 1.3rem; letter-spacing: -0.03em;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .mark-bubble { fill: var(--green); }
.brand .mark-check { stroke: #fff; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-nav a { position: relative; color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-header .btn { margin-left: auto; }
.site-nav + .btn { margin-left: 0; }
@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-nav + .btn { margin-left: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease, transform .2s var(--ease-out), box-shadow .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 22px rgba(15, 107, 71, 0.28); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-130%); animation: shine 5s ease-in-out 2s infinite;
}
.btn-primary:hover { background: var(--green-hover); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 107, 71, 0.32); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.92rem; box-shadow: none; }
.btn-sm::after { animation: none; }
.btn:active { transform: translateY(1px); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Shared bits ---------- */
section { padding: clamp(64px, 9vw, 112px) 0; }

.eyebrow {
  display: inline-block; margin: 0 0 14px;
  color: var(--green); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 40rem; }
.muted { color: var(--muted); }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow);
  transition: transform .35s var(--ease-out), box-shadow .35s ease, border-color .35s ease;
}

.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-50); color: var(--green); margin-bottom: 16px;
}
.icon svg { width: 22px; height: 22px; }

.note { font-size: 0.95rem; color: var(--muted); margin: 0; }
.note strong { color: var(--ink); }
.callout {
  margin-top: 28px; padding: 16px 20px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 0.97rem;
}
.callout strong { color: var(--ink); }

/* Pointer spotlight (position set by site.js) */
[data-spot] { overflow: hidden; }
[data-spot]::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(116, 228, 182, 0.2), transparent 60%);
  opacity: 0; transition: opacity .35s ease;
}
[data-spot]:hover::before { opacity: 1; }
[data-spot] > * { position: relative; z-index: 1; }

/* Floating 3D objects */
.obj { position: absolute; z-index: 1; width: var(--w, 120px); pointer-events: none; }
.obj img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 18px 22px rgba(16, 32, 26, 0.18));
  animation: drift var(--t, 8s) ease-in-out var(--delay, 0s) infinite;
}

/* Scroll reveal (only when site.js runs) */
.js [data-reveal]:not(.is-visible) { opacity: 0; }
.js [data-reveal].is-visible { animation: rise .8s var(--ease-out) backwards; animation-delay: calc(var(--d, 0) * 80ms); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 80px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: -2; left: -15%; right: -15%; top: -30%; height: 150%;
  background:
    radial-gradient(32% 30% at 18% 32%, rgba(116, 228, 182, 0.42), transparent 70%),
    radial-gradient(28% 26% at 82% 22%, rgba(15, 107, 71, 0.2), transparent 70%),
    radial-gradient(26% 26% at 62% 82%, rgba(240, 179, 90, 0.24), transparent 70%);
  filter: blur(24px);
  animation: aurora 22s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(16, 32, 26, 0.09) 1px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 25%, transparent 75%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } }

.hero-copy > * { animation: rise .9s var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .18s; }
.hero-copy > :nth-child(4) { animation-delay: .28s; }
.hero-copy > :nth-child(5) { animation-delay: .38s; }
.hero-copy > :nth-child(6) { animation-delay: .48s; }

.pill {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 0.88rem; font-weight: 600; color: var(--ink);
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #1fb57a; animation: ping 2s ease-out infinite; }

.hl {
  color: var(--green);
  background-image: linear-gradient(rgba(116, 228, 182, 0.6), rgba(116, 228, 182, 0.6));
  background-repeat: no-repeat; background-position: 0 88%; background-size: 100% 0.3em;
  animation: marker .9s var(--ease-out) .7s both;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 30px; }

.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 26px 0 0; color: var(--muted); font-size: 0.93rem; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f6b47' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* The stage around the phone */
.stage { position: relative; display: grid; place-items: center; padding: 28px 0; --px: 0; --py: 0; }
.stage::before {
  content: ""; position: absolute; inset: 4% 2%; border-radius: 48px; z-index: 0;
  background:
    radial-gradient(60% 50% at 70% 20%, rgba(116, 228, 182, 0.45), transparent 70%),
    radial-gradient(60% 60% at 20% 90%, rgba(15, 107, 71, 0.16), transparent 70%),
    rgba(237, 241, 233, 0.75);
  border: 1px solid var(--line);
}
.glow {
  position: absolute; z-index: 0; width: 72%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--mint), var(--honey), var(--green), var(--mint));
  filter: blur(64px); opacity: 0.4;
  animation: spin 20s linear infinite;
}

.o-coin { --w: 112px; --r0: -10deg; --r1: 6deg; --t: 7s; --depth: -16; top: 6%; left: -7%; }
.o-envelope { --w: 132px; --r0: 8deg; --r1: -4deg; --t: 9s; --delay: -3s; --depth: 22; top: 50%; right: -5%; }
.o-parcel { --w: 150px; --r0: -4deg; --r1: 3deg; --t: 8s; --delay: -5s; --depth: 32; bottom: 0; left: -7%; z-index: 4; }
.stage .obj { transform: translate3d(calc(var(--px) * var(--depth, 12) * 1px), calc(var(--py) * var(--depth, 12) * 1px), 0); transition: transform .35s var(--ease-out); }
@media (max-width: 560px) {
  .o-coin { --w: 74px; left: auto; right: 0; top: 0; z-index: 4; }
  .o-parcel { --w: 92px; left: -4%; bottom: 2%; }
  .o-envelope { display: none; }
}

/* ---------- Phone + chat ---------- */
.phone {
  position: relative; z-index: 2;
  width: min(340px, 84vw); border-radius: 46px; padding: 10px;
  background: #0e1713; box-shadow: var(--shadow-lg), 0 40px 80px rgba(15, 107, 71, 0.18), inset 0 0 0 2px #26332d;
}
.phone::after {
  content: ""; position: absolute; inset: 10px; border-radius: 37px; pointer-events: none; z-index: 3;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 32%, transparent 70%, rgba(255, 255, 255, 0.06));
}
@media (min-width: 961px) {
  .phone {
    transform: perspective(1400px) rotateY(calc(-9deg + var(--px) * 7deg)) rotateX(calc(3deg - var(--py) * 5deg));
    transition: transform .35s var(--ease-out);
  }
}
.screen { position: relative; border-radius: 37px; overflow: hidden; background: var(--chat-wall); display: flex; flex-direction: column; }
.statusbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 26px 4px; font-size: 0.78rem; font-weight: 650; background: #f4f6f2; }
.statusbar .island { width: 84px; height: 22px; border-radius: 999px; background: #0e1713; }
.statusbar .batt { width: 22px; height: 11px; border-radius: 3px; border: 1.5px solid var(--ink); position: relative; }
.statusbar .batt::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: var(--ink); border-radius: 1px; }

.chat-head {
  display: flex; align-items: center; gap: 10px; padding: 8px 16px 10px;
  background: #f4f6f2; border-bottom: 1px solid rgba(16, 32, 26, 0.08);
}
.chat-head .back { width: 10px; height: 10px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); margin-right: 4px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, #f0b35a, #d9802f); color: #fff; font-weight: 800; font-size: 0.8rem; letter-spacing: -0.02em;
}
.chat-head b { display: block; font-size: 0.92rem; line-height: 1.2; }
.chat-head small { color: var(--muted); font-size: 0.74rem; }

.thread {
  display: flex; flex-direction: column; gap: 7px; padding: 14px 10px 12px; min-height: 520px; overflow: hidden;
  font-size: 0.8rem; line-height: 1.42;
  background-color: var(--chat-wall);
  background-image: radial-gradient(rgba(15, 107, 71, 0.07) 1.2px, transparent 1.3px);
  background-size: 18px 18px;
  transition: opacity .45s ease;
}
.thread.fade { opacity: 0; }
.msg { max-width: 86%; padding: 8px 11px 7px; border-radius: 16px; position: relative; box-shadow: 0 1px 1px rgba(16, 32, 26, 0.08); }
.msg.in { background: var(--bubble-in); align-self: flex-start; border-bottom-left-radius: 5px; }
.msg.out { background: var(--bubble-out); align-self: flex-end; border-bottom-right-radius: 5px; }
.msg .t { display: block; text-align: right; font-size: 0.64rem; color: #5f6d66; margin-top: 2px; }
.msg.out .t { color: #3b7535; }
.msg b { font-weight: 700; }
.msg .lines { display: grid; grid-template-columns: 1fr auto; gap: 1px 12px; margin: 5px 0 4px; }
.msg .total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; font-weight: 700; }
.msg code { font-size: 0.74rem; background: rgba(15, 107, 71, 0.08); padding: 1px 5px; border-radius: 5px; color: var(--green); }
.msg .proof { display: block; margin-top: 4px; font-family: var(--mono); font-size: 0.66rem; color: var(--green); }
.kb { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; align-self: flex-start; width: 86%; margin-top: -3px; }
.kb button {
  display: grid; place-items: center; padding: 7px 4px; border-radius: 10px; border: 0; margin: 0;
  background: rgba(255, 255, 255, 0.55); color: var(--green); font: inherit; font-weight: 650; font-size: 0.74rem;
  pointer-events: none;
}
.kb button.picked { background: rgba(15, 107, 71, 0.16); }
.js .kb button { pointer-events: auto; cursor: pointer; transition: background-color .2s ease, transform .2s var(--ease-out); }
.js .kb button:hover { background: rgba(255, 255, 255, 0.95); }
.js .kb button:active { transform: scale(0.97); }
.js .stage:not(.touched) .kb button { animation: tap-hint 2.6s ease-in-out 6s infinite; }
.js .stage:not(.touched) .kb button + button { animation-delay: 7.3s; }
@keyframes tap-hint { 0%, 60%, 100% { box-shadow: 0 0 0 0 rgba(15, 107, 71, 0); } 30% { box-shadow: 0 0 0 4px rgba(15, 107, 71, 0.28); } }
.composer-text.hint { color: var(--green); font-weight: 600; }
.thread.js-chat { height: var(--thread-h, auto); }
.composer { display: flex; align-items: center; gap: 8px; padding: 8px 12px 16px; background: #f4f6f2; border-top: 1px solid rgba(16, 32, 26, 0.08); }
.composer span { flex: 1; border-radius: 999px; background: #fff; border: 1px solid var(--line); padding: 7px 12px; color: #66736c; font-size: 0.78rem; }
.composer i { width: 30px; height: 30px; border-radius: 50%; background: var(--green); flex: none; }

/* First run: messages arrive one after another (CSS). site.js then replays it in a loop. */
.thread > * { animation: msg-in 0.45s var(--ease-out) both; }
.thread > :nth-child(1) { animation-delay: 0.5s; }
.thread > :nth-child(2) { animation-delay: 0.9s; }
.thread > :nth-child(3) { animation-delay: 1.7s; }
.thread > :nth-child(4) { animation-delay: 2.6s; }
.thread > :nth-child(5) { animation-delay: 3.8s; }
.thread > :nth-child(6) { animation-delay: 5.2s; }
.thread.js-chat > * { animation: none; }
.thread.js-chat > :not(.show):not(.typing) { display: none; }
.thread.js-chat > .show { animation: msg-in 0.45s var(--ease-out) both; }
.typing {
  align-self: flex-start; display: inline-flex; gap: 4px; padding: 11px 13px;
  background: var(--bubble-in); border-radius: 16px 16px 16px 5px; box-shadow: 0 1px 1px rgba(16, 32, 26, 0.08);
}
.thread.js-chat > .typing { animation: msg-in .3s var(--ease-out) both; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8d9a93; animation: blink 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }

/* Floating cards around the phone: the outer box pops in, the card inside bobs. */
.float { position: absolute; z-index: 3; animation: pop .55s var(--ease-pop) var(--at, 0s) both; }
.float-card {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg); font-size: 0.85rem; line-height: 1.3; max-width: 230px;
  animation: bob 7s ease-in-out infinite;
}
.float b { display: block; font-size: 0.88rem; }
.float small { color: var(--muted); }
.float .badge { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--green-50); color: var(--green); }
.float .badge svg { width: 18px; height: 18px; }
/* Placed over the empty parts of the chat: the left of the customer's reply, the composer, the status bar. */
.float.f1 { --at: 4s; top: 41%; left: -9%; }
.float.f2 { --at: 5.4s; bottom: 3%; right: -7%; }
.float.f2 .float-card { animation-delay: -2.5s; }
.float.f3 { --at: 6.2s; top: 3%; right: -9%; }
.float.f3 .float-card { animation-delay: -4.5s; }
.float.f3 .badge { background: var(--amber-50); color: var(--amber); }
.stage.js-cards .float { animation: none; opacity: 0; transform: translateY(10px) scale(0.85); transition: opacity .35s ease, transform .5s var(--ease-pop); }
.stage.js-cards .float.on { opacity: 1; transform: none; }
@media (max-width: 560px) {
  .float-card { font-size: 0.78rem; padding: 9px 11px; max-width: 190px; }
  .float.f1 { top: 0; left: 0; }
  .float.f2 { bottom: 2%; right: 0; }
  .float.f3 { display: none; }
}

/* ---------- Marquees ---------- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee var(--speed, 34s) linear infinite; }
.marquee-track > ul { display: flex; gap: var(--gap, 12px); list-style: none; margin: 0; padding: 0 var(--gap, 12px) 0 0; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee.paused .marquee-track { animation-play-state: paused; }

/* Works with */
.works { padding: 0 0 clamp(24px, 4vw, 40px); }
.works-row { display: flex; align-items: center; gap: 16px; }
.works-label { margin: 0; flex: none; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.works .marquee { flex: 1; min-width: 0; padding: 4px 0 12px; }
.works li {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: 0.92rem; font-weight: 650; color: var(--ink); box-shadow: var(--shadow);
}
.works li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.avail { margin: 4px auto 0; text-align: center; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 640px) { .works-row { flex-direction: column; align-items: stretch; } .works-label { text-align: center; } }

/* ---------- Every kind of shop ---------- */
.shops { padding-top: clamp(40px, 6vw, 72px); overflow: hidden; }
.shops .wrap { position: relative; }
.shops .o-bag { --w: 120px; --t: 7s; top: -24px; right: 4%; }
@media (max-width: 860px) { .shops .o-bag { display: none; } }
.gallery { --speed: 56s; --gap: 18px; padding: 8px 0 28px; }
.shop-card {
  position: relative; width: clamp(210px, 23vw, 280px); margin: 0; border-radius: 22px; overflow: hidden;
  aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); background: var(--bg-sage);
  transition: transform .45s var(--ease-out);
}
.shop-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.shop-card:hover { transform: translateY(-6px) rotate(-1deg); }
.shop-card:hover img { transform: scale(1.07); }
.shop-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 16px 16px; color: #fff;
  background: linear-gradient(transparent, rgba(8, 19, 15, 0.74));
}
.shop-card b { display: block; font-size: 1.05rem; letter-spacing: -0.01em; }
.shop-card small { color: rgba(255, 255, 255, 0.85); font-size: 0.82rem; }

/* ---------- How it works ---------- */
.how { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 28px); list-style: none; margin: 0; padding: 0; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li {
  position: relative; padding: 26px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line);
  counter-increment: step; transition: transform .35s var(--ease-out), box-shadow .35s ease;
}
.steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 50%; background: var(--green); color: #fff; font-weight: 750; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 6px var(--green-50);
}
.steps p { margin: 0; color: var(--muted); }

/* ---------- Payments ---------- */
#payments { position: relative; }
#payments .o-shield { --w: 130px; --t: 8s; top: 48px; right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + 40px)); }
@media (max-width: 860px) { #payments .o-shield { display: none; } }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 28px); }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
.pay-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green-100); }
.pay-card h3 { font-size: 1.45rem; letter-spacing: -0.02em; }
.flow { margin: 14px 0 22px; padding: 0; list-style: none; counter-reset: f; display: grid; gap: 10px; }
.flow li { counter-increment: f; position: relative; padding-left: 36px; min-height: 26px; color: var(--muted); }
.flow li::before {
  content: counter(f); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-50); color: var(--green); font-weight: 700; font-size: 0.8rem;
}
.flow strong { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0 6px; }
.chips li { padding: 5px 12px; border-radius: 999px; background: var(--green-50); color: var(--green); font-size: 0.85rem; font-weight: 650; }
.tag-sm {
  display: inline-block; vertical-align: middle; margin-left: 6px; padding: 3px 9px; border-radius: 999px;
  background: var(--bg-sage); border: 1px solid var(--line); color: var(--muted);
  font-size: 0.72rem; font-weight: 650; letter-spacing: 0.02em;
}

.receipt {
  position: relative;
  font-family: var(--mono); font-size: 0.84rem; line-height: 1.75;
  background: #fbfcf9; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  padding: 16px 18px; margin-bottom: 18px;
}
.receipt .r-head { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 0.74rem; letter-spacing: 0.08em; margin-bottom: 6px; }
.receipt ul { list-style: none; margin: 0; padding: 0; }
.receipt li { display: flex; gap: 10px; }
.receipt li::before { content: "✓"; display: inline-block; color: var(--green); font-weight: 700; }
.receipt .r-result { margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.stamp {
  display: inline-block; padding: 2px 12px; border: 2px solid var(--green); border-radius: 8px;
  color: var(--green); font-weight: 800; letter-spacing: 0.16em; transform: rotate(-4deg);
}
/* The checks tick off one by one, then the stamp lands. */
.js .receipt li { opacity: 0.3; transition: opacity .3s ease; transition-delay: calc(var(--i, 0) * 280ms + 200ms); }
.js .receipt li::before { transform: scale(0); transition: transform .4s var(--ease-pop); transition-delay: calc(var(--i, 0) * 280ms + 200ms); }
.js .receipt.is-visible li { opacity: 1; }
.js .receipt.is-visible li::before { transform: scale(1); }
.js .receipt .stamp { opacity: 0; transform: scale(2.2) rotate(-14deg); transition: opacity .2s ease 2s, transform .45s var(--ease-pop) 2s; }
.js .receipt.is-visible .stamp { opacity: 1; transform: rotate(-4deg); }

/* ---------- Shipping ---------- */
.ship { background: var(--bg-sage); }
.ship .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 960px) { .ship .wrap { grid-template-columns: 1fr; } }
.media { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #c9d3c3; aspect-ratio: 3 / 2; }
.media video, .media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media .still { display: none; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.94); box-shadow: var(--shadow);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 0.85rem; line-height: 1.3; max-width: calc(100% - 32px);
}
.chip b { display: block; }
.chip small { color: var(--muted); }
.chip.label-chip { left: 16px; bottom: 16px; }
.chip.sent-chip { right: 16px; top: 16px; }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: #1fb57a; flex: none; animation: ping 2s ease-out infinite; }
.js .media .chip { opacity: 0; }
.js .media.is-visible .label-chip { animation: pop .6s var(--ease-pop) .5s both; }
.js .media.is-visible .sent-chip { animation: pop .6s var(--ease-pop) 1.1s both; }
@media (max-width: 480px) { .chip.sent-chip { display: none; } }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.ticks li::before {
  content: ""; width: 28px; height: 28px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.ticks strong { display: block; }
.ticks span { color: var(--muted); font-size: 0.97rem; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 20px); }
.bento .tile { display: flex; flex-direction: column; gap: 6px; }
.bento .tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green-100); }
.bento .tile p { margin: 0; color: var(--muted); }
.bento .wide { grid-column: span 2; }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .bento .wide { grid-column: auto; } }
.tile .demo { margin-top: auto; padding-top: 18px; }

.brand-demo { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: var(--chat-wall); }
.brand-demo .row { display: flex; align-items: center; gap: 10px; background: #f4f6f2; border-radius: 12px; padding: 8px 10px; }
.brand-demo .row b { font-size: 0.9rem; }
.brand-demo .avatar { animation: hue 9s ease-in-out infinite; }
.brand-demo .welcome { background: #fff; border-radius: 14px 14px 14px 5px; padding: 9px 12px; font-size: 0.84rem; line-height: 1.4; }

.alert-mock { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-size: 0.9rem; line-height: 1.45; }
.alert-mock .who { display: flex; align-items: center; gap: 8px; font-size: 0.76rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.alert-mock .who::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1fb57a; animation: ping 2s ease-out infinite; }
.alert-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.alert-buttons span {
  position: relative; overflow: hidden;
  padding: 6px 12px; border-radius: 10px; background: var(--green-50); color: var(--green); font-weight: 650; font-size: 0.8rem;
}
.alert-buttons span::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.8) 50%, transparent 65%);
  transform: translateX(-130%); animation: shine 4s ease-in-out infinite;
}
.alert-buttons span:nth-child(2)::after { animation-delay: .25s; }
.alert-buttons span:nth-child(3)::after { animation-delay: .5s; }

.bar { height: 8px; border-radius: 999px; background: var(--green-100); overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; width: 71%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--mint)); }
.js .bar i { width: 0; transition: width 1.4s var(--ease-out) .4s; }
.js .is-visible .bar i { width: 71%; }

.sheet { display: grid; gap: 6px; font-size: 0.82rem; }
.sheet div {
  display: grid; grid-template-columns: 1.4fr 1fr auto 18px; gap: 8px; align-items: center;
  padding: 7px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line);
}
.sheet div span:last-child { color: var(--green); font-weight: 800; text-align: right; }
.sheet .head { background: none; border: 0; padding: 0 10px; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.js .sheet > div:not(.head) { opacity: 0; transform: translateX(-10px); transition: opacity .4s ease, transform .5s var(--ease-out); transition-delay: calc(var(--i, 0) * 260ms + 200ms); }
.js .is-visible .sheet > div:not(.head) { opacity: 1; transform: none; }

.roles { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 0.92rem; }
.roles dt { font-weight: 700; }
.roles dd { margin: 0; color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li { padding: 7px 13px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 0.88rem; font-weight: 600; transition: background-color .2s ease, border-color .2s ease; }
.tags li:hover { background: var(--green-50); border-color: var(--green-100); }
.js .tags[data-stagger] li {
  opacity: 0; transform: scale(0.85);
  transition: opacity .35s ease, transform .45s var(--ease-pop), background-color .2s ease, border-color .2s ease;
  transition-delay: calc(var(--i, 0) * 60ms + 200ms), calc(var(--i, 0) * 60ms + 200ms), 0s, 0s;
}
.js .is-visible .tags[data-stagger] li { opacity: 1; transform: none; }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.bars span { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(var(--mint), var(--green)); }
.bars span:nth-child(1) { --h: 34%; }
.bars span:nth-child(2) { --h: 52%; }
.bars span:nth-child(3) { --h: 44%; }
.bars span:nth-child(4) { --h: 68%; }
.bars span:nth-child(5) { --h: 60%; }
.bars span:nth-child(6) { --h: 84%; }
.bars span:nth-child(7) { --h: 100%; }
.js .bars span { transform: scaleY(0); transform-origin: bottom; transition: transform .8s var(--ease-pop); transition-delay: calc(var(--i, 0) * 90ms + 300ms); }
.js .is-visible .bars span { transform: none; }

/* ---------- Security (the dark band) ---------- */
.security { background: var(--deep); color: var(--deep-text); position: relative; overflow: hidden; isolation: isolate; }
.security::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(50% 40% at 85% 0%, rgba(116, 228, 182, 0.14), transparent 70%),
              radial-gradient(40% 40% at 0% 100%, rgba(116, 228, 182, 0.08), transparent 70%);
}
.security::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image: linear-gradient(rgba(116, 228, 182, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(116, 228, 182, 0.07) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 20%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 60% at 70% 20%, #000 10%, transparent 70%);
  animation: grid-pan 14s linear infinite;
}
.security .eyebrow { color: var(--mint); }
.security .lede, .security .muted { color: var(--deep-muted); }
.security a { color: var(--mint); }
.sec-head { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 5vw, 56px); align-items: center; margin-bottom: clamp(36px, 5vw, 56px); }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }
.seal { position: relative; margin: 0; justify-self: center; width: min(420px, 100%); aspect-ratio: 1; }
.seal::before {
  content: ""; position: absolute; inset: 18%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(116, 228, 182, 0.35), transparent 70%); filter: blur(30px);
  animation: breathe 6s ease-in-out infinite;
}
.seal video, .seal img {
  position: relative; z-index: 1;
  display: block; width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 70%, transparent 100%);
}
.seal .still { display: none; }
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 960px) { .sec-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sec-grid { grid-template-columns: 1fr; } }
.sec-item {
  position: relative; padding: 22px; border-radius: 18px; background: rgba(15, 33, 25, 0.82); border: 1px solid var(--deep-line);
  transition: border-color .3s ease, box-shadow .3s ease, transform .35s var(--ease-out);
}
.sec-item:hover { border-color: rgba(116, 228, 182, 0.45); box-shadow: 0 0 0 1px rgba(116, 228, 182, 0.15), 0 16px 50px rgba(116, 228, 182, 0.08); transform: translateY(-3px); }
.sec-item h3 { color: #fff; font-size: 1.05rem; }
.sec-item p { margin: 0; color: var(--deep-muted); font-size: 0.95rem; }
.sec-item .icon { background: rgba(116, 228, 182, 0.1); color: var(--mint); width: 40px; height: 40px; margin-bottom: 14px; transition: box-shadow .3s ease; }
.sec-item:hover .icon { box-shadow: 0 0 22px rgba(116, 228, 182, 0.45); }
.sec-item[data-spot]::before { background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(116, 228, 182, 0.12), transparent 60%); }
.limits { margin-top: 18px; padding: 24px 26px; border-radius: 18px; border: 1px dashed #3a5a4c; background: rgba(8, 19, 15, 0.6); }
.limits h3 { color: #fff; }
.limits ul { margin: 10px 0 0; padding-left: 1.2em; color: var(--deep-muted); display: grid; gap: 8px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .25s ease, box-shadow .25s ease; }
.faq details:hover { border-color: var(--green-100); }
.faq details[open] { border-color: var(--green-100); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg);
  transition: transform .25s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }
.faq details[open] > div { animation: rise .4s var(--ease-out) both; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Final CTA ---------- */
.final { padding-top: 0; }
.panel {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
  border-radius: 28px; background: var(--green); color: #fff; box-shadow: var(--shadow-lg), 0 30px 80px rgba(15, 107, 71, 0.25);
}
.panel::before {
  content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; left: -20%; top: -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(116, 228, 182, 0.45), transparent 65%);
  animation: aurora 16s ease-in-out infinite alternate;
}
@media (max-width: 860px) { .panel { grid-template-columns: 1fr; } }
.panel .copy { padding: clamp(32px, 5vw, 60px); }
.panel .eyebrow { color: #b8f5da; }
.panel .lede { color: #d6ebe0; }
.panel .btn-primary { background: #fff; color: var(--green); box-shadow: none; }
.panel .btn-primary::after { background: linear-gradient(105deg, transparent 35%, rgba(116, 228, 182, 0.45) 50%, transparent 65%); }
.panel .btn-primary:hover { background: var(--green-50); }
.panel .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.panel .btn-ghost:hover { border-color: #fff; color: #fff; }
.panel .art { position: relative; overflow: hidden; min-height: 280px; }
.panel .art > img { display: block; width: 100%; height: 100%; object-fit: cover; animation: kenburns 22s ease-in-out infinite alternate; }
.panel .o-bubble { --w: 118px; --t: 7s; left: 6%; top: 10%; z-index: 2; }
.panel .o-parcel2 { --w: 96px; --t: 9s; --delay: -3s; right: 8%; bottom: 8%; z-index: 2; }

/* ---------- QR cards (computers only) ---------- */
.qr-card { display: none; align-items: center; gap: 14px; margin-top: 26px; max-width: 390px; padding: 10px 16px 10px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.qr-card img { width: 84px; height: 84px; flex: none; padding: 6px; border-radius: 10px; background: #fff; }
.qr-card p { margin: 0; font-size: 0.9rem; line-height: 1.4; color: var(--muted); }
.qr-card b { color: var(--ink); }
.qr-card.on-dark { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); box-shadow: none; }
.qr-card.on-dark p { color: #d6ebe0; }
.qr-card.on-dark b { color: #fff; }
@media (min-width: 961px) and (hover: hover) and (pointer: fine) { .qr-card { display: flex; } }

/* ---------- Before / after ---------- */
.compare { padding-top: clamp(40px, 6vw, 72px); }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2.4vw, 24px); }
@media (max-width: 760px) { .compare-grid { grid-template-columns: 1fr; } }
.cmp { position: relative; border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); }
.cmp.before { background: #f0eee7; }
.cmp.after { background: var(--surface); border-color: var(--green-100); box-shadow: var(--shadow-lg); }
.cmp-badge { display: inline-block; margin: 0 0 18px; padding: 6px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 750; letter-spacing: 0.03em; }
.before .cmp-badge { background: var(--red-50); color: var(--red); }
.after .cmp-badge { background: var(--green-50); color: var(--green); }
.cmp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cmp li { position: relative; padding-left: 36px; min-height: 24px; }
.cmp li::before { content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background-position: center; background-size: 12px; background-repeat: no-repeat; }
.before li { color: var(--muted); }
.before li::before {
  background-color: var(--red-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4483c' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E");
}
.before li span {
  background-image: linear-gradient(rgba(180, 72, 60, 0.7), rgba(180, 72, 60, 0.7));
  background-repeat: no-repeat; background-position: 0 58%; background-size: 100% 1.5px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.after li { color: var(--ink); font-weight: 560; }
.after li::before {
  background-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
}
.js .before li span { background-size: 0% 1.5px; transition: background-size .55s var(--ease-out); transition-delay: calc(var(--i, 0) * 180ms + 300ms); }
.js .before.is-visible li span { background-size: 100% 1.5px; }
.js .after li { opacity: 0; transform: translateX(-10px); transition: opacity .4s ease, transform .5s var(--ease-out); transition-delay: calc(var(--i, 0) * 180ms + 600ms); }
.js .after.is-visible li { opacity: 1; transform: none; }

/* Time-saved slider */
.calc {
  margin-top: clamp(18px, 3vw, 26px); display: grid; grid-template-columns: 1.25fr 1fr; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
}
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }
.calc-inputs { padding: clamp(22px, 3vw, 32px); display: grid; gap: 20px; align-content: center; }
.calc-field { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 8px 12px; }
.calc-field label { font-weight: 650; }
.calc-field output { font-weight: 800; font-size: 1.3rem; line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; }
.calc-field input { grid-column: 1 / -1; width: 100%; margin: 0; accent-color: var(--green); display: none; }
.js .calc-field input { display: block; }
.calc-note { margin: 0; font-size: 0.9rem; color: var(--muted); }
.calc-result {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: clamp(26px, 4vw, 40px); background: var(--deep); color: #fff;
}
.calc-result::before {
  content: ""; position: absolute; z-index: -1; width: 80%; aspect-ratio: 1; right: -30%; top: -40%; border-radius: 50%;
  background: radial-gradient(circle, rgba(116, 228, 182, 0.35), transparent 65%);
}
.calc-label { color: var(--mint); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.calc-big { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc-big output { color: var(--mint); }
.calc-sub { color: var(--deep-muted); }

/* ---------- About ---------- */
.about { background: var(--bg-sage); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 20px); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green-100); }
.about-card p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 0.93rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer .brand { font-size: 1.1rem; }
.site-footer .brand svg { width: 24px; height: 24px; }
.site-footer p { margin: 0; }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(40px, 7vw, 80px) 0; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
.legal h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-top: 2.2em; letter-spacing: -0.02em; }
.legal h3 { margin-top: 1.6em; }
.legal ul { padding-left: 1.25em; }
.legal li + li { margin-top: 6px; }
.legal .meta { color: var(--muted); font-size: 0.95rem; }
.draft-banner {
  border: 2px solid var(--amber); color: var(--ink); background: var(--amber-50);
  border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 0 28px; font-weight: 600;
}
.draft-banner strong { color: var(--amber); text-transform: uppercase; letter-spacing: 0.06em; }
.placeholder { font-family: var(--mono); font-size: 0.9em; background: var(--green-50); padding: 1px 6px; border-radius: 5px; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.legal thead th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* ---------- Reduced motion: everything still, nothing hidden ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal]:not(.is-visible), .js .media .chip, .js .receipt li, .js .receipt .stamp,
  .js .sheet > div, .js .tags[data-stagger] li, .js .after li { opacity: 1 !important; }
  .js .before li span { background-size: 100% 1.5px !important; }
  .js .after li { transform: none !important; }
  .js .receipt li::before { transform: none !important; }
  .js .receipt .stamp { transform: rotate(-4deg) !important; }
  .js .bar i { width: 71% !important; }
  .js .bars span, .js .sheet > div { transform: none !important; }
  .phone, .stage .obj { transform: none !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; }
  .marquee-track > ul { flex-wrap: wrap; justify-content: center; padding: 0; }
  .marquee .dupe { display: none; }
  .gallery { overflow-x: auto; scroll-snap-type: x mandatory; }
  .gallery .shop-card { scroll-snap-align: start; }
  .gallery .marquee-track > ul { flex-wrap: nowrap; padding: 0 var(--gutter); }
  .media video, .seal video { display: none; }
  .media .still, .seal .still { display: block; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .skip-link, .final, .stage, .media, .scroll-progress, .gallery, .seal { display: none; }
  body { background: #fff; color: #000; }
  .security { background: #fff; color: #000; }
  .js [data-reveal] { opacity: 1 !important; animation: none !important; }
  section { padding: 24px 0; }
}
