:root {
  /* Light, fintech-inspired theme (concept 2A) */
  --bg: #eef3f0;
  --surface: #ffffff;
  --surface-2: #f3f7f5;
  --text: #142019;
  --muted: #5d6f66;
  --accent: #12b37a;
  --accent-2: #0e9464;
  --accent-soft: #e3f5ec;
  --border: #e2e9e5;
  --warn-bg: #fff7e6;
  --warn-border: #f0c36b;
  --warn-text: #a5741a;
  --shadow: 0 8px 30px rgba(18, 40, 30, .07);
  --radius: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.btn {
  display: inline-block; padding: 11px 20px; border-radius: 12px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  font-weight: 600; cursor: pointer; transition: transform .08s ease, background .2s ease, box-shadow .2s ease;
  font-size: 1rem;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-lg { padding: 15px 30px; font-size: 1.08rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Nav */
.nav {
  display: flex; align-items: center; gap: 24px;
  padding: 18px 6vw; position: sticky; top: 0; z-index: 20;
  background: rgba(238,243,240,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 800; font-size: 1.3rem; display: flex; align-items: center; gap: 8px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--muted); font-weight: 500; }
.nav nav a:hover { color: var(--text); }

/* Hero (gradient card) */
.hero-wrap { padding: 34px 6vw 10px; }
.hero {
  max-width: 1120px; margin: 0 auto; border-radius: 28px;
  background: linear-gradient(135deg, #7fd8b4 0%, #34b98a 55%, #12a575 100%);
  padding: 56px clamp(24px, 5vw, 64px); color: #0c2a1f;
  display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1.1fr; } }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.08; letter-spacing: -.02em; color: #0b2419; }
.hero .sub { margin: 18px 0 24px; font-size: 1.12rem; color: #0d3527; max-width: 520px; }
.hero-illus { font-size: clamp(5rem, 14vw, 9rem); text-align: center; line-height: 1; filter: drop-shadow(0 10px 20px rgba(0,0,0,.12)); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.benefits { display: flex; flex-wrap: wrap; gap: 18px; margin: 8px 0 26px; }
.benefit { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #0c2a1f; font-size: .98rem; }
.benefit .ic {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.5);
  display: grid; place-items: center; font-size: 1.05rem; flex-shrink: 0;
}

section { padding: 64px 6vw; }
section h2 { font-size: 1.9rem; text-align: center; margin-bottom: 8px; letter-spacing: -.01em; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 30px; }

/* Calculator */
.calc-card {
  max-width: 580px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 30px;
  text-align: center; box-shadow: var(--shadow);
}
.calc-card label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.gb-label { color: var(--accent); font-size: 1.35rem; }
input[type=range] { width: 100%; margin: 16px 0 24px; accent-color: var(--accent); }
.modes { display: flex; gap: 10px; margin-bottom: 22px; }
.mode {
  flex: 1; display: flex; flex-direction: column; gap: 2px; align-items: center;
  padding: 12px 6px; border-radius: 12px; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--muted); cursor: pointer; font-weight: 600;
}
.mode small { font-weight: 400; font-size: .75rem; }
.mode.active { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.result { background: var(--surface-2); border-radius: 14px; padding: 22px; margin-bottom: 22px; }
.result .freed-big { font-size: 2.4rem; font-weight: 800; color: var(--accent); line-height: 1.1; }
.result .freed-cap { color: var(--muted); margin-top: 4px; }
.result .equiv { margin-top: 14px; font-weight: 600; }
.result .money { margin-top: 10px; color: var(--muted); font-size: .95rem; }

/* How */
.how { background: var(--surface); }
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; max-width: 860px; margin: 30px auto 0; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 22px; color: var(--muted);
}
.step span {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; flex-shrink: 0;
}
.step p { margin: 0; }

/* Sync explainer */
.sync-hint { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 26px; }
.sync-block {
  max-width: 820px; margin: 0 auto 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow);
}
.sync-block h3 { margin-bottom: 10px; font-size: 1.15rem; }
.sync-block p { color: var(--muted); margin: 8px 0; }
.placement-list { list-style: none; display: grid; gap: 14px; margin: 6px 0 4px; }
.placement-list li { color: var(--muted); padding-left: 20px; position: relative; }
.placement-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.placement-list strong { color: var(--text); }
.sync-note { font-size: .9rem; color: var(--warn-text); background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: 10px; padding: 10px 14px; margin-top: 12px; }

/* Pricing */
.pricing { background: var(--surface); }
.plans { display: grid; gap: 18px; grid-template-columns: 1fr; max-width: 1080px; margin: 30px auto 0; }
@media (min-width: 560px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan-featured { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), var(--shadow); position: relative; }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; letter-spacing: .02em; }
.plan h3 { margin-bottom: 6px; }
.price { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; margin-bottom: 20px; flex: 1; }
.plan li { padding: 6px 0; color: var(--muted); }
.plan li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.plan .btn { width: 100%; text-align: center; }

/* Footer */
.footer { text-align: center; color: var(--muted); padding: 40px 6vw; border-top: 1px solid var(--border); }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* ============ App (dashboard) ============ */
.app-shell { min-height: 100vh; background: var(--bg); }
.app-main { max-width: 980px; margin: 0 auto; padding: 42px 6vw 80px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 18px 0; box-shadow: var(--shadow); }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 820px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.field input, .field select { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 1rem; }
.notice { color: var(--muted); font-size: .92rem; margin-top: 8px; }
.error { color: #c0392b; margin-top: 10px; }
.success { color: var(--accent-2); margin-top: 10px; }
.hidden { display: none !important; }
.jobs { display: grid; gap: 12px; }
.job { display: grid; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.job-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.badge { border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; color: var(--muted); font-size: .85rem; }
.badge.done { color: #fff; background: var(--accent); border-color: var(--accent); }
.badge.failed { color: #fff; background: #c0392b; border-color: #c0392b; }
.progress { height: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); width: 0; }

/* Consent checkbox */
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 10px; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.consent input { margin-top: 3px; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--accent); }
.consent a { color: var(--accent-2); text-decoration: underline; }

/* Legal pages */
.legal { max-width: 820px; margin: 0 auto; padding: 56px 6vw 72px; }
.legal h1 { text-align: left; margin-bottom: 8px; font-size: 1.9rem; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 28px; }
.legal h2 { text-align: left; margin: 30px 0 12px; font-size: 1.25rem; }
.legal h3 { margin: 18px 0 8px; font-size: 1.05rem; }
.legal p, .legal li { color: var(--muted); margin: 10px 0; }
.legal ul, .legal ol { margin: 10px 0 10px 22px; }
.legal li { margin: 7px 0; }
.legal strong { color: var(--text); }
.legal .req-table { list-style: none; margin: 0; padding: 0; }
.legal .req-table li { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.legal .back { margin-top: 32px; }
.legal .callout { background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text); border-radius: 12px; padding: 14px 18px; margin: 16px 0; }

/* Blog */
.blog-list { max-width: 820px; margin: 0 auto; padding: 56px 6vw 72px; }
.blog-list h1 { margin-bottom: 24px; }
.post-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin: 14px 0; box-shadow: var(--shadow); transition: transform .08s ease; }
.post-card:hover { transform: translateY(-2px); }
.post-card h2 { text-align: left; font-size: 1.2rem; margin-bottom: 6px; }
.post-card p { color: var(--muted); }
.article { max-width: 760px; margin: 0 auto; padding: 56px 6vw 72px; }
.article h1 { font-size: 2rem; margin-bottom: 10px; line-height: 1.2; }
.article .updated { color: var(--muted); font-size: .9rem; margin-bottom: 28px; }
.article h2 { text-align: left; margin: 28px 0 12px; font-size: 1.3rem; }
.article p, .article li { color: var(--muted); margin: 12px 0; line-height: 1.7; }
.article ul, .article ol { margin: 12px 0 12px 22px; }
.article .cta-box { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 14px; padding: 22px; margin: 28px 0; text-align: center; }
.article .cta-box p { color: var(--text); font-weight: 600; margin-bottom: 12px; }
