/* ═══════════════════════════════════════════════════════════════════════
   SORT A BRICK — Brick Acquisition Landing Page
   Follows canonical brand spec (Brand & Design/sortabrick-design-system.md):
   Figtree, yellow #FFDA2F CTA, dark text #282233, pill buttons, no gradients
   ═══════════════════════════════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Brand text */
  --text-primary: #282233;
  --text-muted: #687F97;

  /* Backgrounds */
  --bg-page: #FFFFFF;
  --bg-info: #E8F2FF;
  --bg-hero-blue: #9AD0FF;
  --bg-hero-yellow: #FFDA2F;
  --bg-soft: #F7F9FC;

  /* Brand accents */
  --yellow-primary: #FFDA2F;
  --yellow-accent: #FFCD47;
  --green-primary: #54B75D;
  --green-accent: #40A349;
  --blue-primary: #9AD0FF;

  /* Borders */
  --stroke-subtle: rgba(0, 30, 108, 0.15);
  --border: #E2E8F0;

  /* States */
  --warn: #DC2626;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-page);
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

img, video { max-width: 100%; display: block; }
a { color: var(--text-primary); }
.hidden { display: none !important; }

.page {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--bg-page);
  min-height: 100vh;
}

/* ─── Sticky Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
}

.site-header .logo-img { height: 28px; width: auto; }

.nav-cta {
  display: inline-block;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--yellow-primary);
  border-radius: 26px;
  text-decoration: none;
  transition: filter 0.15s, transform 0.1s;
}

.nav-cta:hover { filter: brightness(0.95); }

/* ─── Buttons ─────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--yellow-primary);
  border: none;
  border-radius: 26px;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s, transform 0.1s;
}

.btn-primary:hover { filter: brightness(0.95); color: var(--text-primary); }
.btn-primary:active { transform: translateY(1px); }

/* ─── Hero (text left, image right on desktop — compact) ──────────── */
.hero {
  padding: 48px 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.hero-text h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hero-text .subhead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-primary);
  margin-bottom: 24px;
  max-width: 520px;
}

.hero-image-wrap {
  border-radius: 16px;
  overflow: hidden;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

@media (min-width: 800px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    padding: 64px 48px;
    gap: 48px;
  }
  .hero-text h1 { font-size: 44px; }
  .hero-image-wrap img { aspect-ratio: 4 / 3; }
}

/* ─── Section ─────────────────────────────────────────────────────── */
.section {
  padding: 64px 32px 32px;
  max-width: 920px;
  margin: 0 auto;
}

.section + .section { padding-top: 32px; }

/* Section divider — small brick-style colored blocks (sits on top of new section) */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 56px 0 0;
  max-width: 920px;
  margin: 0 auto;
}

/* Section that follows a divider should reduce its own top padding so divider visually belongs to it */
.divider + .section { padding-top: 24px; }

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 200px;
}

.divider-block {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1.5px solid var(--stroke-subtle);
}

.divider-block.y { background: var(--yellow-primary); }
.divider-block.g { background: var(--green-primary); }
.divider-block.b { background: var(--blue-primary); }

/* Sections that follow a divider should reduce their own top padding */
.section.has-divider { padding-top: 24px; }

/* Inline CTA strip — reusable, centered button below content */
.cta-strip {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 12px;
  text-align: center;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 32px;
  line-height: 1.2;
  text-align: center;
}

.section-lead {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: center;
  max-width: 540px;
  margin: -20px auto 32px;
}

@media (min-width: 800px) {
  .section-title { font-size: 36px; }
}

/* ─── Story (clean) ───────────────────────────────────────────────── */
.story-text {
  max-width: 680px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-primary);
}

.story-text p + p { margin-top: 16px; }

/* ─── Video / Photo ───────────────────────────────────────────────── */
.video-wrap {
  margin: 32px auto 0;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  max-width: 720px;
  aspect-ratio: 16 / 9;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── 3-step process cards (brand spec: colored cards) ────────────── */
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 720px) {
  .how-grid { grid-template-columns: repeat(3, 1fr); }
}

