/* Sortd Money website. Flat black and white; colour only from the four brand bars. */

/* ---------- Theme: follows the device, or the switch in the header ---------- */
:root {
  --page: #f6f6f8; --card: #ffffff; --ink: #111113; --text: #1c1c1f; --muted: #5c5c63; --faint: #8e8e93;
  --line: #e3e3e6; --invert-bg: #111113; --invert-text: #f5f5f7; --titanium: #b9b4ab; --titanium-hi: #e4e0d8;
  --orange: #f0643d; --amber: #f5a623; --violet: #7b6bf0; --green: #2bb07a;
  --shadow: 0 2px 4px rgba(0,0,0,.04), 0 24px 60px rgba(0,0,0,.12);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #121214; --card: #1e1e21; --ink: #e8e8ea; --text: #e8e8ea; --muted: #a1a1a8; --faint: #7c7c83;
    --line: #2c2c30; --invert-bg: #e8e8ea; --invert-text: #111113; --titanium: #4a4845; --titanium-hi: #77736d;
    --shadow: 0 2px 4px rgba(0,0,0,.3), 0 24px 60px rgba(0,0,0,.45); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #121214; --card: #1e1e21; --ink: #e8e8ea; --text: #e8e8ea; --muted: #a1a1a8; --faint: #7c7c83;
  --line: #2c2c30; --invert-bg: #e8e8ea; --invert-text: #111113; --titanium: #4a4845; --titanium-hi: #77736d;
  --shadow: 0 2px 4px rgba(0,0,0,.3), 0 24px 60px rgba(0,0,0,.45); color-scheme: dark;
}
/* Screenshots: the light or dark one, to match. */
.dark-only { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dark-only { display: block !important; }
  :root:not([data-theme="light"]) .light-only { display: none !important; }
}
:root[data-theme="dark"] .dark-only { display: block !important; }
:root[data-theme="dark"] .light-only { display: none !important; }

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--page); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 10px; z-index: 20; }
.skip:focus { left: 16px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.bars { display: flex; gap: 5px; }
.bars span { height: 4px; width: 16px; border-radius: 2px; }
.bars span:nth-child(1) { background: var(--orange); }
.bars span:nth-child(2) { background: var(--amber); }
.bars span:nth-child(3) { background: var(--violet); }
.bars span:nth-child(4) { background: var(--green); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--page) 80%, transparent);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 0 0 1px var(--line); align-self: center; }
.brand b { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; }
.brand small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: -5px; }
.site-header nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.site-header nav a { text-decoration: none; color: var(--muted); }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--ink); }
.theme-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0;
}
.theme-btn svg { width: 17px; height: 17px; display: none; }
.theme-btn[data-mode="light"] .i-sun, .theme-btn[data-mode="dark"] .i-moon, .theme-btn[data-mode="system"] .i-auto { display: block; }
@media (max-width: 560px) { .site-header nav .hide-sm { display: none; } .site-header nav { gap: 14px; } }

/* ---------- Buttons & type ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; }
.btn-primary { background: var(--invert-bg); color: var(--invert-text); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); background: var(--card); }
.btn svg { width: 18px; height: 18px; }
@media (max-width: 420px) { .cta .btn { width: 100%; } }
h1 { font-size: clamp(42px, 6.6vw, 70px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; margin: 0 0 20px; color: var(--ink); }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 14px; color: var(--ink); }
h3 { font-size: 19px; line-height: 1.3; margin: 0 0 6px; color: var(--ink); letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--muted); max-width: 40ch; margin: 0 0 28px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.kicker { font-size: 14px; font-weight: 700; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.kicker::before { content: ""; width: 16px; height: 4px; border-radius: 2px; background: var(--c); }
.small-note { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- iPhone 18 Pro Max ----------
   Real proportions: 6.9" screen at 1320 x 2868, thin black border, titanium edge,
   Dynamic Island, Action + volume buttons on the left, power + Camera Control on the right. */
