/* Sorted Page v4 (Variant B): product-first gallery, live hero mock, before/after slider, flow rows */
.v4 .hero { padding-bottom: 56px; }
.v4 .hero-grid { grid-template-columns: 0.92fr 1.08fr; align-items: center; }
.see-examples { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); margin-top: 14px; text-decoration-color: var(--hl-bg); }
.live-mock { position: relative; min-height: 470px; }
.live-mock .lap { position: absolute; left: 0; right: 56px; top: 18px; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -28px rgba(15,42,31,.45); }
.chrome { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #F1F4F2; border-bottom: 1px solid var(--line); font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: #3A4B44; }
.chrome i { width: 9px; height: 9px; border-radius: 50%; background: #CBD5CF; display: inline-block; }
.chrome .url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: 6px; }
.ex-tag { font: 700 11.5px/1 var(--font-sans, system-ui); background: var(--ink); color: #fff; padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.scaler { position: relative; overflow: hidden; }
.scaler iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #fff; }
.lap .scaler { aspect-ratio: 16 / 10; }
.live-mock .ph { position: absolute; right: 0; bottom: -10px; width: 196px; border-radius: 30px; background: #0F1A16; padding: 9px; box-shadow: 0 30px 50px -20px rgba(0,0,0,.5); }
.live-mock .ph .scaler { aspect-ratio: 390 / 780; border-radius: 22px; }
.ready-chip { position: absolute; right: 150px; bottom: 26px; z-index: 3; display: inline-flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px 8px 10px; font-weight: 700; color: var(--ink); font-size: 14px; box-shadow: 0 10px 24px -12px rgba(0,0,0,.35); }
.ready-chip b { width: 10px; height: 10px; border-radius: 50%; background: #1FA971; display: inline-block; }
.mock-caption { position: absolute; left: 0; top: -8px; z-index: 3; }
.noclick { pointer-events: none; }

/* Gallery */
.gallery { padding: 72px 0 80px; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gallery .section-head { margin-bottom: 26px; }
.g-controls { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; max-width: 980px; margin: 0 auto 14px; }
.g-controls label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.g-controls input { width: 100%; min-height: 48px; border: 1px solid #B9C7BF; border-radius: 12px; padding: 0 14px; font: inherit; color: var(--ink); background: #fff; }
.trade-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 auto 18px; }
.trade-tabs button, .dev-tabs button { appearance: none; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 700 15px/1 var(--font-sans, system-ui); min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.trade-tabs button[aria-pressed="true"], .dev-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.g-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 1180px; margin: 0 auto 12px; flex-wrap: wrap; }
.g-bar p { margin: 0; font-size: 14px; color: var(--text); }
.dev-tabs { display: inline-flex; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.dev-tabs button { border: 0; }
.g-stage { max-width: 1180px; margin: 0 auto; }
.g-frame { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px -30px rgba(15,42,31,.45); }
.g-frame .scaler { height: 680px; }
.g-stage.is-phone .g-frame { width: 410px; max-width: 100%; margin: 0 auto; border-radius: 40px; border: 10px solid #0F1A16; background: #0F1A16; }
.g-stage.is-phone .chrome { border-radius: 26px 26px 0 0; }
.g-stage.is-phone .g-frame .scaler { height: 760px; }
.g-note { text-align: center; font-size: 14px; color: var(--text); margin: 14px auto 0; max-width: 760px; }
.g-cta { display: flex; justify-content: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* Flow rows (details in -> preview -> live) */
.flow-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.flow-row + .flow-row { border-top: 1px solid var(--line); }
.flow-row.rev .flow-copy { order: 2; }
.flow-num { display: inline-flex; width: 40px; height: 40px; border-radius: 12px; background: var(--hl-bg); color: var(--hl-ink); font-weight: 900; align-items: center; justify-content: center; margin-bottom: 12px; }
.flow-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 20px 40px -28px rgba(15,42,31,.4); }
.fake-field { border: 1px solid #C9D4CE; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; font-size: 15px; color: var(--ink); background: #FBFCFB; }
.fake-field small { display: block; font-size: 12px; font-weight: 700; color: #4B5C55; margin-bottom: 2px; }
.chat { display: grid; gap: 10px; margin-top: 12px; }
.chat .me { justify-self: end; background: var(--ink); color: #fff; border-radius: 14px 14px 4px 14px; padding: 10px 14px; max-width: 85%; }
.chat .bot { background: var(--accent-soft); color: var(--accent-soft-ink); border-radius: 14px 14px 14px 4px; padding: 10px 14px; max-width: 85%; font-weight: 600; }
.golive li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.golive { list-style: none; padding: 0; margin: 0 0 14px; }
.golive .t { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.live-pill { display: inline-flex; gap: 8px; align-items: center; background: var(--accent-soft); color: var(--accent-soft-ink); padding: 8px 14px; border-radius: 999px; font-weight: 800; }

/* Before / after slider */
.ba-slider { position: relative; max-width: 1180px; margin: 0 auto; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #EEE; height: 560px; --pos: 50%; }
.ba-slider .after, .ba-slider .before { position: absolute; inset: 0; }
.ba-slider .after .scaler { position: absolute; inset: 0; }
.ba-slider .before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); background: #C9C9C9; display: flex; justify-content: center; padding: 24px; }
.ba-old { width: 100%; max-width: 820px; background: #ECEAE4; border: 2px ridge #B4B0A8; font-family: "Times New Roman", Times, serif; color: #222; display: grid; grid-template-columns: 170px 1fr; grid-template-rows: 70px 1fr; }
.ba-old .bnr { grid-column: 1 / 3; background: linear-gradient(#3A56C4, #1D2F7A); color: #FFE14D; font: 700 26px/70px Georgia, serif; text-align: center; }
.ba-old nav { background: #DDD; border-right: 1px solid #999; padding: 12px; font-size: 15px; line-height: 1.9; }
.ba-old nav a { color: #00E; text-decoration: underline; display: block; }
.ba-old .bd { padding: 14px 18px; font-size: 16px; }
.ba-old .bd .new { color: #C00; font-weight: 700; }
.ba-old .bd .img { border: 1px dashed #777; height: 120px; display: flex; align-items: center; justify-content: center; color: #555; margin: 12px 0; }
.ba-label { position: absolute; top: 14px; z-index: 4; background: rgba(15,26,22,.85); color: #fff; font-weight: 700; font-size: 13px; padding: 5px 10px; border-radius: 999px; }
.ba-label.l { left: 14px; } .ba-label.r { right: 14px; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; z-index: 3; transform: translateX(-1.5px); box-shadow: 0 0 0 1px rgba(0,0,0,.15); pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--ink); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 5; margin: 0; }
.ba-range:focus-visible + .ba-handle span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Built from your details (mirrors webdesign.so's "Built from their listing" ticks) */
.built-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 100%; box-sizing: border-box; padding: 0; margin: 0; }
.built-list li { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; color: var(--ink); font-weight: 700; min-width: 0; }
.built-list li span { display: block; font-weight: 400; color: var(--text); font-size: 15px; margin-top: 6px; }

@media (max-width: 1020px) {
  .v4 .hero-grid { grid-template-columns: 1fr; }
  .flow-row { grid-template-columns: 1fr; gap: 24px; }
  .flow-row.rev .flow-copy { order: 0; }
}
@media (max-width: 900px) {
  .built-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .live-mock { min-height: 360px; }
  .live-mock .lap { right: 70px; }
  .live-mock .ph { width: 140px; padding: 7px; border-radius: 24px; }
  .live-mock .ph .scaler { border-radius: 18px; }
  .ready-chip { right: 96px; bottom: 6px; font-size: 13px; }
  .g-controls { grid-template-columns: 1fr; }
  .trade-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .trade-tabs button { flex: 0 0 auto; }
  .g-frame .scaler { height: 520px; }
  .g-stage.is-phone .g-frame { border-width: 8px; }
  .g-stage.is-phone .g-frame .scaler { height: 620px; }
  .ba-slider { height: 440px; }
  .ba-old { grid-template-columns: 110px 1fr; }
  .built-list { grid-template-columns: 1fr; }
}
.flow-row > *, .g-controls > *, .v4 .hero-grid > * { min-width: 0; }
.chrome .ex-tag { flex: 0 0 auto; }
.ba-label { top: auto; bottom: 14px; }

.trade-links{margin:16px 0 0;font-size:1rem;line-height:1.5}
.trade-links a{text-decoration:underline}

/* Centred end-of-page CTA once the form lives on /preview/ */
.final-cta { max-width: 40rem; margin: 0 auto; }
.final .final-cta .cta-row { margin-top: 24px; }

/* Preview request form */
.preview-page { padding-bottom: 48px; }
.preview-form-card { max-width: 36rem; margin: 0 auto; }
.preview-form .field, .preview-form fieldset.field { margin: 0 0 18px; border: 0; padding: 0; }
.preview-form label, .preview-form .field-legend { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.preview-form .optional { font-weight: 400; color: var(--text); }
.preview-form input[type="text"],
.preview-form input[type="email"],
.preview-form input[type="tel"],
.preview-form input[type="url"],
.preview-form textarea {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit;
}
.preview-form textarea { min-height: 96px; resize: vertical; }
.preview-form .choices { display: flex; flex-direction: column; gap: 8px; }
.preview-form .choices label { font-weight: 400; }
.preview-form .privacy-line { font-size: 14px; color: var(--text); margin: 8px 0 18px; }
.preview-form .hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.preview-form-error { color: #8a1f11; background: #fdecea; border-radius: 10px; padding: 10px 12px; margin: 0 0 16px; }
.preview-form-success { max-width: 36rem; margin: 0 auto; }
.preview-form-success:focus { outline: none; }

.preview-form .choices label { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.preview-form .field input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  min-height: 0;
  padding: 0;
  border: 0;
  margin: 0;
  flex: 0 0 1.25rem;
  background: none;
  accent-color: var(--ink);
}
.preview-form .choices { display: flex; flex-direction: column; gap: 10px; }
.preview-form .hp-field,
.preview-form .hp-field input {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: 0;
}
.preview-form { position: relative; }

/* Two equal plan cards on the home and pricing pages. Stack on smaller screens
   so the comparison is never swipe-only. */
.v4 .plans-grid,
.content .plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5, 1.5rem);
  align-items: stretch;
}
.v4 .plans-grid .price-card,
.content .plans-grid .price-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.v4 .plans-grid .price-card .btn,
.content .plans-grid .price-card .btn {
  margin-top: auto;
}
.v4 .plans-grid .price-card .check-list li,
.content .plans-grid .price-card .check-list li,
.content .plans-grid .price-card ul li {
  color: var(--on-navy, #f3f1ea);
}
.content .plans-grid .price-card ul {
  margin: 1rem 0;
  padding-left: 1.15rem;
}
.v4 .home-price-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5, 1.5rem);
  margin-top: var(--s-5, 1.5rem);
}
.legal-draft h2 { margin-top: 2rem; }
.legal-draft h3 { margin-top: 1.25rem; }
@media (max-width: 1020px) {
  .v4 .plans-grid,
  .content .plans-grid,
  .v4 .home-price-notes {
    grid-template-columns: 1fr;
  }
}

.plan-terms {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
}
.price-card .plan-terms { color: var(--on-navy-muted, #d4d0c8); }
.plan-terms a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.plan-terms a:hover { text-decoration-thickness: 2px; }
