/* Shared by every page of the site. */
/* Layout: a centered 1120px column; the hero pairs copy with a tilted iPhone the otter jumps out of,
   then sections alternate between plain bands and soft cards, ending on a dark footer. */
:root {
  --paper: #f4f7f7;        /* page: cool off-white with a hint of the teal */
  --card: #ffffff;
  --ink: #12202a;
  --muted: #5a6a74;
  --line: #e1e8ea;
  --teal: #00808f;         /* Theme.accent, light */
  --teal-soft: #e0f1f2;
  --otter: #8c5e3d;
  --cream: #f6ead7;
  --cap: #4f7a4a;          /* the otter's cap */
  --owe: #d93a2f;
  --owed: #1e8a4c;
  --on-teal: #ffffff;
  --shadow: 0 18px 50px -24px rgba(18, 32, 42, .35);
  --display: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "Figtree", -apple-system, "Segoe UI", system-ui, sans-serif;
  --radius: 28px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1418; --card: #151f25; --ink: #e9f1f3; --muted: #94a5ad; --line: #24323a;
    --teal: #4fc7d1; --teal-soft: #15343a; --otter: #c9925f; --cream: #2a2420; --cap: #7fb276;
    --owe: #ff6b61; --owed: #4fd68a; --on-teal: #0d1418; --shadow: 0 18px 50px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1418; --card: #151f25; --ink: #e9f1f3; --muted: #94a5ad; --line: #24323a;
  --teal: #4fc7d1; --teal-soft: #15343a; --otter: #c9925f; --cream: #2a2420; --cap: #7fb276;
  --owe: #ff6b61; --owed: #4fd68a; --on-teal: #0d1418; --shadow: 0 18px 50px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; letter-spacing: -.02em; line-height: 1.05; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.2vw, 48px); }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
.eyebrow { font: 700 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.lede { color: var(--muted); font-size: 18px; max-width: 34em; }
.center { text-align: center; }
.section { padding-block: 96px; }
section[id], details[id] { scroll-margin-top: 84px; } /* land below the sticky nav */
.section-head { display: grid; gap: 14px; justify-items: center; text-align: center; margin-bottom: 48px; }
.section-head .lede { max-width: 38em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font: 700 16px/1 var(--body); text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.store { padding: 10px 20px 10px 16px; }
.store small { display: block; font: 500 11px/1.2 var(--body); opacity: .75; }
.store b { display: block; font: 700 17px/1.1 var(--body); }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 85%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 24px/1 var(--display); letter-spacing: -.02em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav .btn { padding: 11px 18px; font-size: 15px; }
.theme-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.theme-btn:hover { color: var(--ink); background: var(--line); }
.theme-btn svg { width: 20px; height: 20px; }

/* Hero */
.hero { padding-block: 56px 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.1vw, 64px); margin: 18px 0 20px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero h1 span { display: block; white-space: nowrap; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.platforms { margin-top: 16px; color: var(--muted); font-size: 15px; }
.platforms a { color: var(--teal); font-weight: 700; text-decoration: none; white-space: nowrap; }
.platforms a:hover { text-decoration: underline; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--muted); font-weight: 600; font-size: 15px; list-style: none; padding: 0; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--owed); flex: none; }

/* Phone mockup with the otter jumping out */
.stage { position: relative; display: grid; place-items: center; min-height: 560px; perspective: 1100px; --px: 0; --py: 0; }
.stage::before { content: ""; position: absolute; width: 420px; height: 420px; max-width: 90%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--teal) 22%, transparent), transparent 68%);
  translate: calc(var(--px) * -10px) calc(var(--py) * -8px); }
/* The phone leans toward the pointer (site.js sets --px and --py on .stage, from -1 to 1). */
.phone { position: relative; z-index: 1; width: 268px; aspect-ratio: 268 / 548; border-radius: 46px; padding: 10px; background: #0b0f13; box-shadow: var(--shadow), 0 0 0 1.5px #2b3138 inset;
  rotate: 6deg; transform: rotateX(calc(var(--py) * -7deg)) rotateY(calc(var(--px) * 9deg)); }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 82px; height: 24px; margin-left: -41px; border-radius: 14px; background: #000; z-index: 3; }
