:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --ink: #182230;
  --muted: #667085;
  --line: #d9e1ea;
  --primary: #1f7a8c;
  --primary-dark: #135c6b;
  --success: #047857;
}

* { box-sizing: border-box; }
body.public-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
}

.public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: white;
}
.public-brand {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.public-header nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.public-header a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 700;
}

.public-main {
  width: min(860px, calc(100vw - 32px));
  margin: 54px auto;
  flex: 1;
}
.public-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 5vw, 42px);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}
h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.1;
}
p {
  color: var(--muted);
  line-height: 1.6;
}
.muted { color: var(--muted); }
.price {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
}
.plan-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 8px;
}
.plan-card {
  position: relative;
  display: grid;
  gap: 7px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  cursor: pointer;
}
.plan-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(31, 122, 140, 0.15);
}
.plan-card input {
  position: absolute;
  inset: 12px 12px auto auto;
  width: auto;
}
.plan-name {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  padding-right: 24px;
}
.plan-meta,
.plan-description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.plan-card strong {
  color: var(--primary-dark);
  font-size: 22px;
}
.regular-price {
  color: var(--muted);
  font-size: 14px;
  text-decoration: line-through;
}
.promo-label {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 3px 8px;
  background: #e7f2f4;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}
.notice {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin: 20px 0;
  background: #f9fbfc;
}
.notice.warning {
  border-color: #f3c98b;
  background: #fff8ed;
}
.notice span { color: var(--muted); }
.public-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.public-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 15px;
  background: white;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.public-button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.public-button.primary:hover { background: var(--primary-dark); }
.public-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  font: inherit;
  color: var(--ink);
}
.success-message {
  color: var(--success);
  font-weight: 800;
  margin-top: 16px;
}
.error-message {
  color: #b42318;
  font-weight: 800;
  margin-top: 12px;
}
.public-footer {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 680px) {
  .public-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .public-main {
    margin: 28px auto;
  }
  .plan-options {
    grid-template-columns: 1fr;
  }
}
