/* AceFinch — shared stylesheet (DARK theme, 2026-11-30)
   Design tokens copied verbatim from the approved dark homepage mockup
   (solopreneur-homepage-redesign-dark): near-black #0a0a0c, gold #d4af37,
   warm off-white ink #f4f1e8. Headings Newsreader, body Public Sans. */
:root {
  --bg: #0a0a0c;
  --bg-2: #0f0f12;
  --panel: #151518;
  --panel-2: #1a1a1f;
  --ink: #f4f1e8;
  --muted: #a8a294;
  --muted-2: #7e7a6e;
  --gold: #d4af37;
  --gold-bright: #e9c95c;
  --gold-deep: #a8842a;
  --gold-soft: #f3e3ae;
  --gold-dim: rgba(212,175,55,.14);
  --gold-line: rgba(212,175,55,.32);
  --line: #26262c;
  --radius: 20px;
  --nav-ink: #cfc9b8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: "Newsreader", Georgia, serif; color: var(--ink); line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-top: 2rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Header */
.site-header { background: rgba(10,10,12,.92); border-bottom: 1px solid var(--line); }
.site-header .wrap { max-width: 1080px; margin: 0 auto; padding: .9rem 1rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.wordmark { font-family: "Newsreader", Georgia, serif; font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.wordmark span { color: var(--gold-bright); }
.wordmark:hover { text-decoration: none; }
.main-nav { margin-left: auto; display: flex; gap: 1.1rem; flex-wrap: wrap; }
.main-nav a { color: var(--nav-ink); font-weight: 600; font-size: .95rem; }
.main-nav a:hover { color: var(--gold-bright); }

/* Layout */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1rem; }
main.wrap { padding-top: 1.5rem; padding-bottom: 3rem; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: .75rem; }
.breadcrumb a { color: var(--muted); }

/* Tier badges */
.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; margin: .25rem 0 1rem; }
.badge-starter { background: var(--gold); color: #171204; }
.badge-trader { background: var(--panel-2); color: var(--gold-soft); border: 1px solid var(--gold-line); }
.badge-pro { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.badge-useful { background: #232329; color: var(--muted); }

/* Cards and grids */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin: 1rem 0; }
.card h3 { margin-bottom: .25rem; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: .5rem; }
.card .meta { font-size: .8rem; color: var(--muted); }

/* Example + notice boxes */
.example-box { background: var(--panel-2); border-left: 4px solid var(--gold); border-radius: 8px; padding: 1rem 1.25rem; margin: 1.25rem 0; }
.example-box h3 { margin-bottom: .25rem; }
.notice { background: #221c0b; color: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 8px; padding: .9rem 1.1rem; margin: 1.25rem 0; font-size: .95rem; }
.notice strong { color: var(--gold-soft); }
.info-box { background: var(--panel-2); border-radius: 8px; padding: .9rem 1.1rem; margin: 1.25rem 0; }

/* Forms and widgets */
.tool-widget { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin: 1.25rem 0; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .3rem; }
.field .hint { font-size: .85rem; color: var(--muted); font-weight: 400; }
.field input[type="text"], .field input[type="number"], .field input[type="date"],
.field input[type="email"], .field input[type="password"], .field select, .field textarea { width: 100%; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--panel-2); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: 2px solid var(--gold); outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.btn { display: inline-block; background: linear-gradient(150deg, #e9c95c, #c39d2e); color: #171204; border: none; border-radius: 999px; padding: .65rem 1.3rem; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 8px 22px rgba(212,175,55,.30); }
.btn:hover { filter: brightness(1.07); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn-secondary:hover { background: var(--panel-2); filter: none; }
.btn-row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.result { background: var(--panel-2); border-radius: 8px; padding: 1rem 1.25rem; margin-top: 1rem; }
.result .big { font-family: "Newsreader", Georgia, serif; font-size: 1.8rem; font-weight: 700; color: var(--gold-soft); }
.result .steps { font-size: .92rem; color: var(--muted); margin-top: .5rem; white-space: pre-line; }
textarea.output, pre.output { width: 100%; min-height: 180px; padding: .8rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--panel-2); color: var(--ink); white-space: pre-wrap; }

/* Checklists and trackers */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.checklist input[type="checkbox"] { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--gold); flex-shrink: 0; }
.checklist li.done span { text-decoration: line-through; color: var(--muted); }
.progress { height: 10px; background: #2a2a30; border-radius: 999px; overflow: hidden; margin: .5rem 0; }
.progress > div { height: 100%; background: linear-gradient(90deg, #e9c95c, #c39d2e); width: 0%; }
table.data { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
table.data th, table.data td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
table.data th { color: var(--ink); }

/* Pills and search */
.pill-row { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0; }
.pill { display: inline-block; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: .9rem; font-weight: 600; cursor: pointer; }
.pill.active { background: linear-gradient(150deg, #e9c95c, #c39d2e); color: #171204; border-color: transparent; }
.search-box { width: 100%; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; margin: .5rem 0 1rem; background: var(--panel-2); color: var(--ink); }
.tool-list { list-style: none; padding: 0; }
.tool-list li { padding: .55rem 0; border-bottom: 1px solid var(--line); display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap; }
.tool-list .cat { font-size: .8rem; color: var(--muted); }

/* Hero (homepage) */
.hero { background: radial-gradient(900px 420px at 78% -60px, rgba(212,175,55,.13), transparent 62%), linear-gradient(180deg, #101013 0%, #0a0a0c 80%); border: 1px solid var(--gold-line); color: var(--ink); border-radius: var(--radius); padding: 2.5rem 2rem; margin: 1.5rem 0; }
.hero h1 { color: var(--ink); font-size: 2.3rem; }
.hero p.lede { color: var(--nav-ink); font-size: 1.1rem; max-width: 640px; }
.hero .btn { background: linear-gradient(150deg, #e9c95c, #c39d2e); color: #171204; }
.hero .btn:hover { filter: brightness(1.07); }
.hero .btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.hero .btn-secondary:hover { background: var(--panel-2); }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-top: 1.75rem; }
.kpi { background: var(--panel-2); border: 1px solid var(--gold-line); border-radius: 10px; padding: .9rem 1rem; }
.kpi .num { font-family: "Newsreader", Georgia, serif; font-size: 1.5rem; font-weight: 700; color: var(--gold-bright); }
.kpi .lbl { font-size: .85rem; color: var(--muted); }
.tier-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0; }
.tier-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.tier-card.featured { border: 2px solid var(--gold); background: linear-gradient(170deg, #221c0b, #17150c); }
.tier-card .price { font-family: "Newsreader", Georgia, serif; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.tier-card .yearly { font-size: .85rem; color: var(--muted); margin-top: -.5rem; }
/* Plan cards on account.html: equal heights, action buttons pinned to one
   aligned row at the bottom. The trial-ends line lives in the footer below
   the button; its slot is always rendered (empty on other cards) so the
   button row stays level across all four cards. */
.tier-foot { margin-top: auto; display: flex; flex-direction: column; gap: .35rem; }
.tier-foot .btn { width: 100%; }
.trial-ends { margin: 0; min-height: 2.4rem; font-size: .85rem; line-height: 1.4; color: var(--muted); text-align: center; }
@media (max-width: 900px) { .tier-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tier-grid { grid-template-columns: 1fr; } }
.badge-soon { background: #232329; color: var(--gold-soft); border: 1px solid var(--gold-line); }
.tier-card ul { padding-left: 1.2rem; }

/* Footer — one shared footer on every page: brand line left, legal links right,
   gold top rule, wraps to a stacked layout on narrow screens. */
.site-footer { background: var(--bg-2); color: var(--muted); margin-top: 2.5rem; border-top: 1px solid var(--gold-line); }
.site-footer .foot-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 2rem; padding: 1.5rem 1rem; }
.site-footer .foot-brand { margin: 0; color: var(--ink); font-size: .95rem; }
.site-footer .foot-brand strong { color: var(--gold); font-weight: 700; }
.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; }
.site-footer .foot-links a { color: var(--nav-ink); font-weight: 600; font-size: .92rem; text-decoration: none; padding: .2rem 0; }
.site-footer .foot-links a:hover { color: var(--gold-bright); text-decoration: underline; }

/* Steps / journey */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1rem 0; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.step .n { font-family: "Newsreader", Georgia, serif; font-weight: 700; color: var(--gold-bright); font-size: 1.3rem; }

@media (max-width: 720px) {
  h1 { font-size: 1.6rem; }
  .hero { padding: 1.75rem 1.25rem; }
  .hero h1 { font-size: 1.8rem; }
  .main-nav { margin-left: 0; }
  .tool-widget { padding: 1rem; }
}
@media print {
  .site-header, .site-footer, .btn-row, .main-nav { display: none !important; }
  body { background: #fff; color: #111; }
  h1, h2, h3, h4 { color: #111; }
  .card, .tool-widget, .tier-card, .step { background: #fff; border-color: #ccc; }
  a { color: #087e77; }
}

.note { background: var(--panel-2); border-left: 4px solid var(--gold); border-radius: 8px; padding: 1rem 1.25rem; margin: 1.25rem 0; }

/* Search dropdown (autocomplete) — added 2026-11-30 */
.search-wrap { position: relative; }
.search-results { position: absolute; top: 100%; left: 0; right: 0; z-index: 50; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.55); margin-top: .3rem; max-height: 340px; overflow-y: auto; display: none; }
.search-results.open { display: block; }
.search-result { display: flex; align-items: center; gap: .6rem; padding: .6rem .85rem; color: var(--ink); border-bottom: 1px solid var(--line); }
.search-result:last-child { border-bottom: none; }
.search-result:hover, .search-result.active { background: var(--panel-2); text-decoration: none; }
.search-result .badge { margin: 0; font-size: .72rem; padding: .12rem .55rem; flex-shrink: 0; }
.search-result .sr-name { font-weight: 600; }
.search-result .sr-cat { margin-left: auto; font-size: .8rem; color: var(--muted); text-align: right; flex-shrink: 0; }
.search-result.no-results { color: var(--muted); cursor: default; }
.search-result.no-results:hover { background: var(--panel); }

/* Category boxes — name only (added 2026-11-30) */
/* Category grids — the last box (Growth, Planning & Wellbeing) sits centred
   in its row, right under Automation & AI (added 2026-11-30). Only where the
   grid is 3 columns wide; narrower screens flow normally. */
@media (min-width: 850px) {
  .cat-grid > :last-child { grid-column: 2; }
}

/* Contact form validation (added 2026-11-30) */
.field-error { color: #f2a0a0; font-size: .9rem; margin: .3rem 0 0; }
.char-count { font-size: .85rem; color: var(--muted); text-align: right; margin: .3rem 0 0; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #d96a6a; }

.cat-box { text-align: center; }
.cat-box h3 { margin-bottom: 0; }

/* Tier legend (added 2026-11-30) */
.tier-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 1rem 0 1.5rem; }
.legend-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; }
.legend-item .badge { margin: 0 .5rem 0 0; }
.legend-item p { margin: .5rem 0 0; font-size: .95rem; color: var(--muted); }

/* Tier check-mark lists (Moxie-style card lists, AceFinch brand) */
.tier-card ul.tier-list, ul.tier-list { list-style: none; padding-left: 0; margin: .5rem 0 1rem; }
.tier-list li { position: relative; padding: .22rem 0 .22rem 1.5rem; font-size: .92rem; line-height: 1.45; }
.tier-list li::before { content: "\2713"; position: absolute; left: 0; top: .22rem; color: var(--gold); font-weight: 700; }
.tier-card .btn { display: block; text-align: center; text-decoration: none; }
/* Free-trial note on tier cards — owner wording, bold gold pill (dark theme, 2026-11-30) */
.tier-card .trial { display: block; text-align: center; font-size: .92rem; font-weight: 800; line-height: 1.4; color: var(--gold-bright); background: var(--gold-dim); border: 1px solid var(--gold-line); border-radius: 999px; padding: .45rem .8rem; margin: .25rem 0 .75rem; }
/* Free-trial note inside body copy (signup page, dashboard) — same gold pill */
.trial-note { display: inline-block; font-weight: 800; line-height: 1.4; color: var(--gold-bright); background: var(--gold-dim); border: 1px solid var(--gold-line); border-radius: 999px; padding: .35rem .85rem; margin-top: .35rem; }
/* Trial note flowing inline inside the "What you get" paragraph (landing page) — no pill, so it reads as one continuous paragraph */
.trial-note-inline { display: inline; font-weight: 800; color: var(--gold-bright); }
/* Tier detail pages: category groups in two columns on wide screens */
.tier-groups { display: grid; grid-template-columns: 1fr; gap: 0 2.5rem; }
.tier-group h3 { margin-top: 1.25rem; }
@media (min-width: 700px) { .tier-groups { grid-template-columns: 1fr 1fr; } }
