/* ==========================================================================
   Pricing cards — the shared component rendered by pricing.js on the landing page
   (#pricing) and inside the Pricing modal on /start (api/flow_pages.py inlines both files).
   Everything is scoped under .pricing so it carries its own buttons, ticks and tags and
   never depends on either host page's styles. Colours come from tokens.css.
   ========================================================================== */
.pricing{ --p-ease: cubic-bezier(.2,.7,.2,1); }
.pricing-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 760px){ .pricing-grid{ grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.pricing .price-card{
  position: relative;
  display: flex; flex-direction: column;
  padding: 34px 32px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 1rem);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  text-align: left;
}
.pricing .price-card.highlight{
  border-color: transparent;
  background:
    radial-gradient(80% 50% at 100% 0%, color-mix(in srgb, var(--accent) calc(8% * var(--wash-k, 1)), transparent), transparent 70%) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(150deg, color-mix(in srgb, var(--accent) 65%, transparent), var(--border) 45%, color-mix(in srgb, var(--accent-2) 45%, transparent)) border-box;
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--accent) 55%, transparent), var(--shadow-card);
}
.pricing .price-card:not(.highlight){ background: var(--surface-sunken); box-shadow: var(--shadow-xs); }
.pricing .price-card h3{ margin: 0 0 8px; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; text-transform: none; color: var(--heading); }
.pricing .price-desc{ margin: 0 0 24px; font-size: 14.5px; line-height: 1.6; color: var(--text-muted); }
.pricing .price-amount{ display: flex; align-items: baseline; gap: 2px; font-family: var(--font-display, Georgia, serif); font-size: 3.6rem; font-weight: 400; letter-spacing: -0.02em; color: var(--heading); line-height: 1; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.pricing .price-currency{ align-self: flex-start; margin-top: .35em; font-size: .45em; font-weight: 600; letter-spacing: 0; color: var(--text-muted); }
.pricing .price-period{ margin-left: 10px; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--text-faint); font-family: var(--font); }
.pricing .price-amount.muted{ display: block; font-size: 1.75rem; font-weight: 400; letter-spacing: -0.015em; margin: 6px 0 14px; }
.pricing .price-launch{ display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pricing .price-list-price{ font-size: 1.05rem; font-weight: 600; color: var(--text-faint); text-decoration: line-through; text-decoration-thickness: 2px; }
.pricing .tag-launch{
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-family: var(--font-mono); font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-on-accent); background: var(--grad-brand);
  box-shadow: 0 6px 14px -8px rgb(var(--rgb-indigo) / .6);
}
.pricing .price-launch-note{ margin: 0 0 18px; font-size: 12.5px; color: var(--text-faint); }
.pricing .price-scope{
  font-size: 13.5px; line-height: 1.6; color: var(--text-muted);
  padding: 14px 16px; margin-bottom: 22px;
  border-radius: var(--radius-sm, 4px);
  background: var(--bg-subtle); border: 1px solid var(--border-soft);
}
.pricing .price-scope a{ color: var(--accent); font-weight: 600; }
.pricing .price-list{ list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pricing .price-list li{ display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.pricing .check-dot{ display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; margin-top: -1px; border-radius: 999px; color: var(--accent-2-text); background: color-mix(in srgb, var(--accent-2) 14%, transparent); }
.pricing .check-dot svg{ width: 12px; height: 12px; }
.pricing .price-card:not(.highlight) .check-dot{ color: var(--accent); background: var(--tint-accent); }
.pricing .tag-soon{
  flex: none; white-space: nowrap; align-self: center;
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  font-size: 10px; font-family: var(--font-mono); font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent);
}
.pricing .p-btn{
  margin-top: auto;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 20px;
  font: inherit; font-size: 15px; font-weight: 500; line-height: 1.2;
  border-radius: var(--radius-sm, 4px); border: 1px solid var(--border);
  cursor: pointer; text-decoration: none;
  color: var(--heading); background: var(--surface); box-shadow: var(--shadow-xs);
  transition: transform .18s var(--p-ease), box-shadow .18s var(--p-ease), border-color .18s var(--p-ease), background-color .18s var(--p-ease);
}
.pricing .p-btn:hover{ transform: translateY(-1px); border-color: var(--border-hover); }
.pricing .p-btn:focus-visible{ outline: none; box-shadow: var(--ring); }
.pricing .p-btn.primary{
  color: var(--text-on-accent);
  border-color: var(--btn-primary-border);
  background: var(--btn-primary-bg);
  box-shadow: 0 8px 22px -10px rgb(var(--rgb-indigo) / .65);
}
.pricing .p-btn.primary:hover{ background: var(--btn-primary-bg-hover); }

/* The modal (/start): a native <dialog>, so focus trap, Esc and an inert page come built in. */
.pricing-modal{
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto; padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius-lg, 1rem);
  background: var(--bg); color: var(--text);
  box-shadow: var(--shadow-pop);
  overflow: auto; overscroll-behavior: contain;
}
.pricing-modal::backdrop{ background: rgb(var(--rgb-navy) / .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.pricing-modal[open]{ animation: pricing-in .28s cubic-bezier(.2,.7,.2,1); }
@keyframes pricing-in{ from{ opacity: 0; transform: translateY(12px) scale(.98); } }
@media (prefers-reduced-motion: reduce){ .pricing-modal[open]{ animation: none; } }
.pricing-modal-panel{ position: relative; padding: 34px 32px 30px; }
.pricing-modal-head{ max-width: 600px; margin: 0 auto 26px; text-align: center; }
.pricing-modal-head h2{ margin: 0 0 8px; font-family: var(--font-display, Georgia, serif); font-size: 1.85rem; font-weight: 400; letter-spacing: -0.015em; line-height: 1.15; text-transform: none; color: var(--heading); }
.pricing-modal-head p{ margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.pricing-modal-close{
  position: absolute; top: 16px; right: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); cursor: pointer;
}
.pricing-modal-close:hover{ color: var(--heading); border-color: var(--border-hover); }
.pricing-modal-close:focus-visible{ outline: none; box-shadow: var(--ring); }
.pricing-modal-close svg{ width: 16px; height: 16px; }
@media (max-width: 560px){
  .pricing-modal-panel{ padding: 26px 16px 20px; }
  .pricing .price-card{ padding: 26px 20px 22px; }
  .pricing .price-amount{ font-size: 2.8rem; }
}
