/* ==========================================================================
   Receiptly - app styles
   Single stylesheet, organised: tokens, shell, components, pages.
   ========================================================================== */

:root {
  /* Surfaces & ink */
  --surface:        #f5f7f6;
  --surface-raised: #ffffff;
  --surface-sunken: #eef2f1;
  --ink:            #0f1a17;
  --ink-secondary:  #4d5c58;
  --ink-muted:      #8a9793;
  --border:         #e1e8e6;
  --border-strong:  #cbd6d3;

  /* Brand */
  --brand:          #0f766e;
  --brand-dark:     #0b5c56;
  --brand-tint:     #e6f4f2;
  --brand-ink:      #0a4a45;

  /* Status */
  --good:           #0ca30c;
  --good-bg:        #eaf7ea;
  --warning:        #b45309;
  --warning-bg:     #fef6ec;
  --critical:       #d03b3b;
  --critical-bg:    #fdf2f2;

  /* Data viz - single sequential hue for magnitude */
  --viz-bar:        #0f766e;
  --viz-track:      #e8edeb;

  --radius:     14px;
  --radius-sm:  10px;
  --shadow:     0 1px 2px rgba(15, 26, 23, 0.04), 0 10px 28px -18px rgba(15, 26, 23, 0.22);
  --shadow-lg:  0 2px 6px rgba(15, 26, 23, 0.05), 0 22px 48px -24px rgba(15, 26, 23, 0.26);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--surface);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: var(--brand-dark); }

/* --------------------------------------------------------------------------
   App shell
   -------------------------------------------------------------------------- */

.topnav {
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topnav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.navlinks { display: flex; align-items: center; gap: 2px; }

.navlinks a {
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.navlinks a:hover { background: var(--surface-sunken); color: var(--ink); }
.navlinks a.active { background: var(--brand-tint); color: var(--brand-ink); }
/* A .btn used inside the nav (e.g. the landing page's signup CTA) must keep
   its own white-on-brand colour, not the muted nav link colour above -
   .navlinks a's element+class selector otherwise wins on specificity. */
.navlinks a.btn, .navlinks a.btn:hover { color: #fff; }

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 20px 72px;
}

.page-narrow { max-width: 560px; }

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.025em; margin: 0; }
h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 4px; }
h3 { font-size: 14px; font-weight: 700; margin: 0 0 10px; }

.subtitle { color: var(--ink-secondary); font-size: 14px; margin: 4px 0 0; }

/* --------------------------------------------------------------------------
   Cards, flashes, pills
   -------------------------------------------------------------------------- */

.card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }
.card-tight { padding: 18px; }

.card-danger { border-color: #f2d5d5; }

.flash {
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 14px;
  border: 1px solid transparent;
}
.flash.success { background: #f0fdf4; color: #14532d; border-color: #bbf7d0; }
.flash.error   { background: var(--critical-bg); color: #7f1d1d; border-color: #f5cccc; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .01em;
  background: var(--surface-sunken);
  color: var(--ink-secondary);
  white-space: nowrap;
}
.pill-brand    { background: var(--brand-tint); color: var(--brand-ink); }
.pill-good     { background: #eaf7ea; color: #14532d; }
.pill-warning  { background: var(--warning-bg); color: #7c3a06; }
.pill-critical { background: var(--critical-bg); color: #7f1d1d; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-muted);
  margin: 16px 0 6px;
}
label.plain {
  text-transform: none;
  letter-spacing: 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
}
label.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin: 14px 0 6px;
}
label.checkbox-row input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  flex: none;
}

input[type=text], input[type=email], input[type=password],
input[type=number], input[type=date], input[type=search],
select, textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
textarea { resize: vertical; min-height: 62px; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234d5c58' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.hint { font-size: 13px; color: var(--ink-secondary); line-height: 1.5; }
.hint-sm { font-size: 12.5px; color: var(--ink-muted); margin-top: 5px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--brand);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s, transform .05s;
  white-space: nowrap;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }

.btn-block { width: 100%; margin-top: 20px; }

.btn-secondary {
  background: var(--surface-raised);
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--surface-sunken); }

.btn-danger { background: var(--critical); }
.btn-danger:hover { background: #b12f2f; }

.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.btn-row .btn { flex: 1 1 auto; }

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.stat-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-muted);
}
.stat-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}
.stat-note { font-size: 12.5px; color: var(--ink-secondary); margin-top: 3px; }

