/* ==========================================================================
   FitCoach — public pages (landing, storefront, checkout, legal)
   Built on tokens.css; logical properties throughout so RTL is native.
   ========================================================================== */

.pub { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.pub-main { flex: 1; }

.pub-container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--space-5);
}

/* --- Header ---------------------------------------------------------------- */

.pub-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.pub-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
}
.pub-brand { display: flex; align-items: center; gap: var(--space-3); color: var(--text); text-decoration: none; min-width: 0; }
.pub-brand__logo {
  width: 38px; height: 38px;
  flex: none;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  overflow: hidden;
}
.pub-brand__logo img { width: 100%; height: 100%; object-fit: cover; }
.pub-brand__name { font-weight: 800; font-size: var(--text-lg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-nav { display: flex; align-items: center; gap: var(--space-2); flex: none; }

/* --- Sections ------------------------------------------------------------- */

.pub-section { padding-block: var(--space-16); }
.pub-section--tight { padding-block: var(--space-10); }
.pub-section--alt { background: var(--surface); border-block: 1px solid var(--border); }

.pub-eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  margin-bottom: var(--space-4);
}
.pub-title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); font-weight: 800; line-height: 1.5; margin: 0 0 var(--space-3); }
.pub-lead { color: var(--muted); font-size: var(--text-md); line-height: 2; max-width: 640px; margin: 0; }
.pub-center { text-align: center; }
.pub-center .pub-lead { margin-inline: auto; }

/* --- Hero ------------------------------------------------------------------ */

.pub-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem);
  background:
    radial-gradient(900px 420px at 85% -10%, var(--primary-soft), transparent 70%),
    radial-gradient(700px 380px at 0% 110%, rgba(22, 163, 106, 0.08), transparent 70%);
}
.pub-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--space-10);
  align-items: center;
}
.pub-hero h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3rem);
  font-weight: 800;
  line-height: 1.45;
  margin: 0 0 var(--space-5);
}
.pub-hero .pub-lead { font-size: var(--text-lg); }
.pub-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.pub-hero__note { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--muted); }

.pub-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 60px rgba(23, 23, 27, 0.10);
  padding: var(--space-5);
}
.pub-mock__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px dashed var(--border);
  font-size: var(--text-sm);
}
.pub-mock__row:last-child { border-bottom: 0; }
.pub-mock__bar { height: 8px; border-radius: var(--radius-full); background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.pub-mock__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--accent)); }

/* --- Feature cards --------------------------------------------------------- */

.pub-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: var(--space-5);
  margin-top: var(--space-10);
}
.pub-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.pub-feature__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: var(--space-4);
}
.pub-feature h3 { font-size: var(--text-md); font-weight: 700; margin: 0 0 var(--space-2); }
.pub-feature p { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: 2; }

.pub-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--space-5);
  margin-top: var(--space-10);
  counter-reset: step;
}
.pub-step { position: relative; padding-inline-start: 56px; }
.pub-step::before {
  counter-increment: step;
  content: counter(step, persian);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.pub-step h3 { font-size: var(--text-md); margin: 0 0 var(--space-2); }
.pub-step p { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: 2; }

/* --- Pricing --------------------------------------------------------------- */

.pub-pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: var(--space-5);
  margin-top: var(--space-10);
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.price-card--featured { border: 2px solid var(--primary); box-shadow: 0 20px 45px rgba(108, 92, 231, 0.16); }
.price-card__ribbon {
  position: absolute;
  top: -13px;
  inset-inline-start: var(--space-6);
  background: var(--primary);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 3px 12px;
}
.price-card__name { font-size: var(--text-lg); font-weight: 800; margin: 0; }
.price-card__desc { color: var(--muted); font-size: var(--text-sm); margin: var(--space-2) 0 var(--space-5); line-height: 1.9; min-height: 3.8em; }
.price-card__price { font-size: var(--text-3xl); font-weight: 800; line-height: 1.2; }
.price-card__price small { font-size: var(--text-sm); font-weight: 500; color: var(--muted); margin-inline-start: 4px; }
.price-card__period { color: var(--muted); font-size: var(--text-sm); margin-top: var(--space-1); }
.price-card__list { list-style: none; padding: 0; margin: var(--space-5) 0 var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.price-card__list li { position: relative; padding-inline-start: 26px; font-size: var(--text-sm); line-height: 1.9; }
.price-card__list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--success-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316A36A' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* --- FAQ ---------------------------------------------------------------------- */

.pub-faq { max-width: 760px; margin: var(--space-10) auto 0; display: flex; flex-direction: column; gap: var(--space-3); }
.pub-faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
}
.pub-faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: var(--space-3); }
.pub-faq summary::-webkit-details-marker { display: none; }
.pub-faq summary::after { content: '+'; color: var(--primary); font-size: var(--text-lg); line-height: 1; }
.pub-faq details[open] summary::after { content: '−'; }
.pub-faq p { margin: var(--space-3) 0 0; color: var(--muted); line-height: 2; }

