/* ==========================================================================
   Emergency Housing Connect — site styles
   Values taken directly from the Paper design file "EHC Site".
   ========================================================================== */

:root {
  /* Brand palette — sampled from the design, oklab values converted to hex */
  --navy-deep:    #102F6C;  /* headings */
  --navy:         #183C81;  /* brand, buttons, nav, emphasis */
  --teal:         #238EAE;  /* eyebrow labels */
  --teal-light:   #59BAD6;  /* accents, CTA button, card top rule */
  --body:         #637395;  /* body copy */
  --line:         #D7E4F2;  /* hairlines */
  --line-strong:  #B9DAEB;  /* section edges */
  --line-card:    #ACD6E8;  /* screenshot card border */
  --paper:        #F5F8FD;  /* page ground */
  --white:        #FFFFFF;
  --tint:         #E1F3F8;  /* check-circle fill */
  --card-tint:    #FCFEFF;  /* "what your team gains" panel */

  /* Elevation */
  --shadow-card:   0 22px 60px #183C8129;
  --shadow-panel:  0 12px 30px #183C810F;
  --shadow-quote:  0 12px 28px #183C8112;
  --shadow-chip:   0 10px 28px #183C8129;
  --shadow-button: 0 8px 20px #183C812E;

  /* Layout */
  --container: 1180px;
  --gutter: 28px;

  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font);
  font-size: 14px;
  line-height: 21px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}

img { max-width: 100%; display: block; }
svg { flex-shrink: 0; }

h1, h2, h3, p, figure { margin: 0; }

a { color: inherit; }

/* Visible focus for keyboard users, invisible for mouse users */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  z-index: 100;
  font-weight: 500;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Shared primitives
   -------------------------------------------------------------------------- */

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Small uppercase teal label that opens most sections */
.eyebrow {
  display: inline-flex;
  /* flex-start (not center) so the icon stays beside the FIRST line when the
     label wraps; the offset re-centres it on that line's 21px box. */
  align-items: flex-start;
  gap: 8px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  letter-spacing: 1.12px;
  text-transform: uppercase;
}
.eyebrow svg { margin-top: 2.5px; }
.eyebrow--wide { letter-spacing: 1.4px; }

h1 {
  color: var(--navy-deep);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.6px;
}

h2 {
  color: var(--navy-deep);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}

h3 {
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
}

.lede { color: var(--body); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;              /* comfortable tap target */
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn--accent  { background: var(--teal-light); border-color: var(--teal-light); color: var(--navy-deep); }

/* Floating annotation chip used over the product screenshots */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  box-shadow: var(--shadow-chip);
}

