/* mobiCollect website. Tokens match the app (portal/src/styles.css, DESIGN.md): Plus Jakarta Sans,
   near-black ink, the green #2bc24d, and the logo blue for "Collect". Light by default, dark from the system;
   the header toggle overrides either way (html[data-theme], remembered in localStorage). */

:root {
  --bg: #f4f5f7; --card: #ffffff; --soft: #eef1f4; --line: #e3e7ec; --line2: #d5dae0;
  --fg: #0b1118; --mute: #5b6573;
  --green: #2bc24d; --green-ink: #11662b; --green-bg: #ddf5e4;
  --blue: #1a64d6; --amber-bg: #fdebd3; --amber: #7a3e00;
  --btn: #0b1118; --btnfg: #ffffff;
  --hero-glow: rgba(43, 194, 77, 0.16);
  --float-edge: transparent;
  --shadow: 0 1px 2px rgba(11, 17, 24, 0.04), 0 12px 32px -12px rgba(11, 17, 24, 0.18);
  --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f14; --card: #121920; --soft: #1a232c; --line: #1f2a34; --line2: #2b3844;
    --fg: #f2f5f7; --mute: #9aa6b2;
    --green-ink: #7be59a; --green-bg: #12351f;
    --blue: #4c9dff; --amber-bg: #3a2a10; --amber: #f5c478;
    --btn: #2bc24d; --btnfg: #04200e;
    --hero-glow: rgba(43, 194, 77, 0.12);
    --float-edge: var(--line);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0f14; --card: #121920; --soft: #1a232c; --line: #1f2a34; --line2: #2b3844;
  --fg: #f2f5f7; --mute: #9aa6b2;
  --green-ink: #7be59a; --green-bg: #12351f;
  --blue: #4c9dff; --amber-bg: #3a2a10; --amber: #f5c478;
  --btn: #2bc24d; --btnfg: #04200e;
  --hero-glow: rgba(43, 194, 77, 0.12);
  --float-edge: var(--line);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.6 'Plus Jakarta Sans', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--green-bg); color: var(--green-ink); }
html { accent-color: var(--green); caret-color: var(--green-ink); }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--btn); color: var(--btnfg); }
.skip:focus { left: 8px; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.brand b { font-weight: 700; color: var(--blue); }
.mark-d { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mark-l { display: none; } :root:not([data-theme="light"]) .mark-d { display: block; } }
:root[data-theme="dark"] .mark-l { display: none; }
:root[data-theme="dark"] .mark-d { display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 24px;
  border-radius: 14px; border: 1.5px solid transparent; background: var(--btn); color: var(--btnfg);
  font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1), background-color 150ms, border-color 150ms;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn-sm { height: 44px; padding: 0 18px; font-size: 15px; border-radius: 12px; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line2); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-inv { background: #ffffff; color: #0b1118; }
.btn-ghost-inv { background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost-inv:hover { border-color: #ffffff; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color 200ms ease; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--mute); font-size: 15px; font-weight: 600; text-decoration: none; }
.nav a:hover { color: var(--fg); background: var(--soft); }
.menu { display: none; }
/* Light/dark toggle: the sun shows in dark (switch to light), the moon in light. */
.theme { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; margin-left: -12px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--mute); cursor: pointer; transition: color 150ms, background-color 150ms; }
.theme:hover { color: var(--fg); background: var(--soft); }
.theme svg { width: 20px; height: 20px; }
.theme .sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .sun { display: block; } :root:not([data-theme="light"]) .theme .moon { display: none; } }
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="dark"] .theme .moon { display: none; }
.cta-short { display: none; }
.nav .nav-join { display: none; }

@media (max-width: 860px) {
  .theme { margin-left: auto; }
  .menu {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px;
    padding: 0 11px; border: 0; border-radius: 12px; background: transparent; color: var(--fg); cursor: pointer;
  }
  .menu span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform 160ms; }
  .nav-open .menu span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-open .menu span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 16px; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav-open .nav { display: flex; }
  .nav a { padding: 14px 8px; font-size: 17px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
}
@media (max-width: 340px) { .nav .nav-join { display: block; color: var(--green-ink); font-weight: 700; } }
/* Phones: a compact header button (the menu and the hero carry the full one); on the smallest, it moves into the menu. */
@media (max-width: 640px) {
  .top-in { gap: 12px; height: 64px; }
  .nav { top: 64px; }
  .brand { font-size: 18px; }
  .brand img { width: 30px; height: 30px; }
  .top-cta { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .theme { margin-right: -8px; }
  .menu { margin-left: -4px; }
}
@media (max-width: 340px) { .top-cta { display: none; } }

/* Hero */
.hero { position: relative; padding: 72px 0 80px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto 35%; height: 720px; pointer-events: none;
  background: radial-gradient(closest-side, var(--hero-glow), transparent 70%);
}
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.lede { margin-top: 20px; max-width: 34em; color: var(--mute); font-size: clamp(17px, 1.6vw, 19px); }
.hero-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--mute); font-size: 14px; font-weight: 500; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ''; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--green-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311662b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center/11px no-repeat; }

