/* PRESS design language for the Invoicer web presence — mirrors the app's
   design tokens (lib/designer/ui/tokens.dart): warm paper, tangerine->magenta
   editorial gradient, confident ink, expressive serif display. */

:root {
  --accent: #ff5a36;
  --accent-alt: #ff2e7e;
  --accent-soft: rgba(255, 90, 54, 0.12);
  --ink: #17130f;
  --paper: #f4efe6;
  --paper-2: #fbf8f2;
  --line: rgba(23, 19, 15, 0.1);
  --muted: rgba(23, 19, 15, 0.58);
  --white: #ffffff;
  --press: linear-gradient(135deg, var(--accent), var(--accent-alt));
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.06);
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Brand lockup ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand .mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  /* The actual app icon (assets/icon/app_icon.png), so the site logo is
     pixel-identical to the app icon + splash. */
  background: url("app-icon.png") center / cover no-repeat;
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 0;
  box-shadow: 0 6px 16px rgba(255, 90, 54, 0.35);
  position: relative;
  flex: none;
}
.brand .mark::after {
  content: none;
}
.brand .word {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.brand.small .mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 16px;
}
.brand.small .word {
  font-size: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.btn-primary {
  background: var(--press);
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 90, 54, 0.28);
}
.btn-ink {
  background: var(--ink);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-block {
  width: 100%;
}
.btn-sm {
  padding: 8px 14px;
  font-size: 13.5px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(1.2) blur(10px);
  background: rgba(244, 239, 230, 0.8);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.topnav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.topnav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.12s ease;
}
.topnav a:hover,
.topnav a.active {
  color: var(--ink);
}
@media (max-width: 620px) {
  .topnav {
    display: none;
  }
}

/* ---------- Landing hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 64px;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255, 90, 54, 0.1);
  border: 1px solid rgba(255, 90, 54, 0.22);
  padding: 7px 14px;
  border-radius: var(--r-pill);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 22px 0 18px;
  max-width: 15ch;
}
.hero h1 .grad {
  background: var(--press);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 30px;
}
.hero .cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-md);
  text-decoration: none;
}
.store-badge .apple {
  font-size: 26px;
  line-height: 1;
}
.store-badge .lines {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.store-badge .lines small {
  font-size: 11px;
  opacity: 0.8;
}
.store-badge .lines b {
  font-size: 16px;
  font-weight: 700;
}

.hero .glow {
  position: absolute;
  inset: auto -120px -180px auto;
  width: 520px;
  height: 520px;
  background: var(--press);
  filter: blur(120px);
  opacity: 0.22;
  border-radius: 50%;
  pointer-events: none;
}

/* Phone mockup */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.phone {
  justify-self: center;
  width: 260px;
  height: 540px;
  border-radius: 42px;
  background: #111;
  padding: 12px;
  box-shadow: var(--shadow-soft), 0 40px 80px rgba(0, 0, 0, 0.18);
  transform: rotate(3deg);
}
.phone .screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background: var(--paper-2);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.phone .screen .topbar {
  height: 96px;
  background: var(--press);
}
.phone .screen .doc {
  margin: -40px 18px 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 16px;
}
.phone .screen .doc .row {
  height: 10px;
  border-radius: 5px;
  background: var(--line);
  margin: 8px 0;
}
.phone .screen .doc .row.short {
  width: 55%;
}
.phone .screen .doc .row.tiny {
  width: 35%;
}
.phone .screen .doc .total {
  margin-top: 18px;
  height: 22px;
  width: 45%;
  border-radius: 6px;
  background: var(--press);
  opacity: 0.85;
}

/* Feature strip */
.features {
  padding: 40px 0 80px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.feature .ico {
  font-size: 22px;
  margin-bottom: 10px;
}
.feature h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- Auth panel (modal) ---------- */
.modal-scrim {
  position: fixed;
  inset: 0;
  background: rgba(23, 19, 15, 0.45);
  backdrop-filter: blur(4px);
  display: none;
  place-items: center;
  z-index: 50;
  padding: 20px;
}
.modal-scrim.open {
  display: grid;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--paper-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: 28px;
  border: 1px solid var(--line);
}
.auth-card h2 {
  font-family: var(--serif);
  font-size: 26px;
  margin: 14px 0 4px;
}
.auth-card .sub {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 0 20px;
}
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.15);
}
.auth-error {
  display: none;
  background: rgba(255, 46, 126, 0.1);
  color: #b3175a;
  border: 1px solid rgba(255, 46, 126, 0.25);
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  margin-bottom: 12px;
}
.auth-error.show {
  display: block;
}
.auth-toggle {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}
.auth-toggle button {
  background: none;
  border: 0;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}
