:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --border: #e2e0da;
  --accent: #1f3a5f;
  --accent-text: #ffffff;
  --error: #b3261e;
  --success: #1e6b3c;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14151a;
    --surface: #1d1f26;
    --text: #eef0f4;
    --text-muted: #9aa0ac;
    --border: #2c2f38;
    --accent: #6f9bd8;
    --accent-text: #0d1420;
    --error: #ff8a80;
    --success: #7bd18f;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 840px;
  margin: 0 auto;
  padding: 48px 20px 96px;
}

/* Gate */

.gate {
  max-width: 420px;
  margin: 15vh auto 0;
  text-align: center;
}

.brand {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.gate-copy {
  color: var(--text-muted);
  margin-bottom: 24px;
}

#gate-form {
  display: flex;
  gap: 8px;
}

#pin-input {
  flex: 1;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  letter-spacing: 0.05em;
}

#pin-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

button {
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.error {
  color: var(--error);
  margin-top: 12px;
  font-size: 0.9rem;
}

.success {
  color: var(--success);
  margin-top: 8px;
  font-size: 0.9rem;
}

/* Content */

.content-header {
  text-align: center;
  margin-bottom: 8px;
}

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

.client-name {
  font-size: 2rem;
  margin: 0;
}

.business-name {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-muted);
  margin: 4px 0 0;
}

.intro {
  max-width: 640px;
  margin: 32px auto 40px;
  text-align: center;
  color: var(--text-muted);
}

.tiers {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .tiers {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}

.tier h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

/* A tier whose data would not render. Dashed and dimmed so it reads as a
   known gap rather than as a real, deliberately-empty offering. */
.tier-unavailable {
  border-style: dashed;
  opacity: 0.72;
}

.tier .tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 16px;
  flex-grow: 0;
}

.tier .price {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.tier .hours {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0 0 16px;
}

.tier ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  flex-grow: 1;
}

.tier li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.85rem;
  padding: 6px 0;
  color: var(--text-muted);
}

.tier li .line-hours {
  white-space: nowrap;
  color: var(--text);
}

.not-included {
  margin-top: 48px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.not-included h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.not-included ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 24px;
}

/* Comments */

.comments {
  margin-top: 56px;
}

.comments h3 {
  font-size: 1rem;
  margin-bottom: 16px;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.comment {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
}

.comment .comment-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.comment .comment-body {
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment-form input,
.comment-form textarea {
  padding: 10px 12px;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.comment-form button {
  align-self: flex-start;
}