.pub-cta {
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  text-align: center;
}
.pub-cta h2 { color: #fff; font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem); margin: 0 0 var(--space-3); }
.pub-cta p { margin: 0 0 var(--space-6); opacity: 0.92; }
.pub-cta .btn { background: #fff; color: var(--primary); border-color: #fff; }

/* --- Storefront -------------------------------------------------------------- */

.store-hero { position: relative; padding-block: var(--space-12) var(--space-10); overflow: hidden; }

/* With a cover image the hero becomes a photographic band: the image sits behind
   a gradient dark enough for white text at any brightness. */
.store-hero--cover { padding-block: var(--space-16) var(--space-12); background: #14141b; }

.store-hero__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  z-index: 0;
}

.store-hero--cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.35), rgba(10, 10, 15, 0.85));
  z-index: 1;
}

.store-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-6);
  align-items: center;
}

.store-hero--cover .store-hero__text h1,
.store-hero--cover .store-hero__headline,
.store-hero--cover .store-meta__item b,
.store-hero--cover .store-meta__item span { color: #fff; }

.store-hero--cover .store-meta__item {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
}

.store-hero__portrait {
  width: clamp(110px, 16vw, 168px);
  aspect-ratio: 1;
  flex: none;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: var(--text-3xl);
  font-weight: 800;
  display: grid;
  place-items: center;
  /* A ring keeps the portrait readable against a busy cover. */
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.85), 0 18px 40px rgba(0, 0, 0, 0.28);
}

.store-hero__portrait img { width: 100%; height: 100%; object-fit: cover; }

.store-hero__text h1 { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.35rem); font-weight: 800; line-height: 1.4; }
.store-hero__headline { color: var(--muted); margin: var(--space-2) 0 0; font-size: var(--text-md); line-height: 1.9; }

.store-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }

.store-meta__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  color: var(--muted);
  text-decoration: none;
}

.store-meta__item b { font-size: var(--text-sm); color: var(--text); }
.store-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

/* Three short claims the coach writes; not computed, so nothing here can lie by
   accident. */
.store-highlights { background: var(--surface); border-block: 1px solid var(--border); }

.store-highlights__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: var(--space-4);
  padding-block: var(--space-6);
}

.store-highlight { text-align: center; }
.store-highlight b { display: block; font-size: var(--text-2xl); font-weight: 800; color: var(--primary); }
.store-highlight span { color: var(--muted); font-size: var(--text-sm); }

.store-about { max-width: 820px; }
.store-bio { margin-top: var(--space-4); line-height: 2.2; white-space: pre-line; color: var(--text-2); }

.store-trust {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  justify-content: center;
  margin-top: var(--space-6);
  color: var(--muted);
  font-size: var(--text-sm);
}

/* --- Gallery ------------------------------------------------------------------- */

.store-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.store-gallery__item { margin: 0; }

.store-gallery__item a {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}

.store-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--duration) var(--ease);
}

.store-gallery__item a:hover img { transform: scale(1.03); }
.store-gallery__item figcaption { color: var(--muted); font-size: var(--text-xs); margin-top: var(--space-2); }

