@font-face {
  font-family: Inter;
  src: url('/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* Light panels, one green accent, one painted banner. */
:root {
  --bg: #f3f4f0;
  --rail: #fff;
  --panel: #fff;
  --panel-2: #eceee8;
  --line: #dcdfd6;
  --text: #1a1c18;
  --muted: #5a5f56;
  --green: #2c7f1d;
  --green-deep: #2c7f1d;
  --gold: var(--green);
  --gilt: #2c7f1d;
  --amber: #9a5b00;
  --red: #e5483a;
  --field: #f7f8f4;
  --active: #eef7e8;
  --call-top: #fdeeea;
  --radius: 14px;
  --display: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
html, body { margin: 0; color: var(--text); }
body {
  font: 400 15px/1.5 var(--display);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  background: var(--bg);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}
#root { padding: 0 16px 16px; }
/* Forms and reading pages stay narrow; dashboard and home page use the full width. */
#root > :not(.topbar, .dash, .hero, .home-free, .how, .moments, .compare, .bento, .home-app, .faqs, .final-cta, .home-foot, .app-foot, .ally-page, .auth-page, .create-page, .overlay) { max-width: 660px; margin-inline: auto; }
.dash, .hero, .how, .features { max-width: 1180px; margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 8px; }
h1 { font-size: 28px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p { margin: 0 0 12px; }
a { color: var(--green); }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.card {
  color: var(--text); background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; margin-bottom: 14px;
}
.members-head { margin-bottom: 10px; }
.members-head h2 { margin: 0; }
.members-head input { width: auto; flex: 1 1 180px; max-width: 280px; padding: 7px 10px; }
.notice { color: var(--text); background: rgba(242, 184, 75, 0.12); border: 1px solid var(--amber); border-radius: 10px; padding: 10px 12px; text-align: left; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px;
  margin: 0 -16px 14px; padding: 8px max(16px, calc(50vw - 590px)); background: var(--rail); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.nav a, .nav button {
  background: none; border: 1px solid transparent; border-radius: 10px;
  padding: 7px 10px; min-height: 38px; color: var(--muted); font: inherit; font-size: 14px; font-weight: 500;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: flex-start; gap: 7px; white-space: nowrap;
}
.nav a:hover, .nav button:hover { color: var(--text); background: var(--panel-2); }
.nav a[aria-current="page"] { color: var(--green); font-weight: 600; background: rgba(132, 220, 92, 0.13); border-color: rgba(132, 220, 92, 0.3); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; }
.tag {
  display: inline-block; padding: 1px 8px; border-radius: 7px; background: var(--panel-2);
  border: 1px solid var(--line); font-size: 12.5px; color: var(--green); font-weight: 700;
}
.tag-new { background: rgba(132, 220, 92, 0.15); border-color: transparent; }
.pill-ok { color: var(--green); }
.pill-warn { color: var(--amber); }

label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 11px;
}
input::placeholder { color: #767a73; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: transparent; }
select option { background: var(--panel); }

button, .btn {
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; color: var(--text);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
button:hover, .btn:hover { border-color: #4a4c48; }
button:active, .btn:active { transform: translateY(1px); }
button:disabled { opacity: 0.5; cursor: default; }
.btn-primary { color: #0d1a09; background: linear-gradient(180deg, #93e56b, #5fbd42); border-color: transparent; }
.btn-primary:hover { border-color: transparent; filter: brightness(1.06); }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.btn-google { background: #fff; color: #1f1f1f; border-color: #fff; gap: 10px; }
.btn-sm { padding: 6px 11px; font-size: 13.5px; }
.btn-danger { color: #fff; background: var(--red); border-color: transparent; }

/* The one loud thing on the page. */
.war-button {
  width: 100%; padding: 20px 12px; font-size: 21px; font-weight: 800; color: #fff; letter-spacing: 0.01em;
  background: linear-gradient(180deg, #f2543f, #bb2415); border: 0; border-radius: 12px;
}
.war-button:hover { filter: brightness(1.07); }
.war-button.armed { animation: pulse 0.8s infinite alternate; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 7px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 500; }
.chip[aria-pressed="true"] { color: var(--green); background: rgba(132, 220, 92, 0.13); border-color: rgba(132, 220, 92, 0.4); }

.call { border-color: rgba(229, 72, 58, 0.6); background: linear-gradient(180deg, var(--call-top), var(--panel)); }
.call-title { font-size: 24px; font-weight: 800; color: var(--text); }
.overlay .call-title { color: #fff; }
.answer { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.answer button { padding: 16px 10px; font-size: 17px; }
.btn-coming { color: #0d1a09; background: linear-gradient(180deg, #93e56b, #5fbd42); border-color: transparent; }
.answer button[aria-pressed="true"] { outline: 2px solid #fff; }
.counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; text-align: center; }
.counts div { background: var(--panel-2); border-radius: 10px; padding: 8px; }
.counts b { display: block; font-size: 22px; font-weight: 700; }
.roster { list-style: none; padding: 0; margin: 0; }
.roster li { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); gap: 8px; }
.roster li:first-child { border-top: 0; }
.st-coming { color: var(--green); }
.st-cant { color: var(--muted); }
.st-waiting { color: var(--amber); }

.overlay {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; justify-content: center;
  padding: 24px; background: #7d0f0b; color: #fff; animation: flash 0.7s infinite alternate; text-align: center;
}
.overlay .call-title { font-size: 34px; }
.overlay .answer { max-width: 420px; margin: 24px auto 0; width: 100%; }

#toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: #2a2b29; color: #f2f3ef; border: 1px solid #454743;
  padding: 10px 16px; border-radius: 10px; opacity: 0; transition: opacity 0.2s;
  pointer-events: none; max-width: 90vw; z-index: 60;
}
#toast.show { opacity: 0.98; }

.steps { padding-left: 20px; margin: 8px 0; }
.steps li { margin-bottom: 6px; }

/* The painted banner, on the home page and above the dashboard. */
.hero, .hero-banner {
  background: #1b1425 url('/art/hero.svg') center / cover no-repeat;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.hero { padding: 26px 22px; margin-bottom: 14px; }
/* Text over the painting stays white in both themes. */
.hero > div:first-child, .hero-banner { color: #fff; }
.hero > div:first-child h1, .hero-banner h1, .hero > div:first-child .muted, .hero-banner .muted { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75); }
.hero > div:first-child .muted, .hero-banner .muted { color: #e8e6ea; }
.hero-banner {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 20px; min-height: 150px; margin-bottom: 14px;
}
.hero-banner h1 { font-size: 34px; font-weight: 800; margin-bottom: 8px; overflow-wrap: anywhere; }
.hero-date { font-size: 12.5px; font-weight: 600; margin-bottom: 2px; }
.hero-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.hero-crest { position: relative; flex: none; width: 76px; height: 86px; display: grid; place-items: center; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6)); }
.hero-crest svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: #2a6b28; stroke: #ffcf5c; stroke-width: 3; }
.hero-crest b { position: relative; font-size: 26px; font-weight: 800; color: #fff; margin-top: -6px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hero-chip { padding: 4px 10px; font-size: 13px; font-weight: 500; color: #fff; background: rgba(12, 12, 16, 0.68); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; }
.hero-chip b { color: #a6ec7f; }
.chip-gold { font-weight: 700; color: #3a2400; background: linear-gradient(180deg, #ffdc7a, #eeb02f); border-color: transparent; }
.chip-red { font-weight: 700; background: #c9301f; border-color: transparent; }
.manage-grid { display: grid; gap: 14px; }
.manage-grid .card { margin: 0; }
.install-btn { flex: none; white-space: nowrap; color: #fff; border-color: rgba(255, 255, 255, 0.3); background: rgba(16, 17, 16, 0.75); }
.hero-banner .tag { background: rgba(16, 17, 16, 0.7); border-color: transparent; color: #a6ec7f; }
.dash-tabs { margin-bottom: 14px; }
.dash-tabs .chip { padding: 9px 14px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.icon-btn { flex: none; width: 34px; height: 34px; padding: 0; color: var(--muted); background: transparent; border-color: transparent; }
.icon-btn:hover { color: var(--text); background: var(--panel-2); }
.topbar .nav { margin-left: auto; }

.features { display: grid; gap: 10px; }
.features .card { margin: 0; }
.how { padding: 8px 0 14px; }
.how ol { list-style: none; counter-reset: step; display: grid; gap: 10px; margin: 8px 0 0; padding: 0; }
.how li {
  counter-increment: step; display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; padding: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.how li::before {
  content: counter(step); grid-row: span 2; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: var(--green); background: rgba(132, 220, 92, 0.13);
}
.how span { color: var(--muted); font-size: 13.5px; }

.setup { list-style: none; margin: 0; padding: 0; }
.setup li { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.setup li > span:first-child {
  flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #4a4c48;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #0d1a09;
}
.setup li.done > span:first-child { background: var(--green); border-color: var(--green); }
.setup li.done { color: var(--muted); }
.events li { align-items: center; }
.event-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 14px; }
.stat { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; overflow: hidden; }
.stat b { display: block; font-size: 22px; font-weight: 700; line-height: 1.2; }
.stat span { color: var(--muted); }
.stat-icon { position: absolute; top: 12px; right: 12px; color: var(--green); }
.stat:nth-child(4) { grid-column: 1 / -1; }
.stat-main { grid-column: 1 / -1; background: linear-gradient(135deg, #3f9a33, #2a6b28); border-color: transparent; }
.stat-main b { font-size: 30px; color: #fff; }
.stat-main span, .stat-main .stat-icon { color: #e8f8df; }
.stat-line { position: absolute; right: 0; bottom: 0; width: 60%; height: 70%; color: rgba(255, 255, 255, 0.4); }

.members { width: 100%; border-collapse: collapse; }
.members th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 500; padding: 6px 8px 6px 0; }
.members td { border-top: 1px solid var(--line); padding: 9px 8px 9px 0; font-size: 14px; vertical-align: middle; }
.m-name { font-weight: 600; }
.m-actions { text-align: right; white-space: nowrap; }
.rank-select { width: auto; max-width: 150px; padding: 5px 6px; font-size: 13px; }
.admin-tabs { margin-bottom: 14px; }
.hint { margin: 4px 0 0; }
textarea { line-height: 1.5; resize: vertical; }
.admin-back { color: var(--text); }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 120px; border-bottom: 1px solid var(--line); }
.bar-slot { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bar-slot:hover { background: var(--panel-2); }
.bar { width: 100%; background: var(--green); border-radius: 4px 4px 0 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

footer { color: var(--muted); font-size: 13px; text-align: center; padding: 20px 0 40px; }
.legal h2 { margin-top: 24px; }

/* Blog list */
.blog-head {
  padding: 34px 26px; margin-bottom: 16px; color: #fff; border-radius: var(--radius);
  background: #1b1425 url('/art/hero.svg') center / cover no-repeat;
}
.blog-head h1 { margin-bottom: 6px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75); }
.blog-head p { margin: 0; max-width: 56ch; color: #e8e6ea; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); }
.blog-list { display: grid; gap: 14px; }
.blog-card { display: flex; flex-direction: column; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.15s; }
.blog-card:hover { border-color: var(--green); }
.blog-card-art { display: block; height: 150px; overflow: hidden; background: #1b1425 center / cover no-repeat; }
.art-0 { background-image: url('/art/battle.svg'); }
.art-1 { background-image: url('/art/hero.svg'); }
.blog-card-body { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.blog-meta { margin: 0 0 6px; font-size: 12.5px; color: var(--muted); }
.legal .blog-card h2 { margin: 0 0 8px; font-size: 17px; line-height: 1.3; }
.blog-card h2 a { color: var(--text); text-decoration: none; }
.blog-card h2 a:hover { color: var(--green); }
.blog-card-body > p:not(.blog-meta) { font-size: 14px; color: var(--muted); }
.blog-more { margin-top: auto; font-size: 14px; font-weight: 600; text-decoration: none; }

/* Reading page */
.blog-post-head { margin: 8px 0 16px; }
.blog-post-head h1 { margin: 8px 0; }
.blog-post-head p { margin: 0; font-size: 14px; color: var(--muted); }
.blog-back { font-size: 14px; font-weight: 600; text-decoration: none; }
.blog-back::before { content: '← '; }
.blog-box { padding: 24px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.blog-box > p, .blog-box li { font-size: 16.5px; line-height: 1.75; }
.blog-box > p { margin-bottom: 16px; }
.blog-box h2 { font-size: 21px; margin: 30px 0 10px; }
.blog-box h2:first-child { margin-top: 0; }
.blog-box h3 { font-size: 17px; margin: 22px 0 8px; }
.blog-box ul, .blog-box ol { margin: 0 0 16px; padding-left: 22px; }
.blog-box > p.small { font-size: 13.5px; margin: 24px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.blog-related { margin-top: 22px; }
.blog-related h2 { margin: 0 0 10px; }
.blog-related-grid { display: grid; gap: 10px; }
.blog-related-grid a { display: flex; flex-direction: column; gap: 4px; padding: 14px; color: var(--text); text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.blog-related-grid a:hover { border-color: var(--green); }
.blog-related-grid span { font-size: 12.5px; color: var(--muted); }

.blog-cta { margin: 20px 0; padding: 18px; border-radius: var(--radius); text-align: center; background: linear-gradient(135deg, #3f9a33, #2a6b28); }
.blog-post .blog-cta h3 { margin: 0 0 6px; color: #fff; font-size: 18px; }
.blog-post .blog-cta p { margin: 0 0 12px; color: #e8f8df; }
.blog-alert { max-width: 420px; margin: 20px auto; padding: 12px 14px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); }
.blog-alert-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.blog-alert-head span { margin-left: auto; }
.blog-post .blog-alert p { margin: 0; line-height: 1.4; }
.blog-alert-actions { display: flex; gap: 18px; margin-top: 8px; font-size: 14px; font-weight: 600; }
.blog-alert-actions a { color: var(--green); text-decoration: none; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
code.inv { word-break: break-all; font-size: 13px; color: var(--muted); }

/* Home page */
.hero-lead { font-size: 17px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; padding: 0; font-size: 13.5px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); }
.trust li::before { content: '✓ '; color: var(--green); font-weight: 800; }

.process { grid-template-columns: 1fr; }
.process .step-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s; }
.process .step-card::before { display: none; }
.process .step-card > b { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.process .step-card > b em { flex: none; width: 24px; height: 24px; display: grid; place-items: center; font-size: 13px; font-style: normal; color: #fff; background: var(--step); border-radius: 50%; }
.step-card { --step: #d9412d; }
.step-card:nth-child(2) { --step: #c98a12; }
.step-card:nth-child(3) { --step: #3f9a33; }
.process .step-card.active { border-color: var(--step); box-shadow: 0 6px 22px color-mix(in srgb, var(--step) 30%, transparent); transform: translateY(-2px); }
/* The little scenes stay dark in both themes, so their colours always read the same. */
.step-demo { position: relative; height: 130px; display: grid; place-items: center; margin-bottom: 6px; overflow: hidden; border-radius: 12px; }
.demo-red { background: radial-gradient(circle at 50% 50%, #5a1b2c, #1b1425 75%); }
.demo-gold { background: radial-gradient(circle at 50% 50%, #5c4318, #1b1425 75%); }
.demo-green { background: radial-gradient(circle at 50% 50%, #1f4a2a, #1b1425 75%); }
.how .demo-button { padding: 11px 20px; font-size: 14.5px; font-weight: 800; color: #fff; background: linear-gradient(180deg, #f2543f, #bb2415); border-radius: 10px; animation: press 2.4s ease-in-out infinite, pulse-red 2.4s ease-out infinite; }
.demo-tap { position: absolute; left: 62%; top: 60%; width: 26px; height: 26px; background: rgba(255, 255, 255, 0.8); border: 2px solid #fff; border-radius: 50%; animation: tap 2.4s ease-in-out infinite; }
.demo-phone { position: relative; width: 56px; height: 96px; display: grid; place-items: center; color: #ffcf5c; background: #0f0d16; border: 2px solid #ffcf5c; border-radius: 13px; animation: buzz 2.4s ease-in-out infinite; }
.how .demo-phone { color: #ffcf5c; }
.demo-phone i { position: absolute; inset: 0; border: 2px solid #ffcf5c; border-radius: 14px; opacity: 0; animation: ring 2.4s ease-out infinite; }
.demo-phone i + i { animation-delay: 0.5s; }
.how .demo-pop { position: absolute; left: 50%; top: 14px; margin-left: 18px; padding: 4px 9px; font-size: 12px; font-weight: 800; color: #17181a; white-space: nowrap; background: #fff; border-radius: 9px; animation: pop 2.4s ease-in-out infinite; }
.demo-roster { align-content: center; justify-items: stretch; gap: 10px; padding: 12px 16px; }
.demo-roster p { display: flex; align-items: center; gap: 8px; margin: 0; }
.how .demo-roster span { flex: 0 0 66px; font-size: 12.5px; color: #e8e6ea; white-space: nowrap; }
.demo-roster b { margin-left: auto; font-size: 13px; color: #fff; }
.demo-roster i { display: block; height: 9px; border-radius: 5px; }
.bar-a { background: #84dc5c; animation: fill-a 3.2s ease-out infinite; }
.bar-b { background: #f2543f; animation: fill-b 3.2s ease-out infinite; }
.bar-c { background: #ffcf5c; animation: fall-c 3.2s ease-out infinite; }
@keyframes press { 0%, 40%, 100% { transform: scale(1); } 55% { transform: scale(0.93); filter: brightness(1.25); } 70% { transform: scale(1.03); } }
@keyframes pulse-red { 0%, 45% { box-shadow: 0 0 0 0 rgba(242, 84, 63, 0.7); } 100% { box-shadow: 0 0 0 26px rgba(242, 84, 63, 0); } }
@keyframes tap { 0%, 100% { transform: translate(26px, 30px); opacity: 0; } 30% { transform: translate(0, 0); opacity: 1; } 45% { transform: scale(0.72); opacity: 1; } 65% { transform: scale(1); opacity: 1; } 85% { opacity: 0; } }
@keyframes buzz { 0%, 30%, 100% { transform: rotate(0); } 8% { transform: rotate(-5deg); } 16% { transform: rotate(5deg); } 24% { transform: rotate(-3deg); } }
@keyframes ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.7); opacity: 0; } }
@keyframes pop { 0%, 20% { transform: translateY(8px) scale(0.8); opacity: 0; } 32%, 80% { transform: none; opacity: 1; } 100% { transform: translateY(-4px); opacity: 0; } }
@keyframes fill-a { 0% { width: 0; } 50%, 100% { width: 58%; } }
@keyframes fill-b { 0% { width: 0; } 50%, 100% { width: 15%; } }
@keyframes fall-c { 0% { width: 62%; } 50%, 100% { width: 22%; } }


.moments { max-width: 1180px; margin: 0 auto 14px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.moments-art {
  min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 18px 20px;
  background: #2b1636 url('/art/battle.svg') center bottom / cover no-repeat;
}
.moments-art h2 { font-size: 22px; margin: 0; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }
.compare, .faqs, .final-cta { max-width: 1180px; margin-inline: auto; }
.compare .members td:not(:first-child), .compare .members th { text-align: center; }
.faqs { display: grid; gap: 8px; margin-bottom: 14px; }
.faqs h2, .how h2 { margin-bottom: 8px; }
.faq { margin: 0; padding: 12px 16px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; }
.final-cta { padding: 22px 16px 6px; text-align: center; }
.final-cta h2 { font-size: 22px; }
.final-cta .stack { max-width: 360px; margin: 12px auto; }

@media (min-width: 760px) {
  .legal:has(.blog-list) > .blog-head, .legal:has(.blog-list) > .blog-list { max-width: 1040px; }
  .blog-list { grid-template-columns: repeat(2, 1fr); }
  .blog-featured { grid-column: 1 / -1; flex-direction: row; }
  .blog-featured .blog-card-art { flex: 1.1; height: auto; min-height: 220px; }
  .blog-featured .blog-card-body { flex: 1; padding: 24px; justify-content: center; }
  .legal .blog-featured h2 { font-size: 24px; }
  .blog-related-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-box { padding: 34px 38px; }
}
@media (min-width: 1040px) {
  .blog-list { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .manage-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); }
  .moments-art { min-height: 220px; }
  .faqs { grid-template-columns: repeat(2, 1fr); }
  .faqs h2 { grid-column: 1 / -1; }
  h1 { font-size: 34px; }
  .hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; padding: 40px 34px; }
  .hero .stack { max-width: 400px; }
  .how ol { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1.7fr repeat(3, 1fr); }
  .stat-main, .stat:nth-child(4) { grid-column: auto; }
  .hero-banner { min-height: 170px; }
}
@media (min-width: 1040px) {
  .dash { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); column-gap: 16px; }
  .dash-head, .stats, .dash-wide { grid-column: 1 / -1; }
}
@media (min-width: 1280px) {
  .features { grid-template-columns: repeat(4, 1fr); }
}

/* Phones: navigation moves to a tab bar in thumb reach. */
@media (max-width: 699px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .topbar { padding-block: 8px; margin-bottom: 12px; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; flex-wrap: nowrap; gap: 2px; padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    background: var(--rail); border-top: 1px solid var(--line);
  }
  .nav a, .nav button {
    flex: 1 1 0; flex-direction: column; gap: 2px; justify-content: center; min-height: 54px;
    padding: 4px 1px; font-size: 11.5px; text-align: center;
  }
  .nav a.desktop-only { display: none; }
  #toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .hero-banner { flex-direction: column; }
  .hero-banner h1 { font-size: 22px; }
  .hero-crest { width: 60px; height: 68px; }
  .hero-crest b { font-size: 20px; }
  .members-head input { max-width: none; flex-basis: 100%; }
  .members thead { display: none; }
  .members, .members tbody, .members tr, .members td { display: block; }
  .members tr { border-top: 1px solid var(--line); padding: 10px 0; }
  .members td { border: 0; padding: 2px 0; }
  .members td[data-label] { display: flex; justify-content: space-between; gap: 12px; }
  .members td[data-label]::before { content: attr(data-label); color: var(--muted); }
  .m-actions { text-align: left; white-space: normal; padding-top: 6px; }
  .m-actions button { min-height: 40px; }
  .compare .members { display: table; }
  .compare .members thead { display: table-header-group; }
  .compare .members tbody { display: table-row-group; }
  .compare .members tr { display: table-row; }
  .compare .members td, .compare .members th { display: table-cell; padding: 8px 6px 8px 0; font-size: 13px; }
  .compare .members td { border-top: 1px solid var(--line); }
}
@media (min-width: 700px) and (max-width: 899px) {
  .nav svg { display: none; }
}

@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.03); } }
@keyframes flash { from { background: #7d0f0b; } to { background: #c11d14; } }
@media (prefers-reduced-motion: reduce) {
  .overlay, .war-button.armed, .how .demo-button, .demo-tap, .demo-phone, .demo-phone i, .how .demo-pop, .bar-a, .bar-b, .bar-c { animation: none; }
  .demo-tap, .demo-phone i { display: none; }
  .bar-a { width: 58%; }
  .bar-b { width: 15%; }
  .bar-c { width: 22%; }
}

/* Plans and payments */
.pkg-grid { display: grid; gap: 14px; margin-bottom: 14px; }
.pkg-grid .card { margin: 0; }
.pkg-on { border-color: var(--green); }
.pkg-price { margin: 0 0 10px; font-size: 30px; font-weight: 800; }
.pkg-lines { margin: 0 0 14px; padding-left: 18px; font-size: 14px; line-height: 1.8; }
.pkg-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.pkg-fields input { width: 100%; }
.pkg-check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 500; }
.pkg-check input { width: auto; }
.pay-period { margin: 14px 0; }
.pay-ways { display: grid; gap: 14px; }
.pay-way h3 { margin: 0 0 8px; font-size: 15px; }
.pay-text { white-space: pre-line; }
.use { margin-top: 12px; }
.use-bar { height: 6px; margin-top: 5px; overflow: hidden; background: rgba(128, 128, 128, 0.25); border-radius: 3px; }
.use-bar span { display: block; height: 100%; background: var(--green); }
.limit-box { margin-top: 16px; padding: 14px; border: 1px solid var(--amber); border-radius: 12px; }
@media (min-width: 900px) {
  .pkg-grid { grid-template-columns: repeat(3, 1fr); }
  .pay-ways { grid-template-columns: repeat(3, 1fr); }
}

/* Admin panel: one soft look, separate from the game-themed app */
.is-admin { background: #e9e9e8; }
.is-admin #root { padding: 0; }
.is-admin #root > .cp { max-width: none; margin: 0; }
.cp { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; background: #f6f6f5; color: #17181a; }
.cp-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; padding: 26px 18px; overflow-y: auto; }
.cp-logo { display: flex; align-items: center; gap: 10px; padding: 0 8px; font-size: 17px; font-weight: 800; color: inherit; text-decoration: none; }
.cp-logo img { width: 36px; height: 36px; border-radius: 10px; }
.cp-nav { display: grid; gap: 4px; }
.cp-nav button, .cp-exit { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; padding: 11px 14px; font: inherit; font-size: 14.5px; font-weight: 600; color: #72757a; text-align: left; text-decoration: none; background: none; border: 0; border-radius: 13px; cursor: pointer; }
.cp-nav button:hover, .cp-exit:hover { color: #17181a; }
.cp-nav button[aria-current] { color: #17181a; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07); }
.cp-nav em { margin-left: auto; min-width: 20px; padding: 1px 6px; font-size: 12px; font-style: normal; color: #fff; text-align: center; background: #e0483a; border-radius: 999px; }
.cp-exit { margin-top: auto; }
.cp-main { min-width: 0; padding: 22px 26px 40px 8px; }
.cp-top { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.cp-top h1 { flex: 1; min-width: 0; margin: 0; font-size: 30px; font-weight: 700; overflow-wrap: anywhere; }
.cp-search { display: flex; align-items: center; gap: 8px; width: 300px; height: 46px; margin: 0; padding: 0 16px; color: #8a8d92; background: #fff; border-radius: 999px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); }
.cp-search input { flex: 1; min-width: 0; padding: 0; color: #17181a; background: none; border: 0; outline: 0; box-shadow: none; }
.cp-me { flex: none; width: 46px; height: 46px; display: grid; place-items: center; font-weight: 700; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.cp-body.dash { max-width: none; margin: 0; }
.cp .card { margin: 0 0 14px; padding: 24px; background: #fff; border: 0; border-radius: 24px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); }
.cp .card h2 { margin: 0 0 12px; font-size: 20px; font-weight: 700; }
.cp .row.spread > h2 { margin: 0; }
.cp input:not([type="checkbox"]), .cp select, .cp textarea { border-radius: 12px; }
.cp .btn-primary { color: #fff; background: #17181a; border: 0; border-radius: 999px; }
.cp .chip, .cp .btn-sm { border-radius: 999px; }
.cp .members td { border-top-color: #eeeeec; }
.cp-grid { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 14px; align-items: start; }
.cp-col { min-width: 0; }
.cp-pill { padding: 8px 14px; font-size: 13.5px; color: #72757a; border: 1px solid #e4e4e2; border-radius: 999px; }
.cp-split { display: grid; grid-template-columns: 1fr 1fr; margin-top: 16px; padding: 8px; background: #f6f6f5; border: 1px solid #eeeeec; border-radius: 22px; }
.cp-big { min-width: 0; padding: 22px; border-radius: 18px; }
.cp-big-on { background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06); }
.cp-big-label { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; }
.cp-big-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.cp-big-row > b { font-size: clamp(38px, 5vw, 58px); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.cp-delta { font-size: 13.5px; font-weight: 600; color: #1f9d55; }
.cp-delta small { display: block; font-size: 12.5px; font-weight: 400; color: #72757a; }
.cp-mini { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; font-size: 13.5px; color: #72757a; }
.cp-mini b { color: #17181a; }
.cp-new { margin: 26px 0 2px; font-size: 18px; font-weight: 600; }
.cp-faces { display: flex; flex-wrap: wrap; gap: 14px 10px; margin-top: 18px; }
.cp-faces > div { width: 72px; display: grid; justify-items: center; gap: 8px; text-align: center; color: #72757a; }
.cp-faces .small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-face { width: 58px; height: 58px; display: grid; place-items: center; font-size: 22px; font-weight: 700; color: #fff; border-radius: 50%; }
.cp-more { font: inherit; font-size: 20px; color: #17181a; background: none; border: 1px solid #e4e4e2; cursor: pointer; }
.cp-chart-body { position: relative; margin-top: 12px; }
.cp-faded { position: absolute; left: 0; bottom: 0; margin: 0; font-size: 64px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; color: #d4d5d3; }
.cp-bars { display: flex; align-items: flex-end; gap: 8px; height: 190px; padding-left: 110px; }
.cp-slot { position: relative; flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.cp-bar { width: 100%; background: linear-gradient(180deg, #e4e4e2, #f6f6f5); border-radius: 8px 8px 0 0; }
.cp-bar-top { background: linear-gradient(180deg, #4cc764, #c9efd2); }
.cp-tip { margin-bottom: 6px; padding: 3px 9px; font-size: 12px; font-weight: 600; color: #fff; background: #3a3b3d; border-radius: 8px; }
.cp-list { margin: 0; padding: 0; list-style: none; }
.cp-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; font: inherit; color: inherit; text-align: left; background: none; border: 1px solid transparent; border-radius: 16px; cursor: pointer; }
.cp-row:hover { background: #fbfbfa; border-color: #eeeeec; }
.cp-tile { flex: none; width: 54px; height: 54px; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; color: #fff; border-radius: 13px; }
.cp-row-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cp-row-main b { overflow-wrap: anywhere; }
.cp-row-side { display: grid; justify-items: end; gap: 5px; }
.cp-badge { padding: 2px 8px; font-size: 12px; border: 1px solid; border-radius: 8px; }
.cp-ok { color: #1f9d55; background: #ecf9f1; border-color: #c9efd8; }
.cp-bad { color: #e0483a; background: #fdefed; border-color: #f8d3ce; }
.cp-outline { display: block; width: 100%; height: 46px; margin-top: 14px; font: inherit; font-size: 14.5px; font-weight: 600; color: #4a4c50; background: none; border: 1px solid #e4e4e2; border-radius: 999px; cursor: pointer; }
.cp-outline:hover { color: #17181a; border-color: #c9c9c6; }
@media (max-width: 1180px) {
  .cp-grid { grid-template-columns: minmax(0, 1fr); }
  .cp-search { width: 220px; }
}
@media (max-width: 760px) {
  .cp { display: block; }
  .cp-side { position: static; height: auto; gap: 12px; padding: 14px 16px 6px; overflow: visible; }
  .cp-nav { display: flex; gap: 6px; margin-inline: -16px; padding: 2px 16px 6px; overflow-x: auto; scrollbar-width: none; }
  .cp-nav button { flex: none; width: auto; padding: 9px 13px; white-space: nowrap; }
  .cp-exit { display: none; }
  .cp-main { padding: 6px 16px 32px; }
  .cp-top { flex-wrap: wrap; }
  .cp-top h1 { flex: 1 0 calc(100% - 60px); order: 0; font-size: 26px; }
  .cp-me { order: 1; }
  .cp-search { order: 2; flex: 1; width: auto; }
  .cp .card { padding: 18px; border-radius: 20px; }
  .cp-split { grid-template-columns: 1fr; }
  .cp-bars { gap: 4px; height: 150px; padding-left: 0; }
  .cp-faded { position: static; margin-bottom: 8px; font-size: 44px; }
}

/* Home page: free first */
.home-eyebrow { display: inline-block; margin-bottom: 10px; padding: 5px 12px; font-size: 13px; font-weight: 700; color: #3a2400; background: linear-gradient(180deg, #ffdc7a, #eeb02f); border-radius: 999px; }
.home-free, .home-app { max-width: 1180px; margin: 0 auto 14px; }
.home-free { display: grid; gap: 14px; padding: 20px; background: var(--panel); border: 1px solid var(--green); border-radius: var(--radius); }
.home-free h2 { margin: 0 0 2px; }
.home-free p { margin: 0; }
.home-free-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.home-free-tiles div { display: grid; padding: 12px 14px; background: var(--panel-2); border-radius: 12px; }
.home-free-tiles b { font-size: 28px; font-weight: 800; line-height: 1.1; color: var(--green); }
.home-free-tiles span { font-size: 13px; color: var(--muted); }

.compare-hi { position: relative; margin-bottom: 14px; padding: 32px 22px 26px; overflow: hidden; color: #f2f3ef; text-align: center; background: linear-gradient(rgba(16, 10, 28, 0.86), rgba(16, 10, 28, 0.94)), #1b1425 url('/art/battle.svg') center / cover no-repeat; border-radius: 20px; }
.compare-hi h2 { margin: 0 0 6px; font-size: 30px; font-weight: 800; color: #fff; }
.compare-lead { max-width: 560px; margin: 0 auto 18px; color: #d7d4dc; }
.compare-hi .members { max-width: 900px; margin: 0 auto; }
.compare-hi .members th { padding: 12px 8px; font-size: 14px; color: #d7d4dc; }
.compare-hi .members td { padding: 12px 8px; color: #e8e6ea; border-top-color: rgba(255, 255, 255, 0.12); }
.compare-hi .members td.m-name { font-weight: 600; color: #fff; text-align: left; }
.compare-hi .cmp-win { background: rgba(132, 220, 92, 0.14); border-inline: 2px solid #84dc5c; }
.compare-hi th.cmp-win { font-size: 15px; color: #fff; background: #3f9a33; border-top: 2px solid #84dc5c; border-radius: 12px 12px 0 0; }
.compare-hi tbody tr:last-child .cmp-win { border-bottom: 2px solid #84dc5c; border-radius: 0 0 12px 12px; }
.cmp-yes { display: inline-grid; place-items: center; width: 26px; height: 26px; font-weight: 800; color: #0d1a09; background: #84dc5c; border-radius: 50%; box-shadow: 0 0 12px rgba(132, 220, 92, 0.6); }
.cmp-no { color: #8d8995; }
.compare-cta { margin-top: 20px; }


.home-app { display: grid; gap: 24px; align-items: center; padding: 28px 24px 0; overflow: hidden; color: #f2f3ef; background: radial-gradient(circle at 80% 20%, #3b2a5e, #171222 70%); border-radius: 20px; }
.home-app h2 { margin: 0 0 8px; font-size: 28px; font-weight: 800; color: #fff; }
.home-app p { color: #d7d4dc; }
.home-app .trust { color: #fff; }
.home-app .trust li::before { color: #84dc5c; }
.home-app-btn { gap: 8px; margin-top: 16px; padding: 13px 22px; font-size: 16px; }
.home-app .steps { margin: 12px 0 0; }
.home-phone { justify-self: center; width: 250px; height: 330px; padding: 10px 10px 0; background: #0b0b0e; border: 2px solid #4a4658; border-bottom: 0; border-radius: 34px 34px 0 0; box-shadow: 0 0 50px rgba(255, 207, 92, 0.25); }
.home-screen { position: relative; height: 100%; padding: 26px 12px 0; text-align: center; background: linear-gradient(180deg, #4b2d74, #d9743d); border-radius: 25px 25px 0 0; }
.home-time { font-size: 38px; font-weight: 300; color: #fff; }
.home-note { display: grid; gap: 2px; margin-top: 14px; padding: 10px; font-size: 12px; color: #17181a; text-align: left; background: rgba(255, 255, 255, 0.94); border-radius: 14px; animation: home-buzz 3s ease-in-out infinite; }
.home-note p { display: flex; align-items: center; gap: 6px; margin: 0 0 3px; color: #55585c; }
.home-note p img { width: 16px; height: 16px; border-radius: 4px; }
.home-note p span { margin-left: auto; }
.home-note div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.home-note i { padding: 5px; font-style: normal; font-weight: 600; text-align: center; background: #ecebea; border-radius: 8px; }
.home-icon { position: absolute; left: 50%; bottom: 18px; width: 54px; height: 54px; margin-left: -27px; border-radius: 14px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); }
@keyframes home-buzz { 0%, 78%, 100% { transform: translateX(0); } 81%, 87%, 93% { transform: translateX(-3px); } 84%, 90%, 96% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .home-note { animation: none; } }
@media (min-width: 760px) {
  .home-free { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; }
  .home-free-tiles { grid-template-columns: repeat(4, 1fr); }
  .home-app { grid-template-columns: minmax(0, 1fr) 280px; padding: 36px 40px 0; }
  .home-app-text { padding-bottom: 36px; }
}
@media (max-width: 640px) {
  .compare-hi { padding: 24px 12px 20px; }
  .compare-hi h2 { font-size: 24px; }
  .compare-hi .members td, .compare-hi .members th { padding: 9px 4px; font-size: 12px; }
  .compare-hi th.cmp-win { font-size: 12px; }
}

/* Home page: questions, closing call and footer */
.faqs { display: grid; gap: 20px; max-width: 1180px; margin: 28px auto; }
.faqs-head h2 { margin: 0 0 6px; font-size: 28px; font-weight: 800; }
.faqs-list { display: grid; gap: 10px; align-content: start; }
.faq { margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; transition: border-color 0.2s; }
.faq[open] { border-color: var(--green); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; font-weight: 700; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 26px; height: 26px; display: grid; place-items: center; font-size: 18px; font-weight: 500; color: var(--green); background: var(--panel-2); border-radius: 50%; transition: transform 0.2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 18px 16px; font-size: 14.5px; color: var(--muted); }

.final-cta { max-width: 1180px; margin: 0 auto 14px; padding: 44px 22px; color: #fff; text-align: center; background: linear-gradient(rgba(16, 10, 28, 0.55), rgba(16, 10, 28, 0.82)), #1b1425 url('/art/hero.svg') center / cover no-repeat; border-radius: 20px; }
.final-cta h2 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 38px); font-weight: 800; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
.final-cta p { margin: 0; color: #e8e6ea; }
.final-cta .stack { max-width: 340px; margin: 18px auto 14px; }
.final-cta .trust { justify-content: center; color: #fff; }
.final-cta .trust li::before { color: #84dc5c; }

.home-foot { display: grid; gap: 12px; max-width: 1180px; margin: 0 auto; padding: 20px 4px 28px; text-align: left; border-top: 1px solid var(--line); }
.home-foot-brand { display: flex; align-items: center; gap: 12px; }
.home-foot-brand img { width: 40px; height: 40px; border-radius: 11px; }
.home-foot-brand p { margin: 0; }
.home-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.home-foot nav a { font-weight: 600; color: var(--text); text-decoration: none; }
.home-foot nav a:hover { color: var(--green); }
.home-foot-note { margin: 0; }
@media (min-width: 900px) {
  .faqs { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
  .home-foot { grid-template-columns: 1fr auto; align-items: center; }
  .home-foot-note { grid-column: 1 / -1; }
}

/* Compact spacing */
.cp { grid-template-columns: 212px minmax(0, 1fr); }
.cp-side { gap: 14px; padding: 16px 12px; }
.cp-logo { font-size: 15.5px; }
.cp-logo img { width: 30px; height: 30px; border-radius: 8px; }
.cp-nav { gap: 2px; }
.cp-nav button, .cp-exit { gap: 10px; padding: 8px 12px; font-size: 14px; border-radius: 11px; }
.cp-main { padding: 14px 18px 24px 4px; }
.cp-top { gap: 10px; margin-bottom: 12px; }
.cp-top h1 { font-size: 24px; }
.cp-search { width: 260px; height: 40px; padding: 0 14px; }
.cp-me { width: 40px; height: 40px; }
.cp .card { margin-bottom: 10px; padding: 16px 18px; border-radius: 18px; }
.cp .card h2 { margin-bottom: 8px; font-size: 17px; }
.cp-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 10px; }
.cp-pill { padding: 5px 11px; font-size: 12.5px; }
.cp-split { margin-top: 10px; padding: 6px; border-radius: 16px; }
.cp-big { padding: 14px 16px; border-radius: 12px; }
.cp-big-row { gap: 10px; margin-top: 6px; }
.cp-big-row > b { font-size: clamp(30px, 3.6vw, 44px); }
.cp-mini { margin-top: 10px; }
.cp-new { margin-top: 14px; font-size: 16px; }
.cp-faces { margin-top: 10px; }
.cp-faces > div { width: 62px; gap: 4px; }
.cp-face { width: 44px; height: 44px; font-size: 17px; }
.cp-more { font-size: 17px; }
.cp-bars { height: 130px; padding-left: 84px; }
.cp-faded { font-size: 46px; }
.cp-row { gap: 10px; padding: 5px 6px; }
.cp-tile { width: 42px; height: 42px; font-size: 11px; border-radius: 10px; }
.cp-outline { height: 38px; margin-top: 8px; padding: 0; font-size: 14px; }
.cp .members td { padding-block: 7px; }
@media (max-width: 1180px) {
  .cp-grid { grid-template-columns: minmax(0, 1fr); }
  .cp-search { width: 200px; }
}

/* Phones: a slim header, and every section one tap away along the bottom */
@media (max-width: 760px) {
  .cp { display: block; }
  .cp-side { position: sticky; top: 0; z-index: 20; flex-direction: row; align-items: center; justify-content: space-between; height: auto; padding: 8px 14px; overflow: visible; background: #f6f6f5; }
  .cp-exit { display: flex; width: auto; margin: 0; padding: 6px 8px; font-size: 13px; }
  .cp-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 2px; margin: 0; padding: 5px 6px calc(5px + env(safe-area-inset-bottom)); overflow-x: auto; background: #fff; box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08); scrollbar-width: none; }
  .cp-nav button { position: relative; flex: 0 0 66px; flex-direction: column; justify-content: center; gap: 2px; width: auto; padding: 5px 2px; font-size: 11px; text-align: center; white-space: nowrap; }
  .cp-nav button[aria-current] { background: #eef7e8; box-shadow: none; }
  .cp-nav em { position: absolute; top: 2px; right: 8px; margin: 0; padding: 0 5px; font-size: 10px; }
  .cp-main { padding: 4px 12px 84px; }
  .cp-top { flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
  .cp-top h1 { flex: 1 0 100%; order: 0; font-size: 21px; }
  .cp-search { order: 1; flex: 1; width: auto; height: 38px; }
  .cp-me { order: 3; width: 38px; height: 38px; }
  .cp .card { padding: 14px; border-radius: 16px; }
  .cp-split { grid-template-columns: 1fr 1fr; }
  .cp-big { padding: 10px; }
  .cp-big-label { gap: 5px; font-size: 13px; }
  .cp-big-row { gap: 6px; }
  .cp-bars { gap: 3px; height: 110px; padding-left: 0; }
  .cp-faded { position: static; margin-bottom: 6px; font-size: 34px; }

  .dash-tabs { position: sticky; top: 54px; z-index: 9; flex-wrap: nowrap; margin: 0 -16px 10px; padding: 6px 16px; overflow-x: auto; background: var(--bg); scrollbar-width: none; }
  .dash-tabs .chip { flex: none; padding: 7px 12px; }
  .hero-banner { flex-direction: row; align-items: flex-start; flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
  .hero-id { gap: 10px; }
  .hero-crest { width: 44px; height: 50px; }
  .hero-crest b { font-size: 15px; margin-top: -4px; }
  .hero-banner h1 { margin-bottom: 4px; font-size: 19px; }
  .hero-date { font-size: 11.5px; }
  .hero-chip { padding: 2px 8px; font-size: 11.5px; }
  .dash .card { padding: 14px; }
}
.limit-nudge { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 10px 14px; background: var(--panel); }

/* Guides: same width as the rest of the site */
#root.blog > :not(.topbar) { max-width: 1180px; margin-inline: auto; }
#root.blog > main { display: block; width: 100%; }
.blog h1 { font-size: clamp(27px, 4vw, 38px); font-weight: 800; line-height: 1.15; }
.blog-head { margin: 14px 0; padding: clamp(24px, 5vw, 44px); border-radius: 20px; }
.blog-head h1 { color: #fff; }
.blog-head .home-eyebrow { text-shadow: none; }
.blog-cats { display: flex; gap: 8px; margin-bottom: 14px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.blog-cats a { flex: none; padding: 7px 14px; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; }
.blog-cats a[aria-current] { color: var(--green); border-color: var(--green); background: var(--active); }
.blog-card { border-radius: 16px; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.blog-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08); }
.blog-card-art img { width: 100%; height: 100%; object-fit: cover; }
.blog-card h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.blog-meta span { margin-right: 6px; font-weight: 700; color: var(--green); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 6px; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs i { font-style: normal; opacity: 0.6; }
.crumbs span { overflow: hidden; max-width: 46ch; white-space: nowrap; text-overflow: ellipsis; }
.blog-layout { display: grid; gap: 16px; align-items: start; }
.blog-post { min-width: 0; }
.blog-post-head { margin: 6px 0 14px; }
.blog-cover { display: block; width: 100%; max-height: 420px; margin-bottom: 14px; object-fit: cover; border-radius: 16px; }
.blog-image { display: block; max-width: 100%; height: auto; margin: 18px auto; border-radius: 12px; }
.blog-box { padding: clamp(18px, 4vw, 40px); border-radius: 16px; overflow-wrap: anywhere; }
.blog-box h2 { scroll-margin-top: 70px; }
.blog-faqs { margin-top: 26px; }
.blog-faqs .faq { margin-bottom: 8px; }
.blog-box .faq p { margin: 0; font-size: 15px; }
.blog-toc-mobile { margin-bottom: 12px; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.blog-toc-mobile summary { font-weight: 700; cursor: pointer; }
.blog-toc-mobile ol, .blog-toc ol { margin: 8px 0 0; padding-left: 20px; font-size: 14.5px; line-height: 1.7; }
.blog-toc a, .blog-toc-mobile a { color: var(--text); text-decoration: none; }
.blog-toc a:hover { color: var(--green); }
.blog-side { display: none; }
.blog-toc { padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.blog-side .blog-cta { margin: 0; }
.blog-side .blog-cta h3 { margin: 0 0 6px; color: #fff; font-size: 17px; }
.blog-side .blog-cta p { margin: 0 0 12px; font-size: 14px; color: #e8f8df; }
.blog-related { margin: 26px 0 14px; }
.blog-missing { padding: 60px 0; text-align: center; }
.blog .home-foot { margin-top: 20px; }
@media (min-width: 980px) {
  .blog-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .blog-side { position: sticky; top: 70px; display: grid; gap: 14px; }
  .blog-toc-mobile { display: none; }
}
@media (max-width: 699px) {
  #root.blog { padding-bottom: 76px; }
  .blog-head { margin-top: 10px; border-radius: 16px; }
  .blog-box > p, .blog-box li { font-size: 16px; line-height: 1.7; }
  .crumbs span { max-width: 22ch; }
}

/* Post editor and SEO settings */
.post-edit { display: grid; gap: 10px; align-items: start; }
.post-main, .post-side { min-width: 0; }
.post-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.post-tools { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 0; background: #fff; }
.post-tools .btn-sm { padding: 4px 9px; font-size: 13px; }
.post-edit textarea, .post-edit input:not([type="checkbox"]), .seo-grid textarea, .seo-grid input { width: 100%; }
.serp { padding: 10px 12px; margin-bottom: 4px; font-size: 13px; background: #fafaf9; border: 1px solid #eeeeec; border-radius: 12px; }
.serp span { display: block; color: #4d5156; overflow-wrap: anywhere; }
.serp b { display: block; margin: 2px 0; font-size: 16px; font-weight: 500; color: #1a0dab; overflow-wrap: anywhere; }
.serp p { margin: 0; color: #4d5156; }
.seo-checks { margin: 12px 0; padding: 0; font-size: 13px; list-style: none; }
.seo-checks li { position: relative; padding: 2px 0 2px 20px; }
.seo-checks li::before { position: absolute; left: 0; font-weight: 800; }
.seo-ok::before { content: '✓'; color: #1f9d55; }
.seo-no { color: var(--muted); }
.seo-no::before { content: '○'; color: #d29a1f; }
.seo-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 10px; }
.cp .seo-summary .card { display: grid; margin: 0; }
.seo-summary b { font-size: 26px; font-weight: 700; line-height: 1.1; }
.seo-summary span { font-size: 13px; color: var(--muted); }
.seo-grid { display: grid; gap: 10px; margin-bottom: 10px; }
.seo-grid .card { margin: 0; }
@media (min-width: 760px) {
  .seo-summary { grid-template-columns: repeat(4, 1fr); }
  .seo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .post-edit { grid-template-columns: minmax(0, 1fr) 340px; }
}

/* Dashboard charts. These three colours pass the colour-blind check, and labels back them up. */
.cp { --ch-green: #1f7a4a; --ch-gold: #e0a030; --ch-purple: #7b5bc4; --ch-rest: #e4e5e1; }
.ch-range { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; grid-column: 1 / -1; margin-bottom: 10px; }
.ch-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; grid-column: 1 / -1; margin-bottom: 10px; }
.cp .ch-kpi { position: relative; display: grid; gap: 2px; margin: 0; overflow: hidden; }
.ch-kpi-label { font-size: 13.5px; font-weight: 600; color: #4a4c50; }
.ch-kpi b { font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.ch-spark { display: block; width: 100%; height: 28px; margin-top: 6px; }
.ch-spark polyline { fill: none; stroke: var(--ch-green); stroke-width: 2; stroke-linejoin: round; }
.ch-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ch-two .card { min-width: 0; }
.ch-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ch-head b { font-size: 22px; font-weight: 700; }
.ch-plot { position: relative; height: 170px; margin-top: 4px; border-bottom: 1px solid #e4e4e2; }
.ch-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ch-area { fill: var(--ch-green); opacity: 0.12; }
.ch-line { fill: none; stroke: var(--ch-green); stroke-width: 2; stroke-linejoin: round; }
.ch-hits { position: absolute; inset: 0; display: flex; }
.ch-hits i { flex: 1; }
.ch-hits i:hover { background: rgba(31, 122, 74, 0.12); box-shadow: inset 1px 0 0 var(--ch-green); }
.ch-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: #72757a; }
.ch-bars, .ch-stack { display: flex; align-items: stretch; gap: 2px; height: 130px; margin-top: 4px; border-bottom: 1px solid #e4e4e2; }
.ch-bars > div { flex: 1; min-width: 0; display: flex; align-items: flex-end; }
.ch-bars > div:hover { background: #f3f3f1; }
.ch-bars span { width: 100%; background: var(--ch-green); border-radius: 4px 4px 0 0; }
.ch-stack > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ch-stack span { flex-basis: 0; min-height: 2px; }
.ch-stack span:first-child { border-radius: 4px 4px 0 0; }
.ch-coming { background: var(--ch-green); }
.ch-cant { background: var(--ch-gold); }
.ch-none { background: var(--ch-purple); }
.ch-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12.5px; color: #4a4c50; }
.ch-legend span { display: flex; align-items: center; gap: 5px; }
.ch-legend i { width: 10px; height: 10px; border-radius: 3px; }
.ch-heat { display: grid; grid-template-columns: 30px repeat(8, 1fr); gap: 2px; align-items: center; }
.ch-heat-day { font-size: 11.5px; color: #72757a; }
.ch-heat i { height: 18px; border-radius: 3px; }
.ch-h0 { background: #f0f0ee; }
.ch-h1 { background: #bfe0cc; }
.ch-h2 { background: #7fbf9b; }
.ch-h3 { background: #3f9a68; }
.ch-h4 { background: #1f7a4a; }
.ch-heat-axis { margin-left: 32px; }
.ch-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ch-list li { display: grid; grid-template-columns: minmax(0, 92px) 1fr 24px; align-items: center; gap: 8px; font-size: 13.5px; }
.ch-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-list i { height: 10px; overflow: hidden; background: #f0f0ee; border-radius: 4px; }
.ch-list u { display: block; height: 100%; background: var(--ch-green); border-radius: 4px; }
.ch-list b { text-align: right; }
.ch-reach { display: flex; align-items: baseline; gap: 10px; }
.ch-reach b { font-size: 34px; font-weight: 700; line-height: 1.1; }
.ch-meter { height: 10px; margin-top: 8px; overflow: hidden; background: var(--ch-rest); border-radius: 5px; }
.ch-meter span { display: block; height: 100%; background: var(--ch-green); border-radius: 5px; }
.ch-feed { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ch-feed li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.ch-feed .cp-face { flex: none; width: 30px; height: 30px; font-size: 13px; }
.ch-feed span:last-child { min-width: 0; overflow-wrap: anywhere; }
.ch-feed small { display: block; color: #72757a; }
#chartTip { position: fixed; z-index: 70; max-width: 240px; padding: 5px 9px; font-size: 12.5px; color: #fff; pointer-events: none; background: #2c2d2f; border-radius: 7px; }
@media (max-width: 1180px) {
  .ch-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .ch-two { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ch-plot { height: 130px; }
  .ch-kpi b { font-size: 25px; }
}

/* Adding members and setting rights */
.add-member-row { display: grid; grid-template-columns: 1.4fr 1fr 90px 1.4fr auto; gap: 10px; align-items: end; }
.add-member-row input, .add-member-row select { width: 100%; }
.perm-grid { display: grid; gap: 10px; margin-bottom: 10px; }
.perm-grid .card { min-width: 0; margin: 0; }
.perm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.perm-table th { padding: 4px; font-size: 12.5px; font-weight: 600; color: #72757a; text-align: center; }
.perm-table th:first-child { text-align: left; }
.perm-table td { padding: 7px 4px; text-align: center; border-top: 1px solid #eeeeec; }
.perm-table td:first-child { text-align: left; }
.perm-table input { width: 17px; height: 17px; margin: 0; accent-color: #1f7a4a; }
@media (min-width: 1000px) {
  .perm-grid { grid-template-columns: 1fr 1.3fr; }
}
@media (max-width: 900px) {
  .add-member-row { grid-template-columns: 1fr 1fr; }
  .add-member-row .btn-primary { grid-column: 1 / -1; }
}

/* Get the app, always in the top bar */
.top-install, .top-start { order: 4; flex: none; display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding: 7px 14px; font-size: 14px; font-weight: 700; white-space: nowrap; border-radius: 10px; }
.top-start { display: none; }
.topbar.past-hero .top-install { display: none; }
.topbar.past-hero .top-start { display: inline-flex; }
.top-install svg { width: 17px; height: 17px; }
@media (max-width: 699px) {
  .top-install, .top-start { margin-left: auto; padding: 6px 11px; font-size: 13px; }
}

/* Email sign-in */
.auth-card { max-width: 420px; margin: 24px auto; }
.auth-card h1 { font-size: 24px; font-weight: 800; }
.auth-card input { width: 100%; }
.auth-or { position: relative; margin: 14px 0 4px; text-align: center; font-size: 13px; color: var(--muted); }
.auth-or span { position: relative; padding: 0 10px; background: var(--panel); }
.auth-or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.auth-links { display: flex; justify-content: space-between; gap: 10px; margin: 14px 0 0; }
.link-btn { padding: 0; font-size: 14px; font-weight: 600; color: var(--green); background: none; border: 0; }
.seo-grid .pkg-check { justify-content: flex-start; }
.seo-grid .pkg-check input { flex: none; width: auto; }
.auth-card .btn-google { border-color: var(--line); }

/* Numbers that stand out */
.home-free { color: #fff; background: linear-gradient(120deg, #1f6b2c, #2f8f3a 55%, #d29a1f 130%); border: 0; border-radius: 20px; padding: clamp(18px, 3vw, 28px); box-shadow: 0 10px 28px rgba(31, 107, 44, 0.3); }
.home-free h2 { color: #fff; font-size: clamp(21px, 3vw, 27px); font-weight: 800; }
.home-free p { color: #e3f5da; }
.home-free-tiles div { position: relative; padding: 16px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 16px; transition: transform 0.2s; }
.home-free-tiles div:hover { transform: translateY(-3px); }
.home-free-tiles b { font-size: clamp(34px, 4.4vw, 46px); font-weight: 800; color: #ffdc7a; font-variant-numeric: tabular-nums; }
.home-free-tiles span { color: #fff; }
.home-free-tiles .home-free-icon { position: absolute; top: 12px; right: 12px; color: rgba(255, 255, 255, 0.7); }

/* Phone in the header */
.hero-phone { justify-self: center; width: min(280px, 100%); margin-top: 18px; padding: 10px; background: #0b0b0e; border: 2px solid #4a4658; border-radius: 36px; box-shadow: 0 0 60px rgba(255, 207, 92, 0.35); animation: phone-float 5s ease-in-out infinite; }
.hero-phone-screen { padding: 22px 12px 14px; color: #fff; text-align: center; background: linear-gradient(180deg, #4b2d74, #b2553a 90%); border-radius: 26px; }
.hero-note { margin-top: 12px; animation: home-buzz 3s ease-in-out infinite; }
.hero-note div { grid-template-columns: 1fr 1fr; }
.hero-note button { padding: 8px 4px; font-size: 12.5px; font-weight: 700; color: #17181a; background: #ecebea; border: 0; border-radius: 9px; transition: transform 0.15s, background 0.15s; }
.hero-note button:hover { background: #dff3d4; transform: translateY(-1px); }
.hero-note em { grid-column: 1 / -1; padding: 7px; font-style: normal; font-weight: 700; text-align: center; color: #1f6b2c; background: #e4f6dc; border-radius: 9px; }
.hero-phone-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.hero-phone-counts div { padding: 7px 2px; background: rgba(0, 0, 0, 0.32); border-radius: 10px; }
.hero-phone-counts b { display: block; font-size: 20px; }
.hero-phone-counts span { font-size: 11px; }
.hero-phone-tip { margin: 10px 0 0; font-size: 12px; opacity: 0.9; }
@keyframes phone-float { 0%, 100% { transform: translateY(0) rotate(1.5deg); } 50% { transform: translateY(-8px) rotate(-1deg); } }
@media (min-width: 760px) { .hero-phone { margin-top: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-phone, .hero-note { animation: none; } }

/* FAQ side */
@media (min-width: 900px) { .faqs-head { position: sticky; top: 70px; align-self: start; } }

/* Install guide */
.install-guide { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(10, 10, 14, 0.6); }
.install-box { position: relative; width: min(420px, 100%); padding: 24px; color: var(--text); background: var(--panel); border-radius: 18px; box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35); }
.install-box img { border-radius: 13px; }
.install-box h2 { margin: 10px 0 6px; font-size: 21px; }
.install-close { position: absolute; top: 12px; right: 12px; }

/* Sign-in page */
.auth-page { display: grid; gap: 14px; max-width: 900px; margin: 18px auto; }
.auth-art { display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; padding: 24px; color: #fff; background: linear-gradient(rgba(16, 10, 28, 0.25), rgba(16, 10, 28, 0.85)), #1b1425 url('/art/hero.svg') center / cover no-repeat; border-radius: 20px; }
.auth-art .home-eyebrow { align-self: flex-start; }
.auth-art h2 { margin: 0 0 10px; font-size: clamp(23px, 3vw, 31px); font-weight: 800; color: #fff; }
.auth-art .trust { display: grid; gap: 4px; margin: 0; color: #fff; }
.auth-art .trust li::before { color: #84dc5c; }
.auth-page .auth-card { width: 100%; max-width: none; margin: 0; padding: 26px; border-radius: 20px; }
.auth-card .btn-google { gap: 10px; font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.auth-card .btn-google:hover { background: #f7f8f4; }
@media (min-width: 760px) {
  .auth-page { grid-template-columns: 1fr 1fr; margin-top: 34px; }
  .auth-art { min-height: 460px; }
}

/* Create alliance page */
.create-page { display: grid; gap: 14px; max-width: 980px; margin: 14px auto; }
.create-head { padding: clamp(22px, 4vw, 34px); color: #fff; background: linear-gradient(rgba(16, 10, 28, 0.3), rgba(16, 10, 28, 0.72)), #1b1425 url('/art/battle.svg') center / cover no-repeat; border-radius: 20px; }
.create-head h1 { margin: 0 0 4px; font-size: clamp(27px, 4vw, 38px); font-weight: 800; color: #fff; }
.create-head p { margin: 0; color: #e8e6ea; }
.create-form { margin: 0; padding: 22px; border-radius: 20px; }
.create-form input { width: 100%; }
.create-side { display: grid; gap: 12px; align-content: start; }
.create-preview { display: flex; align-items: center; gap: 12px; padding: 16px; color: #fff; background: linear-gradient(120deg, #1f6b2c, #2f8f3a); border-radius: 18px; box-shadow: 0 8px 22px rgba(31, 107, 44, 0.25); overflow-wrap: anywhere; }
.create-crest { flex: none; display: grid; place-items: center; min-width: 58px; height: 58px; padding: 0 6px; font-size: 14px; font-weight: 800; color: #3a2400; background: linear-gradient(180deg, #ffdc7a, #eeb02f); border-radius: 14px; }
.create-preview b { display: block; font-size: 19px; }
.create-preview span:not(.create-crest) { font-size: 13px; color: #e3f5da; }
.create-steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.create-steps li { position: relative; display: grid; padding: 12px 14px 12px 50px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; counter-increment: step; }
.create-steps li::before { content: counter(step); position: absolute; left: 12px; top: 12px; display: grid; place-items: center; width: 28px; height: 28px; font-weight: 800; color: var(--green); background: var(--active); border-radius: 50%; }
.create-steps span { font-size: 13.5px; color: var(--muted); }
@media (min-width: 820px) {
  .create-page { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .create-head { grid-column: 1 / -1; }
}
.auth-page .auth-card { display: flex; flex-direction: column; justify-content: center; }

/* A slim, real-looking phone in the header */
.hero-phone { position: relative; width: 248px; padding: 8px; background: linear-gradient(145deg, #3a3744, #0b0b0e 35%); border: 1px solid #5c586b; border-radius: 46px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 50px rgba(255, 207, 92, 0.28); }
.hero-phone::before { content: ""; position: absolute; left: -3px; top: 104px; width: 3px; height: 56px; background: #3a3744; border-radius: 2px 0 0 2px; box-shadow: 0 -40px 0 0 #3a3744; }
.hero-phone::after { content: ""; position: absolute; right: -3px; top: 126px; width: 3px; height: 72px; background: #3a3744; border-radius: 0 2px 2px 0; }
.hero-phone-screen { display: flex; flex-direction: column; min-height: 500px; padding: 8px 10px 14px; background: linear-gradient(180deg, #33205a 0%, #6d3a78 52%, #d9743d 100%); border-radius: 38px; }
.phone-status { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font-size: 11px; font-weight: 700; }
.phone-status span:first-child { text-align: left; padding-left: 10px; }
.phone-status span:last-child { text-align: right; padding-right: 8px; }
.phone-island { width: 74px; height: 22px; background: #000; border-radius: 12px; }
.hero-phone-date { margin-top: 16px; font-size: 12.5px; font-weight: 600; opacity: 0.9; }
.hero-phone .home-time { font-size: 50px; font-weight: 300; line-height: 1.1; }
.hero-note { margin-top: 14px; }
.hero-phone-counts { margin-top: auto; padding-top: 12px; }
.hero-phone-tip { margin-top: 8px; }
.hero-phone-tip::after { content: ""; display: block; width: 88px; height: 4px; margin: 10px auto 0; background: rgba(255, 255, 255, 0.8); border-radius: 2px; }

/* Alerts on the sign-in panel */
.auth-art { justify-content: flex-end; gap: 0; }
.auth-notes { display: grid; gap: 10px; margin-bottom: auto; padding-bottom: 18px; }
.auth-notes .home-note { animation: note-in 0.6s ease-out both; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); }
.auth-notes .home-note:nth-child(2) { width: 92%; justify-self: end; animation-delay: 0.35s; opacity: 0.96; }
.auth-art .home-eyebrow { margin-top: 4px; }
@keyframes note-in { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .auth-notes .home-note { animation: none; } }

/* Bento section */
.bento { max-width: 1180px; margin: 22px auto; }
.bento-head { max-width: 640px; margin-bottom: 14px; }
.bento-head h2 { margin: 0; font-size: clamp(25px, 3.6vw, 36px); font-weight: 800; }
.bento-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bento-tile { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; transition: transform 0.2s, box-shadow 0.2s; }
.bento-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.09); }
.bento-tile h3 { margin: 0; font-size: 18px; font-weight: 800; }
.bento-tile p { margin: 0; font-size: 14.5px; color: var(--muted); }
.bento-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; color: var(--green); background: var(--active); border-radius: 12px; }
.bento-lead, .bento-wide, .bento-dark { grid-column: span 2; }
.bento-lead { color: #fff; background: linear-gradient(rgba(16, 10, 28, 0.6), rgba(16, 10, 28, 0.9)), #1b1425 url('/art/hero.svg') center / cover no-repeat; border: 0; }
.bento-lead h3 { font-size: clamp(21px, 2.6vw, 27px); color: #fff; }
.bento-lead p { font-size: 15.5px; color: #e8e6ea; }
.bento-lead .home-note { max-width: 340px; margin-top: auto; }
.bento-green { color: #fff; background: linear-gradient(135deg, #2f8f3a, #1f6b2c); border: 0; }
.bento-green h3 { color: #fff; }
.bento-green p { color: #e3f5da; }
.bento-bars { display: grid; gap: 7px; margin-top: auto; padding-top: 12px; }
.bento-bars i { display: block; height: 10px; background: #ffdc7a; border-radius: 5px; }
.bento-bars i:nth-child(2) { background: #ff9d8a; }
.bento-bars i:nth-child(3) { background: rgba(255, 255, 255, 0.55); }
.bento-ranks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bento-ranks span { padding: 5px 14px; font-weight: 800; color: #3a2400; background: linear-gradient(180deg, #ffdc7a, #eeb02f); border-radius: 10px; }
.bento-ranks span:nth-child(n + 3) { color: var(--text); background: var(--panel-2); }
.bento-dark { color: #fff; background: #17181a; border: 0; }
.bento-dark h3 { color: #fff; }
.bento-dark p { color: #c9cbc6; }
.bento-dark .bento-icon { color: #84dc5c; background: rgba(132, 220, 92, 0.15); }
@media (min-width: 900px) {
  .bento-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(190px, auto); }
  .bento-lead { grid-row: span 2; }
  .bento-dark { grid-column: span 1; }
}
.bento-lead .home-note p { margin: 0 0 3px; font-size: 12px; color: #55585c; }
.bento-lead .home-note p b { color: #17181a; }
.bento-lead .home-note > span { color: #17181a; }

/* Icons on the alliance dashboard */
.dash-tabs .chip { display: inline-flex; align-items: center; gap: 6px; }
.dash-tabs .chip svg { flex: none; width: 16px; height: 16px; }
.card-title { display: flex; align-items: center; gap: 9px; }
.card-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; color: var(--green); background: var(--active); border-radius: 9px; }
.card-icon svg { width: 17px; height: 17px; }

/* Plan cards in the app */
.pkg-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; transition: transform 0.2s, box-shadow 0.2s; }
.pkg-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12); }
.pkg-top { position: relative; padding: 20px; color: #fff; }
.pkg-tone-0 .pkg-top { background: linear-gradient(135deg, #47516b, #272c3d); }
.pkg-tone-1 .pkg-top { background: linear-gradient(135deg, #3f9a33, #1f6b2c); }
.pkg-tone-2 .pkg-top { background: linear-gradient(135deg, #7b4bd0, #3a1f7a 70%, #c98a12 135%); }
.pkg-top h2 { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: #fff; }
.pkg-card .pkg-price { margin: 0; font-size: 40px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; color: #ffdc7a; }
.pkg-card .pkg-price span { font-size: 14px; font-weight: 600; letter-spacing: 0; color: #fff; opacity: 0.85; }
.pkg-tag { position: absolute; top: 16px; right: 16px; padding: 3px 10px; font-size: 12px; font-weight: 800; color: #3a2400; background: linear-gradient(180deg, #ffdc7a, #eeb02f); border-radius: 999px; }
.pkg-body { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: 18px 20px 20px; }
.pkg-card .pkg-lines { flex: 1; margin: 0; padding: 0; line-height: 1.5; list-style: none; }
.pkg-card .pkg-lines li { position: relative; padding: 3px 0 3px 25px; }
.pkg-card .pkg-lines li::before { content: "✓"; position: absolute; left: 0; top: 5px; display: grid; place-items: center; width: 17px; height: 17px; font-size: 11px; font-weight: 800; color: var(--green); background: var(--active); border-radius: 50%; }
.pkg-card.pkg-on { border: 2px solid #eeb02f; box-shadow: 0 8px 24px rgba(238, 176, 47, 0.22); }

/* More than one alliance */
.ally-switch { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 13px; font-weight: 500; color: #fff; cursor: pointer; background: rgba(12, 12, 16, 0.78); border-color: #ffdc7a; }
.ally-switch:hover { background: rgba(12, 12, 16, 0.95); }
.ally-dot { width: 8px; height: 8px; background: #ff5a48; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 90, 72, 0.3); }
.war-elsewhere { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; padding: 10px 14px; color: #fff; background: linear-gradient(90deg, #c9301f, #8e1d12); border-radius: 12px; }
.ally-sheet { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(10, 10, 14, 0.6); }
.ally-box { display: grid; gap: 12px; width: min(460px, 100%); max-height: calc(100vh - 32px); padding: 20px; overflow-y: auto; background: var(--panel); border-radius: 20px; box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35); }
.ally-box h2 { margin: 0; }
.ally-list { display: grid; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.ally-box .ally-list { margin: 0; }
.ally-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; font: inherit; color: var(--text); text-align: left; cursor: pointer; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.ally-row:hover { border-color: var(--green); }
.ally-on { background: var(--active); border-color: var(--green); }
.ally-tag { flex: none; display: grid; place-items: center; min-width: 48px; height: 44px; padding: 0 6px; font-size: 12.5px; font-weight: 800; color: #3a2400; background: linear-gradient(180deg, #ffdc7a, #eeb02f); border-radius: 11px; }
.ally-main { flex: 1; min-width: 0; display: grid; overflow-wrap: anywhere; }
.ally-main small { color: var(--muted); }
.ally-tick { font-weight: 800; color: var(--green); }
.ally-war { flex: none; padding: 3px 9px; font-size: 12px; font-weight: 700; color: #fff; background: #c9301f; border-radius: 999px; }
.ally-join { margin-top: 12px; }
.ally-join + .btn { margin-top: 8px; }
.ally-box .ally-join { margin-top: 0; }
@media (max-width: 699px) {
  .ally-sheet { place-items: end stretch; padding: 0; }
  .ally-box { width: 100%; max-height: 85vh; padding-bottom: calc(20px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
}

/* Setup checklist */
.setup-card { margin-bottom: 14px; padding: 18px; color: #fff; background: linear-gradient(rgba(23, 14, 42, 0.72), rgba(23, 14, 42, 0.92)), #1b1425 url('/art/hero.svg') center / cover no-repeat; border-radius: 20px; }
.setup-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.setup-head > div:nth-child(2) { flex: 1; min-width: 0; }
.setup-head h2 { margin: 0 0 2px; font-size: 19px; font-weight: 800; color: #fff; }
.setup-head p { margin: 0; font-size: 14px; color: #e8e6ea; }
.setup-head .icon-btn { flex: none; color: #fff; background: rgba(255, 255, 255, 0.12); border-color: transparent; }
.setup-ring { flex: none; display: grid; place-items: center; width: 58px; height: 58px; background: conic-gradient(#ffcf5c var(--done), rgba(255, 255, 255, 0.18) 0); border-radius: 50%; }
.setup-ring b { display: grid; place-items: center; width: 46px; height: 46px; font-size: 14px; background: #1f1533; border-radius: 50%; }
.setup-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.setup-steps li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px; color: var(--text); background: var(--panel); border-radius: 14px; }
.setup-steps li > div { flex: 1; min-width: 0; display: grid; }
.setup-steps li > div span { font-size: 13px; color: var(--muted); }
.setup-steps .btn-sm { flex: none; color: #0d1a09; background: linear-gradient(180deg, #93e56b, #5fbd42); border-color: transparent; }
.setup-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; color: var(--green); background: var(--active); border-radius: 11px; }
.setup-icon svg { width: 20px; height: 20px; }
.setup-steps li.done { background: rgba(255, 255, 255, 0.82); }
.setup-steps li.done .setup-icon { font-weight: 800; color: #fff; background: var(--green); }
@media (min-width: 860px) { .setup-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Footer inside the app */
.app-foot { display: grid; gap: 10px; max-width: 1180px; margin: 22px auto 8px; padding: 16px 20px; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.app-foot-brand { display: flex; align-items: center; gap: 10px; }
.app-foot-brand img { border-radius: 9px; }
.app-foot-brand div { display: grid; }
.app-foot-brand b { color: var(--text); }
.app-foot-brand span { font-size: 12.5px; color: var(--muted); }
.app-foot nav { display: flex; flex-wrap: wrap; gap: 6px; }
.app-foot nav a { padding: 6px 12px; font-size: 13.5px; font-weight: 600; color: var(--text); text-decoration: none; background: var(--panel-2); border-radius: 999px; }
.app-foot nav a:hover { color: var(--green); background: var(--active); }
.app-foot p { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--muted); }
@media (min-width: 820px) { .app-foot { grid-template-columns: 1fr auto; align-items: center; } }

/* Choosing an alliance */
.ally-page { max-width: 1180px; margin: 14px auto 0; }
.ally-head { margin-bottom: 14px; padding: clamp(22px, 4vw, 34px); color: #fff; background: linear-gradient(rgba(16, 10, 28, 0.35), rgba(16, 10, 28, 0.8)), #1b1425 url('/art/hero.svg') center / cover no-repeat; border-radius: 20px; }
.ally-head h1 { margin: 0 0 4px; font-size: clamp(27px, 4vw, 38px); font-weight: 800; color: #fff; }
.ally-head p { margin: 0; color: #e8e6ea; }
.ally-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.ally-card { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 18px; font: inherit; color: var(--text); text-align: left; overflow-wrap: anywhere; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
button.ally-card { cursor: pointer; }
button.ally-card:hover { border-color: var(--green); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.1); transform: translateY(-3px); }
.ally-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.ally-card .ally-tag { min-width: 58px; height: 54px; font-size: 14px; border-radius: 13px; }
.ally-rank { padding: 3px 11px; font-size: 13px; font-weight: 800; color: var(--green); background: var(--active); border-radius: 999px; }
.ally-card > b { font-size: 20px; font-weight: 800; line-height: 1.2; }
.ally-card-meta { font-size: 13.5px; color: var(--muted); }
.ally-card-go { margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--green); }
.ally-card-war { border: 2px solid #c9301f; box-shadow: 0 8px 24px rgba(201, 48, 31, 0.2); }
.ally-card-war .ally-war { animation: war-pulse 1.6s ease-in-out infinite; }
.ally-card-add .ally-join { margin-top: 4px; }
.ally-card-add .btn { margin-top: 8px; }
@keyframes war-pulse { 50% { box-shadow: 0 0 0 6px rgba(201, 48, 31, 0.2); } }
@media (prefers-reduced-motion: reduce) { .ally-card-war .ally-war { animation: none; } }
.ally-card-add .ally-join { display: grid; gap: 8px; margin-top: 10px; }
.ally-card-add .ally-join input { width: 100%; }
.ally-card-add .setup-icon, .ally-card-create .setup-icon { margin-bottom: 8px; }
.ally-card-create { text-decoration: none; color: #fff; background: linear-gradient(135deg, #2f8f3a, #1f6b2c); border: 0; }
.ally-card-create:hover { color: #fff; box-shadow: 0 12px 26px rgba(31, 107, 44, 0.3); transform: translateY(-3px); }
.ally-card-create .ally-card-meta { color: #e3f5da; }
.ally-card-create .ally-card-go { margin-top: auto; padding-top: 12px; color: #ffdc7a; }
.ally-card-create .setup-icon { color: #fff; background: rgba(255, 255, 255, 0.18); }
button.ally-card { align-items: stretch; justify-content: flex-start; }

/* The header phone rises from the bottom edge, so the header fits its text */
.hero { overflow: hidden; padding-bottom: 0; }
.hero > div:first-child { padding-bottom: 28px; }
.hero-phone { align-self: end; margin: 8px auto -46px; border-bottom-width: 0; animation: phone-rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero-phone-screen { min-height: 0; padding-bottom: 54px; }
.hero-phone-date { margin-top: 10px; }
.hero-phone .home-time { font-size: 40px; }
.hero-note { margin-top: 8px; }
.hero-phone-counts { margin-top: 8px; padding-top: 0; }
.hero-phone-tip::after { display: none; }
@keyframes phone-rise { from { transform: translateY(70px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 760px) {
  .hero { align-items: stretch; padding-top: 30px; }
  .hero > div:first-child { align-self: center; padding-bottom: 34px; }
  .hero-phone { margin: 0 auto -46px; }
}
@media (prefers-reduced-motion: reduce) { .hero-phone { animation: none; } }
@media (max-width: 759px) { .hero { display: grid; } }
@media (max-width: 759px) { .hero-phone { height: 362px; margin-bottom: 0; overflow: hidden; } }

/* Bento tiles fill their space */
.bento-lead .home-note { max-width: none; animation: none; }
.bento-live { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.bento-live span { display: grid; padding: 8px 10px; font-size: 12.5px; text-align: center; color: #e8e6ea; background: rgba(255, 255, 255, 0.12); border-radius: 12px; }
.bento-live b { font-size: 22px; line-height: 1.1; color: #ffdc7a; }
.bento-wide { justify-content: center; }
@media (min-width: 620px) {
  .bento-wide { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; align-items: center; column-gap: 18px; }
  .bento-wide h3 { align-self: end; }
  .bento-wide p { align-self: start; }
  .bento-wide .bento-ranks { grid-column: 2; grid-row: 1 / 3; margin: 0; flex-wrap: nowrap; }
}

/* See how it works */
.hero-watch { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 11px 16px; font: inherit; font-weight: 700; color: #fff; cursor: pointer; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 10px; transition: background 0.2s; }
.hero-watch:hover { background: rgba(255, 255, 255, 0.24); }
.hero-watch span { display: grid; place-items: center; width: 26px; height: 26px; padding-left: 2px; font-size: 12px; color: #3a2400; background: linear-gradient(180deg, #ffdc7a, #eeb02f); border-radius: 50%; }
.hero-watch small { font-weight: 500; opacity: 0.8; }
.video-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(8, 6, 14, 0.86); }
.video-box { position: relative; display: grid; gap: 10px; width: min(960px, 100%); max-height: 100%; }
.video-close { position: absolute; top: -6px; right: -6px; z-index: 2; color: #fff; background: #17181a; border-color: rgba(255, 255, 255, 0.3); }
.video-frame { position: relative; overflow: hidden; background: #000; border-radius: 16px; }
.video-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; }
.video-end { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; color: #fff; text-align: center; background: rgba(14, 9, 26, 0.86); }
.video-end[hidden] { display: none; }
.video-end h2 { margin: 0; font-size: clamp(22px, 4vw, 34px); font-weight: 800; color: #fff; }
.video-end p { margin: 0; color: #e8e6ea; }
.video-end .btn { padding: 12px 34px; }
.video-again { padding: 6px; font: inherit; color: #fff; text-decoration: underline; cursor: pointer; background: none; border: 0; }
.video-chapters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.video-chapters .chip { flex: none; color: #fff; background: rgba(255, 255, 255, 0.12); border-color: transparent; }
.video-chapters .chip[aria-pressed="true"] { color: #0d1a09; background: linear-gradient(180deg, #93e56b, #5fbd42); }

/* Tighter home page */
.moment-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.moment-chips li { padding: 6px 12px; font-size: 14px; font-weight: 700; color: #fff; background: rgba(16, 10, 28, 0.76); border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 999px; }
.bento-toggle { display: none; margin-top: 12px; }
@media (max-width: 899px) { .bento-grid > :last-child { grid-column: 1 / -1; } }
@media (max-width: 759px) {
  .bento-toggle { display: block; }
  .bento:not(.open) .bento-more { display: none; }
  .bento:not(.open) .bento-green { grid-column: 1 / -1; }
  .hero-invite, .hero-phone-date, .hero-phone .home-time { display: none; }
  .hero-phone { height: auto; margin-top: 10px; }
}
