/* The tariff pages: /pricing/ (grid, two ways, team, chooser, questions), /pricing/<id>/, /keys/,
   /business/. The shared look (tokens, the key, header, footer, the download band) is
   /assets/site.css; this file is only what these pages add to it. Phones first. */

/* ---- intro ---- */
.intro { padding-top: 32px; }
.intro h1 { font-size: clamp(2rem, 6vw, 3.2rem); max-width: 20ch; }
@media (min-width: 900px) { .intro { padding-top: 72px; } }

.trial {
  margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline;
  padding: 14px 16px; border-radius: 16px; background: var(--cobalt-soft); max-width: 760px; font-size: .97rem;
}
.trial strong { color: var(--cobalt); font: 650 .9rem var(--display); }

/* the currency and period switches */
.switches { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 26px; }
.seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); }
.seg button {
  font: 600 .88rem var(--body); color: var(--muted); background: transparent; border: 0; border-radius: 9px;
  padding: 8px 14px; min-height: 40px; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--cap); color: var(--ink); box-shadow: 0 2px 0 var(--edge); }

.group-title { margin-top: 56px; font-size: clamp(1.1rem, 2.6vw, 1.35rem); }

/* ---- plan cards ---- */
.plans { display: grid; gap: 20px; margin-top: 22px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 26px 20px 20px; border-radius: var(--radius);
  background: var(--cap); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0;
}
.plan h3 { font-size: 1.08rem; }
.plan-for { color: var(--muted); font-size: .93rem; line-height: 1.45; margin-top: 4px; }
.life { margin-top: 16px; font: 500 1rem/1.35 var(--body); }
.life-ex { margin-top: 4px; font-size: .93rem; line-height: 1.45; color: var(--muted); }
/* side by side, each text block keeps two lines' room, so the prices of a row stand on one line */
@media (min-width: 640px) {
  .plan-for { min-height: 2.9em; }
  .life { min-height: 2.7em; }
  .life-ex { min-height: 2.9em; }
}
.price { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.price-main { font: 700 2.1rem/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-ent .price-main { white-space: normal; } /* «from $20» is words: tr «kişi başı $20'dan itibaren» ran past the card */
.price-when { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.words { margin-top: 8px; font-size: .78rem; color: var(--muted); letter-spacing: .01em; }
.own-prices .price.or { margin-top: 12px; }
.own-prices .price.or .price-main { font-size: 1.5rem; }
.incl { list-style: none; padding: 18px 0 0; margin: 16px 0 22px; display: grid; gap: 9px; flex: 1; align-content: start; font-size: .93rem; border-top: 1px solid var(--line); }
.incl li { position: relative; padding-left: 24px; line-height: 1.45; }
.incl li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 10px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.plan .key { width: 100%; }
.plan .key + .key { margin-top: 12px; }
/* the second, quieter action of a card (own keys: "forever" beside "for a year"): an outline, not a second cap */
.key-ghost { background: transparent; color: var(--cobalt); border: 1.5px solid color-mix(in srgb, var(--cobalt) 45%, var(--line)); box-shadow: none; }
.key-ghost:hover { background: var(--cobalt-soft); }
.key-ghost:active { transform: none; }
.plan-note { margin-top: 10px; font-size: .82rem; line-height: 1.4; color: var(--muted); text-align: center; }
.more-link { margin-top: 14px; text-align: center; font-size: .9rem; font-weight: 600; text-decoration: none; }
.more-link::after { content: "→"; content: "→" / ""; display: inline-block; margin-left: .35em; transition: transform .15s; }
.more-link:hover::after { transform: translateX(3px); }

.plan-pick { border: 2px solid var(--cobalt); box-shadow: 0 6px 0 var(--cobalt-edge), var(--shadow-lg); }
.badge {
  position: absolute; top: -13px; left: 18px; padding: 6px 11px; border-radius: 999px; margin: 0;
  background: var(--cobalt); color: var(--on-cobalt); font: 600 .74rem/1 var(--display); letter-spacing: .03em;
}
.plan-own { background: transparent; border-style: dashed; border-width: 1.5px; box-shadow: none; }
@media (prefers-color-scheme: dark) { .plan-own { background: color-mix(in srgb, var(--cap) 60%, transparent); } }
.plan-night { background: var(--night); color: var(--on-night); border-color: var(--night); }
.plan-night .price-when, .plan-night .plan-for, .plan-night .words { color: var(--night-muted); }
.plan-night .incl { border-top-color: color-mix(in srgb, var(--on-night) 16%, transparent); }
.plan-night .incl li::before { border-color: currentColor; }
.plan-night .key { background: var(--on-night); color: var(--night); border-color: var(--on-night); box-shadow: 0 4px 0 var(--night-muted); }
.plan-night a.more-link { color: inherit; }
.plan-ent { background: var(--paper-2); box-shadow: none; }
.plans-note { margin-top: 24px; color: var(--muted); font-size: .92rem; text-align: center; }

@media (max-width: 639px) { .plan-pick { order: -1; } } /* phones: the one we recommend first */
@media (min-width: 640px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) {
  .plans-4 { grid-template-columns: repeat(4, 1fr); }
  .plans-3 { grid-template-columns: repeat(3, 1fr); }
  .price-main { font-size: 1.95rem; }
}

/* ---- two columns of explanation, cards, lists ---- */
.two { display: grid; gap: 18px; margin-top: 30px; }
@media (min-width: 820px) { .two { grid-template-columns: 1fr 1fr; } }
.three { display: grid; gap: 18px; margin-top: 30px; }
@media (min-width: 820px) { .three { grid-template-columns: repeat(3, 1fr); } }
.card { padding: 24px 20px; border-radius: var(--radius); background: var(--cap); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.card > p { margin-top: 10px; color: var(--muted); }
.card .more { margin-top: 16px; }
.card .soon, .soon {
  display: inline-block; margin-left: 6px; padding: 3px 8px; border-radius: 999px; vertical-align: 2px;
  background: var(--paper-2); color: var(--muted); font: 600 .68rem/1 var(--display); letter-spacing: .03em; border: 1px solid var(--line);
}
.dots { margin: 16px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: .95rem; }
.dots li::marker { color: var(--cobalt); }

/* ---- «Який тариф мені?» ---- */
.chooser-box { display: grid; gap: 24px; padding: 28px 20px; border-radius: var(--radius); background: var(--cap); border: 1px solid var(--line); box-shadow: var(--shadow); }
.chooser { display: grid; gap: 18px; }
.chooser fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chooser legend { font-weight: 650; margin-bottom: 8px; padding: 0; width: 100%; }
.chooser label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 12px; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); font-size: .95rem;
}
.chooser label:has(input:checked) { border-color: var(--cobalt); background: var(--cobalt-soft); }
.chooser input { accent-color: var(--cobalt); margin: 0; }
.pick { padding: 22px 20px; border-radius: 16px; background: var(--night); color: var(--on-night); }
.pick-label { font: 600 .8rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--night-muted); }
.pick-name { margin-top: 10px; font: 700 1.7rem/1.1 var(--display); letter-spacing: -0.025em; }
.pick-price { margin-top: 8px; color: var(--night-muted); }
.pick-price span:first-child { color: var(--on-night); font-weight: 650; }
.pick-why { margin-top: 12px; }
.pick-keys { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.pick .more { color: inherit; }
@media (min-width: 960px) {
  .chooser-box { grid-template-columns: 1fr 1.3fr 1fr; padding: 40px; gap: 36px; align-items: start; }
}

/* ---- questions ---- */
.faq-wrap { display: grid; gap: 24px; }
.faq { max-width: 760px; min-width: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 48px 20px 0; position: relative; font-weight: 650;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 8px; background: var(--cap); border: 1px solid var(--line); box-shadow: 0 2px 0 var(--edge); font: 600 1rem var(--display);
}
.faq details[open] summary::after { content: "−"; background: var(--cobalt); color: var(--on-cobalt); border-color: var(--cobalt); box-shadow: 0 2px 0 var(--cobalt-edge); }
.faq details > p { padding: 0 0 20px; color: var(--muted); max-width: 62ch; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; } }

.promo { padding: 0 0 22px; display: grid; gap: 10px; }
.promo label { color: var(--muted); }
.promo-row { display: flex; flex-wrap: wrap; gap: 10px; }
.promo input {
  flex: 1 1 200px; min-width: 0; min-height: 50px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--cap); color: var(--ink); font: 600 1rem var(--body); letter-spacing: .06em; text-transform: uppercase;
}