/* Lightbox with no JavaScript: :target shows it, the backdrop link closes it. */
.lightbox {
  position: fixed;
  inset: 0;
  /* Above the sticky call-to-action bar, which is itself fixed. */
  z-index: 80;
  display: none;
  place-items: center;
  padding: var(--space-6);
}

/* While a photo is open, the bottom bar would sit over the backdrop on phones. */
body:has(.lightbox:target) .store-cta { display: none; }

.lightbox:target { display: grid; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(8, 8, 12, 0.88); }

.lightbox__figure {
  position: relative;
  margin: 0;
  max-width: min(1100px, 100%);
  text-align: center;
}

.lightbox__figure img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.lightbox__figure figcaption { color: #fff; margin-top: var(--space-3); font-size: var(--text-sm); }

.lightbox__close {
  position: absolute;
  top: var(--space-4);
  inset-inline-end: var(--space-4);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 26px;
  line-height: 44px;
  text-align: center;
  text-decoration: none;
}

/* --- Sticky call to action (phones) --------------------------------------------- */

.store-cta { display: none; }

.package-includes { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.package-includes li { font-size: var(--text-xs); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-full); padding: 3px 10px; }

.package-includes { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.package-includes li { font-size: var(--text-xs); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-full); padding: 3px 10px; }

/* --- Checkout ------------------------------------------------------------------ */

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
  padding-block: var(--space-10);
}
.summary-row { display: flex; justify-content: space-between; gap: var(--space-3); padding-block: var(--space-2); font-size: var(--text-sm); }
.summary-row--total { border-top: 1px solid var(--border); margin-top: var(--space-2); padding-top: var(--space-4); font-size: var(--text-lg); font-weight: 800; }
.summary-row--discount { color: var(--success); }

.pay-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease);
}
.pay-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.pay-option input { accent-color: var(--primary); width: 18px; height: 18px; }
.pay-option b { display: block; }
.pay-option span { font-size: var(--text-xs); color: var(--muted); }

.card-number {
  direction: ltr;
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  text-align: center;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #20202A, #3A3350);
  color: #fff;
}

.result-card { max-width: 620px; margin: var(--space-12) auto; text-align: center; }
.result-card__icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto var(--space-5);
  font-size: 34px;
}
.result-card__icon--ok { background: var(--success-soft); color: var(--success); }
.result-card__icon--wait { background: var(--warning-soft); color: var(--warning); }
.result-card__icon--fail { background: var(--danger-soft); color: var(--danger); }
.credentials {
  text-align: start;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-block: var(--space-5);
}
.credentials dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2) var(--space-4); margin: 0; }
.credentials dt { color: var(--muted); font-size: var(--text-sm); }
.credentials dd { margin: 0; font-weight: 700; direction: ltr; text-align: end; font-variant-numeric: tabular-nums; }

/* --- Footer -------------------------------------------------------------------- */

.pub-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: var(--space-10); }
.pub-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  padding-block: var(--space-6);
  font-size: var(--text-sm);
  color: var(--muted);
}
.pub-footer__links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.pub-footer__links a { color: var(--muted); text-decoration: none; }
.pub-footer__links a:hover { color: var(--primary); }

/* Tabular digits spread amounts apart in running text; public pages have no
   columns of numbers to align, so digits stay proportional everywhere here. */
.pub .nums,
.price-card__price { font-variant-numeric: proportional-nums; letter-spacing: 0; }

/* --- Legal --------------------------------------------------------------------- */

.legal { max-width: 820px; margin-inline: auto; padding-block: var(--space-12); }
.legal__body { line-height: 2.2; white-space: pre-line; color: var(--text-2); }

/* --- Testimonials -------------------------------------------------------------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.quote {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Stars are decorative; the rating is announced on the wrapper instead. */
.quote__stars { color: #F3A712; letter-spacing: 2px; font-size: var(--text-sm); }
.quote__stars-off { color: var(--border); }

.quote blockquote {
  margin: 0;
  line-height: 2.1;
  color: var(--text-2);
  font-size: var(--text-sm);
}

.quote figcaption { display: flex; align-items: center; gap: var(--space-3); margin-top: auto; }
.quote figcaption img { border-radius: 50%; object-fit: cover; width: 40px; height: 40px; }
.quote figcaption b { display: block; font-size: var(--text-sm); }
.quote figcaption span span { color: var(--muted); font-size: var(--text-xs); }

/* --- Lead form ------------------------------------------------------------------ */

/* Pitch on one side, form on the other: the form is the point of the section, so
   it gets its own card rather than sitting under a wall of text. */
.consult {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--space-10);
  align-items: start;
}

