.page-shell:has(.tradehook-home) {
  max-width: none;
  padding: 0;
}

.tradehook-home {
  --ink: #08233a;
  --green: #08b96f;
  --green-bright: #0fd182;
  --dark: #003b3b;
  --muted: #52636c;
  --soft: #f4f7f7;
  color: var(--ink);
  background: #fff;
  overflow: hidden;
}

.tradehook-home * {
  box-sizing: border-box;
}

.tradehook-home h1,
.tradehook-home h2,
.tradehook-home h3 {
  letter-spacing: -0.045em;
  font-weight: 900;
}

.tradehook-home p {
  line-height: 1.5;
}

.home-kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: clamp(18px, 1.35vw, 21px);
  font-weight: 900;
  letter-spacing: 0.055em;
  line-height: 1.15;
  text-transform: uppercase;
}

.home-button {
  display: inline-flex;
  min-width: 176px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 850;
  box-shadow: 0 11px 25px rgba(0, 52, 43, 0.16);
  transition: background 160ms ease, transform 160ms ease;
}

.home-button:hover,
.home-button:focus-visible {
  background: #079f60;
  color: #fff;
  transform: translateY(-1px);
}

.home-text-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  color: inherit;
  font-size: 16px;
  font-weight: 850;
  text-underline-offset: 5px;
}

.home-text-link:hover,
.home-text-link:focus-visible {
  color: var(--green-bright);
}

/* Hero keeps the promise, explanation and first action together. */
.home-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 76px max(48px, calc((100vw - 1440px) / 2));
  isolation: isolate;
  background: url('/static/images/trades/garages.webp') center 48% / cover no-repeat;
  color: #fff;
}

.home-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 35, 43, 0.97) 0%,
    rgba(0, 35, 43, 0.88) 34%,
    rgba(0, 35, 43, 0.47) 54%,
    rgba(0, 35, 43, 0.12) 75%,
    rgba(0, 35, 43, 0.04) 100%
  );
}

.home-hero-copy {
  width: min(700px, 54vw);
}

.home-hero-kicker {
  margin-bottom: 18px;
  color: var(--green-bright);
  font-size: clamp(18px, 1.35vw, 21px);
}

.home-hero h1 {
  margin: 0;
  max-width: 690px;
  font-size: clamp(66px, 5.6vw, 90px);
  line-height: 0.94;
  text-wrap: balance;
}

.home-hero h1 em {
  color: var(--green-bright);
  font-style: normal;
}

.home-hero-summary {
  max-width: 630px;
  margin: 26px 0 0;
  color: #edf7f5;
  font-size: clamp(18px, 1.35vw, 21px);
}

.home-hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 30px;
}

.home-hero-reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.home-hero-reassurance li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
}

.home-hero-reassurance li::before {
  content: '✓';
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-bright);
  color: #003b32;
  font-size: 13px;
  font-weight: 950;
}

/* The phone story is a separate white section below the hero. */
.phone-flow {
  padding: 58px max(48px, calc((100vw - 1380px) / 2)) 70px;
  background: #fff;
}

.phone-flow-heading {
  text-align: center;
}

.phone-flow-heading .home-kicker {
  margin-bottom: 10px;
}

.phone-flow h2 {
  margin: 0;
  font-size: clamp(38px, 3.1vw, 48px);
  line-height: 1;
}

.phone-flow-heading > p:not(.home-kicker):not(.phone-flow-swipe-hint) {
  max-width: 650px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 17px;
}

.phone-flow-swipe-hint {
  display: none;
}

.phone-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr) 46px minmax(0, 1fr) 46px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  max-width: 1180px;
  margin: 40px auto 0;
}

.phone-step {
  display: grid;
  grid-template-rows: 365px minmax(58px, auto);
  min-width: 0;
}

.flow-arrow {
  align-self: start;
  margin-top: 159px;
  color: var(--green);
  font-size: 38px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.phone {
  position: relative;
  width: 180px;
  height: 365px;
  margin: auto;
  padding: 32px 13px 18px;
  overflow: hidden;
  border: 6px solid #142832;
  border-radius: 29px;
  background: #fafafa;
  box-shadow: 0 13px 26px rgba(6, 44, 59, 0.16);
}

.phone::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 62px;
  height: 12px;
  border-radius: 10px;
  background: #142832;
  transform: translateX(-50%);
}

