/* Inbox Tuner. Layout: one column of sections with a max width; the hero pairs the pitch with a before/after pair
   of email cards. Palette: ink on a cool off-white, a signal green for Primary and amber for Promotions. */
:root {
  --ink: #131b2e;
  --ink-2: #353e54;      /* secondary text: leads, email lines, answers */
  --muted: #5b6477;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --line: #e2e5eb;
  --field-line: #cfd4dd; /* input borders */
  --surface-2: #fcfcfd;  /* the written email */
  --brand: #2f55d4;
  --brand-ink: #ffffff;
  --brand-soft: #e8edfc;
  --good: #11744f;
  --good-soft: #e3f4ec;
  --warn: #9a5b00;
  --warn-soft: #fdf1dc;
  --bad: #b3341a;
  --bad-soft: #fbe7e2;
  --radius: 12px;
  --shadow-card: 0 10px 30px -18px rgba(19, 27, 46, .35);
  --shadow-tool: 0 14px 40px -26px rgba(19, 27, 46, .4);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); }
a { color: var(--brand); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: .6em; }
.kicker a { color: inherit; text-decoration: none; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.fine { font-size: .8rem; color: var(--muted); padding-bottom: 28px; }

/* Header and footer */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.dial { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--ink); position: relative; flex: none; }
.dial::after { content: ""; position: absolute; width: 3px; height: 9px; background: var(--good); left: 50%; top: 2px; transform: translateX(-50%) rotate(35deg); transform-origin: 50% 100%; border-radius: 2px; }
.top nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.top nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.top nav a.btn { color: var(--brand-ink); }
.foot { background: var(--surface); border-top: 1px solid var(--line); margin-top: 0; }
.foot-row { display: flex; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 12px; flex-wrap: wrap; }
.foot-row p { max-width: 380px; margin-top: 8px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.foot-links a { color: var(--ink); text-decoration: none; }

/* Buttons and forms */
.btn { display: inline-block; border: 0; border-radius: 10px; padding: 12px 20px; font: 600 1rem var(--font); cursor: pointer; text-decoration: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.small { padding: 8px 14px; font-size: .92rem; background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 2px; }
label { display: block; font-weight: 600; font-size: .95rem; margin: 0 0 14px; }
.opt { font-weight: 400; color: var(--muted); }
input, textarea, select { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--field-line); border-radius: 9px; font: 400 1rem var(--font); background: var(--surface); color: var(--ink); }
textarea { resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hint { color: var(--muted); font-size: .88rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin: 8px 0 0; font-size: .92rem; }
.form-msg.ok { color: var(--good); }
.form-msg.bad { color: var(--bad); }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero { padding: 64px 0 40px; }
.hero.slim { padding: 48px 0 8px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 12px; }

/* Before/after email cards */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.mail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 10px; box-shadow: var(--shadow-card); font-size: .88rem; min-width: 0; }
.mail.before { opacity: .9; }
.mail-tab { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }
.mail-tab.promo { background: var(--warn-soft); color: var(--warn); }
.mail-tab.prim { background: var(--good-soft); color: var(--good); }
.mail-from { font-weight: 700; margin: 0; }
.mail-subj { margin: 0 0 6px; font-weight: 600; }
.mail-line { margin: 0 0 6px; color: var(--ink-2); overflow-wrap: anywhere; }
.mail-line.strong { font-weight: 700; }
.arrow { font-size: 1.6rem; color: var(--muted); }
.ba-note { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); margin: 4px 0 0; text-align: center; }