/* The bordered frame around every product screenshot */
.shot {
  background: var(--white);
  border: 1px solid var(--line-card);
  border-radius: 16px;
  overflow: clip;
  box-shadow: var(--shadow-card);
}
.shot img { width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header { background: var(--white); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.brand { display: block; flex-shrink: 0; width: 208px; }
.brand img {
  width: 100%;
  /* height:auto is required — the img's height attribute is a presentational
     hint that would otherwise beat aspect-ratio and blow the logo up. */
  height: auto;
  aspect-ratio: 4.15 / 1;        /* matches the crop used in the design */
  object-fit: cover;
  object-position: 50% 49%;
}

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav__links { display: flex; align-items: center; gap: 24px; }

/* Nav labels are short phrases — never break them across lines. */
.site-nav a,
.site-nav__static { white-space: nowrap; flex-shrink: 0; }

/* A nav item that is present but has nowhere to go yet. Muted rather than
   styled like a link, so nobody clicks it expecting something to happen. */
.site-nav__static {
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
  cursor: default;
}

.site-nav a:not(.btn) {
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:not(.btn):hover { text-decoration: underline; }

/* Below 860px there isn't room for logo + links + button on one line.
   `display: contents` lifts the nav's children into the header row so the
   "Book a demo" button can stay beside the logo (never pushed off-screen)
   while the three text links wrap onto a second line. */
@media (max-width: 859px) {
  .site-header__inner { flex-wrap: wrap; row-gap: 14px; column-gap: 20px; }
  .site-nav { display: contents; }
  .brand { order: 1; width: 176px; }
  .site-nav .btn { order: 2; margin-left: auto; }
  /* width:100% guarantees the links take their own row rather than
     squeezing in beside the button at in-between widths. */
  .site-nav__links { order: 3; width: 100%; justify-content: space-between; }
}

@media (min-width: 860px) {
  .brand { width: 280px; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding-top: 48px;
  padding-bottom: 68px;
  border-bottom: 1px solid var(--line-strong);
  background:
    radial-gradient(circle farthest-corner at 82% 28%, #58BAD638 0%, #58BAD600 28%),
    linear-gradient(180deg, #FFFFFF 0%, #F5F8FD 100%);
}

.hero__intro { max-width: 880px; margin-inline: auto; text-align: center; padding-bottom: 20px; }
.hero__intro .eyebrow { justify-content: center; }
.hero h1 { max-width: 720px; margin: 16px auto 17px; }
.hero__intro .lede { max-width: 720px; margin-inline: auto; }

/* The 54px gradient rule under the hero copy */
.rule {
  width: 54px;
  height: 2px;
  margin: 20px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--teal-light) 100%);
}

/* The framed panel holding the property-overview header and the dashboard.
   Mirrors the design's outer card: 1080px wide, 26px radius, deep shadow. */
.showcase {
  max-width: 1080px;
  margin: 30px auto 0;
  background: #FDFEFF;
  border: 1px solid #9DD1E5;
  border-radius: 26px;
  overflow: clip;
  box-shadow: 0 28px 75px #183C8129;
}

.showcase__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 25px 28px 22px;
  background: linear-gradient(120deg, #FFFFFF 0%, #E8F5F9 100%);
}
.showcase__copy h2 { margin: 5px 0 6px; }
.showcase__copy p { max-width: 650px; }

.legend {
  display: flex;
  flex-wrap: wrap;
  column-gap: 14px;
  row-gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.legend li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  white-space: nowrap;
}
.legend__dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--dot);
}

.showcase__shot { margin: 0 16px 16px; }

@media (min-width: 860px) {
  .showcase__head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
  }
  .legend { max-width: 260px; justify-content: flex-end; }
}

/* --------------------------------------------------------------------------
   Three-up strip
   -------------------------------------------------------------------------- */

.strip {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 30px #183C810D;
}

.strip__grid { display: grid; grid-template-columns: 1fr; }

.strip__item {
  display: flex;
  gap: 13px;
  padding: 26px 24px;
}
.strip__item + .strip__item { border-top: 1px solid var(--line); }

.strip__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(145deg, #EAF6FB 0%, #DEF1F7 100%);
}

.strip__title { color: var(--navy); font-size: 14px; font-weight: 500; line-height: 21px; }

@media (min-width: 860px) {
  .strip__grid { grid-template-columns: repeat(3, 1fr); }
  .strip__item + .strip__item { border-top: 0; border-left: 1px solid var(--line); }
}

/* --------------------------------------------------------------------------
   "The details multiply" section
   -------------------------------------------------------------------------- */

.problem {
  padding-block: 64px;
  background: var(--white);
  border-bottom: 1px solid #D7E4F2C2;
  text-align: center;
}
.problem .eyebrow { justify-content: center; }
.problem h2 { max-width: 770px; margin-inline: auto; }
.problem .lede { max-width: 690px; margin: 18px auto 0; }

.quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 38px;
  text-align: left;
}

.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal-light);
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--shadow-quote);
}
.quote h3 { color: var(--navy); margin-bottom: 8px; }