/* ---- a tariff page: /pricing/<id>/ ---- */
.t-hero { display: grid; gap: 28px; }
.t-hero .section-lead { font-size: 1.1rem; }
.t-box { padding: 24px 20px; border-radius: var(--radius); background: var(--cap); border: 2px solid var(--cobalt); box-shadow: 0 6px 0 var(--cobalt-edge), var(--shadow-lg); align-self: start; min-width: 0; }
.t-box .switches { margin-top: 0; }
.t-box .key { width: 100%; margin-top: 18px; }
.t-box .key + .key { margin-top: 12px; }
.t-box .trial-note { margin-top: 14px; font-size: .88rem; color: var(--muted); text-align: center; }
@media (min-width: 900px) { .t-hero { grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; } }

/* "how much is that in life": a short table */
.table-wrap { margin-top: 26px; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 18px; border: 1px solid var(--line); background: var(--cap); }
.life-table, .compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.life-table th, .life-table td, .compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.life-table tr:last-child th, .life-table tr:last-child td, .compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.life-table th { font-weight: 600; width: 42%; }
.compare { min-width: 520px; }
.compare thead th { font: 650 .95rem var(--display); }
.compare .this { background: var(--cobalt-soft); }
.compare td.num, .compare .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* steps of a how-to (/keys/) */
.steps { list-style: none; counter-reset: step; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding-left: 46px; min-height: 32px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 10px; background: var(--cap); border: 1px solid var(--line); box-shadow: 0 3px 0 var(--edge); font: 650 .9rem var(--display); color: var(--cobalt);
}
.steps code, .card code { font-size: .88em; background: var(--paper-2); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.note-box { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--paper-2); font-size: .92rem; }