.how-card {
  border-radius: 16px;
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.how-card.c1 { background: var(--yellow-primary); }
.how-card.c2 { background: var(--green-primary); color: #fff; }
.how-card.c3 { background: var(--blue-primary); }

.how-card.c2 .how-text h3,
.how-card.c2 .how-text p { color: #fff; }

.how-image {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

@media (max-width: 720px) {
  .how-image { height: 220px; }
}

.how-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  background: #fff;
  border: 1.5px solid var(--stroke-subtle);
}

.how-text h3 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.how-text p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
}

/* ─── What we buy / don't ─────────────────────────────────────────── */
.buy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

.buy-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.buy-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.buy-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.buy-card.yes .buy-card-icon { background: var(--green-primary); }
.buy-card.no .buy-card-icon { background: var(--warn); }

.buy-card h3 {
  font-size: 20px;
  font-weight: 600;
}

.buy-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.buy-item { text-align: center; }

.buy-item-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 8px;
  overflow: hidden;
}

.buy-item-img img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.buy-item-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

/* ─── Calculator + Report Preview ─────────────────────────────────── */
.calc-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .calc-block { grid-template-columns: 1fr 1fr; align-items: stretch; }
}

.calc-input-side {
  background: var(--bg-info);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-input-side h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.calc-input-wrap {
  position: relative;
  margin-bottom: 14px;
}

.calc-input-wrap input {
  width: 100%;
  padding: 18px 64px 18px 20px;
  font-size: 28px;
  font-weight: 700;
  font-family: inherit;
  border: 1.5px solid var(--stroke-subtle);
  border-radius: 12px;
  background: #fff;
  color: var(--text-primary);
  transition: border-color 0.15s;
}

.calc-input-wrap input:focus {
  outline: none;
  border-color: var(--text-primary);
}

.calc-unit {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
}

.calc-reference {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.6);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
}

.calc-reference-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.calc-reference-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.calc-reference strong { display: block; font-weight: 600; }
.calc-reference span { color: var(--text-muted); font-size: 12px; }

/* Report preview — mirrors actual customer report */
.report-preview {
  background: #fff;
  border: 1.5px solid var(--stroke-subtle);
  border-radius: 16px;
  padding: 24px;
}

.report-preview-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}

.report-preview-logo {
  height: 18px;
  width: auto;
  opacity: 0.85;
}

.report-preview-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-align: center;
}

/* Payout block — label top, big value center, formula bottom */
.report-payout {
  background: var(--yellow-primary);
  border-radius: 12px;
  padding: 32px 20px 28px;
  text-align: center;
}

.report-payout-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.report-payout-value {
  display: block;
  font-weight: 800;
  font-size: 68px;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--text-primary);
  margin: 22px 0 18px;
}

.report-payout-formula {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0.7;
}

.report-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.report-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: 10px;
}

.report-stat.lego { background: var(--bg-info); }

.report-stat .label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.report-stat .value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ─── Press ───────────────────────────────────────────────────────── */
.press-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

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

.press-item {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.press-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(40,34,51,0.06);
  border-color: var(--text-primary);
  color: inherit;
}

.press-logo {
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
}

.press-name {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.press-headline {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.press-arrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: auto;
}

/* ─── Form ────────────────────────────────────────────────────────── */
.form-card {
  background: var(--bg-page);
  border: 1.5px solid var(--stroke-subtle);
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 600px;
  margin: 0 auto;
}

.form-card .form-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 24px;
}

.form-group { margin-bottom: 16px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-group label .req { color: var(--warn); margin-left: 2px; }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1.5px solid var(--stroke-subtle);
  border-radius: 10px;
  background: var(--bg-page);
  color: var(--text-primary);
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text-primary);
}

.form-group .hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.5;
}

