/* AI Marketer Club tools: shared look for every tool page.
   Light business look (changed 12 November 2026, Achuth's call): white page, near-black text,
   ONE violet accent used sparingly to guide the eye: the headline result, the chosen mode,
   the main button and keyboard focus. Green, amber and red only ever mean good, short and loss.
   Fonts: Fraunces (headings), Inter Tight (everything else). */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f6f9;     /* inputs, quiet panels */
  --surface-3: #ececf2;     /* hover on quiet panels */
  --line: #e3e4ec;          /* dividers and card edges */
  --line-strong: #8f93a7;   /* input edges: 3:1 against white, so boxes are easy to find */
  --text: #14151f;
  --text-2: #2b2e3b;        /* long reading text */
  --muted: #555a6b;
  --accent: #6526d9;        /* violet: 7.4:1 on white, readable even as small text */
  --accent-soft: #f2edff;
  --accent-ink: #ffffff;
  --good: #137a3a;
  --good-soft: #effaf2;
  --amber: #9a4b00;
  --amber-soft: #fff7e8;
  --bad: #b4232a;
  --bad-soft: #fdf0f0;
  --shadow: 0 1px 2px rgba(20, 21, 31, 0.04), 0 8px 28px rgba(20, 21, 31, 0.07);
  --radius: 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.brand-mark { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.brand-mark span { color: var(--accent); }
.brand-name { font-size: 15px; color: var(--muted); font-weight: 500; }
.header-link { font-size: 15px; color: var(--muted); text-decoration: none; }

/* Hero */
.hero { padding-top: 48px; padding-bottom: 28px; }
.kicker { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
h1 { font-size: clamp(34px, 6vw, 54px); margin: 0 0 16px; }
h2 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 16px; }
h3 { font-size: 21px; margin: 0 0 8px; }
.lede { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0; }

/* Calculator layout */
.calc { display: grid; gap: 20px; padding-bottom: 32px; }
@media (min-width: 900px) {
  .calc { grid-template-columns: 1.05fr 1fr; align-items: start; }
  .results { position: sticky; top: 20px; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
@media (min-width: 720px) { .card { padding: 28px; } }

.card-title { font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }

/* Form */
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.field .hint { display: block; font-size: 14px; color: var(--muted); margin-top: 5px; line-height: 1.45; }
.field-row { display: grid; gap: 18px; margin-bottom: 18px; }
.field-row:last-child { margin-bottom: 0; }
.field-row .field { margin-bottom: 0; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }

.input-box {
  display: flex; align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-box .affix { padding: 0 0 0 14px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 14px; }
.input-box .affix.after { padding: 0 14px 0 0; }
.input-box input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: none;
  color: var(--text); font: inherit; font-size: 18px;
  padding: 12px 14px;
  font-variant-numeric: tabular-nums;
}
.input-box input:focus-visible { outline: none; }
.input-box input::-webkit-outer-spin-button,
.input-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input-box input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.input-box input::placeholder { color: #80849a; }

select {
  width: 100%;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 10px;
  font: inherit; font-size: 16px; padding: 12px 14px;
}

.divider { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.optional-tag { font-weight: 500; color: var(--muted); font-size: 14px; }

/* Results */
.big-label { font-size: 15px; color: var(--muted); margin: 0; }
.big-number {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(56px, 11vw, 84px); line-height: 1;
  color: var(--accent); margin: 6px 0 4px;
  font-variant-numeric: tabular-nums;
}
.big-sub { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.big-sub:has(+ .basis-note) { margin-bottom: 6px; }
/* The one short qualification under the main result */
.basis-note { margin: 0 0 20px; font-size: 14px; color: var(--muted); }

.stat-list { list-style: none; margin: 0; padding: 0; }
.stat-list li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 16px; }
.stat-list li span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

.verdict, .notice { margin-top: 18px; padding: 14px 16px; border-radius: 10px; font-size: 16px; line-height: 1.5; background: var(--surface-2); border: 1px solid var(--line); overflow-wrap: anywhere; }
.verdict strong, .notice strong { display: block; margin-bottom: 4px; }
.verdict p { margin: 0 0 6px; }
.verdict p:last-child { margin-bottom: 0; }
/* Status colours sit in a thin left edge and the title; the body text stays dark and readable */
.verdict.tone-good { background: var(--good-soft); border-color: #bfe6cb; border-left: 4px solid var(--good); }
.verdict.tone-good strong { color: var(--good); }
.verdict.tone-short { background: var(--amber-soft); border-color: #f3dcb0; border-left: 4px solid var(--amber); }
.verdict.tone-short strong { color: var(--amber); }
.verdict.tone-loss { background: var(--bad-soft); border-color: #f2c7c9; border-left: 4px solid var(--bad); }
.verdict.tone-loss strong { color: var(--bad); }
.notice { background: var(--amber-soft); border-color: #f3dcb0; border-left: 4px solid var(--amber); }
.notice strong { color: var(--amber); }
.verdict[hidden], .notice[hidden] { display: none; }


/* Example label and the two small buttons */
.example-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: -4px 0 20px; }
.example-bar p { margin: 0; font-size: 14px; color: var(--muted); }
.example-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; margin-right: 4px; }
.example-tag[hidden] { display: none; }
.button-quiet {
  font: inherit; font-size: 15px; font-weight: 600;
  color: var(--text); background: transparent;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 9px 16px; min-height: 44px; cursor: pointer;
}
.button-quiet:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.button-quiet:disabled { opacity: 0.45; cursor: not-allowed; }

.tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 20px; }
.copy-status { font-size: 15px; color: var(--good); }
.copy-fallback { margin-top: 14px; }
.copy-fallback label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.copy-fallback textarea { width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px; font: 14px/1.5 ui-monospace, Menlo, monospace; resize: vertical; }
.copy-fallback[hidden] { display: none; }

/* Errors beside each box */
.field-error { display: block; font-size: 14px; color: var(--bad); margin-top: 5px; font-weight: 600; line-height: 1.4; }
.field-error[hidden] { display: none; }
.input-box.has-error { border-color: var(--bad); }

/* Text only screen readers hear */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.message { padding: 18px; border-radius: 10px; background: var(--bad-soft); border: 1px solid #f2c7c9; border-left: 4px solid var(--bad); }
.message strong { color: var(--bad); display: block; margin-bottom: 4px; }

.privacy-note { font-size: 14px; color: var(--muted); margin: 18px 0 0; }

/* Article content below the tool */
/* Optional help below the calculator: collapsed panels, opened with a click, Enter or Space */
.help { display: grid; gap: 12px; padding-bottom: 8px; }
.help-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.help-panel[hidden] { display: none; }
.help-panel summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 14px 20px;
  font-weight: 600; font-size: 18px; border-radius: var(--radius);
}
.help-panel summary::-webkit-details-marker { display: none; }
.help-panel summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
.help-panel[open] summary::after { content: "\2212"; }
.help-panel summary:hover { background: var(--surface-2); }
.help-panel .prose { padding: 4px 20px 22px; }
.help-panel h3 { font-size: 19px; margin: 22px 0 8px; }
.prose { max-width: 720px; }
.prose p, .prose li { color: var(--text-2); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.formula {
  font-family: var(--serif); font-size: 22px;
  background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 16px 20px; margin: 8px 0 20px;
}
.example-list { list-style: none; padding: 0 !important; }
.example-list li { padding: 6px 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }


/* Newsletter call to action */
.cta { padding-top: 48px; padding-bottom: 64px; }
.cta .card { display: grid; gap: 16px; align-items: center; }
@media (min-width: 760px) { .cta .card { grid-template-columns: 1fr auto; } }
.cta p { margin: 0; color: var(--muted); }
.button {
  display: inline-block; text-align: center;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; text-decoration: none;
  padding: 14px 22px; border-radius: 999px;
}
.button:hover { color: var(--accent-ink); background: #5520b8; }

/* Tool list on the home page */
.tool-grid { display: grid; gap: 16px; padding-bottom: 64px; }
@media (min-width: 720px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
.tool-card { text-decoration: none; display: block; }
.tool-card:hover { border-color: var(--accent); color: var(--text); }
.tool-card p { color: var(--muted); margin: 0; }
.card-action { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--accent); }

/* Phones only: the result stays visible at the bottom while you type */
.mobile-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; font-size: 15px; color: var(--muted);
  box-shadow: 0 2px 6px rgba(20, 21, 31, 0.06), 0 10px 30px rgba(20, 21, 31, 0.16);
}
.mobile-bar strong { font-family: var(--serif); font-size: 24px; color: var(--accent); font-variant-numeric: tabular-nums; }
.mobile-bar.is-error strong { color: var(--bad); font-family: var(--sans); font-size: 15px; }
@media (min-width: 900px) { .mobile-bar { display: none; } }
@media (max-width: 899px) {
  body { padding-bottom: 88px; }
  /* When a box gets keyboard focus, the page scrolls so the bar never sits on top of it */
  html { scroll-padding-bottom: 96px; }
}

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }


/* Products / Leads switch: two radio buttons styled as one control.
   Radios give keyboard support for free: Tab to reach it, arrow keys to change mode. */
.mode-switch { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; min-width: 0; }
.mode-legend { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 10px; }
.mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; max-width: 520px; }
.mode-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mode-options label {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 52px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: 17px; color: var(--text); text-align: center; line-height: 1.2;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.mode-options label .mode-sub { font-size: 13px; font-weight: 500; color: var(--muted); }
.mode-options label:hover { background: var(--surface-3); }
.mode-options input:checked + label { background: var(--accent); color: var(--accent-ink); box-shadow: 0 2px 8px rgba(101, 38, 217, 0.25); }
.mode-options input:checked + label .mode-sub { color: rgba(255, 255, 255, 0.85); }
.mode-options input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }

/* A money amount as the headline needs a smaller size than "2.00x" to fit on a phone */
.big-number--money { font-size: clamp(40px, 8vw, 64px); overflow-wrap: anywhere; }

/* Anything for the other mode stays out of the way */
[data-mode][hidden] { display: none !important; }
