/* homepage.css — responsive layout rules for .aw-home
   brand.css is loaded first and provides all tokens + base component styles.
   This file handles grid layouts, font-size scaling, and mobile-first overrides.
*/

/* ── Root ─────────────────────────────────────────────── */
.aw-home { overflow-x: hidden; }

/* ── Section mobile padding override ─────────────────── */
@media (max-width: 900px) {
  .aw-home .section { padding: var(--s-7) var(--s-5); }
  .aw-home .breadth { columns: 2; column-gap: 20px; font-size: 14px; }
}

/* ── 1 · Hero ─────────────────────────────────────────── */
.aw-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 640px;
}
.aw-hero-text {
  padding: 72px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.aw-hero-photo { position: relative; }
.aw-hero-photo .photo { height: 100%; border-radius: 0; min-height: 420px; }

.aw-hero-h1 {
  font-size: clamp(46px, 6vw, 76px);
  margin-top: 18px;
}
.aw-hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-2);
  margin-top: 22px;
  max-width: 46ch;
  line-height: 1.5;
}
.aw-cta-pair {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.aw-proof-ribbon {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
  font-size: 15px;
}
.aw-proof-ribbon .stars { font-size: 16px; }
.aw-proof-ribbon strong { font-weight: 700; }
.aw-proof-ribbon .sep { color: var(--ink-3); font-size: 14px; }
.aw-proof-ribbon .txt { color: var(--ink-2); }

@media (max-width: 900px) {
  .aw-hero-grid {
    display: block;
    min-height: auto;
  }
  .aw-hero-photo { order: 1; }
  /* !important needed: the photo div carries an inline min-height:420px */
  .aw-hero-photo .photo { min-height: 320px !important; }
  .aw-hero-text {
    order: 2;
    padding: 32px 20px 28px;
  }
}


/* ── 2 · Tension ──────────────────────────────────────── */
.aw-tension-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.aw-tension-h2 { font-size: clamp(38px, 5vw, 62px); margin-top: 16px; }
.aw-tension-p { font-size: clamp(17px, 2vw, 21px); color: var(--ink-2); line-height: 1.55; }

@media (max-width: 900px) {
  .aw-tension-grid { display: block; gap: 0; }
  .aw-tension-p { margin-top: 18px; }
}

/* ── 3 · Who We Are ───────────────────────────────────── */
.aw-whoweare-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.aw-whoweare-text { }
.aw-whoweare-h2 { font-size: clamp(36px, 4vw, 54px); margin-top: 16px; }
.aw-whoweare-p { font-size: clamp(17px, 1.8vw, 20px); color: var(--ink-2); margin-top: 20px; line-height: 1.55; max-width: 42ch; }

@media (max-width: 900px) {
  .aw-whoweare-grid { display: block; gap: 0; }
  .aw-whoweare-text { margin-top: 24px; }
  /* !important needed: photo div carries inline height:420px */
  .aw-whoweare-grid .photo { height: 260px !important; }
}

/* ── 4 · Social Proof ─────────────────────────────────── */
.aw-proof-wrap { max-width: 1180px; margin: 0 auto; }
.aw-proof-h2 { font-size: clamp(38px, 4.5vw, 60px); margin-top: 16px; max-width: 18ch; }
.aw-proof-sub { font-size: clamp(17px, 2vw, 21px); color: var(--ink-2); margin-top: 18px; max-width: 60ch; line-height: 1.55; }
.aw-review-wrap { margin-top: 40px; }
.aw-breadth-wrap { margin-top: 64px; }
.aw-breadth-h3 { font-size: clamp(28px, 3vw, 40px); }
.aw-breadth-p { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); margin-top: 14px; max-width: 64ch; line-height: 1.55; }
.aw-breadth-list { margin-top: 36px; }