.iphone {
  --w: 300px; --W: min(var(--w), 86vw);
  position: relative; width: var(--W); margin: 0 auto;
  container-type: inline-size;
  padding: calc(var(--W) * .034); border-radius: calc(var(--W) * .165); background: #050505;
  box-shadow: 0 0 0 1.6px var(--titanium), 0 0 0 2.6px var(--titanium-hi), 0 0 0 3.6px color-mix(in srgb, var(--titanium) 70%, #000), var(--shadow);
}
.iphone .scr { position: relative; overflow: hidden; border-radius: 13.2cqw; aspect-ratio: 1320 / 2868; background: #000; container-type: inline-size; }
.iphone .scr > img { width: 100%; height: 100%; object-fit: cover; }
.iphone .island { position: absolute; z-index: 8; top: 2.55cqw; left: 50%; transform: translateX(-50%); width: 29cqw; height: 8.4cqw; border-radius: 99px; background: #000; }
.iphone .island::after { content: ""; position: absolute; right: 7%; top: 30%; width: 3.2cqw; height: 3.2cqw; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #26304a, #06070a 70%); }
.iphone .side { position: absolute; width: 1.1cqw; border-radius: 2px; background: linear-gradient(90deg, var(--titanium), var(--titanium-hi)); }
.iphone .side.action { left: -1.9cqw; top: 19%; height: 5%; }
.iphone .side.vol-up { left: -1.9cqw; top: 27%; height: 8.5%; }
.iphone .side.vol-down { left: -1.9cqw; top: 37.5%; height: 8.5%; }
.iphone .side.power { right: -1.9cqw; top: 29%; height: 13%; }
.iphone .side.camera { right: -1.9cqw; top: 55%; height: 8%; border-radius: 1px; }
.iphone.sm { --w: 262px; }
.iphone.lg { --w: 340px; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 32px; }
.hero .wrap { display: grid; gap: 52px; align-items: center; }
@media (min-width: 920px) { .hero { padding: 80px 0 56px; } .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 64px; } }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.demo-caption { text-align: center; font-size: 13px; color: var(--faint); margin-top: 22px; }

/* ---------- Live demo inside the phone (12 s loop) ---------- */
.demo .scr { --pt: calc(100cqw / 440); font-size: calc(var(--pt) * 15); color: #fff; }
.demo .layer { position: absolute; inset: 0; }
.demo .status { position: absolute; top: calc(var(--pt) * 22); left: calc(var(--pt) * 46); right: calc(var(--pt) * 38); display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: calc(var(--pt) * 17); z-index: 7; }
.demo .status .icons { display: flex; gap: calc(var(--pt) * 6); align-items: center; }
.demo .status svg { height: calc(var(--pt) * 13); width: auto; fill: currentColor; }
.demo .lock {
  background:
    radial-gradient(120% 60% at 20% 110%, rgba(240,100,61,.55), transparent 60%),
    radial-gradient(90% 55% at 100% 80%, rgba(123,107,240,.5), transparent 60%),
    radial-gradient(80% 50% at 0% 20%, rgba(43,176,122,.35), transparent 60%),
    linear-gradient(180deg, #17171b, #0b0b0d);
  text-align: center;
}
.demo .lock .date { position: absolute; top: calc(var(--pt) * 96); width: 100%; font-weight: 600; font-size: calc(var(--pt) * 20); opacity: .92; }
.demo .lock .time { position: absolute; top: calc(var(--pt) * 116); width: 100%; font-weight: 700; font-size: calc(var(--pt) * 112); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.demo .lock .hint { position: absolute; bottom: calc(var(--pt) * 44); width: 100%; font-size: calc(var(--pt) * 14); opacity: .7; }
.demo .pay {
  position: absolute; left: calc(var(--pt) * 10); right: calc(var(--pt) * 10); bottom: calc(var(--pt) * 10);
  border-radius: calc(var(--pt) * 46); padding: calc(var(--pt) * 26) calc(var(--pt) * 26) calc(var(--pt) * 34);
  background: rgba(22,22,24,.95); text-align: center; transform: translateY(115%); box-shadow: 0 -10px 40px rgba(0,0,0,.35);
}
.demo .pay .applepay { font-weight: 600; font-size: calc(var(--pt) * 18); display: flex; align-items: center; justify-content: center; gap: calc(var(--pt) * 4); margin-bottom: calc(var(--pt) * 20); }
.demo .pay .applepay svg { width: calc(var(--pt) * 18); height: calc(var(--pt) * 18); fill: #fff; }
.demo .pay .cardart {
  position: relative; width: 84%; margin: 0 auto calc(var(--pt) * 24); aspect-ratio: 1.586; border-radius: calc(var(--pt) * 16); text-align: left;
  background: linear-gradient(125deg, #f0643d 0%, #f5a623 42%, #2bb07a 100%); box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.demo .pay .cardart b { position: absolute; left: 7%; top: 9%; font-size: calc(var(--pt) * 17); }
.demo .pay .cardart i { position: absolute; right: 7%; bottom: 9%; font-style: normal; font-size: calc(var(--pt) * 13); opacity: .92; font-variant-numeric: tabular-nums; }
.demo .pay .state { position: relative; height: calc(var(--pt) * 66); }
.demo .pay .state > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: calc(var(--pt) * 8); font-weight: 600; font-size: calc(var(--pt) * 17); }
.demo .pay .nfc { width: calc(var(--pt) * 34); height: calc(var(--pt) * 34); }
.demo .pay .done svg { width: calc(var(--pt) * 40); height: calc(var(--pt) * 40); }
.demo .pay .done circle { fill: #2bb07a; }
.demo .pay .done path { stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.demo .banner {
  position: absolute; z-index: 9; left: calc(var(--pt) * 12); right: calc(var(--pt) * 12); top: calc(var(--pt) * 62);
  border-radius: calc(var(--pt) * 26); padding: calc(var(--pt) * 14) calc(var(--pt) * 16);
  display: flex; gap: calc(var(--pt) * 12); align-items: center; text-align: left;
  background: rgba(242,242,247,.93); color: #111113; box-shadow: 0 12px 34px rgba(0,0,0,.28);
  transform: translateY(-160%) scale(.9); opacity: 0;
}
.demo .banner img { width: calc(var(--pt) * 40); height: calc(var(--pt) * 40); border-radius: calc(var(--pt) * 10); flex: none; }
.demo .banner .meta { display: flex; justify-content: space-between; font-size: calc(var(--pt) * 13); color: #6b6b70; font-weight: 600; }
.demo .banner p { margin: calc(var(--pt) * 2) 0 0; font-size: calc(var(--pt) * 15); line-height: 1.3; }
.demo .finger { position: absolute; z-index: 10; left: 58%; top: calc(var(--pt) * 42); width: calc(var(--pt) * 46); height: calc(var(--pt) * 46); border-radius: 50%; background: rgba(255,255,255,.5); border: 2px solid rgba(255,255,255,.85); opacity: 0; transform: scale(.4); }
.demo .app { background: #f2f2f7; color: #111113; opacity: 0; transform-origin: 50% 6%; padding: calc(var(--pt) * 112) calc(var(--pt) * 18) 0; }
.demo .app .status { color: inherit; }
.demo .app h4 { margin: 0; font-size: calc(var(--pt) * 32); letter-spacing: -.02em; }
.demo .app .bars { margin: calc(var(--pt) * 6) 0 calc(var(--pt) * 22); }
.demo .app .bars span { width: calc(var(--pt) * 14); height: calc(var(--pt) * 4); }
.demo .app .day { display: flex; justify-content: space-between; margin: 0 calc(var(--pt) * 6) calc(var(--pt) * 8); font-size: calc(var(--pt) * 14); color: #8e8e93; font-weight: 600; }
.demo .app .rows { background: #fff; border-radius: calc(var(--pt) * 20); overflow: hidden; margin-bottom: calc(var(--pt) * 22); }
.demo .app .row { display: flex; align-items: center; gap: calc(var(--pt) * 12); padding: calc(var(--pt) * 13) calc(var(--pt) * 14); position: relative; }
.demo .app .row + .row::before { content: ""; position: absolute; left: calc(var(--pt) * 66); right: 0; top: 0; border-top: .5px solid rgba(128,128,136,.3); }
.demo .app .ic { width: calc(var(--pt) * 40); height: calc(var(--pt) * 40); border-radius: calc(var(--pt) * 11); display: grid; place-items: center; font-size: calc(var(--pt) * 19); flex: none; }
.demo .app .t { flex: 1; min-width: 0; }
.demo .app .t b { display: block; font-size: calc(var(--pt) * 16); font-weight: 600; }
.demo .app .t span { font-size: calc(var(--pt) * 13); color: #8e8e93; }
.demo .app .a { font-size: calc(var(--pt) * 16); font-weight: 600; font-variant-numeric: tabular-nums; }
.demo .app .row.new { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; overflow: hidden; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .demo .app { background: #121214; color: #e8e8ea; }
  :root:not([data-theme="light"]) .demo .app .rows { background: #1e1e21; }
}
:root[data-theme="dark"] .demo .app { background: #121214; color: #e8e8ea; }
:root[data-theme="dark"] .demo .app .rows { background: #1e1e21; }

.demo .anim { animation-duration: 14s; animation-iteration-count: infinite; animation-fill-mode: both; }
.demo .lock.anim    { animation-name: d-lock; }
.demo .power.anim   { animation-name: d-press; }
.demo .pay.anim     { animation-name: d-pay; animation-timing-function: cubic-bezier(.2,.9,.25,1); }
.demo .cardart.anim { animation-name: d-card; }
.demo .nfc.anim     { animation-name: d-nfc; }
.demo .hold.anim    { animation-name: d-hold; }
.demo .done.anim    { animation-name: d-done; }
.demo .done path.anim { animation-name: d-tick; }
.demo .banner.anim  { animation-name: d-banner; animation-timing-function: cubic-bezier(.25,1.25,.4,1); }
.demo .finger.anim  { animation-name: d-finger; }
.demo .app.anim     { animation-name: d-app; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
.demo .row.new.anim { animation-name: d-row; }
@keyframes d-lock   { 0%,64% { opacity: 1; visibility: visible } 66.5%,95% { opacity: 0; visibility: hidden } 97%,100% { opacity: 1; visibility: visible } }
@keyframes d-press  { 0%,4%,6.5%,8%,10.5%,100% { background: linear-gradient(90deg, var(--titanium), var(--titanium-hi)); transform: none }
                      5%,9% { background: var(--green); transform: translateX(-2px) } }
@keyframes d-pay    { 0%,10% { transform: translateY(115%) } 15%,42% { transform: translateY(0) } 47%,100% { transform: translateY(115%) } }
@keyframes d-card   { 0%,29% { transform: none } 31% { transform: translateY(-6%) scale(1.02) } 34%,100% { transform: none } }
@keyframes d-nfc    { 0%,14% { opacity: .5 } 18% { opacity: 1 } 22% { opacity: .45 } 26% { opacity: 1 } 30%,100% { opacity: .5 } }
@keyframes d-hold   { 0%,32% { opacity: 1 } 33.5%,100% { opacity: 0 } }
@keyframes d-done   { 0%,32% { opacity: 0; transform: scale(.7) } 35% { opacity: 1; transform: scale(1.08) } 37%,100% { opacity: 1; transform: none } }
@keyframes d-tick   { 0%,34% { stroke-dashoffset: 24 } 39%,100% { stroke-dashoffset: 0 } }
@keyframes d-banner { 0%,47% { transform: translateY(-160%) scale(.9); opacity: 0 } 52% { transform: none; opacity: 1 }
                      62% { transform: none; opacity: 1 } 66% { transform: scale(.96); opacity: 0 } 100% { transform: translateY(-160%) scale(.9); opacity: 0 } }
@keyframes d-finger { 0%,57% { opacity: 0; transform: scale(.4) } 59% { opacity: 1; transform: scale(1) } 62% { opacity: 0; transform: scale(1.3) } 100% { opacity: 0 } }
@keyframes d-app    { 0%,64% { opacity: 0; transform: scale(.9); visibility: hidden } 65% { visibility: visible } 69%,94% { opacity: 1; transform: none; visibility: visible } 96.5%,100% { opacity: 0; visibility: hidden } }
@keyframes d-row    { 0%,71% { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; background: transparent }
                      75% { max-height: 100px; opacity: 1; padding-top: calc(var(--pt) * 13); padding-bottom: calc(var(--pt) * 13); background: rgba(43,176,122,.2) }
                      88% { background: rgba(43,176,122,.2) }
                      93%,100% { max-height: 100px; opacity: 1; padding-top: calc(var(--pt) * 13); padding-bottom: calc(var(--pt) * 13); background: transparent } }
@media (prefers-reduced-motion: reduce) {
  .demo .anim { animation: none !important; }
  .demo .lock, .demo .pay, .demo .finger { display: none; }
  .demo .app { opacity: 1; transform: none; }
  .demo .banner { transform: none; opacity: 1; }
  .demo .app .row.new { max-height: none; opacity: 1; padding-top: calc(var(--pt) * 13); padding-bottom: calc(var(--pt) * 13); }
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
@media (min-width: 920px) { section { padding: 104px 0; } }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.receipt-row { display: grid; gap: 44px; align-items: center; }
@media (min-width: 920px) { .receipt-row { grid-template-columns: 1fr 1fr; gap: 80px; } }
.receipt {
  background: #fff; color: #111113; max-width: 380px; width: 100%; margin: 0 auto;
  padding: 28px 26px 42px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 16px 100%;
  transform: rotate(-1.2deg);
}
.receipt-wrap { filter: drop-shadow(0 18px 30px rgba(0,0,0,.14)); }
:root[data-theme="dark"] .receipt { background: #ececee; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .receipt { background: #ececee; } }
.receipt .head { text-align: center; margin-bottom: 18px; }
.receipt .head b { font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 26px; font-weight: 800; letter-spacing: -.04em; }
.receipt .head .bars { justify-content: center; margin: 6px 0 8px; }
.receipt .head div { font-size: 12px; color: #6b6b70; }
.receipt hr { border: 0; border-top: 1.5px dashed #c7c7cc; margin: 12px 0; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 7px 0; }
.line b { font-weight: 600; }
.line em { grid-column: 1 / -1; font-style: normal; font-size: 11.5px; color: #6b6b70; display: flex; align-items: center; gap: 6px; }
.line em::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.receipt .total { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; }
.receipt .thanks { text-align: center; font-size: 11.5px; color: #6b6b70; margin-top: 14px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; color: var(--muted); }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--green); margin-top: 1px; }

.show { display: grid; gap: 40px; align-items: center; padding: 36px 0; }
@media (min-width: 920px) { .show { grid-template-columns: 1fr 1fr; gap: 88px; padding: 52px 0; } .show.flip > :first-child { order: 2; } }
.show > div > p { color: var(--muted); font-size: 18px; margin: 0; max-width: 44ch; }

.banks { display: grid; gap: 12px; }
.bank-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bank-group > span:first-child { width: 132px; font-size: 14px; color: var(--muted); font-weight: 600; }
.chip { font-size: 14px; padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
@media (max-width: 560px) { .bank-group > span:first-child { width: 100%; } }

.steps { display: grid; gap: 52px; }
@media (min-width: 920px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.step { display: flex; flex-direction: column; gap: 28px; }
.step p { color: var(--muted); margin: 0; font-size: 16px; }
.num { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--invert-bg); color: var(--invert-text); font-weight: 700; font-size: 15px; margin-bottom: 10px; }

.two { display: grid; gap: 36px; }
@media (min-width: 920px) { .two { grid-template-columns: 1fr 1fr; gap: 56px; } }
.group { background: var(--card); border-radius: 14px; overflow: hidden; }
.group-title { font-size: 13px; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); margin: 0 0 8px 16px; }
.cell { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 16px; position: relative; }
.cell + .cell::before, .group details + details::before { content: ""; position: absolute; left: 16px; right: 0; top: 0; border-top: .5px solid var(--line); }
.cell span:last-child { color: var(--muted); text-align: right; }
.cell b { font-weight: 500; }
.list-note { font-size: 13px; color: var(--muted); margin: 8px 16px 0; }
.group details { position: relative; }
.group summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; font-weight: 500; color: var(--ink); }
.group summary::-webkit-details-marker { display: none; }
.group summary::after { content: "›"; color: var(--faint); font-size: 20px; line-height: 1; transition: transform .2s; }
.group details[open] summary::after { transform: rotate(90deg); }
.group details p { margin: 0; padding: 0 16px 14px; color: var(--muted); font-size: 16px; }

/* Founder note */
.note-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; max-width: 720px; }
.note-card p { margin: 0 0 12px; font-size: 18px; color: var(--text); }
.note-card .sig { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 15px; color: var(--muted); }
.note-card .sig b { color: var(--ink); display: block; }
.note-card .sig .av { width: 40px; height: 40px; border-radius: 50%; background: var(--invert-bg); color: var(--invert-text); display: grid; place-items: center; font-weight: 700; }

.closing { text-align: center; }
.closing img { width: 84px; height: 84px; border-radius: 19px; margin: 0 auto 20px; box-shadow: var(--shadow); }
.closing .bars { justify-content: center; margin: 14px 0 18px; }
.closing p { color: var(--muted); font-size: 18px; margin: 0 auto 28px; max-width: 480px; }

/* Scroll-in: only when the script runs. Without it everything simply shows. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .1s; } .js .reveal.d2 { transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

.hero .wrap > *, .receipt-row > *, .show > *, .two > *, .steps > * { min-width: 0; }

/* ---------- Documents (privacy, terms, support) ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 48px 16px 24px; }
@media (min-width: 720px) { .doc { padding: 72px 32px 24px; } }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 10px; }
.doc .bars { margin-bottom: 20px; }
.doc h2 { font-size: 24px; letter-spacing: -0.02em; margin: 40px 0 10px; }
.doc h3 { font-size: 18px; margin: 26px 0 6px; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc .muted { color: var(--muted); }
.doc .note { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--card); border: 1px solid var(--line); padding: 1px 5px; border-radius: 6px; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer p { margin: 6px 0 0; }

/* Header call to action */
.nav-cta { background: var(--invert-bg); color: var(--invert-text) !important; font-weight: 600; font-size: 14px; padding: 7px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.nav-cta:hover { opacity: .88; }
.site-header nav { gap: 20px; }
@media (max-width: 560px) { .site-header nav { gap: 10px; } .nav-cta { padding: 6px 12px; font-size: 13px; } }

/* Founder note label */
.note-card .note-label { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 14px; }

/* Privacy band */
.privacy-band { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 36px 24px; }
@media (min-width: 720px) { .privacy-band { padding: 56px; } }
.privacy-head { max-width: 560px; margin-bottom: 36px; }
.privacy-head svg { width: 40px; height: 40px; color: var(--green); margin-bottom: 14px; }
.privacy-head p { color: var(--muted); font-size: 19px; margin: 0; }
.facts { display: grid; gap: 1px; background: var(--line); border-radius: 18px; overflow: hidden; grid-template-columns: 1fr; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts > div { background: var(--card); padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.facts b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.facts span { color: var(--muted); font-size: 15px; }
.privacy-foot { margin: 22px 0 0; font-size: 14px; color: var(--muted); }

/* FAQ */
.faq-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.faq-head p { color: var(--muted); font-size: 18px; margin: 0; }
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 17px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq .pm { position: relative; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--page); }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 2px; border-radius: 1px; background: var(--ink); transition: transform .25s; }
.faq .pm::after { transform: rotate(90deg); }
.faq details[open] .pm::after { transform: rotate(0); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 16px; max-width: 64ch; }

/* Step labels under the demo phone, lit in time with the animation */
.demo-steps { display: flex; justify-content: center; gap: 6px; margin-top: 22px; padding: 0; list-style: none; flex-wrap: wrap; }
.demo-steps li { font-size: 13px; font-weight: 600; color: var(--faint); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  animation-duration: 14s; animation-iteration-count: infinite; }
.demo-steps li:nth-child(1) { animation-name: st1; }
.demo-steps li:nth-child(2) { animation-name: st2; }
.demo-steps li:nth-child(3) { animation-name: st3; }
@keyframes st1 { 0%,46% { color: var(--invert-text); background: var(--invert-bg); border-color: var(--invert-bg) } 47%,100% { color: var(--faint); background: var(--card); border-color: var(--line) } }
@keyframes st2 { 0%,46% { color: var(--faint); background: var(--card); border-color: var(--line) } 47%,64% { color: var(--invert-text); background: var(--invert-bg); border-color: var(--invert-bg) } 65%,100% { color: var(--faint); background: var(--card); border-color: var(--line) } }
@keyframes st3 { 0%,64% { color: var(--faint); background: var(--card); border-color: var(--line) } 65%,96% { color: var(--invert-text); background: var(--invert-bg); border-color: var(--invert-bg) } 97%,100% { color: var(--faint); background: var(--card); border-color: var(--line) } }
@media (prefers-reduced-motion: reduce) { .demo-steps li { animation: none; } }

/* Sources: three tiles feeding one list */
.sources { display: grid; gap: 10px; margin: 26px 0 0; }
.source { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.source .si { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); }
.source .si svg { width: 22px; height: 22px; }
.source b { display: block; color: var(--ink); font-size: 16px; }
.source span { color: var(--muted); font-size: 15px; }
/* Receipt prints line by line when it scrolls into view */
.js .receipt-wrap .line, .js .receipt-wrap .total, .js .receipt-wrap .thanks { opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease; }
.js .receipt-wrap.in .line, .js .receipt-wrap.in .total, .js .receipt-wrap.in .thanks { opacity: 1; transform: none; }
.js .receipt-wrap.in .line:nth-of-type(1) { transition-delay: .35s } .js .receipt-wrap.in .line:nth-of-type(2) { transition-delay: .65s }
.js .receipt-wrap.in .line:nth-of-type(3) { transition-delay: .95s } .js .receipt-wrap.in .line:nth-of-type(4) { transition-delay: 1.25s }
.js .receipt-wrap.in .total { transition-delay: 1.6s } .js .receipt-wrap.in .thanks { transition-delay: 1.9s }
.line .src { display: inline-flex; align-items: center; gap: 5px; }

/* Privacy: App Store label + Apple-style short blocks */
.pgrid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
.pblock, .label-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.pblock .pi { width: 36px; height: 36px; color: var(--ink); margin-bottom: 18px; }
.pblock .pi svg { width: 100%; height: 100%; }
.pblock h3 { font-size: 20px; margin-bottom: 6px; }
.pblock p { margin: 0; color: var(--muted); font-size: 16px; }
.label-card { display: flex; flex-direction: column; border: 2px solid color-mix(in srgb, var(--green) 55%, var(--line)); }
.label-card .lc-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.label-card .lc-sub { font-size: 14px; margin: 2px 0 18px; color: var(--muted); }
.label-card .lc-box { margin-top: auto; background: var(--page); border-radius: 16px; padding: 22px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.label-card .lc-icon { width: 40px; height: 40px; color: var(--green); }
.label-card .lc-icon svg { width: 100%; height: 100%; }
.label-card .lc-box b { font-size: 18px; }
.label-card .lc-box span { font-size: 14px; color: var(--muted); }
.label-card .lc-title { color: var(--ink); }

/* Pricing */
.plans { display: grid; gap: 14px; max-width: 900px; margin: 0 auto; grid-template-columns: 1fr; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px 24px; text-align: center; }
.plan.best { border: 2px solid var(--ink); }
.plan .ptag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); margin: 0; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--invert-bg); color: var(--invert-text); white-space: nowrap; }
.plan .pname { margin: 0 0 8px; font-weight: 600; color: var(--muted); }
.plan .price { margin: 0; font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.plan .pnote { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.plan-includes { list-style: none; padding: 0; margin: 26px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; color: var(--muted); font-size: 15px; }
.plan-includes li { display: flex; align-items: center; gap: 7px; }
.plan-includes svg { width: 18px; height: 18px; color: var(--green); }
.plan-foot { text-align: center; font-size: 13px; color: var(--faint); margin: 14px 0 0; }

/* Closing call to action */
.cta-band { background: var(--invert-bg); color: var(--invert-text); border-radius: 32px; padding: 40px 28px; display: grid; gap: 24px; justify-items: center; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 90%; background:
  radial-gradient(40% 60% at 20% 50%, rgba(240,100,61,.35), transparent 70%), radial-gradient(40% 60% at 50% 50%, rgba(123,107,240,.3), transparent 70%), radial-gradient(40% 60% at 80% 50%, rgba(43,176,122,.3), transparent 70%); pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band img { width: 76px; height: 76px; border-radius: 17px; margin: 0; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.cta-band h2 { color: var(--invert-text); margin-bottom: 8px; }
.cta-band p { margin: 0 auto; max-width: 440px; color: color-mix(in srgb, var(--invert-text) 72%, transparent); font-size: 18px; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.btn-light { background: var(--invert-text); color: var(--invert-bg); }
.soon { font-size: 13px; color: color-mix(in srgb, var(--invert-text) 60%, transparent); }
@media (min-width: 920px) { .cta-band { grid-template-columns: auto 1fr auto; text-align: left; padding: 48px 56px; } .cta-band p { margin: 0; } .cta-actions { align-items: flex-end; } }

/* ---------- Feature tour (tabs) ---------- */
.tour { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 16px; }
@media (min-width: 720px) { .tour { padding: 20px; } }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; background: var(--page); border-radius: 999px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 15px; font-weight: 600; padding: 9px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--invert-bg); color: var(--invert-text); }
.tabs button:hover:not([aria-selected="true"]) { color: var(--ink); }
.panel { display: grid; gap: 32px; align-items: center; padding: 36px 12px 20px; }
.panel[hidden] { display: none; }
.no-js .panel[hidden] { display: grid; }
@media (min-width: 920px) { .panel { grid-template-columns: 1fr 1fr; gap: 56px; padding: 48px 40px 28px; } }
.panel-title { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; margin: 0 0 12px; }
.panel-text > p:not(.kicker) { color: var(--muted); font-size: 18px; margin: 0; max-width: 46ch; }
.panel .checks { margin-top: 20px; }
.js .panel:not([hidden]) .panel-text, .js .panel:not([hidden]) .panel-visual { animation: panelIn .5s cubic-bezier(.2,.8,.2,1) both; }
.js .panel:not([hidden]) .panel-visual { animation-delay: .06s; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .panel .panel-text, .js .panel .panel-visual { animation: none !important; } }

/* Reminder banner over the Recurring screen */
.remind { position: absolute; z-index: 9; left: 4%; right: 4%; top: 11%; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 18px;
  background: rgba(242,242,247,.95); color: #111113; box-shadow: 0 12px 34px rgba(0,0,0,.28); animation: remindIn 6s cubic-bezier(.25,1.2,.4,1) infinite; }
.remind img { width: 30px; height: 30px; border-radius: 7px; flex: none; }
.remind small { font-size: 10px; color: #6b6b70; font-weight: 600; }
.remind p { margin: 1px 0 0; font-size: 12.5px; line-height: 1.3; }
@keyframes remindIn { 0%,8% { transform: translateY(-140%); opacity: 0 } 16%,80% { transform: none; opacity: 1 } 90%,100% { transform: translateY(-140%); opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .remind { animation: none; } }

/* Receipt camera drawing */
.scan-demo { --pt: calc(100cqw / 440); background: #0d0d0f; }
.scan-demo .cam { position: absolute; inset: 0 0 47% 0; display: grid; place-items: center; background: radial-gradient(120% 80% at 50% 40%, #3a3530, #151412 70%); overflow: hidden; }
.scan-demo .paper { width: 58%; background: #fbfaf6; color: #222; font-family: ui-monospace, Menlo, monospace; font-size: calc(var(--pt) * 13); padding: calc(var(--pt) * 18) calc(var(--pt) * 16); transform: rotate(-4deg); box-shadow: 0 10px 30px rgba(0,0,0,.5); display: grid; gap: calc(var(--pt) * 5); text-align: left; }
.scan-demo .paper b { text-align: center; font-size: calc(var(--pt) * 18); }
.scan-demo .paper > span { text-align: center; color: #777; font-size: calc(var(--pt) * 11); }
.scan-demo .paper hr { border: 0; border-top: 1px dashed #bbb; margin: calc(var(--pt) * 4) 0; width: 100%; }
.scan-demo .paper div { display: flex; justify-content: space-between; }
.scan-demo .paper .tot { font-weight: 700; }
.scan-demo .corners { position: absolute; left: 18%; right: 18%; top: 14%; bottom: 10%; border-radius: 10px;
  background:
    linear-gradient(#f5a623,#f5a623) left top/18% 3px, linear-gradient(#f5a623,#f5a623) left top/3px 14%,
    linear-gradient(#f5a623,#f5a623) right top/18% 3px, linear-gradient(#f5a623,#f5a623) right top/3px 14%,
    linear-gradient(#f5a623,#f5a623) left bottom/18% 3px, linear-gradient(#f5a623,#f5a623) left bottom/3px 14%,
    linear-gradient(#f5a623,#f5a623) right bottom/18% 3px, linear-gradient(#f5a623,#f5a623) right bottom/3px 14%;
  background-repeat: no-repeat; background-color: rgba(245,166,35,.08); animation: lockOn 6s ease infinite; }
.scan-demo .beam { position: absolute; left: 18%; right: 18%; height: 2px; top: 14%; background: #f5a623; box-shadow: 0 0 16px 4px rgba(245,166,35,.6); animation: beam 6s ease-in-out infinite; }
@keyframes beam { 0%,10% { top: 14%; opacity: 0 } 14% { opacity: 1 } 40% { top: 88%; opacity: 1 } 44%,100% { top: 88%; opacity: 0 } }
@keyframes lockOn { 0%,40% { transform: scale(1.06); opacity: .6 } 46%,100% { transform: none; opacity: 1 } }
.scan-demo .found { position: absolute; left: 0; right: 0; bottom: 0; height: 47%; background: #f2f2f7; color: #111113; border-radius: calc(var(--pt) * 28) calc(var(--pt) * 28) 0 0; padding: calc(var(--pt) * 22) calc(var(--pt) * 22) 0; }
:root[data-theme="dark"] .scan-demo .found { background: #1e1e21; color: #e8e8ea; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .scan-demo .found { background: #1e1e21; color: #e8e8ea; } }
.scan-demo .fh { margin: 0 0 calc(var(--pt) * 10); font-size: calc(var(--pt) * 14); font-weight: 700; color: #8e8e93; }
.scan-demo .fr { display: flex; justify-content: space-between; padding: calc(var(--pt) * 12) 0; border-top: .5px solid rgba(128,128,136,.3); font-size: calc(var(--pt) * 16); opacity: 0; animation: fieldIn 6s ease infinite; }
.scan-demo .fr span { color: #8e8e93; }
.scan-demo .fr:nth-of-type(2) { animation-delay: .15s } .scan-demo .fr:nth-of-type(3) { animation-delay: .3s } .scan-demo .fr:nth-of-type(4) { animation-delay: .45s } .scan-demo .fr:nth-of-type(5) { animation-delay: .6s }
@keyframes fieldIn { 0%,46% { opacity: 0; transform: translateY(6px) } 52%,94% { opacity: 1; transform: none } 100% { opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .scan-demo .beam { display: none } .scan-demo .corners, .scan-demo .fr { animation: none; opacity: 1 } }

/* Also in Sortd */
.also { margin-top: 28px; }
@media (min-width: 920px) {
  .also-grid { display: grid; grid-template-columns: 1fr 1fr; }
  .also-grid .cell:nth-child(2)::before { display: none; }
  .also-grid .cell:nth-child(odd) { border-right: .5px solid var(--line); }
}
.also-grid .cell span:last-child { font-size: 15px; }
sup { font-size: .6em; }

/* ---------- Easter eggs ---------- */
.egg { border-bottom: 1.5px dotted var(--faint); cursor: help; position: relative; }
.egg::after { content: attr(data-egg); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) translateY(4px); white-space: nowrap;
  background: var(--invert-bg); color: var(--invert-text); font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.egg:hover::after, .egg:focus::after { opacity: 1; transform: translateX(-50%); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 140%); background: var(--invert-bg); color: var(--invert-text);
  padding: 12px 18px; border-radius: 999px; font-size: 15px; font-weight: 600; box-shadow: var(--shadow); transition: transform .45s cubic-bezier(.25,1.3,.4,1); max-width: calc(100vw - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); }
.confetti { position: fixed; top: -40px; z-index: 40; width: 14px; height: 5px; border-radius: 3px; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
.footer-joke { font-size: 12px; color: var(--faint); margin-top: 10px !important; }

.plan .price s { font-size: 20px; font-weight: 600; color: var(--faint); margin-right: 4px; }

/* Tabs as wrapping chips: every feature visible, nothing cut off */
.tabs { flex-wrap: wrap; justify-content: center; overflow: visible; background: transparent; padding: 6px 0 0; gap: 8px; border-radius: 0; }
.tabs button { background: var(--page); border: 1px solid var(--line); padding: 9px 16px; }
.tabs button[aria-selected="true"] { border-color: var(--invert-bg); }
@media (max-width: 560px) { .tabs button { font-size: 14px; padding: 8px 13px; } }

/* Banks: one card per country */
.banks { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .banks { grid-template-columns: 1fr 1fr; } }
.bank-group { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.bank-group .bg-label { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--ink); width: auto; }
.bg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bank-group .chip { background: var(--page); }

.panel .aside { color: var(--faint); font-size: 15px; margin: -4px 0 12px; }
.receipt .total { cursor: pointer; }
.receipt .guilt { display: flex; justify-content: space-between; font-size: 12.5px; color: #6b6b70; padding-top: 6px; animation: printIn .5s ease both; }
@keyframes printIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.soon-btn { cursor: pointer; }
/* Printing the page */
@media print {
  body::before { content: "You printed a website for an app that scans paper receipts. Bold."; display: block; font: 700 20px -apple-system, sans-serif; padding: 16px; border: 2px dashed #111; margin-bottom: 24px; }
  .site-header, .demo, .cta-band, .tour .tabs { display: none !important; }
}

/* ---------- Phone layout ---------- */
@media (max-width: 700px) {
  section { padding: 56px 0; }
  .hero { padding: 32px 0 16px; }
  .hero .wrap { gap: 36px; }
  .iphone.lg { --w: 290px; }
  .demo-steps { flex-wrap: nowrap; gap: 4px; }
  .demo-steps li { font-size: 12px; padding: 5px 9px; }

  /* Feature tabs: one swipeable row */
  .tour { padding: 12px; border-radius: 24px; }
  .tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -12px; padding: 4px 12px; scroll-snap-type: x proximity; }
  .tabs button { scroll-snap-align: start; }
  .panel { padding: 24px 4px 8px; gap: 24px; }
  .panel-visual .iphone.sm { --w: 240px; }

  /* Also in Sortd: label above description */
  .also-grid .cell { flex-direction: column; align-items: flex-start; gap: 2px; }
  .also-grid .cell span:last-child { text-align: left; font-size: 14px; }

  /* Setup: swipe between the three steps */
  .steps { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 12px; scrollbar-width: none; }
  .steps::-webkit-scrollbar { display: none; }
  .steps .step { flex: 0 0 78%; scroll-snap-align: center; gap: 18px; }
  .steps .iphone.sm { --w: 220px; }
  .swipe-hint { display: block !important; }

  /* Privacy: compact rows */
  .pgrid { gap: 10px; }
  .pblock { display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; padding: 18px; border-radius: 18px; }
  .pblock .pi { width: 26px; height: 26px; margin: 2px 0 0; grid-row: span 2; }
  .pblock h3 { font-size: 17px; margin: 0 0 2px; }
  .pblock p { font-size: 15px; }
  .label-card { padding: 20px; }
  .label-card .lc-box { padding: 16px; }

  /* Pricing: best deal first */
  .plans .plan.best { order: -1; margin-top: 10px; }
  .faq-head { text-align: left; }
  .plan-includes { justify-content: flex-start; flex-direction: column; gap: 8px; }
  .plan-foot { text-align: left; }

  .note-card { padding: 22px; }
  .note-card p { font-size: 17px; }
  .cta-band { padding: 32px 20px; border-radius: 26px; }
  .site-footer .wrap { flex-direction: column; }
}
.swipe-hint { display: none; font-size: 13px; color: var(--faint); margin: -28px 0 18px; }

/* Easter-egg pop-ups: small, centred, scale with the screen */
.toast { width: max-content; max-width: min(360px, calc(100vw - 32px)); padding: 10px 16px; border-radius: 16px;
  font-size: clamp(13px, 3.4vw, 14px); line-height: 1.35; font-weight: 600; bottom: max(20px, env(safe-area-inset-bottom)); }
.egg::after { white-space: normal; width: max-content; max-width: min(240px, 70vw); text-align: center; font-size: 12.5px; }
@media (max-width: 700px) { .confetti { width: 10px; height: 4px; } }

@media (hover: none) { .egg::after { display: none; } }

/* Nicer line breaks: no single stranded words, balanced headings */
p, li, .lead, summary, .cell span { text-wrap: pretty; }
h1, h2, h3, .panel-title { text-wrap: balance; }

/* Small phones (iPhone SE and similar) */
.btn { white-space: nowrap; }
@media (max-width: 360px) {
  .btn { font-size: 15px; padding: 0 16px; }
  .eyebrow { font-size: 12px; white-space: nowrap; }
  h1 { font-size: 38px; }
  .site-header .nav-cta { padding: 6px 10px; font-size: 12.5px; }
}

/* Pop-up text: split long messages into even lines, keep short ones on one line */
.toast { text-wrap: balance; max-width: min(320px, calc(100vw - 40px)); }
.egg::after { text-wrap: balance; }

/* Laptop polish */
.also-grid .cell b { white-space: nowrap; flex: none; }
.also-grid .cell span:last-child { text-wrap: balance; }
.note-card { margin-left: auto; margin-right: auto; }
.cta-band p { text-wrap: balance; }
