:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #17202a;
  --muted: #64717f;
  --line: #d9dee5;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --danger: #b42318;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.brand { color: var(--text); font-weight: 700; text-decoration: none; }
nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
nav a, nav span { color: var(--muted); text-decoration: none; font-size: 14px; }
nav form { display: flex; align-items: center; gap: 10px; margin: 0; }
main { max-width: 1120px; margin: 0 auto; padding: 48px 24px; }
.band { width: 100%; }
.centered { max-width: 720px; margin: 10vh auto; text-align: center; }
h1 { margin: 0 0 16px; font-size: 32px; line-height: 1.15; }
h2 { margin: 0; font-size: 20px; line-height: 1.2; }
.lead, .period { color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.plan-card, .status-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
.plan-card { display: grid; gap: 18px; min-height: 190px; }
.price { font-size: 24px; font-weight: 700; }
.primary, .secondary, .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.primary { background: var(--accent); color: white; }
.primary:hover { background: var(--accent-strong); }
.secondary, .icon-button { background: var(--surface); color: var(--text); border-color: var(--line); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.error { color: var(--danger); }
@media (max-width: 640px) {
  .topbar { align-items: flex-start; padding: 14px 18px; }
  main { padding: 32px 16px; }
  .section-head { align-items: flex-start; flex-direction: column; }
}