.screen { position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: #f2f2f7; color: #000; font: 400 11px/1.35 var(--body); padding: 50px 12px 12px; display: flex; flex-direction: column; gap: 9px; }
.screen .bar { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 12px; color: #00808f; }
.screen .bar b { color: #000; font-size: 12.5px; }
.screen .pill { align-self: flex-start; padding: 3px 9px; border-radius: 99px; background: rgba(0, 128, 143, .14); color: #00808f; font-weight: 700; font-size: 9.5px; }
.screen .card { background: #fff; border-radius: 12px; padding: 10px; display: grid; gap: 7px; }
.screen .card h4 { margin: 0; font: 700 11.5px/1.2 var(--body); }
.screen .tr { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.screen .tr small { display: block; color: #6b6b70; font-size: 9px; }
.screen .tr strong { font: 800 13px/1.1 var(--body); }
.screen .pay { padding: 5px 9px; border-radius: 99px; background: #00808f; color: #fff; font-weight: 700; font-size: 9px; white-space: nowrap; }
.screen .who { display: flex; align-items: center; gap: 6px; }
.screen .av { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 7.5px/1 var(--display); flex: none; }
.screen .neg { color: #d93a2f; font-size: 9.5px; font-weight: 600; }
.screen .pos { color: #1e8a4c; font-size: 9.5px; font-weight: 600; }
.screen .tabs { margin-top: auto; display: flex; gap: 6px; align-items: center; }
.screen .tabs span { flex: 1; height: 34px; border-radius: 99px; background: rgba(255, 255, 255, .9); box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
.screen .tabs i { width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); display: grid; place-items: center; font: 600 18px/1 var(--body); font-style: normal; }
.jumper { position: absolute; width: 260px; left: calc(50% - 318px); bottom: -40px; z-index: 4; filter: drop-shadow(0 16px 18px rgba(18, 32, 42, .22));
  translate: calc(var(--px) * -18px) calc(var(--py) * -12px);
  animation: jump-in .9s cubic-bezier(.3, 1.45, .5, 1) 1.1s backwards, bob 3.4s ease-in-out 2s infinite alternate; }
@keyframes bob { from { transform: translateY(6px) rotate(-2deg); } to { transform: translateY(-8px) rotate(1deg); } }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature { background: var(--card); border-radius: var(--radius); padding: 28px 28px 32px; display: grid; gap: 12px; align-content: start; box-shadow: 0 1px 0 var(--line); }
.feature .art { height: 170px; display: grid; place-items: center; border-radius: 20px; background: var(--teal-soft); margin-bottom: 8px; }
.feature .art img { height: 150px; width: auto; animation: bob 3.8s ease-in-out infinite alternate; }
.feature:nth-child(2) .art { background: var(--cream); }
.feature:nth-child(2) .art img { animation-delay: -1.2s; }
.feature:nth-child(3) .art img { animation-delay: -2.4s; }
.feature p { color: var(--muted); }

/* Screens carousel: a snap-scrolling strip with the current screen centered, the neighbors shrunk and faded
   toward the edges. Swipe, arrows, dots or arrow keys move it; it advances on its own while in view. */
.strip { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 260px; gap: 18px; overflow-x: auto; padding: 8px calc(50% - 130px) 28px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.strip::-webkit-scrollbar { display: none; }
.shot { margin: 0; scroll-snap-align: center; border-radius: 28px; padding: 20px 16px 16px; display: grid; gap: 14px; align-content: start; color: #fff; overflow: hidden; }
.js .shot { transform: scale(.88); opacity: .7; transition: transform .45s cubic-bezier(.2, .7, .2, 1), opacity .45s; cursor: pointer; }
.js .shot.is-active { transform: none; opacity: 1; cursor: auto; box-shadow: var(--shadow); }
.strip.jump .shot { transition: none; }
.car-controls { display: none; justify-content: center; align-items: center; gap: 12px; margin-top: 4px; }
.js .car-controls { display: flex; }
.car-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.car-btn:hover { background: var(--teal-soft); }
.car-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.car-btn .play-icon, .carousel.paused .car-btn .pause-icon { display: none; }
.carousel.paused .car-btn .play-icon { display: block; }
.car-dots { display: flex; align-items: center; height: 44px; padding-inline: 8px; border-radius: 99px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); }
.car-dots button { height: 44px; padding: 0 5px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.car-dots i { position: relative; display: block; width: 8px; height: 8px; border-radius: 99px; overflow: hidden; background: color-mix(in srgb, var(--muted) 45%, transparent); transition: width .3s; }
.car-dots button[aria-current="true"] i { width: 30px; background: color-mix(in srgb, var(--teal) 28%, transparent); }
.car-dots button[aria-current="true"] i::after { content: ""; position: absolute; inset: 0; background: var(--teal); transform-origin: left; }
/* While autoplay runs, the current dot fills up; when it's full the carousel moves on. */
.carousel.auto .car-dots button[aria-current="true"] i::after { animation-name: car-fill; animation-duration: 5s; animation-timing-function: linear; animation-fill-mode: forwards; } /* longhands, so the pause rules below still apply */
.carousel.paused .car-dots i::after, .carousel.off .car-dots i::after,
.carousel:hover .car-dots i::after, .carousel:focus-within .car-dots i::after { animation-play-state: paused; }
@keyframes car-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.shot h3 { font-size: 21px; text-align: center; color: #fff; min-height: 2.4em; display: grid; place-items: center; }
.shot:nth-child(odd) { background: linear-gradient(170deg, #00808f, #0a5a66); }
.shot:nth-child(even) { background: linear-gradient(170deg, #8c5e3d, #5d3c24); }
/* Real screenshots from the web preview (tools/capture_screens.js), in a slim phone frame. Light or dark follows the page. */
.device { padding: 6px; border-radius: 32px; background: #0b0f13; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 16px 30px -16px rgba(0, 0, 0, .6); }
.device img { width: 100%; height: auto; border-radius: 26px; background: #f2f2f7; }
.device img.dark { display: none; background: #000; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .device img.light { display: none; }
  :root:not([data-theme="light"]) .device img.dark { display: block; }
}
:root[data-theme="dark"] .device img.light { display: none; }
:root[data-theme="dark"] .device img.dark { display: block; }

/* Launch video (index.html #watch): a 16:9 frame with a round play button over the poster until it plays. */
.film { position: relative; width: 100%; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0b0f13; box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-play { position: absolute; inset: 0; display: grid; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
.film-play[hidden], .film.playing .film-play { display: none; }
/* Centered on the poster's gap between "Live on Google Play." and the phone, which sits at 49% across at any width. */
.film-play span { position: absolute; left: 49%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--teal); color: var(--on-teal); box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .55); transition: transform .2s ease; }
.film-play:hover span, .film-play:focus-visible span { transform: scale(1.08); }
.film-play:focus-visible { outline: none; }
.film-play:focus-visible span { outline: 3px solid var(--teal); outline-offset: 4px; }
.film-play svg { width: 34px; height: 34px; margin-left: 5px; fill: currentColor; }
@media (max-width: 520px) {
  .film { border-radius: 18px; }
  .film-play span { width: 52px; height: 52px; }
  .film-play svg { width: 22px; height: 22px; margin-left: 3px; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--card); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; align-content: start; }
.steps li::before { counter-increment: step; content: counter(step); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: var(--on-teal); font: 900 19px/1 var(--display); margin-bottom: 6px; }
.steps p { color: var(--muted); }

/* Try it: a receipt with a perforated edge */
.try { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.receipt { position: relative; background: var(--card); border-radius: 22px 22px 0 0; padding: 30px 30px 40px; box-shadow: var(--shadow); max-width: 440px; justify-self: center; width: 100%; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px;
  background: linear-gradient(-45deg, transparent 10px, var(--card) 0) 0 0 / 20px 14px repeat-x, linear-gradient(45deg, transparent 10px, var(--card) 0) 0 0 / 20px 14px repeat-x; }
.receipt h3 { font-size: 20px; margin-bottom: 18px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: 14px; color: var(--muted); }
.money { display: flex; align-items: center; gap: 8px; border-radius: 14px; background: var(--paper); padding: 12px 16px; box-shadow: inset 0 0 0 1px var(--line); }
.money span { font: 800 26px/1 var(--body); color: var(--muted); }
.money input { width: 100%; border: 0; background: transparent; font: 800 28px/1.1 var(--body); color: var(--ink); outline: none; font-variant-numeric: tabular-nums; }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--teal-soft); color: var(--teal); font: 800 22px/1 var(--body); cursor: pointer; }
.stepper output { font: 800 28px/1 var(--body); min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }
.dashed { border-top: 2px dashed var(--line); margin: 22px 0 18px; }
.each { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.each strong { font: 900 40px/1 var(--display); color: var(--teal); font-variant-numeric: tabular-nums; }
.note { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* Trips & House */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.mode { border-radius: var(--radius); padding: 32px; display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 20px; align-items: center; }
.mode.trip { background: var(--teal-soft); }
.mode.home { background: var(--cream); }
.mode img { width: 160px; height: auto; }
.mode p { color: var(--muted); margin-top: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags span { padding: 5px 11px; border-radius: 99px; background: var(--card); font-weight: 600; font-size: 13px; }

/* Privacy + languages */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.fact { border-radius: var(--radius); padding: 28px; box-shadow: inset 0 0 0 1.5px var(--line); display: grid; gap: 10px; align-content: start; }
.fact svg { width: 30px; height: 30px; color: var(--teal); }
.fact p { color: var(--muted); }
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.langs span { padding: 10px 18px; border-radius: 99px; background: var(--card); font-weight: 700; box-shadow: 0 1px 0 var(--line); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: 20px; padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font: 700 18px/1.3 var(--body); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 800 24px/1 var(--body); color: var(--teal); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; }
.faq details p a, .privacy-link a { color: var(--teal); font-weight: 700; text-decoration: none; }
.faq details p a:hover, .privacy-link a:hover { text-decoration: underline; }
.privacy-link { margin-top: 10px; font-size: 15px; }

/* Privacy policy: one readable column */
.doc { max-width: 760px; margin: 0 auto; }
.doc-head { text-align: left; justify-items: start; margin-bottom: 36px; }
.doc-meta { color: var(--muted); font-size: 15px; }
.doc-summary { background: var(--card); border-radius: var(--radius); padding: 26px 28px; box-shadow: 0 1px 0 var(--line); margin-bottom: 40px; }
.doc-summary h2 { font-size: 22px; margin-bottom: 14px; }
.doc-summary ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.doc-summary li { display: flex; gap: 12px; color: var(--ink); }
.doc-summary li::before { content: ""; width: 18px; height: 18px; flex: none; margin-top: 4px; background: var(--owed);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.doc-toc { margin: 0 0 40px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.doc-toc a { display: block; padding: 7px 13px; border-radius: 99px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.doc-toc a:hover { box-shadow: inset 0 0 0 1.5px var(--teal); color: var(--teal); }
.doc section { padding-block: 8px 28px; }
.doc h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 12px; }
.doc h3 { font-size: 19px; margin: 20px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p, .doc ul + p, .doc .callout + p { margin-top: 12px; }
.doc section ul { padding-left: 22px; margin: 10px 0 0; display: grid; gap: 8px; }
.doc strong { color: var(--ink); font-weight: 700; }
.doc a { color: var(--teal); font-weight: 600; }
/* Support page */
.support-contact p { color: var(--muted); }
.support-contact .contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.support-contact .dl-btn { display: inline-flex; margin-top: 0; padding-inline: 28px; }

/* Delete account page */
.doc-wide { max-width: 900px; }
.callout.del-note { margin: 0 0 22px; }
.del-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 22px; }
.del-card, .del-list { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 0 var(--line); }
.del-card { display: flex; flex-direction: column; gap: 12px; }
.del-card h2, .del-list h2 { font-size: 22px; margin: 4px 0 0; }
.del-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.del-steps li { counter-increment: step; position: relative; padding: 1px 0 0 38px; min-height: 26px; color: var(--muted); }
.del-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: var(--on-teal); font: 800 14px/1 var(--display); }
.doc .dl-btn { color: var(--paper); text-decoration: none; }
.del-small { font-size: 14px; }
.del-list .dl-list { margin-bottom: 0; }
.del-keep { list-style: none; padding: 16px 0 0; margin: 0; display: grid; gap: 10px; font-size: 15px; font-weight: 600; color: var(--muted); }
.del-keep li { display: flex; gap: 10px; }
.del-keep li::before { content: ""; width: 12px; height: 2.5px; margin: 11px 2px 0; flex: none; border-radius: 2px; background: var(--muted); }
.del-foot { color: var(--muted); font-size: 15px; }
@media (max-width: 720px) { .del-grid { grid-template-columns: 1fr; } }
.doc .callout { margin-top: 14px; padding: 16px 18px; border-radius: 18px; background: var(--teal-soft); color: var(--ink); }
.doc .callout p { color: var(--ink); }

/* Download page: one card per platform, each with what it brings and where it stands */
.page-top { padding-top: 64px; }
.section-head h1 { font-size: clamp(44px, 5.6vw, 68px); }
.downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.dl { background: var(--card); border-radius: var(--radius); padding: 26px 26px 24px; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--line); }
.dl-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.dl-icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }
.dl-icon svg { width: 25px; height: 25px; fill: currentColor; }
.dl-icon svg.line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dl:nth-child(2) .dl-icon { background: var(--cream); color: var(--otter); }
.dl-chip { padding: 6px 11px; border-radius: 99px; background: var(--teal-soft); color: var(--teal); font: 700 12px/1 var(--body); letter-spacing: .02em; }
.dl-chip.later { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
.dl h2 { font-size: 22px; line-height: 1.2; letter-spacing: -.01em; margin-bottom: 8px; }
.dl > p { color: var(--muted); font-size: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.dl-list { list-style: none; padding: 16px 0 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: 15px; font-weight: 600; color: var(--muted); }
.dl-list li { display: flex; align-items: center; gap: 10px; }
.dl-list li::before { content: ""; width: 16px; height: 16px; flex: none; background: var(--owed);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.dl-btn { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 700 15px/1.1 var(--body); text-decoration: none; text-align: center; transition: transform .15s; }
.dl-btn:hover { transform: translateY(-1px); }
.dl-btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.dl-btn.later { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.dl-note { text-align: center; color: var(--muted); font-size: 15px; margin: 24px auto 0; max-width: 34em; }

/* Closing CTA */
.closing { background: var(--card); border-radius: 36px; padding: 56px 32px; display: grid; justify-items: center; gap: 16px; text-align: center; position: relative; overflow: hidden; }
.btn-teal { background: var(--teal); color: var(--on-teal); }
.closing .cta-row { justify-content: center; margin-top: 8px; }
.closing img { width: 170px; margin-bottom: -6px; animation: bob 3.4s ease-in-out infinite alternate; }

/* Community: the Facebook group, below the closing CTA. The faces are group members' initials, as in the app. */
.community { margin-top: 24px; background: var(--teal-soft); border-radius: 36px; padding: 52px 32px; display: grid; justify-items: center; gap: 14px; text-align: center; position: relative; overflow: hidden; }
.community h2 { position: relative; font-size: clamp(28px, 3.6vw, 40px); }
.community .lede { position: relative; max-width: 30em; }
.btn-fb { position: relative; margin-top: 10px; background: #0866ff; color: #fff; }
.community-faces span { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); margin-left: calc(var(--s) / -2); border-radius: 50%;
  display: grid; place-items: center; background: var(--c); color: #fff; font: 800 calc(var(--s) * .36)/1 var(--display); box-shadow: 0 0 0 3px var(--card), var(--shadow);
  animation: float 3.2s ease-in-out var(--d) infinite alternate; }
@keyframes float { from { transform: translateY(5px); } to { transform: translateY(-7px); } }
@media (max-width: 1000px) { .community-faces span:nth-child(2), .community-faces span:nth-child(6) { display: none; } }
@media (max-width: 760px) { .community-faces { display: none; } }

/* Join page (join/index.html): where invite links land on a phone without Splitty */
.join { max-width: 640px; margin: 0 auto; display: grid; gap: 16px; justify-items: center; text-align: center; }
.join [hidden] { display: none; }
.join > img { width: 150px; animation: bob 3.4s ease-in-out infinite alternate; }
.join h1 { font-size: clamp(34px, 6vw, 54px); overflow-wrap: anywhere; }
.join-meta { display: flex; gap: 8px; }
.join-error { color: var(--owe); font-weight: 600; max-width: 32em; }
.join-steps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 16px; width: 100%; text-align: left; }
.join-steps li { background: var(--card); border-radius: var(--radius); padding: 22px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; box-shadow: 0 1px 0 var(--line); }
.join-num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); font: 900 18px/1 var(--display); }
.join-steps h2 { font-size: 22px; line-height: 1.2; letter-spacing: -.01em; margin-bottom: 6px; }
.join-steps p { color: var(--muted); font-size: 16px; }
.join-stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.join-stores .dl-btn { margin-top: 0; flex: 1 1 160px; }
.join-steps .btn { margin-top: 16px; }
.join-note { color: var(--muted); font-size: 14px; max-width: 32em; }

/* Footer */
footer { background: #0d1418; color: #c8d3d8; padding-block: 56px 40px; }
footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
footer .brand { color: #fff; }
footer p { color: #8fa0a8; font-size: 15px; margin-top: 14px; max-width: 28em; }
footer h4 { margin: 0 0 12px; font: 700 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: #8fa0a8; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; color: #dbe5e9; }
footer a:hover { color: #4fc7d1; }
.legal { grid-column: 1 / -1; border-top: 1px solid #22303a; padding-top: 22px; font-size: 14px; color: #6f8189; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------- Motion ----------
   Splitty's moves are about splitting and settling: coins that split in two behind the phone, a phone that pays Bea,
   cards that arrive one after another like people joining a group. Entrances use the translate, rotate, scale and
   opacity properties, so hover effects (transform) and the pointer lean never fight them. Everything here stops for
   people who ask their phone for less motion (the prefers-reduced-motion block below). */
:root { --spring: cubic-bezier(.34, 1.4, .5, 1); --ease-out: cubic-bezier(.2, .8, .2, 1); }

/* Scroll progress: a thin teal line along the bottom of the nav. */
.nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--teal), #4fc7d1);
  transform-origin: 0 50%; scale: var(--progress, 0) 1; pointer-events: none; }

/* Hero, on load: the lines rise out of a mask, a hand-drawn line underlines "Keep the friends.", the phone swings in,
   the payments deal onto it one by one, and the otter leaps out last. */
.hero h1 > span, .hero h1 em > span { animation: line-up .9s var(--ease-out) .1s backwards; }
.hero h1 em > span { animation-delay: .24s; }
.hero h1 em { display: block; position: relative; width: fit-content; }
.squiggle { position: absolute; left: -2%; bottom: -.16em; width: 104%; height: .32em; overflow: visible; pointer-events: none; }
.squiggle path { fill: none; stroke: color-mix(in srgb, var(--teal) 42%, transparent); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1; animation: draw 1s var(--ease-out) .85s backwards; }
.hero .wrap > div:first-child > :is(.eyebrow, .lede, .cta-row, .platforms, .trust) { animation: fade-up .8s var(--ease-out) backwards; }
.hero .eyebrow { animation-delay: 0s !important; }
.hero .lede { animation-delay: .4s !important; }
.hero .cta-row { animation-delay: .52s !important; }
.hero .platforms { animation-delay: .62s !important; }
.hero .trust { animation-delay: .72s !important; }
.phone { animation: phone-in 1.1s var(--spring) .2s backwards; }
.screen .card .tr { animation: deal .55s var(--ease-out) backwards; }
.screen .card .tr:nth-of-type(1) { animation-delay: .8s; }
.screen .card .tr:nth-of-type(2) { animation-delay: .92s; }
.screen .card .tr:nth-of-type(3) { animation-delay: 1.04s; }
.screen .card + .card .tr { animation-delay: 1.2s; }
@keyframes line-up { from { translate: 0 .55em; opacity: 0; clip-path: inset(0 0 100% 0); } to { clip-path: inset(-20% -5% -30% -5%); } }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes fade-up { from { translate: 0 14px; opacity: 0; } }
@keyframes phone-in { from { translate: 0 70px; rotate: 18deg; opacity: 0; } 60% { opacity: 1; } }
@keyframes deal { from { translate: 26px 0; opacity: 0; } }
@keyframes jump-in { from { translate: 30px 110px; scale: .35; rotate: -22deg; opacity: 0; } 55% { opacity: 1; scale: 1.08; } }

/* Coins that rise behind the phone and split in two on the way up. */
.coins { position: absolute; inset: 0; pointer-events: none; translate: calc(var(--px) * 22px) calc(var(--py) * 14px); }
.coin { position: absolute; left: var(--x); bottom: var(--y); width: var(--s, 30px); height: var(--s, 30px); opacity: 0; animation: coin-rise var(--t) linear var(--d) infinite; }
.coin b { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; font: 900 calc(var(--s, 30px) * .5)/1 var(--display); color: #8a5a12;
  background: radial-gradient(circle at 34% 30%, #fff3c4, #f5c75a 46%, #d99a2b 100%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45), 0 6px 12px -6px rgba(140, 94, 61, .6); }
.coin b:first-child { clip-path: inset(-10% 50% -10% -10%); animation: split-left var(--t) var(--ease-out) var(--d) infinite; }
.coin b:last-child { clip-path: inset(-10% -10% -10% 50%); animation: split-right var(--t) var(--ease-out) var(--d) infinite; }
@keyframes coin-rise { 0% { translate: 0 0; opacity: 0; } 12% { opacity: .95; } 70% { opacity: .9; } 100% { translate: 0 -300px; opacity: 0; } }
@keyframes split-left { 0%, 42% { translate: 0 0; rotate: 0deg; } 100% { translate: -18px 6px; rotate: -28deg; } }
@keyframes split-right { 0%, 42% { translate: 0 0; rotate: 0deg; } 100% { translate: 18px 6px; rotate: 28deg; } }

/* The phone's little demo (site.js): tap "Pay Bea", it turns to Paid, the row folds away and the balances update. */
.screen { transition: opacity .3s; }
.screen.resetting { opacity: .25; }
.screen .tr[data-demo] { max-height: 40px; transition: max-height .5s var(--ease-out), opacity .4s, margin .5s var(--ease-out); }
.screen .tr[data-demo].gone { max-height: 0; opacity: 0; margin-top: -7px; overflow: hidden; }
.screen .pay { position: relative; transition: background .3s, scale .15s; }
.screen .tapping .pay { scale: .92; }
.screen .tapping .pay::after { content: ""; position: absolute; inset: -6px; border-radius: 99px; border: 2px solid #00808f; animation: ripple .6s ease-out forwards; }
.screen .paid .pay { background: #1e8a4c; }
.screen b[data-demo] { font-weight: inherit; font-variant-numeric: tabular-nums; }
@keyframes ripple { from { opacity: .9; scale: .8; } to { opacity: 0; scale: 1.5; } }

/* Scroll reveal: cards arrive one after another (site.js sets --i), each settling with a little lift. */
.js .reveal { transition: translate .8s var(--ease-out) calc(var(--i, 0) * 90ms), scale .8s var(--ease-out) calc(var(--i, 0) * 90ms),
  opacity .7s ease calc(var(--i, 0) * 90ms), rotate .8s var(--ease-out) calc(var(--i, 0) * 90ms), transform .3s var(--spring), box-shadow .3s; }
.js .reveal.below { translate: 0 30px; scale: .97; opacity: .001; }
.js .receipt.reveal.below { rotate: -4deg; translate: 0 40px; }
/* Section headings rise in, eyebrow first. */
.js .section-head > * { transition: translate .8s var(--ease-out) calc(var(--i, 0) * 80ms), opacity .7s ease calc(var(--i, 0) * 80ms); }
.js .section-head.below > * { translate: 0 18px; opacity: .001; }
/* Icons draw themselves in as their card arrives (site.js gives their shapes pathLength="1"). */
.js .reveal svg[stroke] [pathLength] { stroke-dasharray: 1; transition: stroke-dashoffset 1.1s var(--ease-out) calc(var(--i, 0) * 90ms + .25s); }
.js .reveal.below svg[stroke] [pathLength] { stroke-dashoffset: 1; }
/* Step numbers pop in turn; tags and language chips follow their card. */
.js .steps li::before { transition: scale .6s var(--spring) calc(var(--i, 0) * 90ms + .2s); }
.js .steps li.below::before { scale: 0; }
.js .reveal .tags span { transition: translate .5s var(--ease-out) calc(var(--j, 0) * 50ms + .35s), opacity .5s calc(var(--j, 0) * 50ms + .35s); }
.js .reveal.below .tags span { translate: 0 10px; opacity: 0; }
.js .langs span { transition: translate .6s var(--spring) calc(var(--j, 0) * 70ms), opacity .5s calc(var(--j, 0) * 70ms); }
.js .langs.below span { translate: 0 16px; opacity: 0; }

/* Hover: cards lift, otters hop, store buttons catch the light. */
@media (hover: hover) {
  .feature:hover, .feat:hover, .mode:hover, .steps li:hover, .fact:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--line), var(--shadow); }
  .feature .art, .mode img, .feat-art img { transition: transform .45s var(--spring); }
  .feature:hover .art { transform: translateY(-6px) scale(1.04); }
  .mode:hover img { transform: rotate(-7deg) scale(1.07); }
  .feat:hover svg { animation: wiggle .5s var(--spring); }
  .feat-head:hover .feat-art img { transform: rotate(-8deg) scale(1.1); }
  .store, .btn-fb, .btn-teal { position: relative; overflow: hidden; }
  .store::after, .btn-fb::after, .btn-teal::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
    translate: -120% 0; transition: translate .7s var(--ease-out); pointer-events: none; }
  .store:hover::after, .btn-fb:hover::after, .btn-teal:hover::after { translate: 120% 0; }
}
@keyframes wiggle { 30% { rotate: -12deg; scale: 1.12; } 65% { rotate: 8deg; } }

/* Try it: the people stepper shows faces, and the numbers bump when they change. */
.heads { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; margin-top: 12px; }
.heads span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 12px/1 var(--display); background: var(--c);
  box-shadow: 0 0 0 2px var(--card); animation: head-in .45s var(--spring) backwards; }
.heads span.more { background: var(--line); color: var(--muted); width: auto; padding-inline: 9px; border-radius: 99px; }
.heads span.leaving { animation: head-out .25s ease-in forwards; }
.bump { animation: bump .35s var(--spring); }
@keyframes head-in { from { scale: 0; rotate: -30deg; } }
@keyframes head-out { to { scale: 0; opacity: 0; } }
@keyframes bump { 40% { scale: 1.18; } }

@media (max-width: 920px) {
  .hero .wrap, .try { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .stage { min-height: 520px; }
  .features, .steps, .facts, .duo { grid-template-columns: 1fr; }
  .downloads { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .nav-links { display: none; }
  .nav .wrap { gap: 12px; }
  .nav .btn { margin-left: auto; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  footer .wrap > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .wrap { padding-inline: 16px; }
  .section { padding-block: 72px; }
  .mode { grid-template-columns: 1fr; }
  .mode img { width: 140px; justify-self: center; grid-row: 1; }
  .jumper { width: 190px; left: calc(50% - 190px); bottom: -24px; }
  .coin:nth-child(n+4) { display: none; }
  .hero h1 span { white-space: normal; }
  .phone { width: 236px; }
  .nav .btn { padding: 9px 14px; font-size: 14px; }
  .receipt { padding: 24px 20px 34px; }
  .each { flex-direction: column; align-items: flex-start; gap: 6px; }
  .each strong { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* features.html: features grouped by topic, each card marked with the phones that have it today. */
.feat-note { max-width: 760px; margin: -16px auto 28px; padding: 16px 20px; border-radius: 18px; background: var(--teal-soft); text-align: center; }
.feat-note p { color: var(--ink); font-size: 16px; }
.feat-toc { justify-content: center; }
.feat-group { padding-top: 48px; }
.feat-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.feat-head h2 { margin-top: 8px; font-size: clamp(28px, 3.4vw, 38px); }
.feat-art { flex: none; width: 88px; height: 88px; border-radius: 26px; background: var(--teal-soft); display: grid; place-items: center; }
.feat-art.cream { background: var(--cream); }
.feat-art img { width: 76px; height: auto; }
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feat { background: var(--card); border-radius: 22px; padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 1px 0 var(--line); }
.feat svg { width: 28px; height: 28px; color: var(--teal); margin-bottom: 4px; }
.feat h3 { font-size: 20px; }
.feat p { color: var(--muted); font-size: 16px; line-height: 1.55; }
.feat p a { color: var(--teal); }
.feat .avail { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.avail span { font: 700 12px/1 var(--body); letter-spacing: .02em; padding: 6px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); }
.avail span.soon { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
.feat-more { margin-top: 22px; }
.feat-closing { margin-top: 72px; }
@media (max-width: 920px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .feat-grid { grid-template-columns: 1fr; }
  .feat-head { gap: 14px; }
  .feat-art { width: 68px; height: 68px; border-radius: 20px; }
  .feat-art img { width: 58px; }
}