.rates { width: 100%; border-collapse: collapse; font-size: .95rem; }
.rates th { text-align: left; font-weight: 500; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.rates td { text-align: right; padding: 14px 0 14px 12px; border-bottom: 1px dashed var(--line); font: 650 1.05rem var(--display); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rates tr:last-child th, .rates tr:last-child td { border-bottom: 0; }

/* /business/: the features, each a card with an icon-free title */
.feats { margin: 30px 0 0; display: grid; gap: 14px; }
.feats > div { padding: 22px 20px; border-radius: var(--radius); background: var(--cap); border: 1px solid var(--line); min-width: 0; }
.feats dt { font-weight: 650; }
.feats dd { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
@media (min-width: 760px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .feats { grid-template-columns: repeat(3, 1fr); } }

/* small parts the tariff pages and /business/ share */
.badge-inline {
  display: inline-block; margin: 0 0 14px; padding: 6px 11px; border-radius: 999px;
  background: var(--cobalt); color: var(--on-cobalt); font: 600 .74rem/1 var(--display); letter-spacing: .03em;
}
.hero-keys { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.t-box-h { margin-top: 22px; font-size: 1rem; }
.t-box-h + .price { margin-top: 8px; }
.card-h2 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

/* /pricing/?preview=draft from /admin «Пакети» (А4): the prices are a draft - say so on every screen */
.preview-bar { position: sticky; top: 0; z-index: 50; margin: 0; padding: 8px 16px; text-align: center; font-weight: 600;
  background: #b45309; color: #fff; }

/* /keys/ «How it works»: three short steps side by side on a wide screen */
@media (min-width: 820px) { .steps-wide { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
/* «For developers»: the own-keys card beside its explanation; the explanation keeps its own height */
.own-two { align-items: start; }
