/* ==========================================================================
   NordicStreamTV — Page-specific styles
   Pricing · Checkout · Blog · Setup Guide · Contact · Legal
   ========================================================================== */

/* --------------------------------------------------------------------------
   PRICING
   -------------------------------------------------------------------------- */
.price-controls {
  display: grid;
  gap: 1.4rem;
  max-width: 760px;
  margin: 0 auto var(--space-block);
}
.control-group { text-align: center; }
.control-group__label {
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 700; color: var(--c-slate); margin-bottom: .8rem;
}
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .3rem;
  padding: .4rem;
  background: var(--c-mist);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
}
.segmented button {
  padding: .65rem 1.15rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 700; font-size: .9rem;
  color: var(--c-slate);
  transition: background var(--t), color var(--t), box-shadow var(--t);
  position: relative;
}
.segmented button .save {
  display: inline-block;
  margin-left: .4rem;
  font-size: .68rem;
  color: #1B8A52;
  background: rgba(34,160,90,.12);
  padding: .1rem .4rem; border-radius: 999px;
}
.segmented button.is-active {
  background: var(--c-white);
  color: var(--c-navy);
  box-shadow: var(--shadow-sm);
}
.segmented button.is-active .save { color: #1B8A52; }

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-xl);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.price-card.is-featured {
  border-color: var(--c-gold);
  box-shadow: var(--shadow-gold);
  transform: scale(1.015);
}
.price-card.is-featured:hover { transform: scale(1.015) translateY(-6px); }
.price-card__flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad-gold); color: var(--c-navy);
  font-family: var(--font-display); font-weight: 800; font-size: .76rem;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .42rem 1rem; border-radius: var(--r-pill);
  box-shadow: var(--shadow-gold);
  white-space: nowrap;
}
.price-card__name { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--c-navy); }
.price-card__desc { color: var(--c-slate); font-size: .92rem; margin: .35rem 0 1.4rem; min-height: 2.6em; }
.price-card__price { display: flex; align-items: baseline; gap: .3rem; margin-bottom: .35rem; }
.price-card__currency { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--c-navy); }
.price-card__amount {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem);
  color: var(--c-navy); line-height: 1;
  letter-spacing: -.03em;
}
.price-card__period { color: var(--c-slate); font-weight: 600; }
.price-card__sub { font-size: .84rem; color: var(--c-slate-2); margin-bottom: 1.6rem; }
.price-card__sub b { color: #1B8A52; }
.price-card .btn { margin-bottom: 1.6rem; }
.price-card__features { display: grid; gap: .8rem; }
.price-card__features li { display: flex; gap: .65rem; align-items: flex-start; font-size: .93rem; color: var(--c-ink); }
.price-card__features .tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,106,167,.1); color: var(--c-blue);
  display: grid; place-items: center;
}
.price-card.is-featured .price-card__features .tick { background: rgba(254,204,2,.18); color: var(--c-gold-600); }
.price-card__features .tick svg { width: 13px; height: 13px; }

