/* ==========================================================================
   Backline Operators - components.css
   Cards, pricing, steps, before/after, FAQ, forms, banners
   ========================================================================== */

/* --- Generic card grid ------------------------------------------------------ */

.card-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 920px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.card .card-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* --- "Who it's for" chips ---------------------------------------------------- */

.audience-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .audience-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.audience {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.audience .audience-icon {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.audience h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.audience p {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* --- Problems list ------------------------------------------------------------ */

.problem {
  border-left: 3px solid var(--accent);
  background-color: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.4rem;
}

.problem h3 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.problem p {
  font-size: 0.93rem;
  color: var(--ink-soft);
}

/* --- Pricing / package cards ---------------------------------------------------- */

.pricing-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 700px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .pricing-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .pricing-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.6rem 1.75rem;
  height: 100%;
}

.price-card.is-featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}

.badge {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3em 1em;
  border-radius: 999px;
  white-space: nowrap;
}

.price-card .package-tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.price-card h3 {
  margin-bottom: 0.35rem;
}

.price {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.price .price-prefix,
.price .price-suffix {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.price-card .price-blurb {
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.93rem;
}

.feature-list li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.feature-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.price-card .btn {
  margin-top: auto;
}

/* --- Extras table --------------------------------------------------------------- */

.extras-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 40rem;
}

.extras-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.extras-list .dots {
  flex: 1;
  border-bottom: 1.5px dotted var(--line);
  transform: translateY(-0.25em);
}

.extras-list .extra-price {
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* --- Launch offer banner (voucher style - designed to stand out) ------------ */

.launch-banner {
  position: relative;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.4rem 2rem 2.1rem;
  box-shadow: 0 10px 30px rgba(143, 61, 31, 0.28);
}

/* Dashed inner border, like a voucher */
.launch-banner::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px dashed rgba(255, 255, 255, 0.4);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
}

.launch-flag {
  position: absolute;
  top: -0.95rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--card);
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4em 1.3em;
  border-radius: 999px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.launch-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.launch-banner h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  color: #fff;
  margin-bottom: 0.4rem;
}

.launch-banner .launch-was {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: line-through;
  margin-left: 0.5rem;
  white-space: nowrap;
}

.launch-banner p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  max-width: 52ch;
}

.launch-banner .btn {
  background-color: #fff;
  color: var(--accent-deep);
  border-color: #fff;
  font-size: 1.05rem;
  padding: 0.85em 1.8em;
}

.launch-banner .btn:hover,
.launch-banner .btn:focus-visible {
  background-color: var(--paper-deep);
  color: var(--accent-deep);
}
/* --- Before & after ----------------------------------------------------------------- */

.ba-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .ba-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ba-figure {
  margin: 0;
}

/* CSS mock-ups: a blurry "before" photo and a clean "after" card.
   Swap either for a real image when you have examples (see index.html). */
.ba-shot {
  position: relative;
  min-height: 320px;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem;
}

.ba-shot-before {
  background: linear-gradient(160deg, #a8a195 0%, #d8d2c2 35%, #beb5a2 100%);
}

.menu-bad {
  position: relative;
  width: min(19rem, 100%);
  background: #f6efd9;
  padding: 1.4rem 1.2rem 1.1rem;
  transform: rotate(-2deg);
  filter: blur(0.7px) contrast(0.92) sepia(0.15);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.35);
  color: #3a3324;
}

/* Camera-flash glare over the "photo" */
.menu-bad::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 22% 12%, rgba(255, 255, 255, 0.8), transparent 45%);
  pointer-events: none;
}

.menu-bad h3 {
  font-family: "Comic Sans MS", "Segoe Print", cursive;
  font-size: 1rem;
  text-align: center;
  text-decoration: underline;
  color: #5a2d2d;
  margin-bottom: 0.6rem;
}

.menu-bad ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 2;
}

.menu-bad .bad-strike {
  text-decoration: line-through;
}

.menu-bad .bad-note {
  font-family: "Comic Sans MS", "Segoe Print", cursive;
  font-size: 0.7rem;
  text-align: center;
  margin-top: 0.7rem;
}

.ba-shot-after {
  background: linear-gradient(160deg, var(--olive-soft) 0%, #ffffff 100%);
  border: 1px solid var(--line);
}

/* Reuses the hero menu card, sitting flat */
.menu-mock-flat {
  transform: none;
  margin: 0;
  width: min(19rem, 100%);
}
.ba-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3em 1em;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.ba-label-before {
  background-color: var(--paper-deep);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.ba-label-after {
  background-color: var(--accent);
  color: #fff;
}

.ba-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* --- Steps (how it works) -------------------------------------------------------------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.75rem;
  counter-reset: step;
  max-width: 44rem;
}

.steps li {
  position: relative;
  counter-increment: step;
  padding-left: 4rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  background-color: var(--olive);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: 50%;
}

.steps h3 {
  font-size: 1.12rem;
  margin-bottom: 0.25rem;
}

.steps p {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* Compact horizontal steps on the homepage */
@media (min-width: 920px) {
  .steps.steps-row {
    max-width: none;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }

  .steps.steps-row li {
    padding-left: 0;
    padding-top: 3.6rem;
  }

  .steps.steps-row li::before {
    top: 0;
    left: 0;
  }
}

/* --- Notice / terms box -------------------------------------------------------------- */

.notice {
  background-color: var(--olive-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  max-width: 44rem;
}

.notice h2,
.notice h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.notice ul {
  margin: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.97rem;
}

/* --- FAQ (details/summary - works without JS) ------------------------------------------ */

.faq-list {
  max-width: 44rem;
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  font-size: 1.02rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--accent-deep);
}

.faq-answer {
  padding: 0 1.4rem 1.25rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.faq-answer p + p {
  margin-top: 0.6rem;
}

/* --- Forms --------------------------------------------------------------------------- */

.form-card {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 44rem;
}

.form-grid {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-field.full {
    grid-column: 1 / -1;
  }
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.form-field .hint {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7em 0.9em;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form-field textarea {
  resize: vertical;
  min-height: 6rem;
}

.form-actions {
  margin-top: 1.75rem;
}

.form-actions .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .form-actions .btn {
    width: auto;
    min-width: 16rem;
  }
}

.form-note {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* --- Contact aside --------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 920px) {
  .contact-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

.contact-aside .card {
  margin-bottom: 1.25rem;
}

/* --- CTA band ----------------------------------------------------------------------------- */

.cta-band {
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 0.75rem;
}

.cta-band p {
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

.cta-band .btn {
  margin-inline: 0.4rem;
  margin-block: 0.25rem;
}

/* --- Two-column prose (About) --------------------------------------------------------------- */

.prose {
  max-width: 44rem;
}

.prose p + p {
  margin-top: 1rem;
}

.prose h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}

.def-cols {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 680px) {
  .def-cols {
    grid-template-columns: 1fr 1fr;
  }
}