/* --------------------------------------------------------------------------
   Category bars (single-hue magnitude chart)
   Each row is label + bar + value, so the value is always readable directly
   and the whole block doubles as a table.
   -------------------------------------------------------------------------- */

.bars { margin-top: 14px; }

.bar-row { margin-bottom: 13px; }
.bar-row:last-child { margin-bottom: 0; }

.bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 5px;
}
.bar-name {
  font-size: 13px;
  color: var(--ink-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-value {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bar-track {
  height: 9px;
  background: var(--viz-track);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--viz-bar);
  border-radius: 999px;
  min-width: 4px;
}

/* --------------------------------------------------------------------------
   Tables / transaction list
   -------------------------------------------------------------------------- */

.table-wrap {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

table { width: 100%; border-collapse: collapse; font-size: 14px; }

thead th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-muted);
  padding: 12px 14px;
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafcfb; }

.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell-date { white-space: nowrap; font-variant-numeric: tabular-nums; }

.cell-primary { font-weight: 650; }
.cell-sub { font-size: 12.5px; color: var(--ink-muted); margin-top: 2px; }

.row-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* Mobile: turn the table into stacked cards */
@media (max-width: 720px) {
  .table-wrap { border: none; background: none; box-shadow: none; }
  table, thead, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tbody tr {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    padding: 6px 4px;
  }
  tbody td { border: none; padding: 7px 14px; }
  tbody td.num { text-align: left; }
  tbody td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ink-muted);
    margin-bottom: 2px;
  }
  .row-actions { justify-content: flex-start; padding-top: 4px; }
}

/* --------------------------------------------------------------------------
   Filter bar
   -------------------------------------------------------------------------- */

.filters {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.filters form {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}
.filters label { margin-top: 0; }
@media (max-width: 820px) {
  .filters form { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   Dropzone
   -------------------------------------------------------------------------- */

.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-sunken);
  padding: 34px 20px;
  text-align: center;
  transition: border-color .15s, background-color .15s;
}
.dropzone:focus-within, .dropzone.is-dragging {
  border-color: var(--brand);
  background: var(--brand-tint);
}
.dropzone-icon { font-size: 30px; display: block; margin-bottom: 8px; }
.dropzone-title { font-weight: 700; font-size: 15px; }
.dropzone input[type=file] { margin-top: 14px; font-size: 13px; max-width: 100%; }

#file-summary {
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--brand-ink);
}

.working {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  background: var(--brand-tint);
  color: var(--brand-ink);
  font-size: 14px;
  font-weight: 650;
}
.working.show { display: flex; }

.spinner {
  width: 17px;
  height: 17px;
  border: 2.5px solid rgba(15, 118, 110, .25);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Empty state & misc
   -------------------------------------------------------------------------- */

.empty {
  text-align: center;
  padding: 44px 24px;
  color: var(--ink-secondary);
}
.empty-icon { font-size: 34px; display: block; margin-bottom: 12px; }
.empty h2 { margin-bottom: 6px; }

.divider { height: 1px; background: var(--border); margin: 20px 0; border: 0; }

.auth-wrap { max-width: 420px; margin: 48px auto 0; }
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head .brand-mark { width: 42px; height: 42px; border-radius: 12px; font-size: 21px; margin-bottom: 12px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 14px; color: var(--ink-secondary); }

.list-plain { margin: 10px 0 0; padding-left: 20px; font-size: 13.5px; color: var(--ink-secondary); }
.list-plain li { margin-bottom: 5px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 620px) {
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .topnav-inner { padding: 0 14px; gap: 4px; }
  .navlinks a { padding: 8px 9px; font-size: 13px; }
  .brand span:not(.brand-mark) { display: none; }
  .page { padding: 20px 14px 60px; }
}

/* --------------------------------------------------------------------------
   Landing page
   -------------------------------------------------------------------------- */

.landing-body { background: var(--surface-raised); }
.landing-nav-inner { max-width: 1160px; }

.btn-lg { padding: 13px 24px; font-size: 15.5px; border-radius: 12px; }

.hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: 64px 20px 40px;
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-inner h1 {
  font-size: 42px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 16px 0 18px;
}

.hero-sub {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 520px;
  margin: 0 0 26px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }

.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.hero-visual {
  position: relative;
  min-height: 320px;
}

.mock-card {
  position: absolute;
  width: 240px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px;
}
.mock-card-1 { top: 0; right: 30px; }
.mock-card-2 { top: 130px; right: 100px; }
.mock-card-3 { top: 260px; right: 10px; }

.mock-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
}
.mock-amount { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink-secondary); }

