/* StrideRewards website: the app's sticker style (ink outlines, thick bottom edge, sakura pink). */
:root {
  --ink: #111111;
  --white: #ffffff;
  --blush: #fff5f7;
  --pink50: #fff0f3;
  --pink100: #ffe3ea;
  --pink300: #f9a8bf;
  --red: #e5173f;
  --green: #1e9e5a;
  --amber: #b26b00;
  --muted: #55505a;
  --radius: 22px;
  --display: 'Outfit', system-ui, sans-serif;
  --body: 'Lexend', system-ui, sans-serif;
  --max: 1160px;
}

* { box-sizing: border-box; }
/* Elements with a display rule must still disappear when given the hidden attribute. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.04; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(46px, 7.4vw, 92px); font-weight: 900; margin-top: 18px; }
h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; margin-top: 14px; }
h3 { font-size: 22px; font-weight: 800; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }
.big { font-size: 18px; margin-top: 14px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
section { padding: 96px 0; }
.ico { width: 22px; height: 22px; flex: none; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pink100); border-radius: 999px; padding: 6px 14px;
  font-size: 14px; font-weight: 600;
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after {
  content: ''; position: absolute; left: -4px; right: -4px; bottom: 6%; height: 40%;
  background: var(--pink300); z-index: -1; border-radius: 4px;
}

/* Sticker surfaces */
.card {
  background: var(--white); border: 2.5px solid var(--ink); border-bottom-width: 6px;
  border-radius: var(--radius); padding: 26px;
}
.card.lift { transition: transform .18s ease, box-shadow .18s ease; }
.card.lift:hover { transform: translateY(-4px); box-shadow: 0 10px 0 -2px var(--pink300); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 18px; text-decoration: none;
  background: var(--pink300); color: var(--ink);
  border: 2.5px solid var(--ink); border-bottom-width: 6px; border-radius: 16px;
  padding: 14px 24px; cursor: pointer; transition: transform .08s, border-bottom-width .08s, background .15s;
}
.btn:hover { background: #f69ab4; }
.btn:active { transform: translateY(3px); border-bottom-width: 3px; }
.btn.dark { background: var(--ink); color: var(--white); }
.btn.dark:hover { background: #2a2a2a; }
.btn.ghost { background: var(--white); }
.btn.ghost:hover { background: var(--pink50); }
.btn.small { font-size: 15px; padding: 9px 16px; border-radius: 12px; border-bottom-width: 4px; }
.btn svg { width: 22px; height: 22px; }
.btn-note { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* Header */
header.top {
  position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 2px solid var(--ink);
}
header.top .wrap { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 22px; }
.brand svg { width: 36px; height: 36px; }
nav.links { display: flex; gap: 22px; margin-left: auto; font-weight: 500; font-size: 15px; }
nav.links a { text-decoration: none; }
nav.links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.admin-tag { margin-left: auto; font-family: var(--display); font-weight: 800; background: var(--ink); color: var(--white); border-radius: 999px; padding: 4px 14px; font-size: 14px; }
@media (max-width: 860px) { nav.links { display: none; } header.top .btn { margin-left: auto; } }

/* Hero */
.hero { padding: 56px 0 24px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; width: 760px; height: 760px; border-radius: 50%; right: -260px; top: -340px;
  background: var(--pink50); z-index: -1;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 20px; margin: 22px 0 30px; max-width: 36ch; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: 14.5px; font-weight: 500; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust .ico { width: 19px; height: 19px; color: var(--green); }
.hero-art { position: relative; max-width: 500px; width: 100%; justify-self: center; }
.scene { width: 100%; height: auto; }
.bubble {
  position: absolute; background: var(--white); border: 2.5px solid var(--ink); border-bottom-width: 5px;
  border-radius: 16px; padding: 8px 14px; line-height: 1.15;
}
.bubble b { font-family: var(--display); font-weight: 800; font-size: 22px; display: inline-flex; align-items: center; gap: 6px; }
.bubble small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.bubble .flame { width: 20px; height: 20px; color: var(--red); fill: #ffb2c4; }
.bubble::after {
  content: ''; position: absolute; bottom: -12px; left: 26px; width: 16px; height: 16px; background: inherit;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg);
}
.hero-art .b1 { left: -2%; top: 14%; animation: float 6s ease-in-out infinite; }
.hero-art .b2 { right: -2%; top: 46%; background: var(--pink300); animation: float 7s ease-in-out -2s infinite; }
.hero-art .b3 { left: 6%; bottom: 8%; animation: float 6.5s ease-in-out -4s infinite; }
.hero-art .b3::after { display: none; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; }
}
@media (max-width: 480px) { .bubble b { font-size: 18px; } .hero-art .b3 { display: none; } }

/* Ticker */
.ticker-clip { overflow: hidden; padding: 16px 0; }
.ticker { background: var(--ink); color: var(--white); overflow: hidden; border-block: 2px solid var(--ink); transform: rotate(-1.2deg); margin: 0 -20px; }
.ticker > div { display: flex; gap: 40px; white-space: nowrap; padding: 14px 0; width: max-content; animation: slide 40s linear infinite; font-family: var(--display); font-weight: 800; font-size: 20px; }
.ticker span::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-left: 40px; vertical-align: middle; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker > div, .bubble { animation: none !important; } }

/* Stats strip */
.stats-strip { padding: 36px 0 8px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stats b { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(34px, 5vw, 48px); line-height: 1.1; }
.stats div:nth-child(2) b { color: var(--red); }
.stats span { color: var(--muted); font-size: 15px; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }

/* Grids */
.head { max-width: 700px; margin-bottom: 44px; }
.head p { margin-top: 14px; font-size: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.center-y { align-items: center; }
@media (max-width: 860px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.step-n {
  width: 54px; height: 54px; border-radius: 16px; border: 2.5px solid var(--ink); border-bottom-width: 4px; background: var(--pink300);
  display: grid; place-items: center; margin-bottom: 18px;
}
.step-n .ico { width: 26px; height: 26px; }
.card h3 + p { margin-top: 8px; }
.tint { background: var(--blush); border-block: 2px solid var(--ink); }

/* App showcase */
.showcase { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; gap: 48px; } }
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone {
  width: 320px; max-width: 100%; background: var(--white); border: 3px solid var(--ink); border-bottom-width: 9px;
  border-radius: 40px; padding: 18px 16px 22px; box-shadow: 14px 14px 0 var(--pink300);
}
.phone .notch { width: 90px; height: 8px; border-radius: 6px; background: var(--ink); margin: 0 auto 14px; }
.ring {
  width: 168px; height: 168px; border-radius: 50%; margin: 6px auto 14px; position: relative;
  background: conic-gradient(var(--red) 0 74%, var(--pink100) 74% 100%); border: 3px solid var(--ink);
  display: grid; place-items: center;
}
.ring::before { content: ''; position: absolute; inset: 18px; border-radius: 50%; background: var(--white); border: 3px solid var(--ink); }
.ring div { position: relative; text-align: center; }
.ring b { font-family: var(--display); font-size: 34px; font-weight: 900; display: block; line-height: 1; }
.ring small { font-size: 12px; color: var(--muted); }
.row {
  display: flex; align-items: center; gap: 10px; border: 2px solid var(--ink); border-bottom-width: 4px;
  border-radius: 14px; padding: 8px 10px; margin-top: 8px; font-size: 13.5px; background: var(--white);
}
.row .dot { width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--ink); display: grid; place-items: center; background: var(--pink50); }
.row .dot .ico { width: 16px; height: 16px; }
.row .pts { margin-left: auto; font-family: var(--display); font-weight: 800; }
.row.done .pts { color: var(--green); }
.row.done .dot { color: var(--green); }
.row.claim { background: var(--pink50); }
.row.claim .pts { background: var(--pink300); border: 2px solid var(--ink); border-radius: 8px; padding: 0 8px; }
.row.bonus { background: var(--red); color: var(--white); }
.row.bonus .dot { background: var(--white); color: var(--red); }
.phone-wrap .p1 { left: 0; top: 34%; transform: rotate(-6deg); }
.phone-wrap .p2 { right: 0; top: 6%; background: var(--pink300); transform: rotate(5deg); }
@media (max-width: 420px) { .phone-wrap .p1, .phone-wrap .p2 { display: none; } }
ul.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
ul.ticks li { display: flex; gap: 14px; align-items: flex-start; }
ul.ticks li > .ico { width: 30px; height: 30px; padding: 5px; border-radius: 9px; border: 2px solid var(--ink); background: var(--pink300); }
ul.ticks.compact { margin-top: 16px; gap: 12px; font-size: 15.5px; }
ul.ticks.compact li > .ico { background: var(--pink50); }

/* Habits */
.habits { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.habit { text-align: center; padding: 24px 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.habit-ico { width: 60px; height: 60px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--blush); display: grid; place-items: center; margin-bottom: 8px; }
.habit-ico .ico { width: 30px; height: 30px; }
.habit b { font-family: var(--display); font-size: 19px; }
.habit span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
@media (max-width: 960px) { .habits { grid-template-columns: repeat(2, 1fr); } .habit:last-child { grid-column: 1 / -1; } }

/* Rewards */
.brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 960px) { .brands { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .brands { grid-template-columns: 1fr; } }
.brand-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.brand-logo { width: 58px; height: 58px; border-radius: 16px; border: 2.5px solid var(--ink); display: grid; place-items: center; }
.brand-logo svg { width: 30px; height: 30px; }
.wordmark { font-family: var(--display); font-weight: 900; color: var(--white); font-size: 17px; letter-spacing: .06em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 2px solid var(--ink); border-radius: 10px; padding: 2px 10px; font-size: 14px; font-weight: 600; background: var(--pink50); }
.from { margin-top: auto; font-size: 14.5px; color: var(--muted); }
.from b { color: var(--ink); }
.price-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 16px; }
.price-table td { padding: 11px 0; border-top: 2px dashed #e5dde1; }
.price-table td:last-child { text-align: right; font-family: var(--display); font-weight: 800; }

/* Invite & install */
.invite-demo { text-align: center; }
.invite-ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; border: 2.5px solid var(--ink); background: var(--pink300); display: grid; place-items: center; }
.invite-ico .ico { width: 32px; height: 32px; }
ol.install { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
ol.install li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; }
ol.install li::before {
  content: counter(s); flex: none; width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--ink);
  background: var(--pink300); display: grid; place-items: center; font-family: var(--display); font-weight: 900;
}

/* FAQ */
details { border: 2.5px solid var(--ink); border-bottom-width: 5px; border-radius: 18px; padding: 16px 20px; background: var(--white); }
details + details { margin-top: 12px; }
summary { cursor: pointer; font-family: var(--display); font-weight: 800; font-size: 19px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 26px; line-height: 1; }
details[open] summary::after { content: '\2212'; }
details p { margin-top: 10px; color: var(--muted); }

/* CTA band */
.band { background: var(--pink300); border-block: 2.5px solid var(--ink); text-align: center; }
.band h2 { margin-bottom: 14px; }
.band p { font-size: 18px; margin-bottom: 26px; }
.band .btn-note { color: var(--ink); }

footer { padding: 40px 0 56px; font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer .fine { width: 100%; color: var(--muted); font-size: 13px; }

/* Invite page */
.invite { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 40px 0 60px; background: radial-gradient(700px 400px at 50% 0%, var(--pink100), transparent 70%); }
.invite .card { max-width: 540px; width: 100%; text-align: center; }
.invite-scene { width: 170px; margin: -6px auto 8px; }
.code {
  font-family: var(--display); font-weight: 900; font-size: clamp(40px, 11vw, 60px); letter-spacing: .12em; color: var(--red);
  border: 2.5px dashed var(--ink); border-radius: 18px; padding: 8px 12px; margin: 18px 0 12px; background: var(--pink50);
  word-break: break-all;
}
.linkcode { font-size: clamp(17px, 4.4vw, 24px); letter-spacing: 0; color: var(--ink); }
.linkcode span { color: var(--red); }
.invite ol.install { text-align: left; margin-top: 24px; font-size: 15.5px; }
.toast { min-height: 24px; font-size: 14px; font-weight: 600; color: var(--green); margin-top: 10px; }

/* Policy pages */
.doc { max-width: 760px; padding-top: 56px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(36px, 6vw, 56px); margin-bottom: 10px; }
.doc h2 { font-size: 24px; margin: 34px 0 8px; }
.doc p { color: #2b282d; }

/* Admin console */
.admin { padding-top: 32px; padding-bottom: 80px; }
.admin-signin { max-width: 440px; margin: 60px auto; text-align: center; display: grid; gap: 16px; justify-items: center; }
.admin-signin h2 { margin: 0; }
.admin-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.admin-bar h2 { margin: 0; font-size: 36px; }
.admin-actions { display: flex; gap: 8px; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 26px; }
@media (max-width: 860px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { padding: 14px 16px; border-bottom-width: 4px; }
.kpi span { display: block; font-size: 13px; color: var(--muted); }
.kpi b { font-family: var(--display); font-size: 28px; font-weight: 900; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab { font-family: var(--display); font-weight: 800; font-size: 16px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--ink); background: var(--white); cursor: pointer; }
.tab.on { background: var(--ink); color: var(--white); }
.filters { margin-bottom: 14px; }
.filters select, .filters input { font: inherit; font-size: 15px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); width: 100%; max-width: 360px; }
.list { display: grid; gap: 14px; }
.req { padding: 20px; }
.req.warn { border-color: var(--red); background: #fff7f8; }
.req-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.req dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 14px 0 0; font-size: 15px; }
.req dt { color: var(--muted); }
.req dd { margin: 0; word-break: break-word; }
.req code { font-size: 14px; background: var(--pink50); padding: 1px 6px; border-radius: 6px; }
.req-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bad { color: var(--red); }
.pill { font-size: 12.5px; font-weight: 600; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px; white-space: nowrap; background: var(--white); }
.pill.s-PENDING, .pill.s-APPROVED, .pill.s-PROCESSING { background: #fff1d6; }
.pill.s-COMPLETED, .pill.s-active { background: #dff5e8; }
.pill.s-REJECTED, .pill.s-suspended { background: var(--pink100); }
.link { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--ink); }
.table-wrap { overflow-x: auto; border: 2.5px solid var(--ink); border-bottom-width: 5px; border-radius: 18px; background: var(--white); }
table.users { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 680px; }
table.users th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 2px solid var(--ink); }
table.users td { padding: 12px 14px; border-top: 1px solid #eee5e9; vertical-align: top; }
.empty { padding: 20px 0; }
.err { color: var(--red); font-weight: 600; min-height: 1.5em; }