.phone-top {
  position: absolute;
  top: 9px;
  left: 14px;
  font-size: 8px;
  font-weight: 800;
}

.phone > strong,
.phone > small {
  display: block;
  text-align: center;
}

.phone > strong {
  font-size: 11px;
}

.incoming-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 118px;
  background: #062d3a;
  color: #fff;
}

.incoming-phone small {
  color: #e3eeee;
}

.incoming-phone > strong {
  font-size: 15px;
}

.call-actions {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  width: 126px;
  /* Pinned to the bottom of the phone, so the buttons and their labels stay
     inside the frame at every responsive phone height (315-365px). */
  margin-top: auto;
  margin-bottom: 6px;
}

.call-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #fff;
}

.call-action .call-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #ed3345;
}

.call-action .call-icon svg {
  width: 25px;
  height: 25px;
  fill: #fff;
}

.call-action small {
  color: #eef8f6;
  font-size: 9px;
  font-weight: 750;
}

.call-answer .call-icon {
  background: #11bb6f;
}

.message-phone p {
  margin-top: 26px;
  padding: 12px 10px;
  border-radius: 12px;
  background: #e8edef;
  font-size: 11px;
  line-height: 1.4;
}

.message-phone:not(:has(.customer-message)) p {
  padding: 11px 9px;
  font-size: 10px;
  line-height: 1.35;
}

.message-phone .customer-message {
  margin-top: 34px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
}

.message-phone > small {
  position: absolute;
  right: 12px;
  bottom: 13px;
  left: 12px;
  padding: 8px;
  border: 1px solid #e1e6e8;
  border-radius: 20px;
  color: #829096;
  text-align: left;
}

.enquiry-phone > strong {
  margin: 18px 0;
  text-align: left;
  font-size: 13px;
}

.enquiry-phone-card {
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 9px 9px 9px 11px;
  border: 1px solid #d8dfdc;
  border-radius: 7px;
  background: #fff;
  box-shadow: inset 3px 0 #15569b;
  font-size: 10px;
  text-align: left;
}

.enquiry-phone-card em {
  padding: 2px 6px;
  border-radius: 999px;
  background: #15569b;
  color: #fff;
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.enquiry-phone-card b {
  font-size: 12px;
}

.enquiry-phone-card small {
  color: var(--muted);
  font-size: 9px;
}

.enquiry-phone-card p {
  margin: 0;
  font-weight: 750;
}

.enquiry-phone-card i {
  justify-self: stretch;
  margin-top: 4px;
  padding: 7px;
  border-radius: 5px;
  background: #0b9f6e;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  text-align: center;
}

.phone-step footer {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 11px;
  margin-top: 16px;
  min-height: 58px;
}

.phone-step footer b {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 18px;
}

.phone-step footer strong {
  padding-top: 1px;
  font-size: 14px;
  line-height: 1.3;
}

.setup-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(560px, 1.45fr);
  align-items: center;
  gap: 80px;
  padding: 82px max(48px, calc((100vw - 1400px) / 2));
  background: #073b3c;
  color: #fff;
}

.setup-intro h2 {
  margin: 0 0 20px;
  font-size: clamp(45px, 3.8vw, 58px);
  line-height: 0.98;
}

.setup-intro > p:not(.home-kicker) {
  max-width: 500px;
  margin: 0 0 18px;
  color: #d7e9e7;
  font-size: 17px;
}

.setup-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.setup-steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.setup-steps li > b {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-bright);
  color: #003b32;
  font-size: 20px;
}

.setup-steps strong,
.setup-steps span {
  display: block;
}

.setup-steps strong {
  margin-bottom: 3px;
  font-size: 18px;
}

.setup-steps span {
  color: #d7e9e7;
  font-size: 15px;
  line-height: 1.45;
}

.inbox-showcase {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(660px, 1.65fr);
  align-items: center;
  gap: 56px;
  padding: 78px max(48px, calc((100vw - 1400px) / 2)) 90px;
  background: var(--soft);
}

