/* ============================================================
   TERN AI — pricing and legal pages
   Loaded after styles.css. Pricing values come from the Claude Design
   "Tern AI" project's pricing.html; every class is prefixed pr- so it
   cannot collide with the shared .card / .chip / .btn in styles.css.
   ============================================================ */

/* ---------- shared bits ---------- */
.pr-mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-2); }
.pr-grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--font-body); font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: 100px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .2s, border-color .2s, color .2s; white-space: nowrap; text-align: center; }
.pr-btn-grad { background: var(--grad); color: #fff; box-shadow: 0 8px 26px -10px rgba(110,86,248,.6), inset 0 1px 0 rgba(255,255,255,.22); }
.pr-btn-grad:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 16px 40px -12px rgba(110,86,248,.7); }
.pr-btn-out { border: 1px solid var(--border-strong); color: var(--text); background: rgba(255,255,255,.02); }
.pr-btn-out:hover { border-color: var(--accent-2); background: var(--accent-soft); color: var(--text); transform: translateY(-2px); }
.pr-btn-full { width: 100%; }
.pr-btn-lg { padding: 16px 30px; font-size: 16.5px; }
.is-hidden { display: none !important; }

/* ---------- pricing: hero ---------- */
.pr-hero { position: relative; padding: 148px 0 clamp(40px, 6vw, 64px); overflow: hidden; text-align: center; }
.pr-hero-glow { position: absolute; top: -260px; left: 50%; transform: translateX(-50%); width: 820px; height: 620px; border-radius: 50%; filter: blur(110px); background: radial-gradient(circle, rgba(110,86,248,.32), transparent 68%); pointer-events: none; }
.pr-hero-in { position: relative; z-index: 2; }
.pr-hero h1 { font-size: clamp(40px, 6.6vw, 80px); letter-spacing: -.035em; margin: 20px 0 0; text-wrap: balance; line-height: 1.04; font-weight: 600; }
.pr-hero p { font-size: clamp(17px, 1.5vw, 20px); color: var(--text-dim); margin: 22px auto 0; max-width: 52ch; text-wrap: pretty; }

/* billing toggle */
.pr-toggle { display: inline-flex; align-items: center; gap: 4px; margin-top: 34px; padding: 5px; border: 1px solid var(--border-strong); border-radius: 100px; background: rgba(255,255,255,.03); }
.pr-toggle button { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); padding: 10px 20px; border-radius: 100px; transition: background .25s, color .25s; }
.pr-toggle button.on { background: var(--grad); color: #fff; }
.pr-hero .pr-terms-note { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--text-dim); margin: 16px auto 0; max-width: none; line-height: 1.6; }
.pr-terms-note a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.pr-terms-note a:hover { color: var(--text); }
.pr-save { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #38D39F; background: rgba(56,211,159,.12); border: 1px solid rgba(56,211,159,.3); padding: 4px 9px; border-radius: 100px; white-space: nowrap; align-self: center; }

/* ---------- pricing: sections ---------- */
.pr-sec { padding-block: clamp(46px, 6vw, 72px); }
.pr-sec-head { margin-bottom: 34px; }
.pr-sec-head h2 { font-size: clamp(27px, 3.2vw, 40px); margin-top: 14px; line-height: 1.04; letter-spacing: -.025em; font-weight: 600; }
.pr-sec-head p { color: var(--text-dim); margin-top: 12px; max-width: 56ch; font-size: 16px; }
.pr-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 980px) { .pr-grid3 { grid-template-columns: 1fr; max-width: 460px; } }

/* plan cards */
.pr-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px 28px; transition: transform .35s var(--ease), border-color .3s; }
.pr-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.pr-card.pop { border-color: rgba(110,86,248,.45); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 46%); box-shadow: 0 24px 60px -30px rgba(110,86,248,.5); }
.pr-badge { position: absolute; top: -11px; left: 28px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; background: var(--grad); color: #fff; box-shadow: 0 6px 18px -6px rgba(110,86,248,.7); }
.pr-card h3 { font-size: 21px; line-height: 1.04; letter-spacing: -.025em; font-weight: 600; }
.pr-plan-sub { color: var(--text-dim); font-size: 14.5px; margin-top: 7px; min-height: 42px; }
.pr-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 22px 0 4px; }
.pr-amt { font-family: var(--font-display); font-weight: 600; font-size: clamp(38px, 4vw, 48px); letter-spacing: -.03em; line-height: 1; }
.pr-amt--text { font-size: clamp(28px, 3vw, 34px); }
.pr-per { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); letter-spacing: .06em; }
.pr-price-note { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); letter-spacing: .06em; min-height: 16px; }
.pr-feats { list-style: none; margin: 24px 0 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pr-feats li { position: relative; padding-left: 26px; font-size: 15px; color: var(--text-dim); line-height: 1.45; }
.pr-feats li::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--accent-soft); border: 1px solid rgba(110,86,248,.35); }
.pr-feats li::after { content: ""; position: absolute; left: 4.5px; top: 10px; width: 6px; height: 3.5px; border-left: 1.6px solid var(--accent-2); border-bottom: 1.6px solid var(--accent-2); transform: rotate(-45deg); }

