:root {
  --bg: #f4f6f9;
  --paper: #ffffff;
  --ink: #15202e;
  --ink-soft: #4d5968;
  --line: #dde3ea;
  --green: #276DB6;
  --green-soft: #dde9f6;
  --lime: #7EF5A8;
  --amber: #e2a541;
  --radius: 18px;
  --max: 1080px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

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

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

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

/* Header */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.brand img { width: 32px; height: 32px; display: block; }
.nav { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.nav a { color: var(--ink-soft); text-decoration: none; padding: 7px 12px; border-radius: 999px; }
.nav a:hover { color: var(--ink); background: rgba(21,32,46,.05); }
.nav .nav-help { margin-left: 8px; color: var(--green); border: 1.5px solid var(--green); font-weight: 600; }
.nav .nav-help:hover, .nav .nav-help[aria-current="page"] { background: var(--green); color: #fff; }

/* Hero */
.hero { padding: 48px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); background: var(--green-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 20px; }
h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 22px; font-weight: 750; }
h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--lime) 62%); }
.lede { font-size: 19px; color: var(--ink-soft); margin: 0 0 28px; max-width: 34em; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { border: 1.5px solid var(--ink); border-radius: 12px; padding: 9px 16px; font-size: 15px; font-weight: 600; }
.badge small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }

.chart-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 16px; box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 18px 40px -24px rgba(21,32,46,.35); }
.chart-card .headline { font-weight: 650; font-size: 16px; margin: 0 0 2px; }
.chart-card .sub { color: var(--ink-soft); font-size: 13.5px; margin: 0 0 12px; }
.chart-card svg { width: 100%; height: auto; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; }
.legend span::before { content: ""; display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; background: currentColor; }
.legend .l-actual { color: var(--ink); }
.legend .l-plan { color: #9aa5b1; }
.legend .l-fc { color: var(--green); }
.legend span { color: var(--ink-soft); }
.legend .l-actual::before { background: var(--ink); }
.legend .l-plan::before { background: #9aa5b1; }
.legend .l-fc::before { background: var(--green); height: 8px; opacity: .35; }

/* Hero visual */
.hero-visual { position: relative; padding-bottom: 170px; }
.hero-photo { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 18px 40px -24px rgba(21,32,46,.45); }
.hero-visual .chart-card { position: absolute; left: -40px; width: 76%; bottom: 0; margin: 0; padding: 16px 16px 12px; }
.hero-visual .chart-card .headline { font-size: 15px; }
.hero-visual .chart-card .sub { font-size: 12.5px; margin-bottom: 6px; }

/* How it works: intro left, compact steps right */
.steps .wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: center; }
.steps .section-lede { margin-bottom: 0; }
.step-grid { display: grid; gap: 14px; }
.step { position: relative; display: grid; grid-template-columns: 150px 1fr; grid-template-rows: auto 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step img { grid-column: 1; grid-row: 1 / span 2; display: block; width: 150px; height: 100%; min-height: 112px; object-fit: cover; }
.step h3, .step p { grid-column: 2; }
.step h3 { align-self: end; margin: 16px 20px 4px; font-size: 18px; letter-spacing: -0.01em; }
.step p { margin: 0 20px 16px; color: var(--ink-soft); font-size: 15px; }
.step-no { position: absolute; top: 10px; left: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; box-shadow: 0 0 0 3px rgba(255,255,255,.85); }

.privacy-art { display: block; width: 100%; max-width: 340px; height: auto; margin-top: 24px; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 70%); mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 70%); }