/* Hero illustration: the conversation, then the call and the hand-over tucked under it (nothing covers a message) */
.hero-art { position: relative; display: flex; flex-direction: column; }
.card { background: var(--card); border: 1px solid var(--float-edge); border-radius: var(--r-md); box-shadow: var(--shadow); }
.phone {
  position: relative; align-self: flex-end; margin-right: 8%; width: min(340px, 80%); padding: 0 0 40px; border-radius: 34px;
  background: var(--card); border: 1px solid var(--float-edge); box-shadow: var(--shadow); overflow: hidden;
}
.phone-hd { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.phone-hd b, .call-hd b, .human b { display: block; font-size: 14px; }
.phone-hd small, .call-hd small, .human small { display: block; color: var(--mute); font-size: 12px; font-weight: 500; }
.ph-av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--soft); color: var(--mute); font-size: 12px; font-weight: 800; }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 16px 14px 4px; }
.msg { position: relative; max-width: 86%; padding: 9px 12px 10px; border-radius: 16px; font-size: 13.5px; line-height: 1.45; }
.msg.in { align-self: flex-start; background: var(--soft); border-bottom-left-radius: 5px; }
.msg.out { align-self: flex-end; background: var(--green-bg); color: var(--green-ink); border-bottom-right-radius: 5px; }
.msg .ref { display: block; margin-top: 6px; font-size: 11.5px; font-weight: 700; }
.msg .ticks { position: absolute; right: 10px; bottom: 7px; color: var(--blue); }
.msg u { text-underline-offset: 2px; }
.msg .dots { display: none; }

.call { position: relative; z-index: 1; align-self: flex-start; margin-top: -30px; width: min(330px, 74%); padding: 16px; }
.call-hd { display: flex; align-items: center; gap: 10px; }
.call-hd > span:nth-child(2) { flex: 1; min-width: 0; }
.call-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--btn); color: var(--btnfg); }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pill.ok { background: var(--green-bg); color: var(--green-ink); }
.promise { margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: var(--green-bg); color: var(--green-ink); font-size: 13.5px; }
.wave { display: flex; align-items: center; gap: 3px; height: 28px; margin-top: 12px; }
.wave i { flex: 1; border-radius: 3px; background: var(--line2); height: 30%; }
.wave i:nth-child(3n) { height: 70%; } .wave i:nth-child(4n) { height: 100%; } .wave i:nth-child(5n+1) { height: 50%; }
.wave i:nth-child(-n+7) { background: var(--green); }

.human { position: relative; z-index: 2; align-self: flex-end; margin-top: -14px; display: flex; align-items: center; gap: 12px; width: min(320px, 74%); padding: 14px 16px; background: var(--card); border: 1px solid var(--float-edge); border-radius: var(--r-md); box-shadow: var(--shadow); }
.h-ic { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 12px; background: var(--amber-bg); color: var(--amber); }