@media (min-width: 860px) {
  .problem { padding-block: 86px; }
  .quotes { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   Feature sections (Revenue clarity / Daily follow-up / One guest record)
   -------------------------------------------------------------------------- */

.feature { padding-block: 64px; position: relative; }
.feature--tinted { background: linear-gradient(180deg, #F7FBFD 0%, #FAFDFE 100%); }
.feature--plain  { background: var(--white); }

.feature__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}

.feature__copy { max-width: 490px; }
.feature__copy h2 { margin-block: 6px 12px; }

/* "What your team gains" panel */
.gains {
  margin-top: 28px;
  background: var(--card-tint);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 18px 20px 8px;
  box-shadow: var(--shadow-panel);
}

.gains__label {
  color: var(--teal);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.88px;
  line-height: 21px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.gains ul { list-style: none; margin: 0; padding: 0; }

.gains li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding-block: 12px;
}
.gains li + li { border-top: 1px solid #D7E4F2C7; }

.gains__check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--tint);
}

.gains h3 { color: var(--navy-deep); margin-bottom: 2px; }

.feature__media { position: relative; }

/* Chips anchored to a single screenshot */
.feature__media .chip--tr { margin-bottom: 14px; }
.feature__media .chip--br { margin-top: 14px; }

@media (min-width: 1000px) {
  .feature { padding-block: 96px; }
  /* 456 + 64 + 604 = 1124, the content width inside the 1180 container.
     These are the design's own column and gutter widths. */
  .feature__grid { grid-template-columns: 456px minmax(0, 1fr); gap: 64px; }

  .feature__media .chip--tr,
  .feature__media .chip--br {
    position: absolute;
    margin: 0;
    max-width: 230px;
    z-index: 2;
  }
  .feature__media .chip--tr { top: -22px; right: -18px; }
  .feature__media .chip--br { bottom: 22px; right: -18px; }
}

/* Hairline divider above the third feature section */
.feature__rule {
  height: 1px;
  background: #D7E4F2B8;
  max-width: 1124px;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Daily follow-up: the two stacked screenshots
   -------------------------------------------------------------------------- */

/* Mobile: no overlap — the cards simply stack, chips read as a list. */
.stack { display: grid; gap: 16px; }
.stack__chips { display: grid; gap: 10px; justify-items: start; }
.stack__chips .chip { max-width: 100%; }

@media (min-width: 1000px) {
  /* Desktop: reproduce the composed arrangement from the design.
     Percentages are derived from the 604 x 520 column in the Paper file. */
  .stack {
    position: relative;
    display: block;
    aspect-ratio: 604 / 520;
  }
  .stack__back,
  .stack__front { position: absolute; }

  .stack__back  { left: -2.4%; top: 18.2%; width: 53%; }
  .stack__front { left: 28%;   top: 34.5%; width: 72%; }

  .stack__chips { display: contents; }
  /* nowrap keeps each chip on one line — wrapping makes them grow downward
     and collide with the card they are annotating. */
  .stack__chips .chip { position: absolute; z-index: 3; white-space: nowrap; }
  .stack__chips .chip:nth-child(1) { left: 19.2%; top: 0;     }
  .stack__chips .chip:nth-child(2) { left: 11.3%; top: 8.7%;  }
  .stack__chips .chip:nth-child(3) { left: 37.1%; top: 89%;   }

  /* The back card sits behind, so it carries a lighter shadow */
  .stack__back { box-shadow: 0 8px 24px #183C811A; }
}

/* Soft glow behind the pair, matching the design's radial wash */
.stack__glow {
  display: none;
}
@media (min-width: 1000px) {
  .stack__glow {
    display: block;
    position: absolute;
    left: 4%;
    top: 10.8%;
    width: 92.4%;
    height: 85.8%;
    border-radius: 28px;
    background: radial-gradient(circle farthest-corner at 62% 38%, #58BAD638 0%, #58BAD600 64%);
    z-index: 0;
  }
}

/* --------------------------------------------------------------------------
   "Beyond the front desk" navy band
   -------------------------------------------------------------------------- */

.beyond {
  padding-block: 64px;
  background: linear-gradient(135deg, #102F6C 0%, #1F4B8B 100%);
  box-shadow: inset 0 1px 0 #59BAD64D;
}
.beyond h2 { color: var(--white); margin-block: 6px 12px; }
.beyond .lede { color: #F5F8FDB8; }

.beyond__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 36px;
}

.beyond__item { border-top: 1px solid #F5F8FD47; padding-top: 18px; }
.beyond__item h3 { color: var(--white); font-size: 18px; line-height: 1.3; margin-block: 10px 6px; }
.beyond__item p { color: #F5F8FDB8; }

@media (min-width: 640px) { .beyond__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .beyond { padding-block: 80px; }
  .beyond__grid { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------------------------------------------------------
   Purpose section
   -------------------------------------------------------------------------- */

.purpose {
  padding-block: 56px;
  background: linear-gradient(120deg, #EAF6FB 0%, #E4F4F9 100%);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.purpose__grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.purpose h2 { margin-top: 10px; }

.purpose__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  color: var(--navy);
  font-weight: 500;
}

@media (min-width: 1000px) {
  .purpose { padding-block: 72px; }
  .purpose__grid { grid-template-columns: 0.8fr 1.2fr; gap: 60px; }
}

/* --------------------------------------------------------------------------
   Closing CTA + demo request form
   -------------------------------------------------------------------------- */

.cta {
  padding-block: 64px;
  border-top: 1px solid #59BAD657;
  background:
    radial-gradient(circle farthest-corner at 50% 0%, #58BAD62E 0%, #58BAD600 38%),
    linear-gradient(135deg, #0B285F 0%, #183C81 100%);
  text-align: center;
}
.cta .eyebrow { color: var(--teal-light); justify-content: center; }
.cta h2 { color: var(--white); max-width: 760px; margin: 6px auto 12px; }
.cta .lede { color: #FFFFFFC7; max-width: 620px; margin-inline: auto; }

.form {
  max-width: 640px;
  margin: 32px auto 0;
  text-align: left;
}

.form__row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.form__field { display: grid; gap: 6px; margin-bottom: 16px; }

.form label {
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
}
.form label span { color: #FFFFFF8F; font-weight: 400; }

.form input,
.form textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid #FFFFFF3D;
  border-radius: 10px;
  background: #FFFFFF14;
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  line-height: 21px;
}
.form textarea { min-height: 104px; resize: vertical; }

.form input::placeholder,
.form textarea::placeholder { color: #FFFFFF7A; }

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--teal-light);
  background: #FFFFFF1F;
}

.form__actions { display: flex; justify-content: center; margin-top: 8px; }
.form__actions .btn { width: 100%; }

.form__note {
  margin-top: 14px;
  color: #FFFFFF99;
  font-size: 13px;
  text-align: center;
}

.form__status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 500;
  text-align: center;
}
.form__status[data-state="ok"]   { background: #59BAD629; color: var(--white); }
.form__status[data-state="err"]  { background: #FFFFFF1F; color: var(--white); }
.form__status[hidden] { display: none; }

@media (min-width: 640px) {
  .form__row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .form__row .form__field { margin-bottom: 0; }
  .form__row { margin-bottom: 16px; }
  .form__actions .btn { width: auto; min-width: 240px; }
}

@media (min-width: 1000px) { .cta { padding-block: 86px; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-deep);
  color: #F5F8FD8F;
  padding-block: 24px;
  font-size: 13px;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   Government page
   -------------------------------------------------------------------------- */

/* Text-only hero — no product shot, so it runs tighter than the home hero. */
.page-hero {
  padding-block: 56px 48px;
  border-bottom: 1px solid var(--line-strong);
  background:
    radial-gradient(circle farthest-corner at 82% 28%, #58BAD638 0%, #58BAD600 32%),
    linear-gradient(180deg, #FFFFFF 0%, #F5F8FD 100%);
}
.page-hero__inner { max-width: 760px; }
.page-hero h1 { margin: 12px 0 16px; }
.page-hero .lede { max-width: 660px; }

.section { padding-block: 56px; }
.section--white  { background: var(--white); border-block: 1px solid var(--line); }
.section--tinted { background: linear-gradient(180deg, #F7FBFD 0%, #FAFDFE 100%); }
.section__head { max-width: 720px; margin-bottom: 32px; }
.section__head h2 { margin: 6px 0 12px; }

@media (min-width: 1000px) { .section { padding-block: 80px; } }

/* Numbered "ways to work together" cards */
.ways {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.way {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--shadow-quote);
}
.way__num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--navy);
  font-size: 13px;
  font-weight: 500;
}
.way h3 { color: var(--navy-deep); margin-bottom: 6px; }

@media (min-width: 760px) { .ways { grid-template-columns: repeat(2, 1fr); } }

/* Two-column prose block for the "why this keeps happening" argument */
.argument { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.argument p + p { margin-top: 14px; }
@media (min-width: 1000px) {
  .argument { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
}

/* Plain checked list, reused for the accountability points */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding-block: 12px;
}
.checks li + li { border-top: 1px solid #D7E4F2C7; }
.checks h3 { color: var(--navy-deep); margin-bottom: 2px; }

/* ==========================================================================
   Home page — coalition positioning
   A warmer, bolder language than the software pages: cream ground, dark navy
   panel and peach accent. Scoped to .home-* so nothing here changes
   the existing pages.
   ========================================================================== */

:root {
  --cream:        #F1EFEA;  /* page ground */
  --panel:        #16283F;  /* hero panel */
  --peach:        #F8CDB5;  /* emphasised headline line */
  --sky-deep:     #1F6A85;  /* eyebrow, on cream — 5.3:1, the light one fails there */
  --warm-body:    #6B6B66;  /* body copy on cream — 4.7:1 */
  --warm-line:    #E2DFD8;  /* hairlines on cream */
}

.home { background: var(--cream); }

/* ---- Header ------------------------------------------------------------ */

.home-header { background: var(--white); }
.home-header__inner {
  display: flex;
  align-items: center;
  padding-block: 26px;
  /* Match the hero/benefits/contact bands (1280 / 24) rather than the
     shared .container (1180 / 28), so the logo lines up with the panels. */
  max-width: 1280px;
  padding-inline: 24px;
}
/* order:0 defends against the software header's `@media (max-width:859px)`
   rule, which sets order:1 on a bare .brand and would otherwise push this
   logo after the nav on small screens. */
.home-header .brand { order: 0; width: min(340px, 52vw); }

@media (max-width: 480px) {
  .home-header__inner { padding-block: 20px; gap: 14px; padding-inline: 16px; }
  .home-header .brand { width: min(340px, 46vw); }
}

/* ---- Hero -------------------------------------------------------------- */

.home-hero { padding-block: 0 48px; }

.home-hero__band {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}

.home-hero__panel {
  background: var(--panel);
  border-radius: 26px;
  padding: 64px 40px 72px;
  text-align: center;
}

.home-hero h2 {
  color: var(--white);
  /* 24px min so each of the three statements still holds its own line on a
     narrow phone — wrapping mid-phrase breaks the parallel structure. */
  font-size: clamp(24px, 5.2vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 auto;
  max-width: 16em;
}
/* Each phrase holds its own line, the way the design sets it. */
.home-hero h2 span { display: block; }
.home-hero h2 .is-peach { color: var(--peach); }

.home-hero__sub {
  max-width: 660px;
  margin: 28px auto 0;
  color: #FFFFFFD9;
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .home-hero__band { padding-inline: 16px; }
  .home-hero__panel { padding: 40px 18px 46px; border-radius: 18px; }
  .home-hero__sub { font-size: 15px; margin-top: 20px; }
}

/* ---- What we offer: expandable rows ------------------------------------ */

/* 20px here + the hero's 48px below its panel = 68px of air above the
   heading, roughly 1.5x its own size. 64px here read as a gap. */
.home-offer { padding-block: 20px 88px; }

.home-offer__inner { max-width: 1280px; margin-inline: auto; padding-inline: 24px; }

.home-offer__head { max-width: 860px; margin-bottom: 48px; }

.home-offer__heading {
  margin: 0;
  color: var(--panel);
  /* Sized up now that the label is two short words rather than a sentence;
     tracking eases off as the type grows, which it needs to at this size. */
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.home-offer__list { border-top: 1px solid var(--warm-line); }
.home-offer__row { border-bottom: 1px solid var(--warm-line); }

/* Native disclosure: works with no JavaScript, and the closed copy is still
   in the page source for search engines. */
.home-offer__row > summary,
.home-offer__summary {
  list-style: none;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 28px;
  /* Areas, not nesting — summary may only hold phrasing and heading content,
     so the title is a real <h3> sitting directly in the grid. */
  grid-template-areas: "num title chev" "num sub chev";
  column-gap: 18px;
  align-items: center;
  padding: 22px 4px;
}
.home-offer__num   { grid-area: num; }
.home-offer__title { grid-area: title; }
.home-offer__sub   { grid-area: sub; }
.home-offer__chev  { grid-area: chev; }
.home-offer__row > summary { cursor: pointer; }
.home-offer__row > summary::-webkit-details-marker { display: none; }
/* A row with nothing behind it yet: no chevron, no pointer, not clickable. */
.home-offer__row--static .home-offer__summary { cursor: default; }
.home-offer__row > summary:focus-visible { outline: 2px solid var(--sky-deep); outline-offset: 2px; border-radius: 6px; }

.home-offer__num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}
.home-offer__title { margin: 0; color: var(--panel); font-size: 18px; font-weight: 700; line-height: 1.35; }
.home-offer__sub   { display: block; color: var(--warm-body); font-size: 14px; line-height: 1.5; margin-top: 2px; }

.home-offer__chev {
  justify-self: end;
  width: 22px; height: 22px;
  position: relative;
  color: var(--panel);
}
.home-offer__chev::before,
.home-offer__chev::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .18s ease, opacity .18s ease;
}
.home-offer__chev::after { transform: rotate(90deg); }
.home-offer__row[open] .home-offer__chev::after { transform: rotate(0deg); opacity: 0; }

.home-offer__body {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: start;
  padding: 2px 4px 32px 56px;
}
.home-offer__body p:not(.home-offer__label) { color: var(--warm-body); font-size: 15px; line-height: 1.65; }
/* Small label introducing a list inside an opened row */
.home-offer__label {
  color: var(--panel);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 22px;
}

.home-offer__body ul { list-style: none; margin: 12px 0 0; padding: 0; }
.home-offer__body li strong { color: var(--panel); font-weight: 700; }

/* Link out of an opened row to the page that covers it in full */
.home-offer__more { margin-top: 18px; }
.home-offer__more a {
  color: var(--sky-deep);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--peach);
  padding-bottom: 1px;
}
.home-offer__more a:hover { border-bottom-color: var(--sky-deep); }
.home-offer__body li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 7px;
  color: var(--warm-body);
  font-size: 15px;
  line-height: 1.5;
}
.home-offer__body li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--peach);
}

/* Slot for an image, drawn in CSS so no placeholder file has to be shipped. */
.home-offer__image {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  border: 1px solid var(--warm-line);
  background: repeating-linear-gradient(45deg, #E6E3DC 0 12px, #EDEAE3 12px 24px);
  display: grid;
  place-items: center;
  color: #9A968E;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .home-offer { padding-block: 16px 64px; }
  .home-offer__head { margin-bottom: 32px; }
  .home-offer__body { grid-template-columns: 1fr; gap: 24px; padding-left: 4px; }
  .home-offer__row > summary { grid-template-columns: 34px minmax(0, 1fr) 24px; gap: 14px; }
  .home-offer__title { font-size: 16px; }
}

/* ---- Contact ----------------------------------------------------------- */

.home-contact { padding-block: 8px 72px; }

.home-contact__band {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}

.home-contact__panel {
  background: var(--panel);
  border-radius: 26px;
  padding: 56px 40px 60px;
  text-align: center;
}

.home-contact h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Peach button — the hero's accent, carried onto the closing panel. */
.btn--peach { background: var(--peach); border-color: var(--peach); color: var(--panel); }

@media (max-width: 700px) {
  .home-contact__band { padding-inline: 16px; }
  .home-contact__panel { padding: 40px 20px 44px; border-radius: 18px; }
}

/* ==========================================================================
   Platform hero
   Palette sampled from the supplied mockup, not guessed.
   ========================================================================== */

:root {
  --plat-ground:  #F8FDFE;
  --plat-ink:     #050E39;
  --plat-body:    #3C4A5E;   /* 8.7:1 on the ground */
  --plat-teal:    #237179;
  --plat-tint:    #E7F1F2;   /* icon tile */
  --plat-line:    #D9E7EA;
}

.plat {
  padding-block: 56px 64px;
  background:
    radial-gradient(circle farthest-corner at 50% 8%, #C9E6EA40 0%, #C9E6EA00 52%),
    var(--plat-ground);
}

.plat__band { max-width: 1280px; margin-inline: auto; padding-inline: 24px; }

/* ---- Copy -------------------------------------------------------------- */

.plat__copy { text-align: center; }

.plat h1 {
  margin: 0 auto 18px;
  color: var(--plat-ink);
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 15em;
}

.plat__sub {
  max-width: 42em;
  margin-inline: auto;
  color: var(--plat-body);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
}

/* ---- Stage: screenshot with callouts either side ----------------------- */

.plat__stage { position: relative; margin-top: 44px; }

.plat__shot {
  margin: 0 auto;
  border-radius: 14px;
  overflow: clip;
  background: var(--white);
  border: 1px solid var(--plat-line);
  box-shadow: 0 26px 60px #0A3A4022;
}
.plat__shot img { width: 100%; height: auto; }

.plat__callouts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }

.plat__callout {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--plat-line);
  border-radius: 14px;
  padding: 13px 16px;
  box-shadow: 0 10px 24px #0A3A401A;
}

/* Fixed slot keeps every icon on the same vertical lane, whatever the
   label length. */
.plat__callout-icon {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--plat-tint);
  color: var(--plat-teal);
}

.plat__callout-label {
  color: var(--plat-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

/* ---- Desktop: two lanes flanking the shot ------------------------------ */

@media (min-width: 1100px) {
  .plat { padding-block: 64px 76px; }
  .plat__stage { margin-top: 52px; }

  .plat__shot { width: 58%; }

  .plat__callouts { display: contents; }

  /* Width tuned against the shot so roughly 25-35px of air sits between the
     callout and the card edge -- close enough to read as attached, not
     touching it. */
  .plat__callout {
    position: absolute;
    width: 200px;
    z-index: 2;
  }

  /* Seven does not divide evenly, so: four left, three right. Each lane is
     evenly distributed within itself, and the three sit in the gaps of the
     four rather than lining up with them. */
  .plat__callout--a,
  .plat__callout--b,
  .plat__callout--c,
  .plat__callout--d { left: 0; }
  .plat__callout--e,
  .plat__callout--f,
  .plat__callout--g { right: 0; }

  .plat__callout--a { top: 8%;  }
  .plat__callout--b { top: 31%; }
  .plat__callout--c { top: 54%; }
  .plat__callout--d { top: 77%; }

  .plat__callout--e { top: 14%; }
  .plat__callout--f { top: 43%; }
  .plat__callout--g { top: 71%; }
}

@media (min-width: 1340px) {
  .plat__shot { width: 60%; }
  .plat__callout { width: 210px; }
}

/* ---- Below the lane breakpoint: callouts stack under the shot ---------- */

@media (max-width: 1099px) {
  .plat__callouts { grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
}

@media (max-width: 640px) {
  .plat { padding-block: 36px 44px; }
  .plat__band { padding-inline: 16px; }
  .plat__stage { margin-top: 32px; }
  .plat__callouts { grid-template-columns: 1fr; }
}