/* Help page: text with a side column of pictures */
.doc { max-width: 960px; }
.side { float: right; clear: right; width: 280px; margin: 6px 0 24px 40px; display: grid; gap: 22px; }
.doc h2 { clear: both; }
.shot { margin: 0; }
.phone { display: block; width: 100%; border: 7px solid #15202e; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px -24px rgba(21,32,46,.5); }
.phone img { display: block; width: 100%; height: auto; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.shot-chart, .media { margin: 0; }
.shot-chart a, .media a { display: block; }
.shot-chart img, .media img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.side figcaption { margin-top: 10px; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.media { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: center; margin: 28px 0 8px; clear: both; }
.media figcaption { color: var(--ink-soft); font-size: 15px; }
.shot-note { display: block; margin-top: 6px; font-size: 12.5px; color: #8a95a3; }

/* Help: collapsible how-tos */
.howto { max-width: 700px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; margin: 10px 0; }
.howto summary { cursor: pointer; padding: 14px 18px; font-weight: 650; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); transition: transform .15s; margin-right: 4px; }
.howto[open] summary::before { transform: rotate(45deg); }
.howto[open] summary { border-bottom: 1px solid var(--line); }
.howto ol, .howto > p { margin: 14px 18px 14px; }
.howto ol { padding-left: 22px; }
.howto code { font-size: 13.5px; word-break: break-all; }
.howto-tag { font-size: 12px; font-weight: 600; color: #8a6d1d; background: #fbf3e2; border: 1px solid #ecd9ae; border-radius: 999px; padding: 2px 9px; }
.howto-note { color: var(--ink-soft); font-size: 14.5px; }
.howto-h { font-size: 16px; margin: 24px 0 6px; }

/* Sections */
section { padding: 72px 0; }
.section-title { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 14px; }
.section-lede { color: var(--ink-soft); max-width: 40em; margin: 0 0 40px; font-size: 18px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .icon { width: 42px; height: 42px; border-radius: 12px; background: var(--green-soft); display: grid; place-items: center; margin-bottom: 16px; }
.feature .icon svg { width: 22px; height: 22px; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

.dark { background: var(--ink); color: #eef1ec; }
.dark .section-lede { color: #b4c0cf; }
.dark a { color: var(--lime); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.points li::before { content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315202e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; }
.points strong { display: block; color: #fff; }
.points span { color: #b4c0cf; font-size: 15.5px; }

.providers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.providers span { border: 1px solid #33445a; border-radius: 999px; padding: 5px 12px; font-size: 13.5px; color: #dfe6ee; }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 760px; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.plan.pro { border: 2px solid var(--green); }
.plan h3 { margin: 0 0 4px; font-size: 22px; }
.plan .price { color: var(--ink-soft); margin: 0 0 16px; font-size: 15px; }
.plan ul { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 15.5px; }
.plan li { margin-bottom: 6px; }

.note { background: #fbf3e2; border: 1px solid #ecd9ae; border-radius: 14px; padding: 18px 20px; color: #5b4a24; font-size: 15px; max-width: 760px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14.5px; color: var(--ink-soft); background: var(--paper); }
.site-footer .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand { font-size: 18px; }
.site-footer .brand img { width: 24px; height: 24px; }
.foot-brand p { margin: 10px 0 0; max-width: 22em; }
.foot-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.foot-col strong { color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.foot-col a { color: var(--ink-soft); text-decoration: none; }
.foot-col a:hover, .foot-col a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.socials { display: flex; gap: 14px; align-items: center; margin-top: 4px; }
.site-footer .social { display: inline-flex; }
.site-footer .social-li:hover { color: #0a66c2; }
.foot-brand .maker { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.foot-brand .maker:hover { color: var(--ink); text-decoration-color: currentColor; }
.site-footer .social:hover { color: #ff0033; text-decoration: none; }

/* Policy page */
.doc { max-width: 760px; padding: 32px 0 72px; }
.doc h1 { font-size: clamp(34px, 4.5vw, 46px); margin-bottom: 8px; }
.doc .updated { color: var(--ink-soft); margin: 0 0 32px; }
.doc h2 { font-size: 23px; letter-spacing: -0.01em; margin: 40px 0 10px; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { color: #2b3644; }
.doc ul, .doc ol { padding-left: 22px; }
.doc > p, .doc > ul, .doc > ol, .doc > h3 { max-width: 700px; }
.doc h2[id], .doc h3[id] { scroll-margin-top: 16px; }
.doc li { margin-bottom: 6px; }
.doc .summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 8px; }
.doc .summary ul { margin: 8px 0 0; }
.doc table { width: auto; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 650; background: var(--paper); }

@media (max-width: 960px) {
  .side { width: 240px; margin-left: 28px; }
  .hero .wrap { gap: 32px; }
  .hero-visual { padding-bottom: 140px; }
  .hero-visual .chart-card { left: -24px; width: 88%; }
  .split { gap: 32px; }
  .steps .wrap { gap: 28px; }
  section { padding: 60px 0; }
}
@media (max-width: 700px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { max-width: 520px; width: 100%; margin: 0 auto; }
  .split { grid-template-columns: 1fr; }
  .privacy-art { max-width: 220px; margin: 8px auto 0; }
  .steps .wrap { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 760px) {
  .nav .nav-section { display: none; }
  .step { grid-template-columns: 116px 1fr; }
  .step img { width: 116px; }
  .step h3 { margin: 12px 14px 2px; font-size: 16.5px; }
  .step p { margin: 0 14px 12px; font-size: 14.5px; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .hero { padding: 24px 0 48px; }
  .hero-visual { padding-bottom: 0; }
  .hero-photo { display: none; }
  .hero-visual .chart-card { position: static; width: auto; left: auto; }
  .features { gap: 12px; }
  .feature { padding: 20px; display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; }
  .feature .icon { margin: 0; grid-row: span 2; }
  .feature h3 { margin-top: 2px; }
  .pricing { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .side { float: none; width: auto; margin: 8px 0 24px; justify-items: center; }
  .side .shot, .side .shot-chart { width: 100%; max-width: 300px; }
  .side .phone { width: 230px; margin: 0 auto; }
  .media { grid-template-columns: 1fr; gap: 10px; }
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc tr:first-child { display: none; }
  .doc tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .doc td { border: 0; padding: 2px 0; }
  .doc td:first-child { font-weight: 650; color: var(--ink); }
}