/* journalist free banner */
.pr-free-banner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; background: var(--surface); border: 1px solid rgba(56,211,159,.28); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); position: relative; overflow: hidden; }
.pr-free-banner::after { content: ""; position: absolute; right: -80px; top: 50%; transform: translateY(-50%); width: 380px; height: 380px; border-radius: 50%; filter: blur(90px); background: radial-gradient(circle, rgba(56,211,159,.16), transparent 70%); pointer-events: none; }
.pr-free-banner h2 { font-size: clamp(23px, 2.6vw, 31px); margin-top: 14px; line-height: 1.04; letter-spacing: -.025em; font-weight: 600; }
.pr-free-banner p { color: var(--text-dim); margin-top: 12px; max-width: 60ch; font-size: 16px; }
.pr-free-banner .pr-mono { color: #38D39F; }
.pr-big-free { font-family: var(--font-display); font-weight: 700; font-size: clamp(88px, 11vw, 150px); line-height: .86; letter-spacing: -.05em; color: #38D39F; position: relative; z-index: 2; }
@media (max-width: 820px) { .pr-free-banner { grid-template-columns: 1fr; gap: 12px; } }

/* campaign seat */
.pr-seat { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4vw, 56px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); }
.pr-seat h3 { font-size: clamp(23px, 2.4vw, 29px); line-height: 1.04; letter-spacing: -.025em; font-weight: 600; }
.pr-seat p { color: var(--text-dim); margin-top: 14px; font-size: 16px; }
.pr-seat .pr-price { margin-top: 20px; }
.pr-seat .pr-price-note { margin-top: 0; font-size: 11.5px; }
.pr-steps { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.pr-steps li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.pr-steps .n { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); border: 1px solid rgba(110,86,248,.35); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 13px; color: var(--accent-2); }
.pr-steps h4 { font-size: 16.5px; line-height: 1.3; font-weight: 600; }
.pr-steps span { display: block; color: var(--text-dim); font-size: 14.5px; margin-top: 4px; line-height: 1.45; }
.pr-seat-aside { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.pr-seat-aside .pr-mono { color: var(--text-faint); display: block; margin-bottom: 22px; }
@media (max-width: 880px) { .pr-seat { grid-template-columns: 1fr; } }

/* reseller note, bottom of the page */
.pr-reseller { padding-block: 0 clamp(24px, 4vw, 40px); text-align: center; }
.pr-reseller p { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; line-height: 1.7; color: var(--text-faint); max-width: 70ch; margin-inline: auto; }

/* closing banner */
.pr-cta-b { position: relative; overflow: hidden; text-align: center; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 26px; padding: clamp(44px, 6vw, 78px); }
.pr-cta-b::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 640px; height: 420px; border-radius: 50%; filter: blur(100px); background: radial-gradient(circle, rgba(110,86,248,.45), transparent 68%); pointer-events: none; }
.pr-cta-b-in { position: relative; z-index: 2; }
.pr-cta-b h2 { font-size: clamp(28px, 4vw, 50px); margin-bottom: 26px; line-height: 1.04; letter-spacing: -.025em; font-weight: 600; }
.pr-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Legal pages (Terms, Privacy, Refund) — pricing typography in a
   readable column.
   ============================================================ */
.legal { max-width: calc(72ch + 2 * var(--gutter)); padding-top: 148px; padding-bottom: clamp(56px, 8vw, 96px); }
.legal__head { margin-bottom: clamp(28px, 4vw, 44px); }
.legal__head h1 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.03em; line-height: 1.04; font-weight: 600; margin-top: 18px; text-wrap: balance; }
.legal__body { color: var(--text-dim); font-size: 17px; line-height: 1.6; }
.legal__body > * + * { margin-top: 16px; }
.legal__body h2 { font-family: var(--font-display); font-weight: 600; color: var(--text); font-size: clamp(21px, 2.2vw, 26px); line-height: 1.2; letter-spacing: -.02em; margin-top: 48px; }
.legal__body h3 { font-family: var(--font-display); font-weight: 600; color: var(--text); font-size: 18px; line-height: 1.3; margin-top: 32px; }
.legal__body strong { color: var(--text); font-weight: 600; }
.legal__body a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal__body a:hover { color: var(--text); }
.legal__body ul, .legal__body ol { padding-left: 22px; }
.legal__body li + li { margin-top: 8px; }
.legal__body li::marker { color: var(--text-faint); }
.legal__table { border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; background: var(--surface); }
.legal__table table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.legal__table th, .legal__table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); min-width: 160px; }
.legal__table th { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); font-weight: 500; }
.legal__table td:first-child { color: var(--text); font-weight: 500; }
.legal__table tr:last-child td { border-bottom: none; }
