/* The home page (/), rebuilt 2026-10-08 on the section rhythm of the 10XBNB DFY
 * site: header, photo hero, video, then alternating bands of centred copy and
 * card grids, FAQ, closing call to action, footer.
 *
 * Loaded AFTER vsl.css and scoped under .home. The six palette tokens in
 * vsl.css stay the only source of colour; everything here derives from them.
 * The player, the scheduler and the fallback link are vsl.css's and are not
 * restyled here.
 *
 * MOBILE FIRST. The base rules are the 390px layout; the min-width blocks at
 * the bottom widen it.
 */

.home {
  --accent-bright: color-mix(in srgb, var(--accent) 58%, var(--text));
  --line: color-mix(in srgb, var(--accent) 28%, transparent);
  --band: color-mix(in srgb, var(--deep) 38%, var(--bg));
  --header-h: 96px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

html:has(.home) {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

.home img {
  max-width: 100%;
  height: auto;
  display: block;
}

.home .h-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.home .h-narrow {
  max-width: 760px;
}

.home .h-center {
  text-align: center;
}

/* Buttons: off-white on the accent green, which holds contrast at this size
 * where the funnel's dark-on-green does not. */
.home .btn {
  color: var(--text);
  font-size: 0.9375rem;
  padding: 11px 20px;
  border-radius: 999px;
  white-space: nowrap;
}

.home .h-btn-lg {
  font-size: 1.0625rem;
  padding: 15px 30px;
  white-space: normal;
  text-align: center;
}

/* 1. Header. Two rows at phone width: brand and button, then the links. */
.home .h-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.home .h-header-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand cta" "nav nav";
  align-items: center;
  gap: 8px 12px;
  padding-top: 10px;
  padding-bottom: 8px;
}

.home .h-brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* The quill mark is black line art; on the dark header it is inverted to the
 * off-white of the type beside it. */
.home .h-brand img {
  filter: invert(1) brightness(0.94);
}

.home .h-header-cta {
  grid-area: cta;
}

.home .h-nav {
  grid-area: nav;
  display: flex;
  justify-content: center;
  gap: 26px;
}

.home .h-nav a {
  color: var(--text-70);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  padding: 4px 0;
}

.home .h-nav a:hover {
  color: var(--text);
}

/* 3. Hero, under the video band since 2026-10-13. Photo first at phone width,
 * photo LEFT from 900px. */
.home .h-hero {
  border-top: 1px solid var(--line);
  padding: 44px 0 44px;
  background: linear-gradient(180deg, var(--band), var(--bg));
}

.home .h-hero-grid {
  display: grid;
  gap: 24px;
}

.home .h-hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--glow);
}

.home .h-hero-copy {
  text-align: center;
}

