:root {
  --bg: #F6F1E7;
  --bg-glow: #FBF3DF;
  --card: #FFFFFF;
  --ink: #16151A;
  --muted: #5F5C66;
  --line: #E6E1D8;
  --soft: #EFEAE0;
  --red: #C8463B;
  --red-soft: #FBE7E4;
  --red-text: #9F2A20;
  --ember: #D9622A;
  --sel: #2F4A3A;
  --radius: 20px;
  --max: 720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration-color: var(--ember); text-underline-offset: 3px; }
a:hover { color: var(--ember); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.3px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 4px 16px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a[aria-current="page"] { color: var(--ink); }

/* Type */
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 2.6px; color: var(--muted); text-transform: uppercase; margin: 32px 0 6px; }
h1 { font-size: clamp(32px, 8vw, 48px); line-height: 1.1; letter-spacing: -1.2px; margin: 0 0 14px; font-weight: 800; }
h2 { font-size: 23px; line-height: 1.25; letter-spacing: -0.4px; margin: 36px 0 10px; font-weight: 800; }
h3 { font-size: 18px; margin: 22px 0 6px; font-weight: 800; }
p { margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }
ul { padding-left: 22px; margin: 0 0 14px; }
li { margin-bottom: 6px; }

/* Hero */
.hero { padding: 24px 0 8px; }
.hero-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 10px 24px rgba(20, 10, 40, 0.1); margin-bottom: 20px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.pill { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 700; }
.button { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; font-weight: 800; padding: 14px 22px; border-radius: 16px; margin-top: 10px; }
.button:hover { color: #fff; background: #2a2930; }

/* Cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 18px 0; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 6px; box-shadow: 0 6px 12px rgba(20, 10, 40, 0.04); }
.card h3 { margin-top: 0; }

.note { background: var(--red-soft); border-radius: var(--radius); padding: 16px 18px 4px; margin: 22px 0; color: var(--red-text); }
.note strong { color: var(--red-text); }
.calm { background: var(--soft); border-radius: var(--radius); padding: 16px 18px 4px; margin: 22px 0; }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 10px 0; }
details[open] { padding-bottom: 4px; }
summary { font-weight: 800; cursor: pointer; list-style-position: outside; }
summary::marker { color: var(--ember); }
details > *:not(summary):first-of-type { margin-top: 10px; }

/* Tables (credits) */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 12px 0 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.45; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 800; background: var(--soft); }
tr:last-child td { border-bottom: 0; }
td a { word-break: break-word; }

/* Stacked rows on phones */
@media (max-width: 560px) {
  .stack table, .stack thead, .stack tbody, .stack tr, .stack td { display: block; width: 100%; }
  .stack thead { display: none; }
  .stack tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .stack tr:last-child { border-bottom: 0; }
  .stack td { border: 0; padding: 2px 0; }
  .stack td:first-child { font-weight: 800; font-size: 15px; }
  .stack td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 600; }
}

.todo { background: #FFF3C4; padding: 0 4px; border-radius: 4px; }

/* Footer */
.site-footer { margin-top: 56px; padding: 24px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; }
.site-footer a { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* In-app browser banner (iab.js) */
.iab { position: sticky; top: 0; z-index: 100; background: var(--ink); color: #F6F1E7; padding: 14px 16px 12px; }
.iab-row { max-width: var(--max); margin: 0 auto; display: flex; align-items: flex-start; gap: 12px; }
.iab-text { flex: 1; min-width: 0; margin: 0; font-size: 15px; line-height: 1.4; font-weight: 600; }
.iab-btn { flex: none; white-space: nowrap; border: 0; border-radius: 999px; background: linear-gradient(180deg, #F08A3E, var(--ember)); color: #fff; font: inherit; font-weight: 800; font-size: 15px; padding: 10px 16px; cursor: pointer; }
.iab-x { flex: none; border: 0; background: none; color: #A9A5AE; font-size: 24px; line-height: 1; padding: 6px 2px; cursor: pointer; }
.iab-hint { max-width: var(--max); margin: 8px auto 0; font-size: 13px; line-height: 1.4; color: #A9A5AE; }

/* Hero with rotating phones */
.hero2 { text-align: center; padding: 28px 0 0; background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--bg-glow), transparent 70%); border-bottom: 1px solid var(--line); }
.hero2-copy { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.hero2 .eyebrow { margin-top: 12px; }
.hero2 h1 { font-size: clamp(36px, 7.4vw, 64px); letter-spacing: -1.6px; margin-bottom: 16px; }
.hero2 .lead { max-width: 560px; margin: 0 auto 22px; }
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { width: 180px; height: auto; }
.hero2 .badge-row { justify-content: center; margin: 18px 0 0; }
.phones { margin-top: 48px; padding-bottom: 56px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.phones-track { display: flex; width: max-content; animation: phones-scroll 70s linear infinite; }
.phones:hover .phones-track { animation-play-state: paused; }
.phones-dup { display: flex; }
.phone-card { margin: 0 18px; width: 240px; flex: none; }
.phone-card figcaption { font-size: 20px; line-height: 1.25; letter-spacing: -0.3px; font-weight: 800; margin-bottom: 16px; white-space: nowrap; color: var(--ink); }
.phone { background: #16151A; border-radius: 40px; padding: 9px; box-shadow: 0 18px 40px rgba(40, 25, 10, 0.18); }
.phone-status { position: relative; height: 30px; background: #F7F1E6; border-radius: 31px 31px 0 0; display: flex; align-items: center; justify-content: space-between; padding: 2px 22px 0; font-size: 12px; font-weight: 800; }
.phone-status i { position: absolute; left: 50%; top: 7px; width: 74px; height: 20px; margin-left: -37px; background: #16151A; border-radius: 12px; }
.phone-status .bat { width: 22px; height: 11px; border: 1.5px solid #1D1915; border-radius: 3.5px; box-shadow: inset 0 0 0 1.5px #F7F1E6, inset 15px 0 0 0 #1D1915; }
.phone img { display: block; width: 100%; height: auto; border-radius: 0 0 31px 31px; }
@keyframes phones-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 560px) {
  .phones { margin-top: 36px; padding-bottom: 40px; }
  .phone-card figcaption { font-size: 17px; }
  .phone-card { width: 190px; margin: 0 12px; }
  .phone { border-radius: 32px; padding: 7px; }
  .phone-status { border-radius: 25px 25px 0 0; height: 26px; }
  .phone img { border-radius: 0 0 25px 25px; }
}
@media (prefers-reduced-motion: reduce) { .phones-track { animation: none; } }

/* Feature cards with app screens */
.card { overflow: hidden; }
.card-shot { margin: -18px -18px 16px; background: var(--soft); padding: 22px 28px 0; height: 230px; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-shot img { display: block; width: 100%; max-width: 280px; margin: 0 auto; height: auto; border-radius: 18px 18px 0 0; box-shadow: 0 8px 22px rgba(40, 25, 10, 0.14); }