/* Comparison table */
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare th, .compare td { padding: 1.05rem 1.3rem; text-align: left; border-bottom: 1px solid var(--c-line); }
.compare thead th {
  background: var(--c-navy); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
}
.compare thead th:not(:first-child) { text-align: center; }
.compare tbody th { font-weight: 600; color: var(--c-ink); }
.compare td { text-align: center; color: var(--c-slate); }
.compare tbody tr:nth-child(even) { background: var(--c-mist); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }
.compare .yes { color: #1B8A52; font-weight: 700; }
.compare .no { color: var(--c-slate-2); }
.compare .hl { color: var(--c-navy); font-weight: 700; }
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Comparison cards — mobile transpose of the compare table (hidden on desktop) */
.compare-cards { display: none; }
.compare-card {
  background: var(--surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.4rem 1.3rem 1.5rem;
}
.compare-card.is-featured {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 1px var(--c-gold), var(--shadow-md);
}
.compare-card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; margin-bottom: .55rem;
}
.compare-card__name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--c-navy); }
.compare-card__badge {
  flex: none;
  font-family: var(--font-display); font-weight: 700; font-size: .66rem;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--c-navy); background: var(--c-gold);
  padding: .32rem .6rem; border-radius: var(--r-pill);
}
.compare-card__price {
  display: flex; align-items: baseline; gap: .12rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.7rem;
  color: var(--c-navy); margin-bottom: 1.1rem;
}
.compare-card__price .cur { font-size: 1.05rem; font-weight: 700; }
.compare-card__price small { font-size: .82rem; font-weight: 600; color: var(--c-slate); }
.compare-card__list { display: block; margin-bottom: 1.3rem; }
.compare-card__list li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .72rem 0; border-bottom: 1px solid var(--c-line);
}
.compare-card__list li:last-child { border-bottom: none; }
.compare-card__k { color: var(--c-slate); font-size: .9rem; }
.compare-card__list li.is-off .compare-card__k { color: var(--c-slate-2); }
.compare-card__v { font-weight: 700; font-size: .92rem; color: var(--c-navy); text-align: right; }
.compare-card__v.yes { color: #1B8A52; display: inline-flex; align-items: center; }
.compare-card__v.yes svg { width: 19px; height: 19px; }
.compare-card__v.no { color: var(--c-slate-2); font-weight: 600; }
.compare-card .btn { width: 100%; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   CHECKOUT
   -------------------------------------------------------------------------- */
.checkout {
  display: grid;
  grid-template-columns: 1.4fr .85fr;
  gap: clamp(1.6rem, 3vw, 2.6rem);
  align-items: start;
}
.checkout__main { display: grid; gap: 1.4rem; }
.form-card {
  background: var(--surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}
.form-card__head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.6rem; }
.form-card__num {
  width: 36px; height: 36px; flex: none; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--c-navy); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: .95rem;
}
.form-card__head h2 { font-size: 1.25rem; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .45rem; margin-bottom: 1.1rem; }
.field:last-child { margin-bottom: 0; }
.field label { font-weight: 600; font-size: .9rem; color: var(--c-ink); }
.field label .req { color: #D33; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid var(--c-line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  transition: border-color var(--t), box-shadow var(--t);
  font-size: .98rem;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 4px rgba(0,106,167,.12);
}
.field input::placeholder, .field textarea::placeholder { color: var(--c-slate-2); }
.field.has-error input, .field.has-error select { border-color: #E0533D; box-shadow: 0 0 0 4px rgba(224,83,61,.1); }
.field__error { font-size: .8rem; color: #D33; display: none; }
.field.has-error .field__error { display: block; }
.field__hint { font-size: .8rem; color: var(--c-slate-2); }

/* Device selector */
.device-select { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.device-option { position: relative; }
.device-option input { position: absolute; opacity: 0; pointer-events: none; }
.device-option label {
  display: flex; align-items: center; gap: .8rem;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--c-line-2);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
  font-weight: 600; font-size: .95rem;
}
.device-option label svg { width: 24px; height: 24px; color: var(--c-slate); transition: color var(--t); }
.device-option input:checked + label {
  border-color: var(--c-blue);
  background: rgba(0,106,167,.05);
  box-shadow: 0 0 0 3px rgba(0,106,167,.12);
}
.device-option input:checked + label svg { color: var(--c-blue); }
.device-option input:focus-visible + label { outline: 3px solid var(--c-blue-400); outline-offset: 2px; }

/* Order summary */
.summary {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  background: var(--c-navy);
  color: rgba(255,255,255,.82);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.1rem);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.summary::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 120px;
  background: var(--grad-aurora); opacity: .5; z-index: 0;
}
.summary > * { position: relative; z-index: 1; }
.summary h2 { color: #fff; font-size: 1.2rem; margin-bottom: 1.4rem; }
.summary__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; font-size: .94rem; }
.summary__row .k { color: rgba(255,255,255,.62); }
.summary__row .v { font-weight: 600; color: #fff; }
.summary__divider { height: 1px; background: rgba(255,255,255,.12); margin: .6rem 0; }
.summary__total { display: flex; align-items: baseline; justify-content: space-between; padding-top: .8rem; }
.summary__total .k { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #fff; }
.summary__total .v { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: var(--c-gold); }
.summary__save {
  display: flex; align-items: center; gap: .5rem;
  margin-top: 1rem; padding: .7rem .9rem;
  background: rgba(34,160,90,.16);
  border: 1px solid rgba(34,160,90,.28);
  border-radius: var(--r-sm);
  font-size: .85rem; color: #8FE3B3;
}
.summary__save svg { width: 18px; height: 18px; flex: none; }
.summary .btn { margin-top: 1.4rem; }
.summary__trust { display: grid; gap: .6rem; margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12); }
.summary__trust li { display: flex; gap: .6rem; align-items: center; font-size: .84rem; color: rgba(255,255,255,.7); }
.summary__trust svg { width: 16px; height: 16px; color: var(--c-gold); flex: none; }

.checkout-success {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-sm);
}
.checkout-success .ok-circle {
  width: 72px; height: 72px; margin: 0 auto 1.4rem;
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(34,160,90,.14); color: #1B8A52;
}
.checkout-success .ok-circle svg { width: 38px; height: 38px; }
.checkout-success h2 { margin-bottom: .8rem; }
.checkout-success p { color: var(--c-slate); max-width: 460px; margin: 0 auto 1.6rem; }

/* --------------------------------------------------------------------------
   BLOG
   -------------------------------------------------------------------------- */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(1.6rem, 3vw, 3rem);
  align-items: start;
}
.blog-search { position: relative; margin-bottom: var(--space-block); }
.blog-search input {
  width: 100%;
  padding: 1rem 1.1rem 1rem 3rem;
  border: 1.5px solid var(--c-line-2);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 1rem;
  transition: border-color var(--t), box-shadow var(--t);
}
.blog-search input:focus { outline: none; border-color: var(--c-blue); box-shadow: 0 0 0 4px rgba(0,106,167,.12); }
.blog-search svg { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--c-slate-2); }

