/* ==========================================================================
   Hosting plans (.hp-*) — the plans page only.
   Each plan is a standalone card: nothing here lines the plans up against
   each other. Reads the site tokens from site.css and adds nothing global.
   Logical properties throughout, so RTL and LTR share every rule.
   ========================================================================== */

/* --- Hero ---------------------------------------------------------------- */
.hp-hero { padding-block-end: clamp(1.4rem, 3vw, 2.2rem); }
.hp-hero__copy {
  display: grid;
  justify-items: center;
  gap: .15rem;
  max-width: 58ch;
  margin-inline: auto;
  text-align: center;
}
.hp-hero h1 {
  margin: .7rem 0 .55rem;
  font-size: clamp(1.85rem, 4.2vw, 2.9rem);
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.hp-hero .lead {
  margin: 0;
  max-width: 50ch;
  color: var(--text-muted);
  font-size: clamp(.98rem, 1.3vw, 1.08rem);
  line-height: 1.8;
}

/* --- The cards ----------------------------------------------------------- */
.hp-sec { padding-block-start: clamp(1.8rem, 4vw, 3rem); }
/* auto-fit rather than a fixed count, so a third plan added to the data file
   simply joins the row instead of needing a new rule. */
.hp-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(1.2rem, 2.6vw, 1.9rem);
  align-items: start;
  max-width: 940px;
  margin-inline: auto;
}
.hp-plan {
  position: relative;
  display: grid;
  align-content: start;
  gap: .5rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  background: linear-gradient(168deg, var(--surface-2), var(--surface) 72%);
  box-shadow: var(--shadow);
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease-out),
              box-shadow var(--t-slow) var(--ease);
}
.hp-plan:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
/* Only the recommended plan carries the accent, so the colour still means
   something when the eye lands on it. */
.hp-plan.is-featured {
  border-color: var(--primary-line);
  background:
    radial-gradient(120% 70% at 50% 0%, var(--primary-soft), transparent 58%),
    linear-gradient(168deg, var(--surface-2), var(--surface) 72%);
}
.hp-plan.is-featured:hover { border-color: var(--primary); box-shadow: var(--shadow-md), 0 30px 60px -42px var(--primary-glow); }
.hp-plan__badge {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: clamp(1.2rem, 3vw, 1.9rem);
  translate: 0 -50%;
  padding: .3rem .85rem;
  border-radius: var(--r-pill);
  background: linear-gradient(160deg, var(--primary-hover), var(--primary));
  color: #FFFFFF;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 10px 22px -12px var(--primary-glow);
}

.hp-plan__head { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.hp-plan__ic {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--glass);
  color: var(--text-secondary);
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.hp-plan.is-featured .hp-plan__ic { border-color: var(--primary-line); background: var(--primary-soft); color: var(--primary); }
.hp-plan__name {
  font-family: var(--font-en);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -.01em;
}

.hp-plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 0; }
.hp-plan__price b {
  font-family: var(--font-num);
  font-size: clamp(2.4rem, 5.2vw, 3.1rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--text-primary);
}
.hp-plan.is-featured .hp-plan__price b { color: var(--primary); }
.hp-plan__cur { color: var(--text-secondary); font-size: 1.02rem; font-weight: 600; }
.hp-plan__per { color: var(--text-faint); font-size: .84rem; }
.hp-plan__tag { margin: .4rem 0 0; color: var(--text-muted); font-size: .9rem; line-height: 1.8; }
.hp-plan__btn { width: 100%; margin-block: 1.1rem .3rem; }

/* --- Feature groups inside a card ---------------------------------------- */
.hp-group { display: grid; gap: .55rem; margin-block-start: .9rem; padding-block-start: 1rem; border-block-start: 1px solid var(--border); }
.hp-group__h {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--text-faint);
}
.hp-list { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.hp-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  min-width: 0;
  color: var(--text-secondary);
  font-size: .91rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
/* Something the plan does not include is stated, not blanked — but it reads
   quieter than the lines that are. */
.hp-list li.is-no { color: var(--text-faint); }
.hp-list li.is-plain { color: var(--text-primary); font-weight: 600; }

.hp-mark {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  flex: none;
  margin-block-start: .1rem;
  border-radius: 50%;
}
.hp-mark svg { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hp-mark--yes { background: var(--primary-soft); }
.hp-mark--yes svg { stroke: var(--primary); }
.hp-mark--no { background: var(--glass-2); }
.hp-mark--no svg { stroke: var(--text-faint); }
.hp-mark--plain { background: var(--glass-2); }
.hp-mark--plain svg { stroke: none; fill: var(--text-secondary); }

/* The closing note on a plan that carries one. */
.hp-why {
  margin-block-start: 1.1rem;
  padding: .95rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--glass);
}
.hp-plan.is-featured .hp-why { border-color: var(--primary-line); background: var(--primary-soft); }
.hp-why b { display: block; margin-block-end: .25rem; color: var(--primary); font-size: .88rem; font-weight: 700; }
.hp-why p { margin: 0; color: var(--text-muted); font-size: .88rem; line-height: 1.75; }

@media (max-width: 767px) {
  /* One plan per row, with room for the badge that sits on the top edge. */
  .hp-plans { grid-template-columns: minmax(0, 1fr); gap: 1.9rem; }
  .hp-plan { padding: clamp(1.2rem, 5vw, 1.6rem); }
  .hp-list li { font-size: .9rem; }
}
@media (max-width: 360px) {
  .hp-plan__badge { inset-inline-end: 1rem; font-size: .7rem; padding-inline: .7rem; }
}

/* --- Closing call to action ----------------------------------------------- */
/* This is the page's only ending: it is excluded from the footer's CTA card
   (partials/footer.php), so it carries both actions that card offered. */
.sv-sec--cta { padding-block-end: clamp(2.4rem, 5vw, 3.6rem); }
.hp-cta {
  display: grid;
  justify-items: center;
  gap: .45rem;
  max-width: 680px;
  margin-inline: auto;
  padding: clamp(1.7rem, 3.6vw, 2.4rem) clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--primary-line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 140% at 50% 0%, var(--primary-soft), transparent 62%),
    linear-gradient(165deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.hp-cta__ic {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-block-end: .5rem;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--primary-hover), var(--primary));
  color: #FFFFFF;
  box-shadow: 0 14px 30px -14px var(--primary-glow);
}
.hp-cta h2 { font-size: clamp(1.25rem, 2.8vw, 1.65rem); font-weight: 700; line-height: 1.45; text-wrap: balance; }
.hp-cta p { margin: 0; max-width: 44ch; color: var(--text-muted); font-size: .95rem; line-height: 1.8; }
.hp-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-block-start: 1.1rem; }

@media (max-width: 420px) {
  /* Side by side these two drop to about 130px each and start truncating. */
  .hp-cta__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hp-cta__actions .fq-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-plan { transition: none; }
  .hp-plan:hover { transform: none; }
}
