/* ==========================================================================
   /pricing — the three plans, and buying or cancelling one.

   Tokens, buttons, the modal and the toast come from shell.css. No new hue:
   the current plan is marked with the accent the rest of the workspace uses
   for "you are here".
   ========================================================================== */

.main { display: flex; flex-direction: column; gap: 16px; }

/* The notice, the cards and the footnote share one centred column, so the plans
   do not sit against the left edge with the right of the page left empty. */
.notice {
  width: 100%; max-width: 980px; margin-inline: auto;
  padding: 12px 16px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
}
.notice[hidden], .plan-grid[hidden], .fine-print[hidden] { display: none; }

.plan-grid {
  width: 100%; max-width: 980px; margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plan-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.plan-card.is-current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-name { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; }
.plan-tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-hover);
}

/* Recommended is an outline, so it reads as a suggestion and cannot be mistaken
   for the filled "Current plan" tag. */
.plan-tag.is-recommended { background: transparent; border: 1px solid var(--accent); color: var(--accent-hover); padding: 2px 8px; }

.plan-blurb { color: var(--text-muted); font-size: 15px; min-height: 2.6em; }

.plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-amount { font-family: 'Fraunces', serif; font-size: 34px; font-weight: 500; font-variant-numeric: tabular-nums; }
.plan-per { color: var(--text-muted); font-size: 14.5px; }

.plan-points { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; color: var(--text-muted); }
.plan-points li::before { content: '✓'; color: var(--accent); margin-right: 8px; }

.plan-actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.plan-actions .btn { width: 100%; justify-content: center; }
.plan-actions a.btn { text-decoration: none; }
.plan-note { font-size: 13.5px; color: var(--text-subtle); text-align: center; }
/* What the plan you are on says in place of a button: it is not an action, so it
   is not drawn as one. Same height as a button, so the cards still line up. */
.plan-state {
  display: flex; align-items: center; justify-content: center; min-height: 38px;
  font-size: 15px; font-weight: 500; color: var(--text-muted);
}
.link-btn {
  background: none; border: 0; padding: 4px;
  font: inherit; font-size: 14px; color: var(--text-muted);
  text-decoration: underline; cursor: pointer;
}
.link-btn:hover { color: var(--accent-hover); }

/* This line carries the GST and "uploads are unlimited" facts, so it is read at
   the same contrast as the body copy under the plan names, not the fainter hint
   colour, which was too pale on the beige. */
.fine-print { width: 100%; max-width: 980px; margin-inline: auto; font-size: 14.5px; color: var(--text-muted); line-height: 1.55; }

/* ---------- A visitor's view (LE-009) ----------
   No session in this tab: the workspace sidebar gives way to the public site's
   links along the top and its footer links at the bottom, in the same paper
   palette, so a visitor arriving from the landing page is still on the site. */
.public-bar, .public-foot { display: none; }
body.is-public .public-bar {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  max-width: 1100px; margin: 0 auto; padding: 18px 24px;
}
body.is-public .public-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  max-width: 1100px; margin: 0 auto; padding: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text-muted);
}
body.is-public .app { grid-template-columns: minmax(0, 1fr); min-height: 0; }
body.is-public .topbar { width: 100%; max-width: 980px; margin-inline: auto; }
body.is-public aside[data-shell-sidebar] { display: none; }
.public-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-weight: 500; font-size: 21.5px; letter-spacing: -0.01em;
  color: var(--text); text-decoration: none;
}
.public-mark {
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--accent); color: white;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 16px; font-style: italic;
}
.public-links { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.public-links a, .public-foot a { color: var(--text-muted); text-decoration: none; font-size: 15px; }
.public-links a:hover, .public-foot a:hover { color: var(--text); }
.public-links a[aria-current="page"] { color: var(--text); font-weight: 500; }
.public-foot .foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.public-bar .btn { text-decoration: none; }
/* The prices line in place of the cards when they cannot be read. */
.plans-unavailable { width: 100%; max-width: 980px; margin-inline: auto; font-size: 15.5px; color: var(--text-muted); }
.plans-unavailable[hidden] { display: none; }

@media (max-width: 860px) {
  .plan-grid { grid-template-columns: 1fr; }
  .plan-blurb { min-height: 0; }
  body.is-public .public-bar { padding: 14px 16px; gap: 12px; }
  .public-links { order: 3; margin-left: 0; width: 100%; }
  body.is-public .public-bar .btn { margin-left: auto; }
}