.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.post-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t), box-shadow var(--t);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post-card__media {
  aspect-ratio: 16/9;
  position: relative;
  background: var(--grad-ink);
  overflow: hidden;
}
.post-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: var(--grad-aurora); opacity: .7;
}
.post-card__cat {
  position: absolute; z-index: 2; left: 1rem; top: 1rem;
  background: rgba(255,255,255,.92); color: var(--c-navy);
  font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  padding: .32rem .7rem; border-radius: var(--r-pill);
}
.post-card__body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: .78rem; color: var(--c-slate-2); margin-bottom: .6rem; display: flex; gap: .8rem; }
.post-card h3 { font-size: 1.18rem; margin-bottom: .6rem; line-height: 1.3; }
.post-card h3 a:hover { color: var(--c-blue); }
.post-card p { color: var(--c-slate); font-size: .92rem; margin-bottom: 1.1rem; flex: 1; }
.post-card__foot { display: flex; align-items: center; justify-content: space-between; }
.post-card__author { display: flex; align-items: center; gap: .55rem; font-size: .84rem; font-weight: 600; }
.post-card__avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--grad-blue); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 800; }

.post-card--featured { grid-column: 1 / -1; flex-direction: row; }
.post-card--featured .post-card__media { aspect-ratio: auto; flex: 1.1; min-height: 280px; }
.post-card--featured .post-card__body { flex: 1; justify-content: center; padding: clamp(1.6rem, 3vw, 2.4rem); }
.post-card--featured h3 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.post-card--featured p { font-size: 1rem; }

