:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f5;
  --fg: #1d2421;
  --muted: #59625e;
  --line: #e1e5e3;
  --accent: #1a7f4b;
  --accent-strong: #146b3e;
  --accent-soft: #e3f4ea;
  --accent-fg: #ffffff;
  --shadow: 0 10px 30px rgba(20, 40, 30, 0.10);
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111614;
    --bg-soft: #18201c;
    --fg: #e8eeeb;
    --muted: #a3ada8;
    --line: #2a3430;
    --accent: #3fb47a;
    --accent-strong: #5fc792;
    --accent-soft: #1b3326;
    --accent-fg: #0b1510;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--fg); text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.site-nav { display: flex; gap: 20px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--fg); }
@media (max-width: 560px) { .site-nav .optional { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--fg);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--accent); color: var(--fg); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-fg); }
.btn.is-disabled { background: var(--bg-soft); border-color: var(--line); color: var(--muted); cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; max-width: 18ch; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 60ch; margin: 0 0 24px; }
.hero .note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.shot { margin: 40px 0 0; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; background: #f5f6f7; }
.shot figcaption, .caption { font-size: 14px; color: var(--muted); padding: 10px 14px; background: var(--bg); border-top: 1px solid var(--line); }

/* Sections */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 12px; }
.section-lead { color: var(--muted); max-width: 62ch; margin: 0 0 32px; }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.trust div { background: var(--bg-soft); border-radius: var(--radius); padding: 20px; }
.trust h3 { margin: 0 0 6px; font-size: 17px; }
.trust p { margin: 0; color: var(--muted); font-size: 15px; }

/* Features */
.features { display: grid; grid-template-columns: minmax(0, 1fr) 322px; gap: 48px; align-items: start; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } .features .panel-shot { max-width: 322px; } }
.feature-group h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 18px; }
.feature-group + .feature-group { margin-top: 32px; }
.feature-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feature-group li { padding-left: 28px; position: relative; }
.feature-group li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.feature-group strong { display: block; }
.feature-group span { color: var(--muted); font-size: 15px; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); }
.panel-shot { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan h3 { margin: 0 0 4px; font-size: 20px; }
.price { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 0; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); }
.price-alt { color: var(--muted); margin: 2px 0 20px; }
.plan ul { padding-left: 20px; margin: 0 0 24px; display: grid; gap: 8px; flex: 1; align-content: start; }
.plan .fine { font-size: 14px; color: var(--muted); margin: 14px 0 0; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style-position: outside; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* Legal pages */
.legal { padding: 48px 0 64px; max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; margin: 0 0 8px; }
.legal .updated { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--fg); }
.legal ul { padding-left: 22px; }
.callout { background: var(--accent-soft); border-radius: 12px; padding: 16px 18px; margin: 0 0 24px; }
.callout p { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--fg); }
.site-footer p { margin: 4px 0; }