.showcase-copy {
  max-width: 430px;
}

.showcase-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(48px, 4vw, 60px);
  line-height: 1.08;
}

.showcase-copy > p:not(.home-kicker) {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 17px;
}

.showcase-visual {
  min-width: 0;
}

.trade-row {
  display: grid;
  grid-template-columns: 285px 1fr;
  align-items: stretch;
  gap: 48px;
  padding: 42px max(48px, calc((100vw - 1400px) / 2));
  background: #fff;
}

.trade-heading h2 {
  margin: 0;
  font-size: 29px;
  line-height: 1.08;
}

.home-faq {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(560px, 1.3fr);
  gap: 90px;
  padding: 84px max(48px, calc((100vw - 1320px) / 2));
  background: var(--soft);
}

.home-faq header h2 {
  margin: 0 0 18px;
  font-size: clamp(45px, 3.8vw, 58px);
  line-height: 0.98;
}

.home-faq header > p:last-child {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.faq-list {
  border-top: 1px solid #cad9d7;
}

.faq-list details {
  border-bottom: 1px solid #cad9d7;
}

.faq-list summary {
  position: relative;
  padding: 24px 48px 24px 0;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 850;
}

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

.faq-list summary::after {
  content: '+';
  position: absolute;
  top: 18px;
  right: 4px;
  color: var(--green);
  font-size: 29px;
  font-weight: 500;
}

.faq-list details[open] summary::after {
  content: '×';
}

.faq-list details p {
  max-width: 650px;
  margin: -7px 0 24px;
  color: var(--muted);
  font-size: 16px;
}

.faq-list summary:focus-visible {
  outline: 3px solid rgba(8, 185, 111, 0.32);
  outline-offset: 4px;
}

.trade-heading .home-kicker {
  margin-bottom: 9px;
}

.trade-list {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: start;
  gap: 0;
}

.trade-list a {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 126px;
  padding: 8px clamp(10px, 1.3vw, 20px) 12px;
  border-left: 1px solid rgba(8, 35, 58, 0.11);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.trade-icon {
  display: block;
  width: 78px;
  height: 78px;
  object-fit: contain;
  color: #075347;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trade-list a:last-child .trade-icon circle {
  fill: currentColor;
  stroke: none;
}

.closing-cta {
  display: grid;
  grid-template-columns: minmax(380px, 1.6fr) auto minmax(260px, 0.8fr);
  align-items: center;
  gap: 54px;
  padding: 48px max(48px, calc((100vw - 1400px) / 2));
  background: linear-gradient(90deg, #004440, #003232);
  color: #fff;
}

.closing-cta .home-kicker {
  color: var(--green-bright);
}

.closing-cta h2 {
  margin: 0 0 10px;
  font-size: 42px;
  line-height: 0.98;
}

.closing-cta p {
  margin: 0;
  color: #dcebea;
}

.closing-cta ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.closing-cta li {
  font-size: 14px;
}

.closing-cta li::before {
  content: '✓';
  display: inline-grid;
  width: 23px;
  height: 23px;
  margin-right: 10px;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  color: #16d887;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .home-hero-copy {
    width: min(650px, 63vw);
  }

  .phone-steps {
    grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr) 30px minmax(0, 1fr) 30px minmax(0, 1fr);
    gap: 6px;
  }

  .phone {
    width: 162px;
    height: 345px;
  }

  .phone-step {
    grid-template-rows: 345px minmax(58px, auto);
  }

  .flow-arrow {
    margin-top: 149px;
  }

  .inbox-showcase {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .setup-section,
  .home-faq {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .showcase-copy {
    max-width: 620px;
  }

  .trade-row {
    grid-template-columns: 1fr;
  }

  .closing-cta {
    grid-template-columns: 1fr auto;
  }

  .closing-cta ul {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .home-hero {
    min-height: 520px;
    align-items: flex-end;
    padding: 64px 24px 54px;
    background-position: 62% center;
  }

  .home-hero::after {
    background: linear-gradient(90deg, rgba(0, 35, 43, 0.96), rgba(0, 35, 43, 0.68));
  }

  .home-hero-copy {
    width: 100%;
  }

  .home-hero-summary {
    max-width: 570px;
    font-size: 18px;
  }

  .home-hero-kicker {
    max-width: 320px;
    font-size: 16px;
  }

  .home-hero h1 {
    max-width: 590px;
    font-size: clamp(48px, 12vw, 68px);
  }

  .phone-flow {
    padding: 48px 20px 58px;
  }

  .home-hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .home-hero-actions .home-text-link {
    justify-content: center;
  }

  .home-hero-reassurance {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .phone-flow h2 {
    font-size: 38px;
  }

  .phone-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 12px;
    margin-top: 34px;
  }

  .flow-arrow {
    display: none;
  }

  .phone {
    width: min(170px, 100%);
    height: 340px;
    border-width: 5px;
  }

  .phone-step footer strong {
    font-size: 16px;
  }

  .phone-step {
    grid-template-rows: 340px minmax(62px, auto);
  }

  .inbox-showcase {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 56px 20px 72px;
  }

  .setup-section,
  .home-faq {
    padding: 56px 20px;
  }

  .setup-intro h2,
  .home-faq header h2 {
    font-size: 42px;
  }

  .setup-steps li {
    grid-template-columns: 42px 1fr;
    padding: 17px;
  }

  .setup-steps li > b {
    width: 42px;
    height: 42px;
  }

  .showcase-copy h2 {
    font-size: 45px;
  }

  .home-button {
    width: 100%;
  }

  .trade-row {
    padding: 42px 20px;
  }

  .trade-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .trade-list a {
    border-left: 0;
    border-bottom: 1px solid #dbe4e3;
    min-height: 132px;
    padding-block: 12px 16px;
  }

  .trade-icon {
    width: 74px;
    height: 74px;
  }

  .closing-cta {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 26px;
    padding: 48px 20px;
  }

  .closing-cta h2 {
    font-size: 40px;
  }

  .closing-cta ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .home-kicker,
  .home-hero-kicker {
    font-size: 16px;
  }

  .home-hero h1 {
    font-size: 46px;
  }

  .showcase-copy h2 {
    font-size: 40px;
  }

  .phone {
    width: min(150px, 100%);
    height: 315px;
    padding-inline: 9px;
  }

  .phone-step {
    grid-template-rows: 315px minmax(62px, auto);
  }

  .phone-step footer {
    justify-content: flex-start;
  }

  .phone-step footer strong {
    font-size: 13px;
  }

  .home-hero {
    min-height: 690px;
  }

  .home-hero-summary {
    font-size: 16px;
  }

  .setup-intro h2,
  .home-faq header h2 {
    font-size: 38px;
  }
}

@media (max-width: 350px) {
  .phone-steps {
    display: flex;
    width: calc(100% + 20px);
    margin-right: -20px;
    padding-right: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--green) #e4ecea;
  }

  .phone-step {
    flex: 0 0 210px;
    grid-template-rows: 365px minmax(62px, auto);
    scroll-snap-align: start;
  }

  .phone {
    width: 190px;
    height: 365px;
  }

  .phone-step footer {
    justify-content: center;
  }

  .phone-flow-swipe-hint {
    display: block;
    color: var(--green) !important;
    font-size: 14px !important;
    font-weight: 850;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-button {
    transition: none;
  }

  .home-button:hover,
  .home-button:focus-visible {
    transform: none;
  }
}

/* "Get the Trade Hook app" (store_links.py): only rendered once a store listing is live. Official badges, unmodified:
   App Store badge 48 px high (minimum 40); the Google Play PNG carries its own clear space, so 72 px gives a badge of
   the same visible size (Google: never smaller than other badges). */
.app-download {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto;
  align-items: center;
  gap: 18px 48px;
  padding: 48px max(48px, calc((100vw - 1400px) / 2));
  background: #fff;
  border-top: 1px solid #e3ecea;
}

.app-download-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.05;
}

.app-download-copy > p:not(.home-kicker) {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.app-download-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.app-badge {
  display: inline-flex;
  align-items: center;
}

.app-badge img {
  display: block;
  width: auto;
}

.app-badge-apple img {
  height: 48px;
}

.app-badge-google img {
  height: 72px;
}

.app-download-legal {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 760px) {
  .app-download {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }
}