/* Sidebar */
.sidebar { display: grid; gap: 1.4rem; position: sticky; top: calc(var(--nav-h) + 16px); }
.widget {
  background: var(--surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
}
.widget h3 { font-size: 1.05rem; margin-bottom: 1.1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--c-line); }
.cat-list li { margin-bottom: .2rem; }
.cat-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .65rem .8rem; border-radius: var(--r-sm);
  font-weight: 600; font-size: .92rem; color: var(--c-ink);
  transition: background var(--t), color var(--t);
}
.cat-list a:hover, .cat-list a.is-active { background: rgba(0,106,167,.07); color: var(--c-blue); }
.cat-list .count { font-size: .78rem; color: var(--c-slate-2); background: var(--c-mist); padding: .1rem .5rem; border-radius: 999px; }
.cat-list a:hover .count { background: rgba(0,106,167,.12); color: var(--c-blue); }

.recent-post { display: flex; gap: .9rem; padding: .7rem 0; border-bottom: 1px solid var(--c-line); }
.recent-post:last-child { border-bottom: none; padding-bottom: 0; }
.recent-post__thumb { width: 64px; height: 64px; flex: none; border-radius: var(--r-sm); background: var(--grad-ink); position: relative; overflow: hidden; }
.recent-post__thumb::after { content: ""; position: absolute; inset: 0; background: var(--grad-aurora); opacity: .7; }
.recent-post h4 { font-size: .9rem; line-height: 1.35; margin-bottom: .25rem; font-weight: 700; }
.recent-post h4 a:hover { color: var(--c-blue); }
.recent-post time { font-size: .76rem; color: var(--c-slate-2); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-cloud a {
  font-size: .82rem; font-weight: 600; padding: .4rem .8rem;
  border: 1px solid var(--c-line-2); border-radius: var(--r-pill);
  color: var(--c-slate); transition: all var(--t);
}
.tag-cloud a:hover { border-color: var(--c-blue); color: var(--c-blue); background: rgba(0,106,167,.05); }

.widget--cta { background: var(--grad-ink); color: rgba(255,255,255,.8); position: relative; overflow: hidden; }
.widget--cta::before { content: ""; position: absolute; inset: 0; background: var(--grad-aurora); opacity: .6; }
.widget--cta > * { position: relative; z-index: 1; }
.widget--cta h3 { color: #fff; border-color: rgba(255,255,255,.14); }
.widget--cta p { font-size: .9rem; margin-bottom: 1.1rem; color: rgba(255,255,255,.74); }

.no-results { text-align: center; padding: 3rem 1rem; color: var(--c-slate); grid-column: 1 / -1; display: none; }
.no-results svg { width: 48px; height: 48px; color: var(--c-slate-2); margin: 0 auto 1rem; }

/* --------------------------------------------------------------------------
   SETUP GUIDE — tabs
   -------------------------------------------------------------------------- */
.tabs { max-width: 920px; margin-inline: auto; }
.tablist {
  display: flex; flex-wrap: wrap; gap: .5rem;
  padding: .4rem;
  background: var(--c-mist);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  margin-bottom: var(--space-block);
  justify-content: center;
}
.tablist button {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1.2rem;
  border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 700; font-size: .92rem;
  color: var(--c-slate);
  transition: background var(--t), color var(--t), box-shadow var(--t);
}
.tablist button svg { width: 18px; height: 18px; }
.tablist button[aria-selected="true"] {
  background: var(--c-white); color: var(--c-navy); box-shadow: var(--shadow-sm);
}
.tabpanel { display: none; }
.tabpanel.is-active { display: block; animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.guide-intro { display: flex; gap: 1.2rem; align-items: center; margin-bottom: 2rem; padding: 1.4rem 1.6rem; background: var(--c-mist); border-radius: var(--r-lg); border: 1px solid var(--c-line); }
.guide-intro .icon-tile { flex: none; }
.guide-intro h2 { font-size: 1.4rem; margin-bottom: .3rem; }
.guide-intro p { color: var(--c-slate); font-size: .95rem; }

.guide-steps { display: grid; gap: 1rem; }
.guide-step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}
.guide-step__num {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-blue); color: #fff;
  font-family: var(--font-display); font-weight: 800;
}
.guide-step h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.guide-step p { color: var(--c-slate); font-size: .94rem; }
.guide-step code {
  display: inline-block; margin-top: .6rem;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .85rem;
  background: var(--c-navy); color: var(--c-gold-soft);
  padding: .35rem .7rem; border-radius: 6px;
}

/* --------------------------------------------------------------------------
   CONTACT
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 3vw, 3rem);
  align-items: start;
}
.contact-info { display: grid; gap: 1rem; }
.contact-method {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t), box-shadow var(--t);
}
.contact-method:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-method .icon-tile { flex: none; }
.contact-method h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.contact-method p { color: var(--c-slate); font-size: .92rem; margin-bottom: .5rem; }
.contact-method a { font-weight: 700; color: var(--c-blue); }
.contact-method a:hover { color: var(--c-navy); }

.whatsapp-card {
  background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
  color: #fff; border: none;
}
.whatsapp-card .icon-tile { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.25); color: #fff; }
.whatsapp-card h3 { color: #fff; }
.whatsapp-card p { color: rgba(255,255,255,.85); }
.whatsapp-card a { color: #fff; text-decoration: underline; }
.whatsapp-card a:hover { color: #fff; }

.contact-form-card .form-card__head h2 { font-size: 1.4rem; }

.faq-shortcuts { display: grid; gap: .7rem; }
.faq-shortcut {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  font-weight: 600; color: var(--c-ink);
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.faq-shortcut:hover { border-color: var(--c-blue); background: rgba(0,106,167,.04); transform: translateX(4px); }
.faq-shortcut svg { width: 18px; height: 18px; color: var(--c-blue); flex: none; }

/* --------------------------------------------------------------------------
   FAQ page categories
   -------------------------------------------------------------------------- */
.faq-cats { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: var(--space-block); }
.faq-cat {
  padding: .6rem 1.2rem; border-radius: var(--r-pill);
  font-weight: 700; font-size: .9rem;
  background: var(--surface); border: 1.5px solid var(--c-line-2);
  color: var(--c-slate);
  transition: all var(--t);
}
.faq-cat:hover { border-color: var(--c-blue); color: var(--c-blue); }
.faq-cat.is-active { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }
.faq-group { margin-bottom: var(--space-block); }
.faq-group__title { font-size: 1.4rem; margin-bottom: 1.4rem; display: flex; align-items: center; gap: .7rem; }
.faq-group__title svg { width: 24px; height: 24px; color: var(--c-blue); }

/* --------------------------------------------------------------------------
   LEGAL / prose
   -------------------------------------------------------------------------- */
.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: start;
}
.legal-toc {
  position: sticky; top: calc(var(--nav-h) + 16px);
  background: var(--surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-xs);
}
.legal-toc h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-slate); margin-bottom: 1rem; }
.legal-toc ul { display: grid; gap: .15rem; }
.legal-toc a {
  display: block; padding: .5rem .7rem; border-radius: var(--r-sm);
  font-size: .88rem; color: var(--c-slate); font-weight: 500;
  border-left: 2px solid transparent;
  transition: color var(--t), background var(--t), border-color var(--t);
}
.legal-toc a:hover, .legal-toc a.is-active { color: var(--c-blue); background: rgba(0,106,167,.05); border-left-color: var(--c-blue); }

