/* ============================================================================
   pricing.css — pricing cards, the download bar, and the auth modal.
   One product, two billing intervals. The featured card is distinguished by a
   stronger hairline and a badge — never a colour wash.
   ========================================================================== */

.pricing { padding: 130px 0 132px; background: var(--bg); }

.pricing__head { max-width: 720px; margin: 0 auto 62px; text-align: center; }
.pricing__head .kicker { display: block; margin-bottom: 20px; }
.pricing__head h2 { margin-bottom: 20px; }
.pricing__lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-mute);
  max-width: 580px;
  margin: 0 auto;
}

/* ---------- cards --------------------------------------------------------- */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 30px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.plan:hover { box-shadow: var(--shadow-card); }
/* A 5%-alpha border difference is invisible at a glance, so the featured card
   was not actually featured. Full-strength border plus a ring. */
.plan--feat {
  border-color: rgba(17, 17, 19, .30);
  box-shadow: 0 0 0 3px rgba(17, 17, 19, .05), var(--shadow-card);
}

.plan__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 26px;
}
.plan__name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.014em;
  color: var(--ink);
}
.plan__badge {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.006em;
  color: #8c0c10;
  background: rgba(237, 28, 36, .09);
  border: 1px solid rgba(237, 28, 36, .22);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
  align-self: center;
}

/* The amount is the largest thing in the card, and it sets tight. */
.plan__amt {
  margin-top: 22px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.05;
  /* Stays on the curve between h3 (30px/-0.026) and h2 (50px/-0.034).
     It was -0.038 — tighter than the 50px h2 and nearly at the 84px h1. */
  letter-spacing: -0.030em;
  color: var(--ink);
}
.plan__amt small {
  white-space: nowrap;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.011em;
  color: var(--ink-mute);
}
.plan__tok {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-mute);
  letter-spacing: -0.008em;
}

.plan__rule { height: 1px; background: var(--line); margin: 26px 0 22px; }

.plan__list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.42;
  letter-spacing: -0.011em;
  color: var(--ink);
}
.plan__list svg { flex: none; margin-top: 2px; color: var(--ink-mute); }

.plan .btn { width: 100%; height: 44px; margin-top: auto; }

/* ---------- download bar --------------------------------------------------- */

.dlbar {
  max-width: 880px;
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-soft);
}
.dlbar__icon {
  flex: none;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--r-ctl);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-mute);
}
.dlbar__txt {
  flex: 1 1 auto;
  max-width: 720px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-mute);
  letter-spacing: -0.009em;
}
.dlbar__txt strong { color: var(--ink); font-weight: 500; }
.dlbar__txt .muted { color: var(--ink-mute); } /* legal text: must clear 4.5:1 */
.dlbar .btn { flex: none; height: 38px; text-decoration: none; }

@media (max-width: 820px) {
  .pricing { padding: 78px 0 84px; }
  .plan__amt { font-size: 38px; }
  .pricing__head { margin-bottom: 40px; }
  .plans { grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 460px; }
  .dlbar { max-width: 460px; flex-direction: column; align-items: flex-start; gap: 14px; }
  .dlbar .btn { width: 100%; }
}

/* ============================================================================
   Auth modal
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 17, 19, .30);
  -webkit-backdrop-filter: blur(5px) saturate(130%);
          backdrop-filter: blur(5px) saturate(130%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s;
}
.modal.show { opacity: 1; visibility: visible; }

.modal__card {
  width: 100%;
  max-width: 412px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  position: relative;
  padding: 30px 30px 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 24px 60px -18px rgba(16,24,40,.28);
  transform: translateY(8px) scale(.985);
  transition: transform .2s cubic-bezier(.2,.7,.3,1);
}
.modal.show .modal__card { transform: none; }

.modal__x {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 0; border-radius: 7px;
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  transition: background .14s ease, color .14s ease;
}
.modal__x:hover { background: var(--bg-sunken); color: var(--ink); }

.modal__card h3 { font-size: 24px; letter-spacing: -0.028em; }
.modal__hint {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-mute);
  letter-spacing: -0.008em;
}

.modal .gbtn { width: 100%; height: 44px; margin-top: 22px; }

.modal__or {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0 4px;
  font-size: 12px;
  color: var(--ink-mute);
}
.modal__or::before, .modal__or::after {
  content: ""; flex: 1 1 auto; height: 1px; background: var(--line);
}

.modal__field { margin-top: 16px; }
.modal__field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.006em;
  color: var(--ink);
}
.modal__field input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1 var(--font);
  letter-spacing: -0.011em;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.modal__field input::placeholder { color: var(--ink-ghost); }
.modal__field input:hover { border-color: rgba(0,0,0,.2); }
.modal__field input:focus {
  outline: 0;
  border-color: rgba(0,0,0,.42);
  box-shadow: 0 0 0 3px rgba(17,17,19,.07);
}
.modal__field.is-bad input { border-color: var(--red); }
.modal__field.is-bad input:focus { box-shadow: 0 0 0 3px rgba(237,28,36,.12); }

.modal__msg {
  display: none;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--red);
  letter-spacing: -0.005em;
}
.modal__field.is-bad .modal__msg { display: block; }

.modal__err {
  display: none;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(237,28,36,.28);
  border-radius: var(--r-ctl);
  background: rgba(237,28,36,.04);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--red-hover);
  letter-spacing: -0.006em;
}
.modal__err.show { display: block; }

.modal form .btn[type="submit"] { width: 100%; height: 44px; margin-top: 20px; }
.modal form .btn[disabled] { opacity: .6; cursor: default; }

.modal__foot {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-mute);
  letter-spacing: -0.008em;
}
.modal__foot a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); cursor: pointer; }
.modal__foot a:hover { border-bottom-color: var(--ink); }
.modal__foot + .modal__foot { margin-top: 8px; }

.modal__fine {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-mute);
  text-align: center;
  letter-spacing: -0.004em;
}

/* ---------- toast ---------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%; bottom: 26px;
  transform: translate(-50%, 12px);
  z-index: 300;
  padding: 10px 16px;
  border-radius: var(--r-ctl);
  background: #16171a;
  color: #fff;
  font-size: 14px;
  letter-spacing: -0.008em;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
