:root {
  --navy: #0f2a44;
  --teal: #0e7c86;
  --teal-dark: #0a5f67;
  --ink: #1d2733;
  --muted: #5b6876;
  --line: #e2e8ee;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --radius: 10px;
  --max: 1080px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

a { color: var(--teal); }
a:hover { color: var(--teal-dark); }

img { max-width: 100%; height: auto; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { font-weight: 700; font-size: 20px; color: var(--navy); text-decoration: none; letter-spacing: -0.2px; }
.logo span { color: var(--teal); }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a.active { color: var(--teal); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; font-size: 15px; cursor: pointer; color: var(--ink); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; border-top: 1px solid var(--line); }
}

/* Hero */
.hero { background: linear-gradient(180deg, var(--bg-soft), #fff); padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(28px, 4.5vw, 42px); line-height: 1.2; margin: 0 0 16px; color: var(--navy); }
.hero p { font-size: 18px; color: var(--muted); max-width: 680px; margin: 0 0 24px; }

.btn { display: inline-block; background: var(--teal); color: #fff; text-decoration: none; padding: 11px 20px; border-radius: 8px; font-weight: 600; border: 0; cursor: pointer; font-size: 15px; }
.btn:hover { background: var(--teal-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--teal); border: 1px solid var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.hero-img { width: 100%; max-width: 520px; justify-self: end; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img { justify-self: center; max-width: 420px; }
}

/* Images */
.card-icon { display: block; width: 56px; height: 56px; margin-bottom: 14px; }
.card-cover { padding: 0; overflow: hidden; }
.card-cover .cover { display: block; width: 100%; aspect-ratio: 12 / 5; object-fit: cover; border-bottom: 1px solid var(--line); }
.card-cover > :not(.cover) { margin-left: 20px; margin-right: 20px; }
.card-cover .tag { margin-top: 16px; }
.card-cover .more { display: inline-block; margin-bottom: 20px; }
.article-cover { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); margin: 0 0 20px; }
h2.with-icon { display: flex; align-items: center; gap: 12px; }
h2.with-icon img { width: 44px; height: 44px; flex: none; }

/* Sections */
section { padding: 48px 0; }
section.soft { background: var(--bg-soft); }
h2 { color: var(--navy); font-size: 26px; line-height: 1.3; margin: 0 0 12px; }
h3 { color: var(--navy); font-size: 19px; margin: 0 0 8px; }
.lead { color: var(--muted); max-width: 700px; margin: 0 0 28px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.card p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.card .meta { font-size: 13px; color: var(--muted); }
.card a.more { font-weight: 600; font-size: 15px; text-decoration: none; }

.tag { display: inline-block; font-size: 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 20px; padding: 2px 10px; color: var(--muted); margin-bottom: 8px; }
.tag.sponsored { background: #fff6e0; border-color: #f0d48a; color: #7a5b00; }

/* Pricing */
.pricing { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.plan.highlight { border: 2px solid var(--teal); }
.plan .price { font-size: 34px; font-weight: 700; color: var(--navy); margin: 8px 0; }
.plan .price small { font-size: 15px; color: var(--muted); font-weight: 400; }
.plan ul { padding-left: 20px; margin: 12px 0 20px; flex: 1; }
.plan li { margin-bottom: 6px; }

/* Prose (policy & guide pages) */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 40px 0 28px; }
.page-head h1 { margin: 0 0 8px; color: var(--navy); font-size: clamp(26px, 4vw, 36px); line-height: 1.25; }
.page-head p { margin: 0; color: var(--muted); }
.prose { max-width: 780px; padding: 36px 16px 56px; margin: 0 auto; }
.prose h2 { font-size: 22px; margin-top: 32px; }
.prose h3 { font-size: 18px; margin-top: 22px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); }
.notice { background: var(--bg-soft); border-left: 4px solid var(--teal); padding: 12px 16px; border-radius: 4px; margin: 16px 0; font-size: 15px; }

.company-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg-soft); }
.company-box dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.company-box dt { font-weight: 600; }
.company-box dd { margin: 0; }
@media (max-width: 560px) { .company-box dl { grid-template-columns: 1fr; } .company-box dd { margin-bottom: 8px; } }

/* Forms */
.form-wrap { max-width: 780px; margin: 0 auto; padding: 32px 16px 56px; }
.form-wrap.inline { padding: 8px 0 24px; }
.form h2, .form-result h2 { font-size: 20px; margin: 28px 0 12px; }
.form h2:first-child, .form-result h2:first-child { margin-top: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 16px; }
@media (max-width: 620px) { .field-row { flex-direction: column; gap: 0; } }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid #c3ced9; border-radius: 8px; background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus, .plan-pick input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.plan-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 620px) { .plan-pick { grid-template-columns: 1fr; } }
.plan-pick label { cursor: pointer; }
.plan-pick input { position: absolute; opacity: 0; }
.plan-pick span { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--muted); font-size: 14px; }
.plan-pick span strong { display: block; color: var(--navy); font-size: 17px; }
.plan-pick input:checked + span { border: 2px solid var(--teal); background: #eef8f9; padding: 13px 15px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 8px 0 4px; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.small-note { font-size: 13px; color: var(--muted); }
.steps-note { margin-top: 28px; background: var(--bg-soft); border-radius: var(--radius); padding: 16px 20px; font-size: 15px; }
.steps-note ol { margin: 8px 0 0; padding-left: 20px; }
.form-result { border: 2px solid var(--teal); border-radius: var(--radius); padding: 24px; background: #fff; }
.form-result .summary { white-space: pre-wrap; word-break: break-word; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 14px; font-size: 13px; max-height: 320px; overflow: auto; }
.link-btn { background: none; border: 0; padding: 0; color: var(--teal); text-decoration: underline; font: inherit; cursor: pointer; }

/* Footer */
.site-footer { background: var(--navy); color: #c9d6e3; padding: 40px 0 24px; font-size: 14px; }
.site-footer a { color: #e6eef6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 2fr 1fr 1fr; }
.footer-grid h4 { color: #fff; margin: 0 0 10px; font-size: 15px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.legal-line { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 28px; padding-top: 16px; font-size: 13px; color: #a9bacb; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Cookie banner */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(15,42,68,0.18); padding: 18px; z-index: 50; display: none; font-size: 14px; }
.cookie-banner.show { display: block; }
.cookie-banner p { margin: 0 0 12px; }
.cookie-banner .btn { padding: 8px 14px; font-size: 14px; }