.prose { max-width: 760px; }
.prose .updated { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--c-slate-2); margin-bottom: 2rem; padding: .5rem .9rem; background: var(--c-mist); border-radius: var(--r-pill); }
.prose .updated svg { width: 15px; height: 15px; }
.prose h2 { font-size: 1.5rem; margin: 2.4rem 0 1rem; padding-top: 1rem; scroll-margin-top: calc(var(--nav-h) + 20px); }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 1.6rem 0 .7rem; }
.prose p { color: var(--c-ink); margin-bottom: 1.1rem; line-height: 1.75; }
.prose ul, .prose ol { margin: 0 0 1.2rem 0; display: grid; gap: .6rem; }
.prose ul li { position: relative; padding-left: 1.5rem; color: var(--c-ink); }
.prose ul li::before { content: ""; position: absolute; left: .25rem; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--c-blue); }
.prose ol { counter-reset: ol; padding-left: 0; }
.prose ol li { position: relative; padding-left: 2rem; counter-increment: ol; color: var(--c-ink); }
.prose ol li::before { content: counter(ol); position: absolute; left: 0; top: .05em; width: 22px; height: 22px; border-radius: 6px; background: rgba(0,106,167,.1); color: var(--c-blue); font-weight: 700; font-size: .78rem; display: grid; place-items: center; }
.prose a { color: var(--c-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--c-navy); }
.prose strong { color: var(--c-navy); font-weight: 700; }
.prose .callout {
  display: flex; gap: .9rem;
  padding: 1.2rem 1.4rem; margin: 1.6rem 0;
  background: var(--c-mist); border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-blue);
  border-radius: var(--r-md);
}
.prose .callout svg { width: 22px; height: 22px; color: var(--c-blue); flex: none; }
.prose .callout p { margin: 0; font-size: .94rem; color: var(--c-slate); }
.prose .callout strong { color: var(--c-navy); }