.consult__points {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-2);
}

.consult__points li { position: relative; padding-inline-start: 28px; line-height: 1.9; }

.consult__points li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

.lead-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 44px rgba(20, 20, 40, 0.08);
  padding: var(--space-6);
}

.lead-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.lead-field { display: flex; flex-direction: column; gap: var(--space-2); }
.lead-field--full { grid-column: 1 / -1; }

.lead-field label { font-size: var(--text-sm); font-weight: 600; }
.lead-field label span { font-weight: 400; color: var(--muted); }

/* The form's own controls: taller and calmer than the panel's, because this is
   the one thing a visitor is asked to fill in. */
.lead-field input,
.lead-field select,
.lead-field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 var(--space-4);
  height: 52px;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.lead-field textarea {
  height: auto;
  padding: var(--space-3) var(--space-4);
  line-height: 2;
  resize: vertical;
  min-height: 120px;
}

.lead-field select {
  appearance: none;
  /* An inline SVG chevron: a select cannot carry a pseudo-element, and CSS
     triangles built from gradients render as a smudge at this size. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23777781' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-position: var(--space-4) center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
  padding-inline-start: calc(var(--space-4) + 24px);
}

.lead-field input::placeholder,
.lead-field textarea::placeholder { color: var(--muted); opacity: 0.75; }

.lead-field input:focus,
.lead-field select:focus,
.lead-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}

.lead-field input:invalid:not(:placeholder-shown) { border-color: var(--danger); }

.lead-form__note { margin: var(--space-4) 0 0; font-size: var(--text-xs); color: var(--muted); text-align: center; }

/* Off-screen rather than display:none — some bots skip hidden inputs. */
.lead-form__trap {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Responsive ---------------------------------------------------------------- */

@media (max-width: 900px) {
  .pub-hero__grid, .checkout { grid-template-columns: minmax(0, 1fr); }
  .pub-mock { display: none; }
  /* On a phone the buyer should see what they are paying for before how. */
  .checkout > aside { order: -1; }
}

@media (max-width: 900px) {
  /* The pitch reads first, then the form; side by side at this width squeezes
     both into unreadable columns. */
  .consult { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
}

@media (max-width: 720px) {
  .lead-form { padding: var(--space-5); }
  .lead-form__grid { grid-template-columns: minmax(0, 1fr); }

  /* The portrait moves above the name: side by side at this width leaves the
     headline in a two-word column. */
  .store-hero__inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .store-hero__portrait { margin-inline: auto; }
  .store-meta, .store-hero__actions { justify-content: center; }
  .store-hero__actions .btn { flex: 1; }

  /* Price cards scroll far away on a phone, so the action follows the visitor. */
  .store-cta {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
    /* Clear of the iOS home indicator. */
    padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
  }

  .store-cta span { font-weight: 700; font-size: var(--text-sm); }

  /* Room for the bar, so the last section is not covered. */
  .pub-footer { padding-bottom: calc(var(--space-12) + env(safe-area-inset-bottom)); }
}

@media (max-width: 560px) {
  /* Three short claims read fine side by side; stacked they push the packages
     an entire screen further down. */
  .store-highlights__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
  .store-highlight b { font-size: var(--text-lg); }
  .store-highlight span { font-size: var(--text-xs); line-height: 1.7; }
}

@media (max-width: 420px) {
  .pub-brand__name { font-size: var(--text-md); }
  .pub-section { padding-block: var(--space-10); }
}

/* A visitor who prefers less motion gets no zoom on the gallery. */
@media (prefers-reduced-motion: reduce) {
  .store-gallery__item img { transition: none; }
  .store-gallery__item a:hover img { transform: none; }
}