.mock-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.mock-dot-good { background: var(--good); }
.mock-dot-warn { background: var(--warning); }

.mock-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--brand-tint);
  color: var(--brand-ink);
}
.mock-tag-muted { background: var(--warning-bg); color: #7c3a06; }

.section { padding: 56px 20px; }
.section-tint { background: var(--surface); }
.section-inner { max-width: 1080px; margin: 0 auto; }

.section-title {
  font-size: 27px;
  text-align: center;
  margin-bottom: 6px;
}
.section-sub {
  text-align: center;
  color: var(--ink-secondary);
  font-size: 15px;
  margin: 0 0 38px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
}
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--ink-secondary); line-height: 1.55; margin: 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.feature-icon { font-size: 24px; margin-bottom: 10px; }
.feature h3 { font-size: 15.5px; margin-bottom: 7px; }
.feature p { font-size: 13.5px; color: var(--ink-secondary); line-height: 1.55; margin: 0; }

.cta-band {
  text-align: center;
  background: var(--brand);
  border-radius: 20px;
  padding: 48px 32px;
  color: #fff;
}
.cta-band h2 { font-size: 26px; color: #fff; margin: 0 0 8px; }
.cta-band p { font-size: 15px; color: rgba(255,255,255,.86); margin: 0 0 24px; }
.cta-band .btn { background: #fff; color: var(--brand-dark); }
.cta-band .btn:hover { background: #f0fdfa; }

.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 18px; }
.faq-item {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.faq-item h3 { font-size: 14.5px; margin-bottom: 6px; }
.faq-item p { font-size: 13.5px; color: var(--ink-secondary); line-height: 1.55; margin: 0; }

.landing-footer {
  border-top: 1px solid var(--border);
  padding: 32px 20px 40px;
}
.landing-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.landing-footer-links { display: flex; gap: 16px; margin-left: auto; }
.landing-footer-links a { font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--ink-secondary); }
.landing-footer-copy {
  width: 100%;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin: 8px 0 0;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-inner h1 { font-size: 32px; }
  .hero-visual { display: none; }
  .steps, .features-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 20px; }
}

/* --------------------------------------------------------------------------
   Legal pages (Privacy, Terms, Cookies)
   -------------------------------------------------------------------------- */
.page-legal { max-width: 760px; }
.legal-doc { line-height: 1.65; font-size: 15px; }
.legal-doc .legal-updated { color: var(--ink-muted); font-size: 13px; margin: -8px 0 28px; }
.legal-doc h2 {
  font-size: 20px;
  margin: 40px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.legal-doc h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.legal-doc h3 { font-size: 15px; margin: 20px 0 8px; }
.legal-doc p { margin: 0 0 14px; }
.legal-doc ul, .legal-doc ol { margin: 0 0 14px; padding-left: 22px; }
.legal-doc li { margin: 0 0 8px; }
.legal-doc table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; }
.legal-doc th, .legal-doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal-doc th { color: var(--ink-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.legal-doc .legal-placeholder { background: var(--warning-bg); padding: 1px 5px; border-radius: 4px; }
.legal-nav { display: flex; gap: 16px; margin-bottom: 24px; font-size: 13.5px; }
.legal-nav a { color: var(--ink-secondary); font-weight: 600; }
.legal-nav a.active { color: var(--brand-ink); }

/* ---- WhatsApp pairing code (Settings) ---------------------------------- */
.whatsapp-code {
  background: var(--brand-tint);
  border-radius: 10px;
  padding: 16px;
  margin: 4px 0 16px;
  text-align: center;
}
.whatsapp-code-value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--brand-ink);
  margin: 0 0 12px;
  font-variant-numeric: tabular-nums;
}

/* ---- Tax year selector (Dashboard) ------------------------------------- */
.year-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: -6px 0 20px;
}
.year-bar-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-muted);
  margin-right: 2px;
}
.year-pill {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--surface-2, #f1f3f5);
  border: 1px solid transparent;
  white-space: nowrap;
}
.year-pill:hover { color: var(--brand-ink); }
.year-pill.active {
  background: var(--brand-tint);
  color: var(--brand-ink);
  border-color: var(--brand-ink);
}