/* --------------------------------------------------------------------------
   Page responsive overrides
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .pricing-cards { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .price-card.is-featured { transform: none; order: -1; }
  .price-card.is-featured:hover { transform: translateY(-6px); }
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .blog-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2, 1fr); display: grid; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; display: none; }
  .contact-layout { grid-template-columns: 1fr; }

  /* Tablet: tighten the comparison table so it fits without overflow */
  .compare th, .compare td { padding: .72rem .7rem; font-size: .87rem; }
  .compare thead th { font-size: .84rem; }
}

@media (max-width: 760px) {
  .field-row { grid-template-columns: 1fr; }
  .device-select { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card--featured { flex-direction: column; }
  .post-card--featured .post-card__media { min-height: 200px; }
  .sidebar { grid-template-columns: 1fr; }

  /* Mobile: swap the comparison table for stacked per-plan cards */
  .compare-wrap { display: none; }
  .compare-cards { display: grid; gap: 1.1rem; }
}

/* ==========================================================================
   Placeholder image wiring (additive — uses existing design tokens)
   ========================================================================== */
.ph-banner {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 2.4rem;
}

.ph-device-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.1rem;
  margin-top: 1.6rem;
}
.ph-device-gallery figure {
  margin: 0;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ph-device-gallery figure:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.ph-device-gallery img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: contain;
  margin-bottom: .7rem;
}
.ph-device-gallery figcaption {
  font-size: .82rem;
  font-weight: 700;
  color: var(--c-ink);
}

.summary__pay {
  margin-top: 1.3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--c-line);
}
.summary__pay-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--c-slate-2);
  margin-bottom: .7rem;
}
.summary__pay-logos {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.summary__pay-logos img {
  height: 36px;
  width: auto;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: #fff;
  padding: .25rem .4rem;
  object-fit: contain;
}

@media (max-width: 560px) {
  .ph-banner { aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
  .ph-device-gallery figure { transition: none; }
}

/* ==========================================================================
   Dynamic blog — article pages + pagination
   ========================================================================== */
.article { padding-top: 2.4rem; }
.article__head { padding-bottom: 1.6rem; }
.article__head .breadcrumb { margin-bottom: 1.1rem; }
.article__cat {
  display: flex; align-items: center; gap: .7rem;
  margin-bottom: .9rem; font-size: .8rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.article__cat a { color: var(--c-blue); }
.article__cat a:hover { text-decoration: underline; }
.article__badge {
  display: inline-flex; align-items: center;
  background: var(--c-navy); color: #fff;
  padding: .2rem .6rem; border-radius: var(--r-pill);
  font-size: .68rem; letter-spacing: .05em;
}
.article h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  line-height: 1.12; margin-bottom: .9rem;
}
.article__lead {
  font-size: 1.18rem; line-height: 1.6;
  color: var(--c-slate); margin-bottom: 1.4rem;
}
.article__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem;
  font-size: .9rem; color: var(--c-slate-2);
  padding-top: 1.1rem; border-top: 1px solid var(--c-line);
}
.article__meta span { display: inline-flex; align-items: center; gap: .45rem; }
.article__meta .ic { width: 1.05em; height: 1.05em; }
.article__byline { font-weight: 700; color: var(--c-ink); }
.article__cover {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--shadow-md);
  margin: 1.8rem 0 2.4rem;
}