.auth-close {
  float: right;
  background: none;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

/* Signed-in member state */
.member-state {
  display: none;
  text-align: center;
}
.member-state.show {
  display: block;
}
.member-state .check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--press);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 30px;
  margin: 0 auto 16px;
}

/* ---------- Admin console ---------- */
.admin-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  position: sticky;
  top: 0;
  z-index: 10;
}
.admin-top .right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.who {
  font-size: 13px;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 20px 24px 4px;
}
.stat {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
}
.stat .n {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat .l {
  font-size: 12.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.flag-bar {
  margin: 16px 24px 0;
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-card);
}
.flag-bar .info b {
  display: block;
  font-size: 15px;
}
.flag-bar .info span {
  font-size: 13px;
  color: var(--muted);
}

/* Toggle switch */
.switch {
  position: relative;
  width: 54px;
  height: 30px;
  flex: none;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(23, 19, 15, 0.2);
  border-radius: var(--r-pill);
  transition: 0.2s;
}
.switch .slider::before {
  content: "";
  position: absolute;
  height: 24px;
  width: 24px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}
.switch input:checked + .slider {
  background: var(--press);
}
.switch input:checked + .slider::before {
  transform: translateX(24px);
}
.switch input:disabled + .slider {
  opacity: 0.5;
  cursor: default;
}

.console {
  flex: 1;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
  min-height: 0;
  padding: 16px 24px 24px;
  gap: 18px;
}
.inbox {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: calc(100vh - 260px);
}
.inbox .tools {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.inbox .tools input[type="search"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--sans);
  font-size: 14px;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--r-pill);
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
}
.chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.ticket-list {
  overflow-y: auto;
  flex: 1;
}
.ticket-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.12s ease;
}
.ticket-item:hover {
  background: rgba(255, 90, 54, 0.05);
}
.ticket-item.active {
  background: rgba(255, 90, 54, 0.1);
}
.ticket-item .subj {
  font-weight: 700;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ticket-item .last {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticket-item .meta {
  display: flex;
  gap: 8px;
  margin-top: 7px;
  align-items: center;
}
.badge {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--r-pill);
}
.badge.open {
  background: rgba(255, 90, 54, 0.16);
  color: #c23a1c;
}
.badge.answered {
  background: rgba(46, 160, 90, 0.16);
  color: #1f7a46;
}
.badge.closed {
  background: rgba(23, 19, 15, 0.1);
  color: var(--muted);
}
.badge.feature {
  background: rgba(255, 46, 126, 0.14);
  color: #b3175a;
}
.badge.support {
  background: rgba(23, 19, 15, 0.08);
  color: var(--muted);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.time {
  font-size: 11.5px;
  color: var(--muted);
  margin-left: auto;
}

/* Thread */
.thread {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: calc(100vh - 260px);
}
.thread .empty {
  margin: auto;
  color: var(--muted);
  text-align: center;
  padding: 40px;
}
.thread .head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.thread .head h3 {
  margin: 0;
  font-size: 17px;
  flex: 1;
  min-width: 180px;
}
.thread .head select {
  padding: 8px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
}
.messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bubble {
  max-width: 74%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.bubble .stamp {
  display: block;
  font-size: 10.5px;
  margin-top: 5px;
  opacity: 0.6;
}
.bubble.user {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
}
.bubble.support {
  align-self: flex-end;
  background: var(--press);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.composer {
  border-top: 1px solid var(--line);
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.composer textarea {
  flex: 1;
  resize: none;
  font-family: var(--sans);
  font-size: 14.5px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: #fff;
  min-height: 46px;
  max-height: 160px;
}
.composer textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}
.gate .card {
  max-width: 420px;
}
.gate h2 {
  font-family: var(--serif);
  font-size: 28px;
  margin: 18px 0 8px;
}
.gate p {
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 13.5px;
}
.footer .bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
  flex-wrap: wrap;
}
.footer .links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer .links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
}
.footer .links a:hover {
  color: var(--ink);
}

/* ---------- Legal / content pages ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 8px;
}
.page-hero .glow {
  position: absolute;
  inset: -140px -160px auto auto;
  width: 460px;
  height: 460px;
  background: var(--press);
  filter: blur(120px);
  opacity: 0.16;
  border-radius: 50%;
  pointer-events: none;
}
.page-hero .eyebrow {
  display: inline-flex;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255, 90, 54, 0.1);
  border: 1px solid rgba(255, 90, 54, 0.22);
  padding: 7px 14px;
  border-radius: var(--r-pill);
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.03em;
  margin: 18px 0 8px;
}
.page-hero .updated {
  color: var(--muted);
  font-size: 13.5px;
}
.legal {
  padding: 20px 0 72px;
}
.legal .prose {
  max-width: 760px;
}
.legal h2 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 32px 0 8px;
}
.legal p,
.legal li {
  color: rgba(23, 19, 15, 0.82);
  font-size: 15.5px;
}
.legal ul {
  padding-left: 20px;
  margin: 8px 0;
}
.legal li {
  margin: 6px 0;
}
.legal a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.legal a:hover {
  text-decoration: underline;
}
.legal .note {
  margin-top: 36px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--muted);
  font-size: 13.5px;
}

/* Contact */
.contact {
  padding: 20px 0 72px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 820px;
}
.contact-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.contact-card .ico {
  font-size: 22px;
  margin-bottom: 10px;
}
.contact-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.contact-card p {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 14.5px;
}
.contact-form-card {
  max-width: 640px;
  margin: 0 auto 22px;
  padding: 28px;
}
.contact-form-card > p {
  margin-bottom: 20px;
}
/* Match the shared .field input styling for the select + textarea so all
   controls in the form look identical (global scope, not class-scoped, so it
   applies even if the wrapper class changes). */
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-sizing: border-box;
}
.field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.55;
}
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.15);
}
.contact-form-card .btn-block {
  margin-top: 4px;
}
.cf-success {
  text-align: center;
  padding: 12px 0 4px;
}
.cf-success .check {
  font-size: 40px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 10px;
}
.cf-success h4 {
  margin: 0 0 8px;
  font-size: 20px;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.hidden {
  display: none !important;
}

/* ---------- Admin: founder deals panel ---------- */
.founder-panel {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: 16px 18px;
  margin-bottom: 16px;
}
.founder-panel .fp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.founder-panel .fp-title b {
  font-size: 15px;
}
.founder-panel .fp-title span {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
}
.founder-panel .fp-gen {
  display: flex;
  align-items: center;
  gap: 8px;
}
.founder-panel .fp-gen input {
  width: 64px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}
.founder-panel .fp-codes {
  margin-top: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px dashed var(--accent);
  border-radius: 12px;
}
.founder-panel .fp-codes .code {
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
}
.founder-panel .fp-codes .code button {
  border: none;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
}
.claim-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.claim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.claim-row .who {
  min-width: 0;
}
.claim-row .who b {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.claim-row .who span {
  color: var(--muted);
  font-size: 12px;
}
.claim-row .st {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}
.claim-row .st.activated {
  background: rgba(28, 160, 90, 0.14);
  color: #1a8f52;
}

/* ---------- Claim (hidden checkout capture) page ---------- */
.claim-shell {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  padding: 32px 20px 56px;
}
.claim-card {
  width: 100%;
  max-width: 460px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: 30px 28px;
  text-align: center;
}
.claim-card .mark-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.claim-card .eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.claim-card h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 5vw, 34px);
  letter-spacing: -0.02em;
  margin: 10px 0 8px;
}
.claim-card .lead {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 20px;
}
.claim-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 22px;
}
.claim-price .amt {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
}
.claim-price .cap {
  color: var(--muted);
  font-size: 13.5px;
}
.claim-card .field {
  text-align: left;
}
.claim-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.claim-card .check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--press);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 30px;
  margin: 0 auto 16px;
}
.claim-code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: rgba(23, 19, 15, 0.05);
  border: 1px dashed rgba(23, 19, 15, 0.25);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 8px 0 14px;
  user-select: all;
  word-break: break-all;
}
.claim-spinner {
  width: 34px;
  height: 34px;
  margin: 18px auto 4px;
  border-radius: 50%;
  border: 3px solid rgba(23, 19, 15, 0.15);
  border-top-color: var(--accent);
  animation: claim-spin 0.8s linear infinite;
}
@keyframes claim-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Inline Whop embedded checkout: give the iframe room to breathe and let this
   card be a touch wider than the email form. */
#claimCheckout {
  max-width: 520px;
}
.whop-embed {
  width: 100%;
  min-height: 420px;
  margin: 8px 0 4px;
  border-radius: var(--r-md);
  overflow: hidden;
}
.whop-embed iframe {
  width: 100% !important;
  border: 0;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .phone {
    display: none;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .console {
    grid-template-columns: 1fr;
  }
  .inbox,
  .thread {
    max-height: none;
  }
}
