/* Standalone pages (plus.html, privacy.html): the studio's tokens, foundations and shared
   components, then page layout. Semantic tokens only; no raw colors here. */
@import url("../styles/tokens.css?v=8ef0160aad");
@import url("../styles/base.css?v=b546242346");
@import url("../styles/components.css?v=fd1b979fea");

.page {
  /* Reading measure inside the shared page container. Content starts at the same
     left edge as the wordmark (base.css --page-inset); only its width is narrower. */
  --page-measure: 1120px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Links styled as buttons share the studio's button anatomy. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-height);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--raised);
  color: var(--ink);
  font: var(--text-control);
  text-align: center;
  text-decoration: none;
  transition:
    background-color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.button:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  text-decoration: none;
}

.button.primary,
.button.primary:hover {
  border-color: transparent;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-press);
}

.button.primary:hover {
  background: var(--accent-hover);
}

/* ── Page body ── */
.page-main {
  flex: 1;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--space-10) var(--page-gutter) var(--space-14);
}

.page-main > * {
  max-width: var(--page-measure);
}

.page-main:focus {
  outline: none;
}

.page h1 {
  font: var(--text-display);
  letter-spacing: var(--tracking-display);
  overflow-wrap: anywhere;
}

.lead {
  margin-top: var(--space-4);
  color: var(--ink-muted);
  font-size: 17px;
}

/* ── Plus page: title, Free next to Plus, then the offer ── */
.plus-hero .lead {
  max-width: 60ch;
}

.compare {
  margin-top: var(--space-8);
}

.compare-table {
  width: 100%;
  max-width: 720px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: var(--space-3) var(--space-3);
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.compare-table tbody th {
  padding-left: 0;
  font: var(--text-body);
  text-align: left;
}

.compare-table thead th {
  font: var(--text-heading);
}

.compare-table tfoot td {
  border-bottom: 0;
  padding-top: var(--space-4);
}

/* The Plus column is tinted so what the subscription adds reads at a glance. */
.compare-table .compare-plus {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
}

.compare-table thead .compare-plus {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.compare-table tfoot .compare-plus {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding-bottom: var(--space-3);
}

.compare-example {
  display: inline-block;
  font-weight: 400;
  white-space: nowrap;
}

.compare-start {
  width: 100%;
  padding-inline: var(--space-3);
  white-space: nowrap;
}

.compare-fit {
  max-width: 720px;
  margin-top: var(--space-4);
}

.offer {
  max-width: 560px;
  margin-top: var(--space-10);
  scroll-margin-top: var(--space-6);
}

.offer-links a {
  white-space: nowrap;
}

.offer-card {
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--raised);
  box-shadow: var(--shadow-card);
}

.offer-closed,
.offer-open {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
}

.offer-terms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  width: 100%;
  margin: 0;
}

.offer-terms dt {
  color: var(--ink-muted);
  font: var(--text-caption);
  font-weight: 600;
}

.offer-terms dd {
  margin: var(--space-1) 0 0;
  font: var(--text-title);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

/* Yearly (default) or monthly: two radio rows that read as choices, not as a form. */
.plan-picker {
  display: grid;
  gap: var(--space-2);
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.plan-picker legend {
  margin-bottom: var(--space-2);
  color: var(--ink-muted);
  font: var(--text-caption);
  font-weight: 600;
}

.plan-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--touch-primary);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--raised);
  font: var(--text-control);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.plan-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

/* Same size as the shared checkbox, not the full-width text field. */
.plan-option input[type=radio] {
  width: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.offer-renewal {
  font-weight: 600;
}

/* The pro-rata promise sits under the renewal line: visible, not loud. */
.offer-prorata {
  margin-top: calc(-1 * var(--space-3));
}

.offer-account {
  display: grid;
  gap: var(--space-3);
  width: 100%;
}

.offer-account h3 {
  font: var(--text-heading);
}

.offer-account > button:not(.checkout),
.offer-account .account-email-form button {
  width: 100%;
}

.offer-account .account-email-form {
  display: grid;
  gap: var(--space-2);
}

.offer-member-text {
  font-weight: 600;
  color: var(--success);
}

/* "Cancel now and get a refund": a quiet way out under Manage subscription. It is a real
   button (as easy to reach as Subscribe), styled so it never competes with it. */
.offer-account > .cancel-now {
  min-height: var(--control-height-compact);
  font: var(--text-small);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cancel-panel {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.cancel-panel h3 {
  font: var(--text-heading);
}

.cancel-panel h3:focus {
  outline: none;
}

.cancel-panel p {
  margin: 0;
}

.cancel-terms {
  margin: 0;
}

.cancel-terms dt {
  color: var(--ink-muted);
  font: var(--text-caption);
  font-weight: 600;
}

.cancel-terms dd {
  margin: var(--space-1) 0 0;
  font: var(--text-title);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.cancel-changed {
  padding: var(--space-2) var(--space-3);
  border-left: 3px solid var(--warning);
  background: var(--warning-soft);
  color: var(--ink);
}

.cancel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.cancel-actions button {
  flex: 1 1 10rem;
}

.offer-status:empty {
  display: none;
}

.offer-status:focus {
  outline: none;
}

.offer-status[data-error=true] {
  color: var(--danger);
}

.checkout {
  width: 100%;
  min-height: var(--touch-primary);
  border-radius: var(--radius-lg);
  font-size: 16px;
}

/* ── Privacy (prose) ── */
/* The column lines up with the wordmark; only the reading measure is narrowed. */
.prose > * {
  max-width: 760px;
}

.prose-section {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-10);
}

.prose-section h2 {
  font: var(--text-title);
}

/* ── Terms and refund policy ── */
.legal-list {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding-left: var(--space-5);
}

.legal-list li::marker {
  color: var(--ink-muted);
}

/* "Plus isn't on sale yet": a quiet note above the clauses it qualifies. */
.legal-closed {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--raised);
  color: var(--ink-muted);
}

.events-panel {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-2);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--raised);
}

.events-panel .inline-actions {
  margin-top: var(--space-2);
}

#events-notice:empty {
  display: none;
}

/* ── Seller details in the shared footer ── */
.seller {
  flex-basis: 100%;
}

.seller h2 {
  margin-bottom: var(--space-2);
  font: var(--text-control);
  letter-spacing: 0;
}

.seller-list {
  display: grid;
  gap: var(--space-1);
  margin: 0;
}

.seller-list div {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.seller-list dt {
  color: var(--ink-muted);
}

.seller-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* ── Tablet and phone ── */
@media (max-width: 650px) {
  .page-main {
    padding-top: var(--space-8);
  }
  .offer-card {
    padding: var(--space-5);
  }
  .offer-terms {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