/* Markdown body typography (scoped) */
.article__body { font-size: 1.06rem; line-height: 1.75; color: var(--c-ink); }
.article__body > * + * { margin-top: 1.15rem; }
.article__body h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.55rem; line-height: 1.25;
  margin-top: 2.4rem; margin-bottom: .2rem;
}
.article__body h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.22rem; margin-top: 1.9rem; margin-bottom: .2rem;
}
.article__body p { color: var(--c-slate); }
.article__body strong { color: var(--c-ink); font-weight: 700; }
.article__body a { color: var(--c-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.article__body a:hover { color: var(--c-navy); }
.article__body ul, .article__body ol { padding-left: 1.4rem; color: var(--c-slate); }
.article__body li { margin-top: .5rem; }
.article__body li::marker { color: var(--c-blue); }
.article__body blockquote {
  margin: 1.6rem 0; padding: .9rem 1.3rem;
  border-left: 4px solid var(--c-blue);
  background: rgba(0,106,167,.05);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--c-ink); font-style: italic;
}
.article__body blockquote p { color: var(--c-ink); margin: 0; }
.article__body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em; background: rgba(7,26,51,.06);
  padding: .12em .4em; border-radius: 6px;
}
.article__body pre {
  background: var(--c-navy); color: #E8F0F8;
  padding: 1.1rem 1.2rem; border-radius: var(--r-md);
  overflow-x: auto; font-size: .9rem; line-height: 1.6;
}
.article__body pre code { background: none; padding: 0; color: inherit; }
.article__body img { max-width: 100%; height: auto; border-radius: var(--r-md); margin: 1.4rem 0; }
.article__body hr { border: 0; border-top: 1px solid var(--c-line); margin: 2rem 0; }
.article__body table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.article__body th, .article__body td { padding: .6rem .8rem; border: 1px solid var(--c-line); text-align: left; }
.article__body th { background: rgba(7,26,51,.04); font-weight: 700; }

.article__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.article__tag {
  font-size: .82rem; font-weight: 600; color: var(--c-slate);
  background: rgba(7,26,51,.04); border: 1px solid var(--c-line);
  padding: .3rem .7rem; border-radius: var(--r-pill);
}
.article__tag:hover { color: var(--c-blue); border-color: var(--c-blue); }
.article__author-card {
  display: flex; gap: 1rem; align-items: center;
  margin-top: 2rem; padding: 1.3rem;
  background: var(--c-white); border: 1px solid var(--c-line);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
}
.article__author-card strong { display: block; font-size: 1.02rem; margin-bottom: .15rem; }
.article__author-card p { font-size: .9rem; color: var(--c-slate-2); margin: 0; }
.article__back { display: inline-flex; align-items: center; gap: .4rem; margin-top: 2rem; font-weight: 600; }

/* Pagination */
.pagination {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: .5rem; margin-top: 2.4rem;
}
.pagination__btn {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--c-white); border: 1px solid var(--c-line);
  color: var(--c-ink); font-weight: 600; font-size: .9rem;
  padding: .5rem .9rem; border-radius: var(--r-sm); cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.pagination__btn:hover:not(:disabled) { border-color: var(--c-blue); color: var(--c-blue); }
