/* Final production sizing and responsive polish for the redesigned homepage. */

/* Give anchored sections breathing room below the sticky navigation. */
#top,
#results,
#reviews,
#what,
#watchtower,
#faq,
#sample,
#pricing {
  scroll-margin-top: 104px;
}

/* Use the real Fifth Signal mark instead of the temporary CSS square/dot. */
.brand-mark {
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 32px;
  border-radius: 0 !important;
  background: transparent url('/assets/logo-256.webp?v=20260916e') center / contain no-repeat !important;
  box-shadow: none !important;
}

.brand-mark::before,
.brand-mark::after {
  content: none !important;
  display: none !important;
}

/* Desktop: fill modern laptop/desktop screens instead of looking boxed into 1180px. */
@media (min-width: 1101px) {
  .wrap {
    width: min(1440px, calc(100% - 48px));
  }

  .topbar .wrap {
    min-height: 32px;
  }

  .nav .wrap {
    height: 72px;
  }

  .brand {
    gap: 10px;
    font-size: 17px;
  }

  .hero {
    padding: 66px 0 54px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(470px, .92fr);
    gap: 56px;
    align-items: center;
  }

  .hero-content {
    max-width: 780px;
  }

  .hero h1 {
    max-width: 780px;
    margin: 12px 0 22px;
    font-size: clamp(64px, 5.15vw, 84px);
    line-height: .98;
    letter-spacing: -.052em;
  }

  .hero-copy {
    max-width: 700px;
    font-size: 20px;
    line-height: 1.56;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .hero-actions .primary {
    min-width: 306px;
  }

  .hero-visual {
    min-height: 430px;
    justify-content: center;
  }

  .hero-visual img {
    width: 116%;
    max-width: 820px;
  }

  .proof {
    padding: 4px 0 66px;
  }

  .proof-item {
    min-height: 126px;
    padding: 22px 24px;
  }

  .proof-item strong {
    font-size: 30px;
  }

  .section {
    padding: 76px 0;
  }
}

/* Extra-wide screens keep generous breathing room without shrinking the actual site. */
@media (min-width: 1600px) {
  .wrap {
    width: min(1480px, calc(100% - 64px));
  }

  .hero-content,
  .hero h1 {
    max-width: 800px;
  }

  .hero h1 {
    font-size: clamp(72px, 4.85vw, 88px);
  }

  .hero-copy {
    max-width: 720px;
    font-size: 20px;
  }

  .hero-visual img {
    max-width: 850px;
  }
}

/* Large tablets / small laptops. */
@media (min-width: 901px) and (max-width: 1100px) {
  .wrap {
    width: min(100%, calc(100% - 40px));
  }

  .nav .wrap {
    height: 68px;
  }

  .hero {
    padding: 52px 0 44px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(390px, .96fr);
    gap: 30px;
  }

  .hero h1 {
    font-size: clamp(52px, 6.1vw, 68px);
    max-width: 640px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .hero-visual img {
    width: 110%;
    max-width: 650px;
  }

  .proof-item {
    min-height: 114px;
  }
}

/* Tablet: keep the single-column layout compact and intentional. */
@media (min-width: 641px) and (max-width: 900px) {
  .wrap {
    width: min(100%, calc(100% - 40px));
  }

  .nav .wrap {
    height: 66px;
  }

  .hero {
    padding: 44px 0 42px;
  }

  .hero-grid {
    gap: 18px;
  }

  .hero-content {
    max-width: 720px;
  }

  .hero h1 {
    font-size: clamp(50px, 8vw, 66px);
    line-height: .99;
  }

  .hero-copy {
    font-size: 18px;
  }

  .hero-visual img {
    max-width: 620px;
  }

  .proof {
    padding-top: 0;
  }
}

/* Mobile: full, comfortable use of the viewport with clean tap targets. */
@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .topbar .wrap {
    min-height: 38px;
    padding: 6px 0;
    gap: 5px 7px;
    flex-wrap: wrap;
    white-space: normal;
    line-height: 1.2;
  }

  .topbar strong,
  .topbar span {
    white-space: normal;
  }

  .nav .wrap {
    height: 60px;
    gap: 12px;
  }

  .brand {
    gap: 8px;
    font-size: 15px;
  }

  .brand-mark {
    width: 27px !important;
    height: 27px !important;
    flex-basis: 27px;
  }

  .navlinks {
    gap: 8px;
  }

  .nav-cta {
    min-width: 68px;
    height: 40px;
    padding: 0 14px;
  }

  .hero {
    padding: 34px 0 38px;
  }

  .hero-grid {
    gap: 16px;
  }

  .hero .kicker {
    letter-spacing: .13em;
  }

  .hero h1 {
    max-width: 100%;
    margin: 10px auto 18px;
    /* Sized so the longer line, "Get the exact trade.", always fits on one line. */
    font-size: clamp(31px, calc(11vw - 4px), 50px);
    line-height: 1;
    letter-spacing: -.047em;
  }

  .hero-copy {
    max-width: 400px;
    font-size: 16.5px;
    line-height: 1.56;
  }

  .hero-actions {
    max-width: 400px;
    margin-top: 22px;
    gap: 10px;
  }

  .hero-actions .btn {
    min-height: 50px;
    height: auto;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.25;
  }

  .hero-note {
    margin-top: 16px;
  }

  .hero-trust-line,
  .hero-operator {
    max-width: 390px;
    font-size: 12.5px !important;
  }

  .hero-visual {
    min-height: 0;
    margin-top: 2px;
  }

  .proof {
    padding: 0 0 48px;
  }

  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-item {
    min-height: 104px;
    padding: 16px 12px;
    border-top: 1px solid var(--line);
  }

  .proof-item:nth-child(1),
  .proof-item:nth-child(2) {
    border-top: 0;
  }

  .proof-item:nth-child(odd) {
    border-left: 0;
  }

  .proof-item:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .proof-item strong {
    font-size: 25px;
  }

  .proof-item span {
    font-size: 12.5px;
  }

  .section {
    padding: 54px 0;
  }

  .section-head h2,
  .visual-copy h2,
  .sample-copy h2,
  .fit-copy h2 {
    font-size: clamp(34px, 9.9vw, 41px);
    line-height: 1.04;
  }

  .section-head p,
  .visual-copy p,
  .sample-copy p,
  .fit-copy p {
    font-size: 16px;
    line-height: 1.56;
  }

  .trade-proof-grid,
  .fit-grid {
    gap: 18px;
  }

  .card,
  .channel-card,
  .form-card,
  .fit-card {
    padding: 20px;
  }

  .final-box {
    padding: 26px 22px;
  }

  .final-box h2 {
    font-size: 34px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Readable small print on phones (was 9.5–11px). */
  .topbar .wrap,
  .hero .kicker {
    font-size: 11.5px;
  }

  .trade-ledger-header {
    font-size: 11px;
  }

  .trade-main span,
  .trade-open span,
  .trade-close span,
  .trade-result span {
    font-size: 11px;
  }

  .form-fine,
  .fit-fine,
  .trade-proof-note,
  .results-disclaimer,
  .review-disclaimer,
  .review-counter,
  .review-person span:not(.review-avatar),
  .sample-real-receipt .visual-caption,
  .ticker-art .visual-caption,
  .visual-copy p.disclaimer-mini,
  .trade-proof-card figcaption {
    font-size: 12.5px !important;
    line-height: 1.55 !important;
  }

  .form-fine,
  .fit-fine,
  .trade-proof-note,
  .results-disclaimer,
  .review-disclaimer {
    color: #646d66 !important;
  }

  .brett-video-badge {
    font-size: 11px;
  }

  /* Ledger: contract on top, then Entry / Exit / Result side by side (was two rows each). */
  .trade-ledger-row,
  .trade-ledger.expanded .trade-ledger-row.is-extra {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 12px;
    padding: 16px 2px;
  }

  .final-box .btn {
    width: 100%;
    min-height: 54px;
  }

  /* Comfortable tap targets for small text links. */
  .brand {
    min-height: 44px;
  }

  .record-link {
    min-height: 44px;
    align-items: center;
  }

  footer a {
    display: inline-block;
    padding: 12px 4px;
  }
}

/* Phone/tablet artwork. The desktop art sits on a wide transparent canvas with the
   subject right of centre, so phones get subject-centred crops (<picture> sources in
   index.html). The wrapper is display:contents so desktop layout is unchanged. */
.art-picture {
  display: contents;
}

/* Swipes on the review carousel go to the carousel; vertical drags still scroll the page. */
.review-viewport {
  touch-action: pan-y;
}

@media (max-width: 900px) {
  .hero-visual {
    justify-content: center;
  }

  .hero-visual img {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
    transform: none !important;
  }

  .watchtower-art {
    display: flex;
    justify-content: center;
  }

  .watchtower-art img {
    width: 100%;
    max-width: 640px;
    max-height: none;
    margin-inline: auto;
    transform: none !important;
  }
}

@media (max-width: 380px) {
  .wrap {
    width: calc(100% - 24px);
  }

  .brand {
    font-size: 14px;
  }

  .brand-mark {
    width: 25px !important;
    height: 25px !important;
    flex-basis: 25px;
  }

  .nav-cta {
    min-width: 62px;
    padding-inline: 11px;
  }


  .proof-item strong {
    font-size: 23px;
  }
}

/* Keep the three real-alert receipt panels equal in height while preserving each screenshot's natural proportions. */
.trade-proof-grid {
  align-items: stretch;
}

.trade-proof-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.trade-shot {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #0f1b28;
}

.trade-shot img {
  display: block;
  width: 100% !important;
  height: auto !important;
  object-fit: initial !important;
  object-position: top center;
  background: #0f1b28;
}