@media (max-width: 960px) {
  .hero { padding-top: 32px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-art { max-width: 540px; width: 100%; margin: 0 auto; }
  .phone { margin-right: 4%; }
}
@media (max-width: 480px) {
  .hero-art { gap: 14px; }
  .phone, .call, .human { width: 100%; margin: 0; padding-bottom: revert-layer; }
  .phone { padding-bottom: 18px; }
}

/* Built-for band: each claim is shown as the real thing (an amount, the file, a reference, a message, the hours). */
.fit { border-block: 1px solid var(--line); background: var(--card); }
.fit-in { display: grid; gap: 28px; padding-block: 48px; }
.fit h2 { max-width: 30ch; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.fit-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.fit-list li { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 0 20px; border-left: 1px solid var(--line); }
.fit-list li:first-child { padding-left: 0; border-left: 0; }
.fit-list b { margin-top: 14px; font-size: 15px; line-height: 1.35; }
.fit-list li > span:last-child { color: var(--mute); font-size: 14px; line-height: 1.45; }
.spec { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; max-width: 100%; height: 34px; white-space: nowrap; font-size: 14px; font-weight: 700; }
.spec small { font-size: 0.7em; font-weight: 600; color: var(--mute); }
.spec-amt { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.spec-amt small { font-size: 15px; }
.spec-file { padding: 0 12px 0 8px; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg); font-size: 13px; }
.spec-file svg { flex: none; }
.spec-ref { padding: 0 12px; border: 1.5px dashed var(--line2); border-radius: 10px; font-size: 13px; letter-spacing: 0.02em; }
.spec-wa { padding: 0 10px 0 12px; border-radius: 12px 12px 4px 12px; background: var(--green-bg); color: var(--green-ink); font-size: 13px; }
.spec-wa svg { color: var(--blue); }
.spec-time { font-size: 15px; }
.spec-time svg { flex: none; color: var(--green); }
.spec-wa svg { flex: none; }
@media (max-width: 1100px) {
  .fit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
  .fit-list li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .fit-list li:last-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .fit-in { padding-block: 40px; }
  .fit-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .fit-list li, .fit-list li:nth-child(odd) { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); }
  .fit-list li:first-child { padding-top: 0; border-top: 0; }
  .fit-list li:last-child { padding-bottom: 0; }
}

/* Sections */
.sec { padding: 96px 0; }
.sec-alt { background: var(--card); border-block: 1px solid var(--line); }
.sec-hd { max-width: 720px; margin-bottom: 48px; }
.sec h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.03em; }
.sec-hd > p { margin-top: 14px; color: var(--mute); font-size: 18px; }
.sec h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
@media (max-width: 640px) { .sec { padding: 64px 0; } .sec-hd { margin-bottom: 32px; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding: 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.steps .n { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 18px; border-radius: 12px; background: var(--btn); color: var(--btnfg); font-weight: 800; }
.steps p { margin-top: 10px; color: var(--mute); font-size: 15px; }
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 41px; right: -21px; width: 22px; height: 2px; background: var(--line2); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps li::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Features */
.feat-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 40px; margin-bottom: 20px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); }
.feat-lead h3 { font-size: 26px; }
.feat-lead > div > p { margin-top: 12px; color: var(--mute); font-size: 17px; }
.ticks { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; font-weight: 600; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: ''; width: 20px; height: 20px; flex: none; margin-top: 2px; border-radius: 50%; background: var(--green-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311662b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center/13px no-repeat; }
.transcript { margin: 0; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); }
.t { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.t span { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.t.ag { align-self: flex-start; background: var(--soft); border-bottom-left-radius: 4px; }
.t.ag span { color: var(--mute); }
.t.db { align-self: flex-end; background: var(--green-bg); color: var(--green-ink); border-bottom-right-radius: 4px; }
.t.act { align-self: center; max-width: none; padding: 4px 12px; border: 1.5px dashed var(--line2); border-radius: 999px; color: var(--mute); font-size: 12.5px; font-weight: 600; }
@media (max-width: 860px) { .feat-lead { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 28px; } }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; margin-top: 56px; }
.f { padding: 28px 0 36px; border-top: 1px solid var(--line2); }
.f h3::before { content: ''; display: block; width: 28px; height: 3px; margin-bottom: 18px; border-radius: 2px; background: var(--green); }
.f p { margin-top: 10px; color: var(--mute); font-size: 15px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
@media (max-width: 600px) { .grid { grid-template-columns: minmax(0, 1fr); margin-top: 32px; } .f { padding: 22px 0 28px; } }

/* Control */
.control { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.control > div > p { margin-top: 16px; color: var(--mute); font-size: 17px; }
.rules { margin: 0; padding: 8px 24px; list-style: none; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.rules li { display: flex; flex-direction: column; gap: 2px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rules li:last-child { border-bottom: 0; }
.rules b { font-size: 16px; }
.rules span { color: var(--mute); font-size: 14px; }
@media (max-width: 860px) { .control { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan { display: flex; flex-direction: column; padding: 32px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); }
.plan h3 { font-size: 24px; }
.plan-for { margin-top: 4px; color: var(--mute); font-size: 15px; }
.plan dl { margin: 24px 0 0; }
.plan dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.plan dt { color: var(--mute); font-weight: 600; font-size: 15px; }
.plan dd { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.plan dd span { margin-left: 4px; color: var(--mute); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.plan-min { margin: 20px 0 24px; font-size: 14px; font-weight: 600; }
.plan .btn { margin-top: auto; }
.plan-hi { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.plan-hi .plan-for, .plan-hi dt, .plan-hi dd span { color: color-mix(in srgb, var(--bg) 62%, transparent); }
.plan-hi dl div { border-color: color-mix(in srgb, var(--bg) 16%, transparent); }
.plan-hi .btn { background: var(--green); color: #04200e; }
.plan-custom { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; margin-top: 20px; padding: 28px 32px; border-radius: var(--r-lg); border: 1px dashed var(--line2); }
.plan-custom h3 { font-size: 20px; }
.plan-custom p { max-width: 62ch; margin-top: 6px; color: var(--mute); font-size: 15px; }
.plan-custom .btn { flex: none; }
.plan-note { max-width: 860px; margin-top: 24px; color: var(--mute); font-size: 15px; }
@media (max-width: 1000px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; } .plan-custom { max-width: 560px; } }
@media (max-width: 700px) { .plan { padding: 24px; } .plan-custom { flex-direction: column; align-items: stretch; padding: 24px; } }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg) translate(-3px, -3px); transition: transform 160ms; }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq details p { padding: 0 40px 24px 0; color: var(--mute); font-size: 16px; }

/* CTA */
.cta { padding: 0 0 96px; }
.cta-in { position: relative; overflow: hidden; padding: 64px 48px; border-radius: 28px; background: #0b1118; color: #ffffff; }
.cta-in::before { content: ''; position: absolute; right: -120px; top: -160px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(closest-side, rgba(43, 194, 77, 0.35), transparent); pointer-events: none; }
.cta h2 { position: relative; max-width: 16ch; font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -0.03em; }
.cta p { position: relative; max-width: 40em; margin-top: 16px; color: rgba(255, 255, 255, 0.72); font-size: 18px; }
.cta .hero-act { position: relative; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta-in { background: #121920; border: 1px solid #1f2a34; } }
:root[data-theme="dark"] .cta-in { background: #121920; border: 1px solid #1f2a34; }
@media (max-width: 640px) { .cta { padding-bottom: 64px; } .cta-in { padding: 40px 24px; border-radius: 22px; } }

/* Footer */
.foot { padding: 40px 0 32px; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot .brand { font-size: 17px; }
.foot-brand p { margin-top: 10px; color: var(--mute); font-size: 14px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 24px; align-items: flex-start; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mute); font-size: 14px; font-weight: 600; text-decoration: none; }
.foot-nav a:hover { color: var(--fg); }
.foot-small { margin-top: 20px; color: var(--mute); font-size: 13px; }

/* Back to top: appears once the hero is behind you. */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 15; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0; border: 1px solid var(--line2); border-radius: 50%; background: var(--card); color: var(--fg);
  box-shadow: var(--shadow); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms, border-color 150ms;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { border-color: var(--fg); }
.to-top svg { width: 20px; height: 20px; }
.nav-open .to-top { display: none; }
@media (max-width: 640px) { .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .to-top { transform: none; transition: none; } }

/* ---------- Motion ----------
   One authored moment: the hero conversation plays out once (a debtor asks, mobiCollect's reply composes,
   the pay link is read, the call records a promise, and the exception is handed to a person). Everything is
   visible by default; html.motion (set in <head> only when motion is allowed) hides the hero's later steps
   until .play arrives from the IntersectionObserver, so a failed script never hides content. */

.motion .hero-art .phone, .motion .hero-art .m1, .motion .hero-art .m3, .motion .hero-art .call, .motion .hero-art .human,
.motion .hero-art .m2, .motion .hero-art .m4, .motion .hero-art .promise, .motion .hero-art .pill { opacity: 0; }
.motion .hero-art .msg.out .dots { display: flex; }
.motion .hero-art .msg.out .body { opacity: 0; }
.motion .hero-art .wave i:nth-child(-n+7) { background: var(--line2); }
.motion .hero-art .ticks { color: var(--mute); opacity: 0; }

.hero-art.play .phone { animation: rise 560ms var(--ease-out) 0ms both; }
.hero-art.play .m1 { animation: pop-in 380ms var(--ease-out) 280ms both; transform-origin: bottom left; }
.hero-art.play .m2 { animation: compose 950ms var(--ease-out) 650ms both; }
.hero-art.play .m2 .body { animation: fade 320ms ease-out 1450ms both; }
.hero-art.play .m2 .dots { animation: fade-out 160ms ease-out 1380ms both; }
.hero-art.play .m3 { animation: pop-in 380ms var(--ease-out) 1850ms both; transform-origin: bottom left; }
.hero-art.play .m4 { animation: compose 900ms var(--ease-out) 2150ms both; }
.hero-art.play .m4 .body { animation: fade 320ms ease-out 2850ms both; }
.hero-art.play .m4 .dots { animation: fade-out 160ms ease-out 2790ms both; }
.hero-art.play .ticks { animation: fade 320ms ease-out 2850ms both, read 300ms ease-out 3350ms both; }
.hero-art.play .call { animation: rise 560ms var(--ease-out) 3200ms both; }
.hero-art.play .wave i:nth-child(-n+7) { animation: played 220ms ease-out both; }
.hero-art.play .wave i:nth-child(1) { animation-delay: 3550ms; } .hero-art.play .wave i:nth-child(2) { animation-delay: 3620ms; }
.hero-art.play .wave i:nth-child(3) { animation-delay: 3690ms; } .hero-art.play .wave i:nth-child(4) { animation-delay: 3760ms; }
.hero-art.play .wave i:nth-child(5) { animation-delay: 3830ms; } .hero-art.play .wave i:nth-child(6) { animation-delay: 3900ms; }
.hero-art.play .wave i:nth-child(7) { animation-delay: 3970ms; }
.hero-art.play .promise { animation: write 520ms var(--ease-out) 3720ms both; }
.hero-art.play .pill { animation: pop-in 320ms var(--ease-out) 4180ms both; }
.hero-art.play .human { animation: rise 560ms var(--ease-out) 4400ms both; }

/* The reply composes: a small "typing" pill at the bubble's corner, then the bubble opens to the full message. */
.msg.out .dots { position: absolute; right: 13px; bottom: 11px; gap: 4px; }
.msg.out .dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.35; }
.hero-art.play .m2 .dots i, .hero-art.play .m4 .dots i { animation: typing 600ms ease-in-out 2 both; }
.hero-art.play .m2 .dots i { animation-delay: 700ms; } .hero-art.play .m4 .dots i { animation-delay: 2200ms; }
.hero-art.play .m2 .dots i:nth-child(2) { animation-delay: 820ms; } .hero-art.play .m2 .dots i:nth-child(3) { animation-delay: 940ms; }
.hero-art.play .m4 .dots i:nth-child(2) { animation-delay: 2320ms; } .hero-art.play .m4 .dots i:nth-child(3) { animation-delay: 2440ms; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(6px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes compose {
  0% { opacity: 0; clip-path: inset(calc(100% - 30px) 0 0 calc(100% - 60px) round 15px); }
  12% { opacity: 1; clip-path: inset(calc(100% - 30px) 0 0 calc(100% - 60px) round 15px); }
  62% { opacity: 1; clip-path: inset(calc(100% - 30px) 0 0 calc(100% - 60px) round 15px); }
  100% { opacity: 1; clip-path: inset(0 0 0 0 round 16px 16px 5px 16px); }
}
@keyframes typing { 0%, 100% { opacity: 0.35; transform: none; } 50% { opacity: 1; transform: translateY(-2px); } }
@keyframes read { from { color: var(--mute); } to { color: var(--blue); } }
@keyframes played { from { background: var(--line2); } to { background: var(--green); } }
@keyframes write { from { opacity: 1; clip-path: inset(0 100% 0 0 round 10px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 10px); } }

/* Questions open and close smoothly where the browser can animate to an automatic height. */
.faq details p { transition: opacity 260ms ease; }
.faq details:not([open]) p { opacity: 0; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size 340ms var(--ease-out), content-visibility 340ms allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* Phone menu: drops in from under the header, leaves faster than it arrives. */
@media (max-width: 860px) {
  .nav { opacity: 0; transform: translateY(-8px); transition: opacity 150ms ease, transform 150ms ease, display 150ms allow-discrete, overlay 150ms allow-discrete; }
  .nav-open .nav { opacity: 1; transform: none; transition: opacity 220ms ease, transform 260ms var(--ease-out), display 260ms allow-discrete; }
  @starting-style { .nav-open .nav { opacity: 0; transform: translateY(-8px); } }
}

/* Reduced motion: nothing moves or plays; colour and opacity feedback stay. */
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:active { transform: none; }
  .nav, .nav-open .nav { transform: none; }
  .faq details::details-content { transition: none; }
}