/* ---- Site-wide legal footer -------------------------------------------- */
.site-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 28px 20px 36px;
  font-size: 12.5px;
}
.site-footer a { color: var(--ink-muted); }
.site-footer a:hover { color: var(--brand-ink); }

/* ---- Signup wizard ------------------------------------------------------ */
.page-onboarding { padding-top: 28px; }

.onboard-head { position: relative; text-align: center; margin-bottom: 22px; }
.onboard-head h1 { margin: 4px 0 0; font-size: 27px; }
.onboard-skip-form { position: absolute; top: 0; right: 0; margin: 0; }
.onboard-step-count {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: var(--ink-muted); margin: 0;
}
.linklike {
  background: none; border: none; padding: 4px 2px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--ink-muted);
  font-family: inherit;
}
.linklike:hover { color: var(--brand-ink); }

.onboard-lead {
  text-align: center; color: var(--ink-secondary);
  margin: 0 auto 20px; max-width: 30em; line-height: 1.55;
}
.onboard-note { text-align: center; margin-top: 14px; }
.onboard-form { margin: 0; }

.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.chip {
  border: 1px solid var(--line, #dee2e6); background: transparent;
  border-radius: 999px; padding: 6px 12px; font-size: 12.5px;
  font-weight: 600; color: var(--ink-secondary); cursor: pointer;
  font-family: inherit;
}
.chip:hover { border-color: var(--brand-ink); color: var(--brand-ink); }

.choice-list { display: flex; flex-direction: column; gap: 10px; }
/* These cards are <label> elements so the whole card is tappable, which
   means they inherit the uppercase muted styling meant for form field
   labels. Reset it here rather than weakening the global rule. */
.choice {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px; border-radius: 12px; cursor: pointer;
  background: var(--surface, #fff); border: 2px solid var(--line, #dee2e6);
  text-transform: none; letter-spacing: normal; margin: 0;
  font-size: 15px; font-weight: 400; color: var(--ink, #212529);
}
.choice:hover { border-color: var(--ink-muted); }
.choice.selected { border-color: var(--brand-ink); background: var(--brand-tint); }
.choice input[type=radio] { margin: 3px 0 0; flex: none; accent-color: var(--brand-ink); }
.choice-body { display: flex; flex-direction: column; gap: 3px; }
.choice-label { font-weight: 650; font-size: 15px; color: var(--ink, #212529); }
.choice-hint { font-size: 13px; color: var(--ink-muted); line-height: 1.45; }

.onboard-dots { display: flex; justify-content: center; gap: 7px; margin: 26px 0 16px; }
.onboard-dots .dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--line, #dee2e6);
}
.onboard-dots .dot.active { width: 22px; background: var(--brand-ink); }

.btn-lg { padding: 14px 20px; font-size: 15.5px; border-radius: 999px; }

/* ---- Dashboard nudge to finish the wizard ------------------------------ */
.nudge {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--brand-tint); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 20px;
}
.nudge-text { flex: 1 1 240px; font-size: 14px; color: var(--brand-ink); }
.nudge form { margin: 0; }

/* ---- Landing page pricing ---------------------------------------------- */
.pricing-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #dee2e6);
  border-radius: 18px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 10px 34px rgba(15, 26, 23, .07);
}
.pricing-plan {
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-muted); margin: 0 0 10px;
}
.pricing-amount {
  margin: 0; font-size: 54px; font-weight: 700; line-height: 1;
  color: var(--ink, #0f1a17); letter-spacing: -.02em;
}
.pricing-currency { font-size: 30px; vertical-align: super; margin-right: 2px; }
.pricing-period { font-size: 17px; font-weight: 600; color: var(--ink-muted); }
.pricing-trial {
  margin: 12px 0 22px; font-size: 14px; font-weight: 600;
  color: var(--brand-ink);
}
.pricing-list {
  list-style: none; padding: 0; margin: 0 0 26px;
  text-align: left; display: flex; flex-direction: column; gap: 11px;
}
.pricing-list li {
  position: relative; padding-left: 27px; font-size: 15px; line-height: 1.45;
}
.pricing-list li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  color: var(--brand-ink); font-weight: 700;
}
.pricing-note {
  margin: 16px 0 0; font-size: 12.5px; line-height: 1.55;
  color: var(--ink-muted);
}
