/* ==========================================================================
   ShadowQS — Homepage styles
   Design tokens, buttons, logo and the shared header/footer live in
   global.css. This file only holds homepage-specific layout and components.
   Load order on index.html: global.css → main.css
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--navy);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0;
}

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

p {
  color: var(--grey);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head p {
  margin-top: 16px;
  font-size: 1.08rem;
}

/* --------------------------------------------------------------------------
   Shared modifiers
   -------------------------------------------------------------------------- */
.dark {
  background: var(--navy);
  color: #fff;
}

.dark h2,
.dark h3 {
  color: #fff;
}

.dark p {
  color: var(--navy-body);
}

.bg-soft {
  background: var(--bg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: 96px 0 84px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F7FE 100%);
}

.hero .container {
  text-align: center;
}

.hero h1 {
  max-width: 980px;
  margin: 0 auto;
}

.hero h1 .accent {
  color: var(--blue);
}

.hero-lead {
  margin: 26px auto 36px;
  font-size: 1.15rem;
  max-width: 780px;
  line-height: 1.6;
}

.hero-lead strong {
  color: var(--navy);
  font-weight: 700;
}

.hero-scope {
  margin: 34px auto 0;
  max-width: 620px;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--grey);
}

.trust-strip {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: .84rem;
  color: var(--grey);
}

.trust-strip span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero .trust-strip {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   "Just ask" animated demo
   -------------------------------------------------------------------------- */
.ad {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 26px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .30);
  min-height: 430px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.ad-q {
  background: var(--navy);
  color: #fff;
  font-size: .92rem;
  padding: 12px 16px;
  border-radius: 14px 14px 3px 14px;
  margin-bottom: 20px;
  line-height: 1.5;
  align-self: flex-end;
  max-width: 88%;
  min-height: 46px;
}

.ad-cur {
  display: inline-block;
  width: 8px;
  background: #7FA4FF;
  margin-left: 2px;
  animation: adblink .8s infinite;
}

@keyframes adblink {
  50% {
    opacity: 0;
  }
}

.ad-think {
  color: var(--grey);
  font-size: .85rem;
  opacity: 0;
  transition: .3s;
}

.ad-think.on {
  opacity: 1;
}

.ad-a {
  opacity: 0;
  transition: opacity .4s;
}

.ad-a.show {
  opacity: 1;
}

.ad-row {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
  color: var(--navy);
  line-height: 1.5;
  align-items: baseline;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
}

.ad-a.show .ad-row {
  opacity: 1;
  transform: none;
}

/* Staggered reveal via nth-child instead of an inline var() transition-delay,
   which iOS Safari fails to apply — leaving the rows stuck at opacity:0. */
.ad-a.show .ad-row:nth-child(1) { transition-delay: 0s; }
.ad-a.show .ad-row:nth-child(2) { transition-delay: .18s; }
.ad-a.show .ad-row:nth-child(3) { transition-delay: .36s; }
.ad-a.show .ad-row:nth-child(4) { transition-delay: .54s; }
.ad-a.show .ad-row:nth-child(5) { transition-delay: .72s; }
.ad-a.show .ad-row:nth-child(6) { transition-delay: .9s; }

.ad-row:last-of-type {
  border-bottom: none;
}

.ad-l {
  color: var(--grey);
  flex: none;
  width: 74px;
  font-weight: 600;
  font-size: .83rem;
}

.ad-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 8px;
  position: relative;
  top: -1px;
}

.ad-src {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--grey);
  opacity: 0;
  transition: .4s;
  transition-delay: .5s;
}

.ad-a.show ~ .ad-src {
  opacity: 1;
}

.try-label {
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: #7FA4FF;
  margin: 40px 0 14px;
  text-transform: uppercase;
}

.try-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
}

.try-chips span {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #DCE4F5;
  font-size: .84rem;
  padding: 9px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: .2s;
}

.try-chips span:hover {
  border-color: #7FA4FF;
}

.try-chips span.on {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.boundary-ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: center;
  margin-top: 38px;
  font-size: .86rem;
  color: var(--navy-body);
}

/* --------------------------------------------------------------------------
   Getting started (steps)
   -------------------------------------------------------------------------- */
.getting-started {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.getting-started .container {
  text-align: center;
}

.getting-started h2 {
  margin-bottom: 56px;
}

.go-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.go-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 30px 30px;
  width: 252px;
  box-shadow: 0 16px 40px rgba(15, 31, 61, .08);
  text-align: left;
  overflow: hidden;
}

.go-num {
  font-size: .72rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.go-ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
}

.go-card h3 {
  font-size: 1.08rem;
  position: relative;
  margin-bottom: 4px;
}

.go-card p {
  font-size: .88rem;
  position: relative;
  margin: 0;
}

.go-arrow {
  align-self: center;
  color: var(--blue);
  font-weight: 800;
  font-size: 1.6rem;
}

@media (max-width: 860px) {
  .go-arrow {
    display: none;
  }

  .ukgrid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Weekly briefing
   -------------------------------------------------------------------------- */
.wb {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 31, 61, .12);
  overflow: hidden;
}

.wb-h {
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .8rem;
  font-weight: 600;
  flex-wrap: wrap;
}

.wb-h span:last-child {
  color: var(--navy-body);
  font-weight: 500;
}

.wb-i {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  font-size: .94rem;
  color: var(--navy);
  line-height: 1.45;
}

.wb-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

.wb-f {
  padding: 13px 20px;
  background: #FAFBFD;
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue);
}

.wbr {
  max-width: 500px;
  margin: 18px auto 0;
  background: var(--blue-soft);
  border-radius: 14px;
  padding: 20px 24px;
  transform: translateX(28px);
}

@media (max-width: 700px) {
  .wbr {
    transform: none;
  }
}

.wbr-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--grey);
  margin-bottom: 10px;
}

.wbr p {
  font-size: 1.02rem;
  color: var(--navy);
  line-height: 1.55;
  font-weight: 500;
}

.wbr-sig {
  margin-top: 12px;
  font-size: .8rem;
  color: var(--grey);
}

/* --------------------------------------------------------------------------
   Claim band
   -------------------------------------------------------------------------- */
.claim-band {
  background: var(--navy);
  padding: 92px 0;
  text-align: center;
}

.claim-band .container {
  max-width: 780px;
}

.claim-band h2 {
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.claim-band h2 .hl {
  color: #7FA4FF;
}

.claim-band p {
  margin-top: 18px;
  font-size: 1.15rem;
  color: var(--navy-body);
}

/* --------------------------------------------------------------------------
   Built for UK construction
   -------------------------------------------------------------------------- */
.ukgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 860px;
  margin: 0 auto;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.step h3 {
  margin-bottom: 10px;
}

.step p {
  font-size: .94rem;
}

.ukchips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 800px;
  margin: 48px auto 0;
}

.ukchips span {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: .85rem;
  font-weight: 600;
  padding: 8px 17px;
  border-radius: 100px;
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.final-cta {
  text-align: center;
  background: linear-gradient(180deg, #0F1F3D 0%, #16294F 100%);
}

.final-cta p {
  margin: 18px auto 32px;
  max-width: 440px;
}