/* The tool */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px 22px; box-shadow: var(--shadow-tool); }
.tool-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 0 -22px 18px; padding: 0 22px; }
.tool-tabs button { border: 0; background: none; font: 600 1rem var(--font); padding: 10px 6px; margin-right: 14px; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; }
.tool-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); }
.formula-note { font-size: .9rem; color: var(--muted); margin-top: -4px; }
.result { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.result[hidden] { display: none; }
.working { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.spinner { width: 18px; height: 18px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.verdict { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; }
.verdict.personal { background: var(--good-soft); color: var(--good); }
.verdict.mixed { background: var(--warn-soft); color: var(--warn); }
.verdict.promotions { background: var(--bad-soft); color: var(--bad); }
.flagged { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.flagged li { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.flagged .text { margin: 0 0 4px; overflow-wrap: anywhere; }
.flagged .why { margin: 0; font-size: .88rem; color: var(--warn); }
.flagged .fix { margin: 6px 0 0; font-size: .92rem; color: var(--good); }
.plan { padding-left: 0; list-style: none; counter-reset: p; display: grid; gap: 8px; margin: 0 0 18px; }
.plan li { counter-increment: p; display: grid; grid-template-columns: 34px 1fr; gap: 4px 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.plan li::before { content: counter(p); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; display: grid; place-items: center; font-size: .85rem; }
.plan .role { font-weight: 700; }
.plan .when { color: var(--muted); font-weight: 400; font-size: .85rem; }
.plan .why { font-size: .92rem; color: var(--ink-2); }
.email { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--surface-2); }
.email .subj { font-weight: 700; margin-bottom: 10px; }
.email .body p { margin: 0 0 .7em; }
.email .ph { background: var(--brand-soft); color: var(--brand); border-radius: 4px; padding: 0 3px; font-family: var(--mono); font-size: .9em; }
.after-email { margin-top: 10px; }
.next { margin-top: 18px; padding: 16px; border-radius: 12px; background: var(--brand-soft); }
.next h3 { margin-bottom: .3em; }
.reserve { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.reserve input[type=email] { flex: 1 1 220px; width: auto; margin: 0; }
.reserve .form-msg { flex-basis: 100%; }

/* Cards, steps, pricing, FAQ, prose, tables */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--ink); text-decoration: none; }
.card.link:hover { border-color: var(--brand); }
.card.soon { border-style: dashed; }
.card .tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--muted); }
.mini { margin: 0; padding-left: 20px; color: var(--muted); font-size: .9rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; background: var(--bg); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(s); display: block; font-weight: 800; font-size: 1.6rem; color: var(--brand); margin-bottom: 6px; }
.proof p { font-size: 1.08rem; }
.price-card { background: var(--surface); border: 2px solid var(--brand); border-radius: 16px; padding: 24px; margin-bottom: 16px; }
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; margin: 18px 0 24px; }
.package { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; }
.package.best { border: 2px solid var(--brand); }
.package .tag { position: absolute; top: -12px; left: 20px; margin: 0; padding: 2px 10px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.package .ticks { flex: 1; font-size: .95rem; }
.package .price { font-size: 2.4rem; }
.package .btn { align-self: flex-start; }
.package.picked { box-shadow: 0 0 0 3px var(--brand-soft); }
.reserve-box { margin: 0 auto; }
.reserve select { width: auto; flex: 0 1 220px; margin: 0; }
.price-head { display: flex; align-items: baseline; gap: 10px; }
.price { font-size: 3rem; font-weight: 800; letter-spacing: -.03em; }
.per { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 4px; color: var(--good); font-weight: 800; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }
.prose h2 { margin-top: 1.4em; font-size: 1.5rem; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.tablewrap { overflow-x: auto; margin-bottom: 28px; }
table { border-collapse: collapse; width: 100%; background: var(--surface); font-size: .9rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
code { font-family: var(--mono); font-size: .9em; background: var(--bg); padding: 1px 5px; border-radius: 4px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .packages { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .row2 { grid-template-columns: 1fr; }
  .ba { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); justify-self: center; }
  .top-row { flex-wrap: nowrap; }
  .top nav a:not(.btn) { display: none; }
  .tool { padding: 14px 14px 18px; }
  .tool-tabs { margin: 0 -14px 16px; padding: 0 14px; }
  .section { padding: 44px 0; }
}