.pagination__btn:disabled { opacity: .45; cursor: not-allowed; }
.pagination__pages { display: inline-flex; gap: .3rem; }
.pagination__page {
  min-width: 2.3rem; height: 2.3rem;
  background: var(--c-white); border: 1px solid var(--c-line);
  color: var(--c-ink); font-weight: 700; font-size: .9rem;
  border-radius: var(--r-sm); cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.pagination__page:hover { border-color: var(--c-blue); color: var(--c-blue); }
.pagination__page.is-active {
  background: var(--c-navy); border-color: var(--c-navy); color: #fff;
}

@media (max-width: 640px) {
  .article__cover { margin: 1.4rem 0 1.8rem; }
  .article__meta { gap: .8rem .9rem; }
}

/* ==========================================================================
   Payment method selector (checkout) — additive, scoped to .pay-*
   ========================================================================== */
.pay-methods {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
  margin-top: .35rem;
}

/* Visually-hidden radios (still focusable / keyboard-navigable) */
.pay-method__input {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.pay-method {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  padding: 1.05rem 1.05rem 1.1rem;
  background: #fff;
  border: 2px solid var(--c-line-2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.pay-method:hover {
  border-color: var(--c-blue-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.pay-method__logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  min-height: 32px;
}
.pay-method__logos img {
  height: 28px;
  width: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(7, 26, 51, .12);
}
.pay-method__name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--c-ink);
  font-size: 1.02rem;
  line-height: 1.2;
}
.pay-method__desc {
  color: var(--c-slate);
  font-size: .86rem;
  line-height: 1.45;
}
.pay-method__check {
  position: absolute;
  top: .85rem; right: .85rem;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--c-blue);
  color: #fff;
  opacity: 0;
  transform: scale(.5);
  transition: opacity .25s ease, transform .25s ease;
}
.pay-method__check .ic { width: 13px; height: 13px; stroke-width: 2.6; }

/* Selected: yellow (brand) border + blue glow + lift */
.pay-method__input:checked + .pay-method {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(0, 106, 167, .18), 0 12px 28px rgba(0, 106, 167, .22);
  transform: translateY(-2px);
}
.pay-method__input:checked + .pay-method .pay-method__check {
  opacity: 1;
  transform: scale(1);
}
.pay-method__input:focus-visible + .pay-method {
  outline: 2px solid var(--c-blue);
  outline-offset: 2px;
}

/* Agreement checkboxes (required before submitting) */
.pay-agree {
  margin-top: 1.3rem;
  display: grid;
  gap: .8rem;
}
.agree {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  cursor: pointer;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--c-ink);
}
.agree__box {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}
.agree__mark {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border: 2px solid var(--c-line-2);
  border-radius: 7px;
  background: #fff;
  color: #fff;
  transition: background .2s ease, border-color .2s ease;
}
.agree__mark .ic {
  width: 14px; height: 14px; stroke-width: 3;
  opacity: 0; transform: scale(.5);
  transition: opacity .2s ease, transform .2s ease;
}
.agree:hover .agree__mark { border-color: var(--c-blue-300); }
.agree__box:checked + .agree__mark { background: var(--c-blue); border-color: var(--c-blue); }
.agree__box:checked + .agree__mark .ic { opacity: 1; transform: scale(1); }
.agree__box:focus-visible + .agree__mark { outline: 2px solid var(--c-blue); outline-offset: 2px; }
.agree__text a { color: var(--c-blue); text-decoration: underline; }
.agree__text a:hover { color: var(--c-navy); }

/* Disabled submit button — until both confirmations are checked */
.btn:disabled,
.btn[disabled] {
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  filter: grayscale(.15);
}
.btn:disabled:hover,
.btn[disabled]:hover { transform: none; box-shadow: none; }

/* Responsive: 3 cards desktop / 2 tablet / 1 mobile */
@media (max-width: 1024px) {
  .pay-methods { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pay-methods { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .pay-method,
  .pay-method__check,
  .agree__mark,
  .agree__mark .ic { transition: none; animation: none; }
}