/* Review widget internals */
.aw-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}
.aw-review-score { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.aw-review-score .shout { font-size: 58px; }
.aw-review-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.aw-review-snips { display: grid; grid-template-columns: repeat(3, 1fr); }
.aw-review-snip { padding: 20px 24px; border-right: 1px solid var(--line); }
.aw-review-snip:last-child { border-right: none; }
.aw-review-snip .serif-it { font-size: 17px; margin-top: 8px; }
.aw-review-snip p { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.45; }
.aw-review-snip .eyebrow { margin-top: 10px; font-size: 11px; }

@media (max-width: 900px) {
  .aw-review-wrap { margin-top: 28px; }
  .aw-breadth-wrap { margin-top: 40px; }
  .aw-breadth-list { margin-top: 24px; }
  .aw-review-header { padding: 18px 20px; }
  .aw-review-score .shout { font-size: 44px; }
  .aw-review-snips { grid-template-columns: 1fr; }
  .aw-review-snip { border-right: none; border-bottom: 1px solid var(--line); }
  .aw-review-snip:last-child { border-bottom: none; }
}

/* ── 5 · Proof Block ──────────────────────────────────── */
.aw-proofblock-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.aw-proofblock-h2 { font-size: clamp(34px, 4vw, 50px); margin-top: 14px; }
.aw-proofblock-p { font-size: clamp(17px, 1.8vw, 20px); color: var(--ink-2); margin-top: 18px; line-height: 1.55; max-width: 40ch; }
.aw-scoreboard-wrap { margin-top: 28px; }
.aw-proofblock-right { }
.aw-proofblock-h3 { font-size: clamp(26px, 2.5vw, 34px); margin-top: 24px; }
.aw-proofblock-p2 { font-size: clamp(16px, 1.5vw, 18px); color: var(--ink-2); margin-top: 12px; line-height: 1.55; max-width: 44ch; }
.aw-fabric-name {
  border-bottom: 2px dotted var(--ink-3);
  padding-bottom: 1px;
  cursor: help;
}

@media (max-width: 900px) {
  .aw-proofblock-grid { display: block; gap: 0; }
  .aw-proofblock-right { margin-top: 36px; }
}

/* ── 6 · How It Works ─────────────────────────────────── */
.aw-how-wrap { max-width: 1180px; margin: 0 auto; }
.aw-how-h2 { font-size: clamp(34px, 4vw, 56px); margin-top: 14px; max-width: 20ch; }
.aw-how-sub { font-size: clamp(17px, 1.8vw, 20px); color: var(--ink-2); margin-top: 18px; max-width: 62ch; line-height: 1.55; }
.aw-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.aw-how-note { font-size: 13.5px; color: var(--ink-3); margin-top: 18px; }

/* Families-pay mock table */
.aw-pay-mock { margin-top: 16px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.aw-pay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  font-size: 13px;
  border-top: 1px solid var(--line-soft);
}
.aw-pay-row:first-child { border-top: none; }
.aw-pay-row .name { font-weight: 700; }
.aw-pay-row .size { color: var(--ink-3); }
.aw-pay-row .status { font-weight: 700; }
.aw-pay-row .status.paid { color: #21a45d; }

@media (max-width: 900px) {
  .aw-flow-grid { grid-template-columns: 1fr; margin-top: 28px; }
}

/* ── 7 · Reveal ───────────────────────────────────────── */
.aw-reveal-inner { position: relative; }
.aw-reveal-photo { }
.aw-reveal-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px;
  background: linear-gradient(0deg, rgba(17,13,9,.82) 0%, rgba(17,13,9,.1) 55%, transparent 100%);
  pointer-events: none;
}
.aw-reveal-play-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.aw-reveal-play-btn {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--red);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  pointer-events: all;
  cursor: pointer;
  border: none;
}
.aw-reveal-h2 { font-size: clamp(40px, 6vw, 76px); color: var(--snow); }
.aw-reveal-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2vw, 26px);
  color: rgba(245,240,232,.9);
  margin-top: 14px;
  max-width: 40ch;
}

@media (max-width: 900px) {
  .aw-reveal-overlay { padding: 24px 20px; }
  .aw-reveal-play-btn { width: 56px; height: 56px; }
}

/* Reveal poster + iframe responsive height */
.aw-reveal-poster,
#aw-reveal-iframe-wrap { height: 620px; }
@media (max-width: 900px) {
  .aw-reveal-poster,
  #aw-reveal-iframe-wrap { height: 360px; }
}
#aw-reveal-iframe-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ── 8 · Sample ───────────────────────────────────────── */
.aw-sample-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.aw-sample-text { order: 0; }
.aw-sample-photo { order: 1; }
.aw-sample-h2 { font-size: clamp(38px, 4vw, 58px); margin-top: 14px; }
.aw-sample-p { font-size: clamp(17px, 1.8vw, 20px); color: var(--ink-2); margin-top: 18px; line-height: 1.55; max-width: 42ch; }

@media (max-width: 900px) {
  .aw-sample-grid { display: block; gap: 0; }
  .aw-sample-photo { margin-bottom: 26px; }
  .aw-sample-text { }
}

/* ── 9 · Price ────────────────────────────────────────── */
.aw-price-wrap { max-width: 980px; margin: 0 auto; text-align: center; }
.aw-price-h2 { font-size: clamp(38px, 5vw, 64px); margin-top: 16px; }
.aw-price-p { font-size: clamp(17px, 1.8vw, 20px); color: var(--ink-2); margin-top: 20px; line-height: 1.55; max-width: 60ch; margin-left: auto; margin-right: auto; }

/* ── 10 · Close ───────────────────────────────────────── */
.aw-close { text-align: center; }
.aw-close-h2 { font-size: clamp(52px, 8vw, 104px); margin-top: 18px; }
.aw-close-cta { display: flex; justify-content: center; margin-top: 32px; }

/* ── Footer ───────────────────────────────────────────── */
.aw-footer {
  background: var(--field);
  color: var(--snow);
  padding: 72px 64px 36px;
}
.aw-footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
}
.aw-footer-brand .shout { font-size: 58px; line-height: .92; }
.aw-footer-brand .aw-cta-pair { margin-top: 22px; }
.aw-footer-brand p { font-size: 13px; color: rgba(245,240,232,.5); max-width: 360px; margin-top: 26px; line-height: 1.6; }
.aw-footer-col h5 {
  font-family: var(--sans); font-weight: 700; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(245,240,232,.45); margin-bottom: 14px;
}
.aw-footer-col a {
  display: block; font-size: 14px; color: rgba(245,240,232,.75);
  margin-bottom: 10px; text-decoration: none;
}
.aw-footer-col a:hover { color: var(--snow); }
.aw-footer-bottom {
  border-top: 1px solid var(--field-line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(245,240,232,.4);
}
.aw-footer-phone { font-weight: 700; font-size: 14px; color: rgba(245,240,232,.7); }

@media (max-width: 900px) {
  .aw-footer { padding: 40px 20px 26px; }
  .aw-footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .aw-footer-brand .shout { font-size: 40px; }
  .aw-footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ── Mobile sticky CTA ────────────────────────────────── */
.aw-sticky-cta {
  display: none;
  position: sticky;
  bottom: 0;
  z-index: 30;
  gap: 10px;
  padding: 12px 16px 16px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) {
  .aw-sticky-cta { display: flex; }
}
