/* ===== ProfitPeek marketing site ===== */
:root {
  --ink: #0b1220;
  --ink-2: #1e293b;
  --muted: #64748b;
  --line: #e6eaf0;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --brand: #10b981;
  --brand-d: #059669;
  --brand-dd: #047857;
  --neg: #ef4444;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 18, 32, 0.14);
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }
.grad {
  background: linear-gradient(100deg, var(--brand) 0%, var(--brand-dd) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.strike { text-decoration: line-through; text-decoration-color: var(--neg); text-decoration-thickness: 3px; color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand-d); margin-bottom: 14px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-size: 15px; padding: 12px 20px;
  border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand-d); color: #fff; box-shadow: 0 6px 18px rgba(5,150,105,.28); }
.btn--primary:hover { background: var(--brand-dd); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: #cdd6e2; }
.btn--lg { padding: 15px 26px; font-size: 16px; border-radius: 14px; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand__mark { color: var(--brand-d); display: inline-flex; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav__links a:hover { color: var(--brand-d); }
.nav__cta { margin-left: 8px; }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(16,185,129,.14), transparent 60%),
    radial-gradient(700px 500px at 0% 0%, rgba(5,150,105,.07), transparent 55%);
  padding: 84px 0 72px;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 54px; font-weight: 800; }
.lede { font-size: 19px; color: var(--ink-2); margin-top: 22px; max-width: 540px; }
.lede em { font-style: normal; color: var(--ink); font-weight: 600; }
.hero__actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.trustline { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; padding: 0; margin: 26px 0 0; color: var(--muted); font-size: 14px; font-weight: 500; }
.trustline li { color: var(--ink-2); }

/* ===== Hero visual ===== */
.hero__visual { position: relative; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px; }
.card--dash { transform: rotate(-1.2deg); }
.dash__head { display: flex; align-items: center; justify-content: space-between; }
.dash__title { font-weight: 600; color: var(--ink-2); font-size: 14px; }
.dash__big { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 18px; }
.dash__label { display: block; font-size: 13px; color: var(--muted); }
.dash__value { display: block; font-size: 38px; font-weight: 800; letter-spacing: -0.03em; }
.pill { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.pill--live { color: var(--brand-d); background: rgba(16,185,129,.12); }
.pill--up { color: var(--brand-dd); background: rgba(16,185,129,.14); }
.dash__bars { display: flex; align-items: flex-end; gap: 8px; height: 92px; margin-bottom: 18px; }
.bar { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--brand) 0%, var(--brand-d) 100%); border-radius: 6px 6px 3px 3px; opacity: .9; }
.dash__rows { border-top: 1px solid var(--line); padding-top: 12px; }
.row { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; color: var(--ink-2); }
.row--neg span:last-child { color: var(--neg); }
.row--net { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 800; color: var(--ink); font-size: 16px; }
.row--net span:last-child { color: var(--brand-dd); }
.card--roas {
  position: absolute; right: -14px; bottom: -28px; width: 190px; padding: 18px 20px;
  transform: rotate(2deg); text-align: left;
}
.roas__value { display: block; font-size: 34px; font-weight: 800; color: var(--brand-dd); letter-spacing: -0.03em; }
.roas__note { font-size: 12px; color: var(--muted); }

/* ===== Band ===== */
.band { background: var(--ink); color: #fff; padding: 64px 0; }
.band__inner { text-align: center; max-width: 880px; margin: 0 auto; }
.band__line { font-size: 34px; font-weight: 800; }
.band .strike { color: #93a2b8; }
.band__sub { color: #aab6c8; font-size: 18px; margin-top: 18px; }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section__head h2 { font-size: 38px; font-weight: 800; }
.section__sub { color: var(--muted); font-size: 18px; margin-top: 16px; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 11px; background: rgba(16,185,129,.12); color: var(--brand-dd); font-weight: 800; margin-bottom: 18px;
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--muted); }

/* ===== Features ===== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .15s, box-shadow .15s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature__ic { font-size: 26px; margin-bottom: 12px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }
.tag { font-size: 11px; font-weight: 700; color: var(--brand-dd); background: rgba(16,185,129,.14); padding: 2px 7px; border-radius: 6px; vertical-align: middle; }

/* ===== Compare ===== */
.compare { max-width: 760px; margin: 0 auto; }
.compare__table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare__table th, .compare__table td { padding: 16px 20px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line); }
.compare__table thead th { background: var(--bg-alt); font-weight: 700; }
.compare__table th.us, .compare__table td.us { background: rgba(16,185,129,.06); color: var(--ink); font-weight: 700; }
.compare__table thead th.us { color: var(--brand-dd); }
.compare__table tbody tr:last-child td { border-bottom: none; }
.compare__foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 16px; }

/* ===== Plans ===== */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; position: relative; }
.plan--feat { border-color: var(--brand); box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand-d); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 20px; }
.plan__price { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 2px; }
.plan__price span { font-size: 17px; font-weight: 600; color: var(--muted); }
.plan__for { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 8px 0 8px 26px; position: relative; color: var(--ink-2); font-size: 15px; border-top: 1px solid var(--line); }
.plan li:before { content: "✓"; position: absolute; left: 0; color: var(--brand-d); font-weight: 800; }
.plan .btn { width: 100%; }
.plans__foot { text-align: center; color: var(--muted); margin-top: 28px; font-size: 14px; }

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 22px; }
.faq__item summary { cursor: pointer; font-weight: 600; font-size: 17px; padding: 16px 0; list-style: none; position: relative; padding-right: 30px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:after { content: "+"; position: absolute; right: 2px; top: 14px; font-size: 22px; color: var(--brand-d); font-weight: 400; transition: transform .2s; }
.faq__item[open] summary:after { transform: rotate(45deg); }
.faq__item p { color: var(--muted); padding: 0 0 18px; }
.faq__item a { color: var(--brand-dd); text-decoration: underline; }

/* ===== CTA ===== */
.cta { padding: 84px 0; }
.cta__inner {
  background: linear-gradient(120deg, var(--brand-dd) 0%, var(--ink) 130%);
  border-radius: 24px; text-align: center; padding: 64px 24px; color: #fff;
}
.cta h2 { font-size: 38px; font-weight: 800; }
.cta p { color: #d6f3e8; font-size: 19px; margin: 16px 0 30px; }
.cta .btn--primary { background: #fff; color: var(--brand-dd); }
.cta .btn--primary:hover { background: #f0fdf4; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); padding: 52px 0 28px; background: var(--bg-alt); }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__brand p { color: var(--muted); margin-top: 10px; font-size: 14px; max-width: 280px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; font-size: 15px; color: var(--ink-2); font-weight: 500; }
.footer__links a:hover { color: var(--brand-d); }
.footer__legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ===== Legal pages ===== */
.legal { padding: 64px 0 80px; }
.legal h1 { font-size: 38px; font-weight: 800; margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 20px; }
.legal a { color: var(--brand-dd); text-decoration: underline; }

/* ===== Calculator ===== */
.calc-hero { background: radial-gradient(800px 400px at 80% -20%, rgba(16,185,129,.14), transparent 60%); padding: 64px 0 8px; text-align: center; }
.calc-hero h1 { font-size: 44px; font-weight: 800; }
.calc-hero .lede { margin: 18px auto 0; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.calc__h { font-size: 18px; margin-bottom: 18px; }
.calc__form label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 14px; }
.calc__in { display: flex; align-items: center; margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; transition: border-color .12s; }
.calc__in:focus-within { border-color: var(--brand); }
.calc__in span { padding: 0 12px; color: var(--muted); font-weight: 600; background: var(--bg-alt); align-self: stretch; display: flex; align-items: center; }
.calc__in input { flex: 1; border: 0; outline: 0; padding: 11px 12px; font-size: 16px; font-family: inherit; font-weight: 600; color: var(--ink); width: 100%; }
.calc__result { position: sticky; top: 88px; }
.calc__big { font-size: 48px; font-weight: 800; letter-spacing: -0.03em; color: var(--brand-dd); margin: 4px 0 18px; }
.calc__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calc__metrics strong { display: block; font-size: 20px; font-weight: 800; margin-top: 4px; }
.calc__bar { height: 10px; background: var(--bg-alt); border-radius: 999px; margin: 18px 0 14px; overflow: hidden; }
.calc__bar-fill { height: 100%; width: 0; border-radius: 999px; transition: width .3s ease, background .3s ease; }
.calc__note { color: var(--ink-2); font-size: 15px; min-height: 44px; }
.calc__cta { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.calc__cta p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.calc__cta .btn { width: 100%; }

/* ===== Blog ===== */
.blog-hero { padding: 56px 0 8px; text-align: center; }
.blog-hero h1 { font-size: 40px; font-weight: 800; }
.blog-hero p { color: var(--muted); font-size: 18px; margin-top: 14px; }
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 40px 0 0; }
.post-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card .kicker { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-d); }
.post-card h2 { font-size: 21px; margin: 10px 0 8px; }
.post-card p { color: var(--muted); font-size: 15px; }
.post-card .more { color: var(--brand-dd); font-weight: 600; font-size: 14px; display: inline-block; margin-top: 14px; }

/* Article */
.article { padding: 56px 0 72px; }
.article .meta { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.article h1 { font-size: 38px; font-weight: 800; line-height: 1.15; margin-bottom: 18px; }
.article .body { font-size: 18px; color: var(--ink-2); line-height: 1.75; }
.article .body h2 { font-size: 25px; color: var(--ink); margin: 38px 0 12px; }
.article .body h3 { font-size: 20px; color: var(--ink); margin: 26px 0 8px; }
.article .body p { margin: 0 0 18px; }
.article .body ul { margin: 0 0 18px; padding-left: 22px; }
.article .body li { margin-bottom: 8px; }
.article .body strong { color: var(--ink); }
.article .body a { color: var(--brand-dd); text-decoration: underline; }
.article .body blockquote { margin: 24px 0; padding: 16px 22px; border-left: 4px solid var(--brand); background: var(--bg-alt); border-radius: 0 10px 10px 0; color: var(--ink); }
.article .callout { margin: 32px 0; padding: 26px; border-radius: var(--radius); background: linear-gradient(120deg, rgba(16,185,129,.10), rgba(5,150,105,.05)); border: 1px solid rgba(16,185,129,.25); }
.article .callout p { margin-bottom: 14px; font-size: 16px; }
.article .body table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 16px; }
.article .body th, .article .body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.article .body th { background: var(--bg-alt); }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 64px; }
  .hero h1 { font-size: 42px; }
  .hero__visual { max-width: 420px; }
  .steps, .features, .plans { grid-template-columns: 1fr; }
  .plan--feat { transform: none; }
  .nav__links { display: none; }
  .section__head h2 { font-size: 30px; }
  .band__line { font-size: 26px; }
  .cta h2 { font-size: 30px; }
  .calc { grid-template-columns: 1fr; }
  .calc__result { position: static; }
  .calc-hero h1 { font-size: 32px; }
  .posts { grid-template-columns: 1fr; }
  .article h1 { font-size: 29px; }
  .article .body { font-size: 17px; }
}
