/* ProfTips — site styles. Tokens first, then layout, then pages. */
:root {
  --ink: #0b1c2e;        /* text, headings */
  --ink-2: #33475b;      /* secondary text */
  --slate: #6b7c8c;      /* meta */
  --line: #d9e1e8;       /* rules */
  --paper: #ffffff;      /* page */
  --paper-2: #f3f6f8;    /* panels */
  --green: #1fa37a;      /* signal: won, primary action */
  --green-ink: #147a5a;
  --red: #c8432b;        /* signal: lost */
  --amber: #c9861c;      /* void / pending */
  --max: 68rem;
  --measure: 66ch;
  --radius: 10px;
  --font: "Manrope", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--paper);
  font-feature-settings: "tnum" 1, "ss01" 1;
}
a { color: var(--green-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p, li { max-width: var(--measure); }
small, .meta { color: var(--slate); font-size: .92rem; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.prose { width: min(100% - 2.5rem, 46rem); margin-inline: auto; }
.prose h2 { margin-top: 2.2rem; }
.prose ul { padding-left: 1.2rem; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 1.2rem; align-items: center; font-size: .95rem; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.nav .btn { padding: .55rem 1rem; }
@media (max-width: 767px) { .nav .hide-m { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.35rem; border-radius: var(--radius);
  background: var(--green); color: #fff; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 700;
}
.btn:hover { background: var(--green-ink); color: #fff; }
.btn.secondary { background: var(--paper-2); color: var(--ink); }
.btn.secondary:hover { background: var(--line); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* hero */
.hero { padding: 2.5rem 0 1.5rem; }
.hero h1 { max-width: 20ch; }
.hero .lede { font-size: 1.15rem; color: var(--ink-2); max-width: 52ch; margin: 0 0 1.4rem; }
.hero .actions { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }

/* record panel — the one bold element */
.record { background: var(--ink); color: #fff; border-radius: 16px; padding: 1.5rem; margin: 2rem 0 3rem; }
.record h2 { color: #fff; font-size: 1.05rem; font-weight: 700; margin: 0 0 1rem; letter-spacing: 0; }
.record .as-of { color: #9fb0c1; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.5rem; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat b { display: block; font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.4rem); font-weight: 800; line-height: 1.1; }
.stat span { color: #9fb0c1; font-size: .9rem; }
.stat .pos { color: #4ad3a5; }
.stat .neg { color: #ff8a70; }
.strip { display: flex; flex-wrap: wrap; gap: 5px; margin: .25rem 0 .6rem; }
.strip i {
  width: 18px; height: 26px; border-radius: 3px; background: #2a3d52; display: block;
}
.strip i.win { background: var(--green); }
.strip i.loss { background: var(--red); }
.strip i.void { background: var(--amber); }
.record .legend { color: #9fb0c1; font-size: .85rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.record .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.record .empty { color: #c8d3de; }

/* sections */
section { padding: 2.5rem 0; }
section + section { border-top: 1px solid var(--line); }
.cols { display: grid; gap: 1.5rem 2.5rem; }
@media (min-width: 768px) { .cols { grid-template-columns: 1fr 1fr; } }
.steps { display: grid; gap: 1.2rem; counter-reset: step; padding: 0; margin: 0; list-style: none; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { position: relative; padding-top: 2.1rem; }
.steps li::before {
  counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0;
  width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--paper-2); color: var(--ink); font-weight: 800; font-size: .9rem;
  display: grid; place-items: center;
}
.steps h3 { margin-bottom: .25rem; }

/* pricing */
.plans { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 768px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; display: flex; flex-direction: column; gap: .4rem; }
.plan.first { border-color: var(--green); box-shadow: inset 0 3px 0 var(--green); }
.plan .name { font-weight: 700; color: var(--ink-2); }
.plan .price { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.plan .price s { color: var(--slate); font-size: 1.1rem; font-weight: 600; margin-right: .3rem; }
.plan .per { color: var(--slate); font-size: .9rem; min-height: 1.3em; }
.plan .btn { margin-top: auto; }
.fine { color: var(--slate); font-size: .9rem; margin-top: 1rem; }

/* faq */
.faq details { border-top: 1px solid var(--line); padding: .8rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--slate); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: .6rem 0 0; color: var(--ink-2); }

/* results page */
.table { width: 100%; border-collapse: collapse; font-size: .95rem; margin-top: 1rem; }
.table th, .table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 700; color: var(--ink-2); font-size: .85rem; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }
.table .win { color: var(--green-ink); font-weight: 700; }
.table .loss { color: var(--red); font-weight: 700; }
.table .void { color: var(--amber); font-weight: 700; }
.table-wrap { overflow-x: auto; }
@media (max-width: 767px) { .table .hide-m { display: none; } }
.breakdown { display: grid; gap: .4rem; padding: 0; list-style: none; margin: 1rem 0 0; }

/* checkout */
.card { border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; background: var(--paper); }
.checkout { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .checkout { grid-template-columns: 1.2fr .8fr; align-items: start; } }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; margin: 0; }
.summary dt { color: var(--ink-2); }
.summary dd { margin: 0; font-weight: 700; text-align: right; }
.summary .total { border-top: 1px solid var(--line); padding-top: .6rem; font-size: 1.2rem; }
.consent { display: grid; gap: .9rem; margin: 1.2rem 0; }
.consent label { display: grid; grid-template-columns: 1.4rem 1fr; gap: .7rem; align-items: start; cursor: pointer; }
.consent input { width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; accent-color: var(--green); }
.notice { background: var(--paper-2); border-radius: var(--radius); padding: .9rem 1rem; color: var(--ink-2); font-size: .95rem; }
.error { color: var(--red); font-weight: 600; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; margin-top: 3rem; color: var(--slate); font-size: .9rem; }
footer .links { display: flex; gap: 1rem 1.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer p { max-width: none; }
.age { display: inline-block; border: 2px solid var(--ink); border-radius: 50%; width: 2.2rem; height: 2.2rem; line-height: 1.9rem; text-align: center; font-weight: 800; font-size: .8rem; color: var(--ink); margin-right: .6rem; }
