/* ===================================================================
   Onlyview — pricing page only
   Loaded on top of ov.css and scoped to body.page-pricing, so nothing
   leaks onto other pages. Wired via the {{ define "head" }} block in
   layouts/page/pricing_layout.html — same pattern as static/landing.css.

   The :root tokens + primitives (.overline, .gradient-text, .btn, .wrap,
   .rule) mirror static/landing.css on purpose: the two pages load their
   own stylesheet separately, so the duplication is isolated and neither
   leaks onto the other. If a third page ever needs them, hoist the shared
   block into a tokens.css.
   =================================================================== */

:root {
  --ink:        #0b0b0f;
  --ink-2:      #101015;
  --paper:      #ffffff;
  --paper-2:    #f4f4f7;
  --text:       #16161c;
  --text-dim:   #5c5c68;
  --text-inv-dim: rgba(243,243,246,.68);
  --magenta: #E6007E;
  --grad:      linear-gradient(100deg, #FF7A00, #FF1E50, #E6007E, #8A2BE2);
  --grad-soft: linear-gradient(100deg, rgba(255,122,0,.16), rgba(230,0,126,.16), rgba(138,43,226,.18));
  --line:    #e7e7ee;
  --maxw: 1180px;
  --font-display: 'Now', 'Montserrat', system-ui, sans-serif;
  --font-body:    'Now', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- base (opt the pricing page into the brand palette) ---------- */
body.page-pricing {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.page-pricing h1, .page-pricing h2, .page-pricing h3 {
  font-family: var(--font-display);
  font-weight: 700; line-height: 1.06; letter-spacing: -0.02em; margin: 0;
}
.page-pricing h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-pricing h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.page-pricing h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

.page-pricing .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.page-pricing .center { text-align: center; }
.page-pricing .muted { color: var(--text-dim); }

/* ---------- type accents ---------- */
.page-pricing .overline {
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .2em; font-size: 13px;
  display: inline-block; margin-bottom: 16px;
}
.page-pricing .gradient-text {
  background: var(--grad); -webkit-background-clip: text;
  background-clip: text; color: transparent;
}
.page-pricing .rule { height: 4px; width: 64px; border: 0; border-radius: 4px; background: var(--grad); margin: 0 0 26px; }

/* ---------- buttons ---------- */
.page-pricing .btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  padding: 13px 26px; border-radius: 100px; text-decoration: none;
  border: 0; cursor: pointer; letter-spacing: .01em;
  transition: transform .15s ease, box-shadow .25s ease, opacity .2s ease;
}
.page-pricing .btn:hover { transform: translateY(-2px); }
.page-pricing .btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 28px rgba(230,0,126,.35); }

/* ===================================================================
   Header — branded hero over a cover image (mirrors landing's .site-hero).
   The shared site-navigation partial sits inside it, dimmed for legibility.
   =================================================================== */
.pricing-hero {
  position: relative; isolation: isolate;
  background-color: var(--ink-2);
  background-size: cover; background-position: center;
  color: #fff;
}
.pricing-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(11,11,15,.86) 0%, rgba(11,11,15,.58) 48%, rgba(11,11,15,.74) 100%);
}
.pricing-hero-titles { max-width: 760px; margin: 0 auto; text-align: center; padding: 3rem 24px 5rem; }
.pricing-hero-titles h1 { color: #fff; margin-bottom: 18px; }
.pricing-hero-sub {
  font-family: var(--font-body); font-weight: 400;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.55;
  color: rgba(255,255,255,.86); max-width: 56ch; margin: 0 auto;
}

/* ---------- section rhythm ---------- */
.page-pricing .pr-section { padding: 80px 0; }
.page-pricing .pr-section--tight { padding: 56px 0; }
.page-pricing .pr-section--paper { background: var(--paper-2); }

/* ===================================================================
   "How licensing works" — free-until-live model
   =================================================================== */
.howto-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.howto-head h2 { margin-bottom: 14px; }
.howto-head p { color: var(--text-dim); font-size: 1.15rem; margin: 0 auto; max-width: 56ch; }

.free-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 1000px; margin: 0 auto;
}
@media (max-width: 760px){ .free-split { grid-template-columns: 1fr; } }
.fs-card { border-radius: 18px; padding: 30px 28px; border: 1px solid var(--line); background: var(--paper); }
.fs-card.is-free { background: var(--grad-soft); border-color: transparent; }
.fs-tag {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 16px;
}
.fs-tag.free { background: #fff; color: var(--magenta); }
.fs-tag.paid { background: var(--grad); color: #fff; }
.fs-card h3 { margin-bottom: 18px; }
.fs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fs-list li { position: relative; padding-left: 28px; font-size: .98rem; }
.fs-list.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff;
}
.fs-list.checks li::after {
  content: ""; position: absolute; left: 6px; top: 6px; width: 6px; height: 9px;
  border: solid var(--magenta); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.fs-list.dots li::before {
  content: ""; position: absolute; left: 3px; top: 7px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--grad);
}
.howto-fineprint {
  max-width: 1000px; margin: 26px auto 0; text-align: center;
  color: var(--text-dim); font-size: .95rem; line-height: 1.55;
}
.howto-fineprint a { color: var(--magenta); text-decoration: none; font-weight: 700; }
.howto-fineprint a:hover { text-decoration: underline; }

/* ===================================================================
   Commitment spectrum — rent → subscribe → own on a single line
   =================================================================== */
.spectrum { position: relative; max-width: 1000px; margin: 0 auto; }
.spectrum-track { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.spectrum-track::before {
  content: ""; position: absolute; left: 16.66%; right: 16.66%; top: 10px;
  height: 3px; background: var(--grad); border-radius: 3px;
}
.spec-stop { text-align: center; padding: 0 14px; }
.spec-node {
  width: 22px; height: 22px; border-radius: 50%; background: var(--grad);
  margin: 0 auto 22px; position: relative; z-index: 1;
  box-shadow: 0 0 0 6px var(--paper), 0 4px 12px rgba(230,0,126,.4);
}
.spec-label { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; margin-bottom: 4px; }
.spec-when {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; font-size: 12px; color: var(--text-dim); margin-bottom: 16px;
}
.spec-amount { display: flex; align-items: baseline; justify-content: center; gap: 5px; }
.spec-amount .num { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; letter-spacing: -.02em; }
.spec-amount .cur { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; }
.spec-unit { color: var(--text-dim); font-size: .88rem; margin: 4px 0 18px; }
.spec-cta { font-family: var(--font-display); font-weight: 700; font-size: 14px; text-decoration: none; color: var(--magenta); }
.spec-cta:hover { text-decoration: underline; }
.spectrum-shared {
  max-width: 620px; margin: 56px auto 0; text-align: center;
  padding-top: 32px; border-top: 1px solid var(--line);
}
.spectrum-shared p { color: var(--text-dim); margin: 0 0 22px; }
@media (max-width: 720px){
  .spectrum-track { grid-template-columns: 1fr; gap: 38px; }
  .spectrum-track::before { display: none; }
}

/* ===================================================================
   Licence calculator
   =================================================================== */
.calc-head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.calc-head h2 { margin-bottom: 12px; }
.calc-head p { color: var(--text-dim); margin: 0 auto; }

.calc { max-width: 880px; margin: 0 auto; }
.calc-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.calc-table th {
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim);
  text-align: left; padding: 0 10px 12px;
}
.calc-table td { padding: 6px 10px; vertical-align: middle; }
.calc-table select, .calc-table input {
  width: 100%; padding: 10px 12px; font: inherit; font-size: .95rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  box-sizing: border-box; color: var(--text);
}
.calc-table input { width: 100px; }
.calc-table select:focus, .calc-table input:focus {
  outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(230,0,126,.15);
}
.calc-table .col-actions { width: 1%; white-space: nowrap; text-align: right; }
.icon-btn {
  appearance: none; cursor: pointer; border: 1px solid var(--line); background: var(--paper);
  width: 38px; height: 38px; border-radius: 10px; color: var(--text-dim); font-size: 18px;
  line-height: 1; display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .15s ease, color .15s ease;
}
.icon-btn:hover { border-color: var(--magenta); color: var(--magenta); }
.icon-btn + .icon-btn { margin-left: 6px; }

.calc-add {
  appearance: none; cursor: pointer; margin-top: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  color: var(--text); background: transparent; border: 1.5px dashed var(--line);
  border-radius: 100px; padding: 10px 20px; transition: border-color .15s ease, color .15s ease;
}
.calc-add:hover { border-color: var(--magenta); color: var(--magenta); }

.calc-result {
  display: none; margin-top: 28px; border-radius: 16px; overflow: hidden;
  background: var(--ink-2); color: #fff;
}
.calc-result.is-visible { display: block; }
.calc-result-top {
  display: flex; align-items: baseline; justify-content: center; gap: 12px;
  padding: 26px 24px;
}
.calc-result-top .big {
  font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1;
}
.calc-result-top .lbl { color: var(--text-inv-dim); font-size: .95rem; }


/* ===================================================================
   CTA band
   =================================================================== */
.pricing-cta { background: var(--ink-2); color: #fff; text-align: center; }
.pricing-cta .rule { margin: 0 auto 26px; }
.pricing-cta h2 { color: #fff; max-width: 20ch; margin: 0 auto 28px; }

@media (prefers-reduced-motion: reduce){
  .page-pricing * { transition-duration: .001ms !important; }
}
