:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --border: #e2e8f0;
  --error: #b91c1c;
  --ok: #15803d;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: var(--primary-dark);
}

.container {
  width: min(960px, 92vw);
  margin: 0 auto;
}

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--text);
}

nav a {
  margin-left: 1rem;
  text-decoration: none;
}

.hero {
  padding: 4rem 0 3rem;
}

.hero-inner {
  max-width: 640px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--muted);
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
}

.hero-actions {
  margin-top: 1.5rem;
}

.features {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding-bottom: 3rem;
}

.features article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.btn[hidden] {
  display: none !important;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  margin-left: 0.5rem;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.hero-actions .btn-secondary {
  margin-left: 0.75rem;
}

.pricing {
  padding: 1rem 0 4rem;
  background: linear-gradient(180deg, transparent, #eef6f5 40%, transparent);
}

.pricing-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.pricing-intro h2 {
  margin: 0.35rem 0 0.75rem;
  font-size: 1.75rem;
}

.pricing-gst {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.plan-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}

.plan-tab {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}

.plan-tab:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.plan-tab.is-active,
.plan-tab.is-active:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.plan-panel[hidden] {
  display: none;
}

.pricing-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
}

@media (min-width: 860px) {
  .pricing-grid-practice {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pricing-grid-desks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(13, 148, 136, 0.12);
  position: relative;
}

.plan-badge {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #ccfbf1;
  color: var(--primary-dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.plan-for {
  margin: 0.25rem 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.plan-price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.plan-price .amount {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.plan-price .period {
  color: var(--muted);
  font-size: 0.95rem;
}

.plan-annual {
  margin: 0.35rem 0 1rem;
  font-size: 0.875rem;
}

.plan-annual .save {
  color: var(--ok);
  font-weight: 600;
}

.plan-features {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.plan-features li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.925rem;
}

.plan-features li:first-child {
  border-top: none;
}

.price-card .btn {
  width: 100%;
  text-align: center;
  margin-left: 0;
}

.pricing-addons {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.pricing-addons h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.addon-list {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.925rem;
}

.addon-list li {
  margin-bottom: 0.35rem;
}

.addon-list strong {
  color: var(--text);
}

@media (max-width: 640px) {
  .hero-actions .btn-secondary {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}

.signup-page {
  padding: 2.5rem 0 4rem;
}

.signup-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.signup-card h1 {
  margin-top: 0;
}

.muted {
  color: var(--muted);
}

label {
  display: block;
  margin: 1rem 0 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

.slug-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.slug-row input {
  flex: 1;
}

.slug-suffix {
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.9rem;
}

.hint {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  min-height: 1.2em;
}

.hint.ok {
  color: var(--ok);
}

.hint.bad {
  color: var(--error);
}

.error {
  color: var(--error);
  margin: 1rem 0 0;
}

.success-panel {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.success-panel h2 {
  margin-top: 0;
  color: var(--ok);
}
