:root {
  --fg: #0f172a; --muted: #64748b; --line: #e2e8f0; --soft: #f8fafc; --bg: #ffffff;
  --brand: #0d9488; --brand-dark: #0f766e; --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-dark); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .4em; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.lead { font-size: 18px; color: #334155; }
.ic { width: 20px; height: 20px; flex: none; }

/* header */
.top { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px max(24px, calc((100vw - 1140px) / 2 + 24px)); background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--fg); letter-spacing: -.02em; }
.mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #14b8a6, #0f766e); color: #fff; font-size: 16px; }
#nav { display: flex; gap: 6px; flex-wrap: wrap; }
#nav a { padding: 8px 12px; border-radius: 8px; color: #334155; font-weight: 500; font-size: 15px; }
#nav a:hover { background: var(--soft); }
#nav a:last-child { background: var(--fg); color: #fff; }
#nav a:last-child:hover { background: #1e293b; }

/* hero */
.hero { padding: 72px 0 56px; text-align: center; background:
  radial-gradient(900px 380px at 50% -60px, rgba(20,184,166,.16), transparent 70%),
  linear-gradient(180deg, #f0fdfa 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(32px, 5.2vw, 54px); max-width: 820px; margin: 0 auto 16px; }
.hero .lead { max-width: 680px; margin: 0 auto 28px; }
.popular { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; align-items: center; margin-top: 16px; }

/* search */
.search { display: flex; align-items: center; gap: 8px; max-width: 640px; padding: 6px 6px 6px 14px; margin: 0 0 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); color: var(--muted); }
.search.big { margin: 0 auto; padding: 8px 8px 8px 18px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; padding: 10px 4px; color: var(--fg); background: transparent; }
.search button, .btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; border: 0; border-radius: 10px;
  padding: 11px 20px; background: var(--brand); color: #fff; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.search button:hover, .btn:hover { background: var(--brand-dark); }
.btn .ic { width: 16px; height: 16px; }
.btn.full { width: 100%; margin-top: 8px; }
.btn.light { background: #fff; color: var(--fg); }
.btn.light:hover { background: #f1f5f9; }

/* pills */
.pill { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: #334155; font-size: 14px; }
.pill:hover { border-color: #94a3b8; }
.pill.on { background: var(--fg); border-color: var(--fg); color: #fff; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }

/* blocks */
.block { padding: 56px 24px 0; }
.block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.block-head p { margin: 0; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.more .ic { width: 16px; height: 16px; }
.page { padding-top: 28px; padding-bottom: 24px; }
.page .block { padding-left: 0; padding-right: 0; }
.narrow { max-width: 760px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs span { margin: 0 4px; }
.crumbs .here { margin: 0; color: var(--fg); }

/* categories */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.cat { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--fg); transition: .15s; }
.cat:hover { border-color: var(--c); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-name { font-weight: 650; }
.cat-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.cat-ic.big { width: 56px; height: 56px; border-radius: 14px; }
.cat-ic.big .ic { width: 28px; height: 28px; }
.cat-list { display: grid; gap: 10px; }
.cat-row { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg); }
.cat-row:hover { border-color: var(--c); box-shadow: var(--shadow); }
.cat-row strong { display: block; }
.cat-row .muted { display: block; font-size: 14px; }
.count { min-width: 34px; text-align: center; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 14px; font-weight: 600; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--fg); transition: .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #cbd5e1; }
.card-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.card-top h3 { margin: 0; }
.card p { color: #475569; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none; font-weight: 800; font-size: 20px; color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 75%, #fff), var(--c)); }
.logo.lg { width: 72px; height: 72px; border-radius: 18px; font-size: 32px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 12px; font-weight: 600; }

/* category band */
.band { padding: 28px 0 32px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, #fff), #fff); border-bottom: 1px solid var(--line); }
.band-head { display: flex; gap: 18px; align-items: center; }
.band-head p { margin: 0; color: #475569; max-width: 640px; }
.split { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.side { position: sticky; top: 84px; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.side a { display: flex; justify-content: space-between; padding: 8px 0; color: #334155; border-bottom: 1px solid var(--soft); font-size: 15px; }
.side a:last-child { border: 0; }

/* tool page */
.tool-head { display: flex; gap: 20px; align-items: center; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.tool-head h1 { margin-bottom: 6px; }
.tool-head .lead { margin-bottom: 10px; }
.grow { flex: 1; }
.panel { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 16px; }
.panel h2 { font-size: 18px; }
.panel p:last-child { margin-bottom: 0; }
.facts { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 84px; }
.facts strong { display: block; font-weight: 600; }
.perk { background: #fffbeb; border-color: #fde68a; }
.ticks { padding-left: 20px; margin: 0 0 12px; }
.ticks li { margin-bottom: 6px; }

/* how / cta */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 22px; border-radius: var(--radius); background: var(--soft); }
.num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--fg); color: #fff; font-weight: 700; margin-bottom: 12px; }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 36px; border-radius: 20px; color: #fff;
  background: linear-gradient(120deg, #0f172a, #134e4a); }
.cta h2 { color: #fff; }
.cta p { margin: 0; color: #cbd5e1; }
.empty { padding: 36px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty p { margin: 0 0 6px; }

/* footer */
.foot { margin-top: 72px; padding: 48px 0 24px; background: var(--soft); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 2fr 1.4fr 1fr 1fr; gap: 32px; }
.foot-grid p { margin-top: 12px; max-width: 300px; font-size: 15px; }
.foot h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.foot-grid a:not(.brand) { display: block; padding: 4px 0; color: #334155; font-size: 15px; }
.foot-base { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .split, .foot-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .side, .facts { position: static; }
  .cta, .tool-head, .block-head { flex-direction: column; align-items: flex-start; }
  .top { flex-direction: column; align-items: flex-start; }
}

/* ---- v3: brand, rich cards, badges, perks, forms ---- */
.mark { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.mark .ic { width: 18px; height: 18px; color: #fff; }
.word .w1 { color: var(--brand); }
#nav a:last-child { background: transparent; color: #334155; }
#nav a.primary { background: var(--fg); color: #fff; }
#nav a.primary:hover { background: #1e293b; }
.eyebrow { display: inline-block; margin-bottom: 16px; padding: 5px 12px; border-radius: 999px; background: #ccfbf1; color: #115e59; font-size: 13px; font-weight: 600; }
.cats { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cat { padding: 24px; gap: 8px; }
.cat-count { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--c); font-weight: 600; font-size: 14px; }
.cat-count .ic { width: 15px; height: 15px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card.rich { padding: 24px; }
.card .ticks, .panel .ticks { list-style: none; padding: 0; margin: 0 0 16px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; color: #334155; }
.ticks .ic { width: 18px; height: 18px; color: var(--brand); margin-top: 3px; }
.card-foot { flex-wrap: wrap; }
.card-foot .badge { margin-right: 4px; }
.go { margin-left: auto; color: var(--muted); }
.go .ic { width: 18px; height: 18px; }
.card:hover .go { color: var(--brand); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge.green { background: #ecfdf5; color: #047857; }
.badge.slate { background: #f1f5f9; color: #334155; }
.badge.plain { background: #fff; color: var(--muted); border: 1px solid var(--line); font-weight: 500; }
.panel.perk h2 { display: flex; align-items: center; gap: 8px; color: #92400e; }
.perk-card { display: flex; flex-direction: column; padding: 22px; border: 1px solid #fde68a; border-radius: var(--radius); background: linear-gradient(180deg, #fffbeb, #fff); }
.perk-top { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.perk-top h3 { margin: 0; }
.perk-value { font-size: 22px; font-weight: 800; color: #92400e; margin: 0 0 6px; }
.perk-cohorts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.field input, .field textarea, .field select { font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid #99f6e4; border-color: var(--brand); }
.form .btn { justify-self: start; }
.form .btn:disabled { opacity: .5; cursor: default; }
.notice { margin: 0; padding: 12px 14px; border-radius: 10px; background: #f0fdfa; color: #115e59; }
.btn.light-border { background: #fff; color: var(--fg); border: 1px solid var(--line); margin-top: 6px; }
.btn.light-border:hover { background: var(--soft); }
blockquote { margin: 0 0 14px; padding-left: 14px; border-left: 3px solid var(--line); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 860px) { .grid.two, .cats { grid-template-columns: 1fr; } }