.home .h-hero h1 {
  color: var(--text);
  font-size: clamp(1.75rem, 8vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-align: inherit;
  margin: 0;
}

.home .h-hero-line {
  display: block;
  white-space: nowrap;
}

.home .h-hero-yes {
  color: var(--accent-bright);
  margin-top: 4px;
}

.home .h-emoji {
  font-size: 0.82em;
}

.home .h-hero-sub {
  color: var(--text-70);
  font-size: 1.0625rem;
  margin: 16px auto 24px;
  max-width: 34rem;
}

/* Section rhythm. */
.home .h-section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.home .h-title {
  color: var(--text);
  font-size: clamp(1.625rem, 6.4vw, 2.5rem);
  font-weight: 800;
  font-stretch: normal;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

.home .h-title-soft {
  display: block;
  color: var(--accent-bright);
}

.home .h-lede {
  color: var(--text-70);
  font-size: 1.0625rem;
  margin: 14px auto 0;
  max-width: 44rem;
}

/* 2. The video band, the FIRST thing on the page since 2026-10-13. Before
 * that it sat under a 650 to 710px photo hero, so the player started below the
 * fold on a phone and on a desktop, and it was capped at 330px (phone) and
 * 510px (desktop), the sizes of the old single-column funnel.
 *
 * The player is now as wide as the column allows, up to 880px, and is ALSO
 * limited by the height of the window, so header + heading + whole player fit
 * on one screen: 230px is the header, the band's top padding, a two-line
 * heading and a margin under the player. The 300px floor is for a phone held
 * sideways, where fitting all of it is not possible and a readable player
 * matters more. The scheduler below keeps the funnel's own 510px column. */
.home .h-vsl {
  background: var(--bg);
}

/* Two classes on purpose: the .h-section padding rules at 640px and 900px sit
 * later in this file and would otherwise put 72px and 88px above the heading. */
.home .h-section.h-vsl {
  border-top: 0;
  padding-top: 16px;
}

.home .h-vsl-inner {
  max-width: calc(880px + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.home .h-vsl .h-title {
  text-align: center;
  font-size: clamp(1.375rem, 5.6vw, 2.25rem);
  margin-bottom: 0;
}

.home .h-vsl .vsl-subhead {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-top: 12px;
}

.home .h-vsl .vsl-player {
  width: 100%;
  max-width: min(880px, max(300px, calc((100vh - 230px) * 16 / 9)));
  margin-top: 12px;
}

.home .h-vsl .vsl-section {
  max-width: var(--player-max);
  margin-left: auto;
  margin-right: auto;
}

.home .h-vsl .vsl-section h2 {
  font-size: 1.25rem;
  color: var(--accent-bright);
}

.home .h-vsl .vsl-lede,
.home .h-vsl .vsl-fallback,
.home .h-vsl .vsl-faq-link,
.home .h-vsl .vsl-estimate-note {
  font-size: 0.875rem;
}

.home .vsl-fallback a,
.home .vsl-credential a,
.home .vsl-foot a,
.home .h-answer a,
.home .h-faq-more a,
.home .h-contact a {
  color: var(--accent-bright);
}

/* 4, 6. Centred statement bands. */
.home .h-earn,
.home .h-protect {
  background: var(--band);
}

.home .h-shield {
  display: block;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  background: var(--accent-bright);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5 3.5 4.7v6.4c0 5.3 3.6 9.6 8.5 11.4 4.9-1.8 8.5-6.1 8.5-11.4V4.7L12 1.5zm-1.2 14.3-3.6-3.6 1.5-1.5 2.1 2.1 4.5-4.5 1.5 1.5-6 6z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5 3.5 4.7v6.4c0 5.3 3.6 9.6 8.5 11.4 4.9-1.8 8.5-6.1 8.5-11.4V4.7L12 1.5zm-1.2 14.3-3.6-3.6 1.5-1.5 2.1 2.1 4.5-4.5 1.5 1.5-6 6z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 5. The network logo band (only in the HTML when the flag is on). A light
 * band, because these marks are drawn for white pages; greyscale as on the
 * DFY page. */
.home .h-network {
  background: var(--text);
}

.home .h-network .h-title {
  color: var(--bg);
}

.home .h-logo-grid {
  list-style: none;
  padding: 0;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 22px;
  align-items: center;
  max-width: 900px;
}

.home .h-logo-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home .h-logo-grid img {
  width: auto;
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.8;
}

/* 7, 8. Photo cards. The photo is cropped by object-fit, never stretched. */
.home .h-cards {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.home .h-photo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.home .h-photo-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.home .h-photo-card-body {
  padding: 18px 18px 20px;
}

.home .h-photo-card h3,
.home .h-icon-card h3 {
  color: var(--text);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px;
}

.home .h-photo-card p,
.home .h-icon-card p {
  color: var(--text-70);
  font-size: 0.9688rem;
  margin: 0;
}

.home .h-accom,
.home .h-faq {
  background: var(--band);
}

/* 9. Icon cards. The six DFY icons are black line art, so they are used as
 * masks and painted in the palette rather than inverted. */
.home .h-icon-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
}

.home .h-icon {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: var(--accent-bright);
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.home .h-icon-getting-started { -webkit-mask-image: url("/assets/img/dfy/icon-getting-started.svg"); mask-image: url("/assets/img/dfy/icon-getting-started.svg"); }
.home .h-icon-guest-experience { -webkit-mask-image: url("/assets/img/dfy/icon-guest-experience.svg"); mask-image: url("/assets/img/dfy/icon-guest-experience.svg"); }
.home .h-icon-marketing { -webkit-mask-image: url("/assets/img/dfy/icon-marketing.svg"); mask-image: url("/assets/img/dfy/icon-marketing.svg"); }
.home .h-icon-housekeeping { -webkit-mask-image: url("/assets/img/dfy/icon-housekeeping.svg"); mask-image: url("/assets/img/dfy/icon-housekeeping.svg"); }
.home .h-icon-guest-screening { -webkit-mask-image: url("/assets/img/dfy/icon-guest-screening.svg"); mask-image: url("/assets/img/dfy/icon-guest-screening.svg"); }
.home .h-icon-maintenance { -webkit-mask-image: url("/assets/img/dfy/icon-maintenance.svg"); mask-image: url("/assets/img/dfy/icon-maintenance.svg"); }

/* 10. FAQ. The side photo only appears from 900px. */
.home .h-faq-side {
  display: none;
}

.home .h-faq .h-title {
  text-align: center;
}

.home .h-faq-list {
  margin-top: 24px;
}

.home .h-faq-list details {
  border-bottom: 1px solid var(--line);
}

.home .h-faq-list details:first-child {
  border-top: 1px solid var(--line);
}

.home .h-faq-list summary {
  list-style: none;
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
  font-size: 1.0313rem;
  line-height: 1.35;
  padding: 16px 34px 16px 0;
  position: relative;
}

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

.home .h-faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-bright);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
}

.home .h-faq-list details[open] summary::after {
  content: "\2212";
}

.home .h-faq-list summary:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.home .h-answer {
  color: var(--text-70);
  font-size: 0.9688rem;
  padding: 0 0 18px;
}

.home .h-answer p {
  margin: 0 0 10px;
}

.home .h-answer p:last-child {
  margin-bottom: 0;
}

.home .h-answer ol,
.home .h-answer ul {
  margin: 0 0 10px;
  padding-left: 20px;
}

.home .h-answer li {
  margin-bottom: 6px;
}

.home .h-answer strong {
  color: var(--text);
}

.home .h-faq-more {
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
  margin: 22px 0 0;
}

/* 11. The closing band, over the DFY closing photo, darkened so the type
 * holds. */
.home .h-final {
  background:
    linear-gradient(color-mix(in srgb, var(--bg) 78%, transparent), color-mix(in srgb, var(--bg) 86%, transparent)),
    url("/assets/img/dfy/final-cta-1600.webp") center / cover no-repeat;
  padding: 72px 0;
}

.home .h-final .h-btn-lg {
  margin-top: 26px;
}

/* 12. Footer. */
.home .h-footer {
  border-top: 1px solid var(--line);
  padding: 8px 0 36px;
}

.home .h-footer .vsl-credential,
.home .h-footer .vsl-foot {
  max-width: 34rem;
}

.home .h-contact {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 10px 0 0;
}

.home .h-contact span {
  margin: 0 8px;
  opacity: 0.5;
}

.home a:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

/* Tablet. */
@media (min-width: 640px) {
  .home .h-cards-4,
  .home .h-cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home .h-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .home .h-section {
    padding: 72px 0;
  }
  .home .h-section.h-vsl {
    padding-top: 20px;
  }
}

/* Desktop: one header row, photo-left hero, full card rows, FAQ beside its
 * photo. */
@media (min-width: 900px) {
  html:has(.home) {
    scroll-padding-top: 84px;
  }
  .home .h-header-row {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav cta";
    gap: 24px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .home .h-nav {
    justify-content: flex-end;
    gap: 32px;
  }
  .home .h-nav a {
    font-size: 0.9375rem;
  }
  .home .h-hero {
    padding: 72px 0 72px;
  }
  .home .h-section.h-vsl {
    padding-top: 24px;
  }
  .home .h-hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 52px;
  }
  .home .h-hero-media img {
    aspect-ratio: 4 / 5;
  }
  .home .h-hero-copy {
    text-align: left;
  }
  .home .h-hero-sub {
    margin-left: 0;
    font-size: 1.1875rem;
  }
  .home .h-hero h1 {
    font-size: clamp(2.5rem, 4.3vw, 3.5rem);
  }
  .home .h-cards-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .home .h-cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .home .h-logo-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .home .h-section {
    padding: 88px 0;
  }
  .home .h-lede {
    font-size: 1.125rem;
  }
  .home .h-faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: start;
  }
  .home .h-faq-side {
    display: block;
    position: sticky;
    top: 104px;
  }
  .home .h-faq-side img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--line);
  }
  .home .h-faq .h-title {
    text-align: left;
  }
  .home .h-final {
    padding: 112px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.home) {
    scroll-behavior: auto;
  }
}

/* TEXT US (TEXT_US_CTA). The button is the whole action on a phone; a desktop
   also gets the number and a QR code that opens the same sms: link. */
.text-us { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 18px; text-align: center; }
.home .btn.text-us-btn { display: block; text-align: center; line-height: 1.3; width: 100%; max-width: 420px; font-size: 19px; padding: 18px 20px; }
.text-us-desktop { display: none; align-items: center; gap: 18px; }
.text-us-qr svg { display: block; width: 168px; height: 168px; border-radius: 8px; }
.text-us-number { margin: 0; max-width: 260px; text-align: left; color: var(--ink); }
.text-us-small { margin: 0; font-size: 12.5px; color: var(--muted); }
.text-us-book { text-align: center; }
@media (min-width: 900px) and (hover: hover) {
  .text-us-desktop { display: flex; }
}
.text-us-nowrap { white-space: nowrap; }
