:root {
  --bg: #f6f1ea;
  --raised: #ffffff;
  --sunken: #ede5da;
  --text: #1f1a15;
  --text2: #655a4f;
  --border: #e3d9cc;
  --brand: #217d71;
  --brand-ink: #1e7165;
  --accent: #d39c74;
  --stage-a: #25414d;
  --stage-b: #12161e;
  --on-stage: #e9f2f1;
  --premium-a: #6a3fb8;
  --premium-b: #b4501f;
  --radius: 20px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111317;
    --raised: #1a1d23;
    --sunken: #22262e;
    --text: #f4ede4;
    --text2: #aba196;
    --border: #2c313a;
    --brand: #41cdbb;
    --brand-ink: #41cdbb;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-ink); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
header.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: inherit; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.hero {
  position: relative; overflow: hidden; color: var(--on-stage);
  background: radial-gradient(120% 120% at 70% 20%, var(--stage-a), var(--stage-b));
  border-radius: 0 0 36px 36px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; background: url(assets/hero-bg.png) center/cover; opacity: .28;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px; padding-top: 28px; padding-bottom: 56px; }
.hero a.brand { color: var(--on-stage); }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.06; margin: 24px 0 16px; letter-spacing: -.02em; }
.hero p.lead { font-size: 19px; color: #d6e6e3; max-width: 34em; margin: 0 0 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #111; text-decoration: none;
  padding: 12px 22px; border-radius: 14px; font-weight: 700;
}
.badge small { display: block; font-weight: 500; font-size: 11px; opacity: .7; line-height: 1; }
.note { font-size: 14px; color: #b9d2ce; margin-top: 14px; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(100%, 380px); filter: drop-shadow(0 24px 40px rgba(0,0,0,.45)); }
section { padding: 64px 0; }
h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.12; margin: 0 0 12px; letter-spacing: -.015em; }
.sub { color: var(--text2); max-width: 38em; margin: 0 0 36px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 12px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--text2); font-size: 15.5px; }
.card .pic { height: 160px; border-radius: 14px; background: radial-gradient(90% 90% at 50% 30%, var(--stage-a), var(--stage-b)); display: flex; justify-content: center; overflow: hidden; }
.card .pic img { height: 100%; width: auto; object-fit: contain; }
.pricing { background: var(--sunken); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.plan.pro { border: 0; color: #fff; background: linear-gradient(135deg, var(--premium-a), var(--premium-b)); }
.plan.pro .muted { color: #f1e4ff; }
.plan .price { font-size: 34px; font-weight: 800; margin: 6px 0; }
.plan .price span { font-size: 15px; font-weight: 500; }
.plan ul { padding-left: 18px; margin: 12px 0 0; }
.muted { color: var(--text2); font-size: 15px; }
.fine { font-size: 14px; color: var(--text2); margin-top: 20px; }
footer { padding: 36px 0 48px; border-top: 1px solid var(--border); color: var(--text2); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--text); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-bottom: 40px; }
  .hero-art img { width: 240px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
}
@media (max-width: 480px) { .grid { grid-template-columns: 1fr; } }