.form-group .hint strong { color: var(--text-primary); font-weight: 600; }

.form-group textarea { resize: vertical; min-height: 80px; }

/* Radio cards */
.radio-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-card {
  display: block;
  padding: 14px 16px;
  border: 1.5px solid var(--stroke-subtle);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.radio-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.radio-card:hover { border-color: var(--text-primary); }

.radio-card input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--text-primary);
  flex-shrink: 0;
}

.radio-card:has(input[type="radio"]:checked) {
  border-color: var(--text-primary);
  background: var(--bg-info);
}

.radio-card-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.radio-card-text span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.sub-options {
  margin-top: 14px;
  padding: 14px;
  background: rgba(255,255,255,0.6);
  border-radius: 10px;
}

.sub-options-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.sub-options-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sub-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1.5px solid var(--stroke-subtle);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  transition: border-color 0.15s, background 0.15s;
}

.sub-option:has(input:checked) {
  border-color: var(--text-primary);
  background: var(--bg-info);
}

.sub-option input[type="radio"] { accent-color: var(--text-primary); }

.sub-option-logo {
  height: 16px;
  width: auto;
  max-width: 60px;
  object-fit: contain;
}

.pickup-info {
  margin-top: 14px;
  padding: 16px;
  background: rgba(255,255,255,0.7);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-primary);
}

.pickup-info strong { display: block; margin-bottom: 4px; font-weight: 600; }

/* File upload */
.file-upload {
  position: relative;
  border: 2px dashed var(--stroke-subtle);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  background: var(--bg-soft);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.file-upload:hover {
  border-color: var(--text-primary);
}

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-icon { font-size: 28px; margin-bottom: 6px; }
.file-upload-text { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.file-upload-hint { font-size: 12px; color: var(--text-muted); }

.submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--yellow-primary);
  border: none;
  border-radius: 26px;
  cursor: pointer;
  transition: filter 0.15s;
  margin-top: 8px;
}

.submit-btn:hover { filter: brightness(0.95); }
.submit-btn:disabled { background: var(--text-muted); cursor: not-allowed; color: #fff; }

.privacy-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

.delivery-detail { display: none; }
.delivery-detail.active { display: block; animation: slideDown 0.25s ease-out; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-error {
  background: #fdecec;
  border: 1px solid #e8a3a3;
  color: #b91c1c;
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.form-success {
  text-align: center;
  padding: 32px 24px;
}
.form-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #54B77E;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.form-success h3 {
  margin: 0 0 12px;
  font-size: 22px;
}
.form-success p {
  margin: 8px 0;
  color: var(--text-muted);
  line-height: 1.6;
}
.form-success strong {
  color: var(--text-strong, #282233);
  font-family: ui-monospace, SFMono-Regular, monospace;
}

/* ─── FAQ ─────────────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.faq-a {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-primary);
}

/* ─── Footer ──────────────────────────────────────────────────────── */
.footer {
  padding: 48px 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--bg-page);
  margin-top: 64px;
}

.footer-line {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-line + .footer-line { margin-top: 8px; }

.footer-line a { color: var(--text-primary); text-decoration: none; }
.footer-line a:hover { text-decoration: underline; }

.footer-legal {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.5;
}

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero { padding: 40px 20px; }
  .hero-text { text-align: center; }
  .hero-text h1 { font-size: 30px; }
  .hero-text .subhead { margin-left: auto; margin-right: auto; }
  .section { padding: 48px 20px 16px; }
  .section-title { font-size: 26px; }
  .form-card { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .calc-input-wrap input { font-size: 22px; padding-right: 56px; }
  .calc-input-side { padding: 22px 18px; }
  .report-preview { padding: 20px 18px; }
  .report-payout { padding: 26px 18px 22px; }
  .report-payout-value { font-size: 52px; margin: 16px 0 14px; }
  .buy-list { gap: 10px; }
  .site-header { padding: 12px 20px; }
}
