/* The public Plan preview, /plans/<code> (MOB 05.02, functions/plans/[code].js). Uses style.css's
   tokens, so it follows the site's light and dark themes. */
.plan-page {
  display: grid;
  place-items: start center;
  min-height: 70vh;
  padding: 104px 16px 48px;
  background: var(--page);
  color: var(--ink);
}

.plan-card {
  display: grid;
  gap: 16px;
  width: min(520px, 100%);
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.plan-kicker {
  margin: 0;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  line-height: 1.15;
  text-wrap: balance;
}

.plan-facts {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-facts li {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  font-size: 1rem;
}

.plan-facts span {
  color: var(--muted);
}

.plan-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.plan-actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.plan-actions .btn {
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding-inline: 20px;
}

.plan-actions .btn.store {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

/* Plans Directory page */
.plans-directory-page {
  padding: 104px max(20px, calc((100vw - 1200px) / 2)) 80px;
  min-height: calc(100vh - 72px);
}

.directory-hero {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 36px;
}

.directory-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 780;
  line-height: 1.12;
  color: var(--ink);
  margin: 14px 0 12px;
}

.directory-hero p {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.directory-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}

.directory-pill {
  padding: 8px 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.directory-pill.active,
.directory-pill:hover {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 56px;
}

.plan-item-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.plan-item-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.plan-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plan-item-date {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 16, 12, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  padding: 5px 12px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

.plan-item-status {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--green-bright);
  color: #04210f;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
}

.plan-item-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.plan-item-tag {
  font-size: 11px;
  font-weight: 750;
  color: var(--green);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.plan-item-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 750;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.3;
}

.plan-item-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-item-desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 20px;
  flex: 1;
}

.plan-item-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.directory-host-banner {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-soft) 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  max-width: 780px;
  margin: 0 auto 56px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.directory-host-banner h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 750;
  color: var(--ink);
  margin: 12px 0 10px;
}

.directory-host-banner p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 24px;
}

.directory-store-cta {
  text-align: center;
  margin-bottom: 24px;
}

.directory-store-cta h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 750;
  color: var(--ink);
  margin: 0 0 16px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
