/* ============================================================
   NewDesign1 — Slough App re-skin of the Airbnb Services page
   Loads after shared.css. All page-specific classes are nd-*.
   ============================================================ */

:root {
  --nd-ph-bg: #f7f7f7;            /* exact background of SloughApp_1.png */
  --nd-radius: 24px;
  --nd-gap: 120px;
}

.nd { color: var(--ink-2); }
.nd h1, .nd h2 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; color: var(--ink); }
.nd h1 { font-size: clamp(2.5rem, 4.6vw, 3.75rem); }
.nd h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); margin-bottom: 0; }
.nd h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }

/* ---------- Layout ---------- */
.nd-wrap { max-width: 1120px; margin: 0 auto; }
.nd-wrap-narrow { max-width: 760px; }
.nd-section { padding: var(--nd-gap) 24px; }
.nd-section-tight { padding-top: 0; }
.nd-head { text-align: center; margin: 0 auto 56px; max-width: 760px; }
.nd-head p {
  margin: 20px auto 0;
  max-width: 540px;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.nd-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  border: 0;
  background: var(--brand-gradient);
  background-size: 200% 200%;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, background-position 0.4s;
}
.nd-nav .nav-cta:hover {
  background: var(--brand-gradient);
  background-size: 200% 200%;
  background-position: 100% 100%;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(47, 34, 225, 0.28);
}


/* ---------- Nav (logo + one pill, like the reference) ---------- */
.nd-nav .nav-inner { padding: 14px 24px; }
.nd-nav .brand { color: #222222; }
.nd-nav .nav-cta { display: inline-flex; padding: 12px 22px; font-size: 0.9rem; }
@media (min-width: 880px) {
  .nd-nav .nav-links { display: none; }
  .nd-nav .nav-inner { grid-template-columns: 1fr 1fr; }
}

/* ---------- 1. Intro (wordmark + photo panel) ---------- */
.nd-intro {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 55%, var(--nd-ph-bg) 100%);
  overflow: hidden;
}
.nd-intro-text {
  padding: 64px 24px 40px;
  text-align: left;
}
/* logo2.png has the wordmark centred with ~20% side and ~35% top/bottom padding;
   negative margins trim that padding so it aligns with the tagline. */
.nd-wordmark-img {
  --w: clamp(240px, 70vw, 420px);
  display: block;
  width: var(--w);
  max-width: none;
  height: auto;
  margin: calc(var(--w) * -0.36) 0 calc(var(--w) * -0.27) calc(var(--w) * -0.205);
  mix-blend-mode: multiply;
}
@media (min-width: 880px) {
  .nd-wordmark-img { --w: clamp(360px, 34vw, 520px); }
}
.nd-intro-tag {
  margin: 20px 0 0;
  max-width: 380px;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--muted);
}
.nd-intro-photo {
  position: relative;
  width: 100%;
  height: 110vw;
  max-height: 640px;
  overflow: hidden;
}
.nd-intro-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  display: block;
}
@media (min-width: 880px) {
  .nd-intro {
    grid-template-columns: 44% 36% 20%;
    height: clamp(560px, calc(100vh - 66px), 1000px);
    align-items: center;
  }
  .nd-intro-text {
    padding: 0 24px 0 clamp(32px, 16vw, 320px);
    align-self: center;
    margin-top: -4vh;
  }
  .nd-intro-photo {
    height: 100%;
    max-height: none;
    align-self: stretch;
  }
  .nd-intro-photo img { object-position: center 50%; }
}

/* ---------- 2. Hero ---------- */
.nd-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0, var(--nd-ph-bg) 110px);
}
.nd-hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 32px;
}
.nd-hero-text { text-align: center; padding-top: 72px; }
.nd-hero-text h1 { margin: 0; }
.nd-hero-text h1 .accent { white-space: normal; }
.nd-lede {
  margin: 20px auto 0;
  max-width: 380px;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--muted);
}
.nd-hero-phone {
  position: relative;
  justify-self: center;
  width: min(100%, 560px);
  height: clamp(360px, 95vw, 520px);
  overflow: hidden;
}
.nd-hero-phone img {
  width: 100%;
  height: auto;
  display: block;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 7%, #000 12.5%),
    linear-gradient(to right, transparent 15%, #000 23%, #000 77%, transparent 85%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 7%, #000 12.5%),
    linear-gradient(to right, transparent 15%, #000 23%, #000 77%, transparent 85%);
  mask-composite: intersect;
}
@media (min-width: 880px) {
  .nd-hero { min-height: clamp(620px, 61vw, 880px); }
  .nd-hero-inner {
    grid-template-columns: minmax(320px, 480px) minmax(400px, 560px);
    justify-content: center;
    gap: clamp(24px, 4vw, 56px);
    min-height: clamp(620px, 61vw, 880px);
    align-items: start;
  }
  .nd-hero-text {
    text-align: center;
    align-self: center;
    padding: 0 0 234px;
  }
  .nd-hero-phone {
    width: 100%;
    max-width: none;
    height: clamp(620px, 61vw, 1000px);
    margin-top: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
  .nd-hero-phone img {
    flex: none;
    width: 180%;
    max-width: none;
    height: auto;
    margin-top: clamp(4px, 1.4vw, 20px);
  }
}

/* ---------- 3. Category grid ---------- */
.nd-cats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 16px;
  margin: 0 auto;
  max-width: 1040px;
}
.nd-cats li {
  flex: 0 0 calc(50% - 8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
}
@media (min-width: 720px) { .nd-cats li { flex-basis: calc(33.333% - 12px); } }
@media (min-width: 880px) { .nd-cats li { flex-basis: calc(25% - 12px); } .nd-cats { gap: 56px 16px; } }

.nd-ico {
  width: 128px;
  height: 128px;
  display: block;
  transition: transform 0.3s ease;
}
.nd-ico svg, .nd-ico img { width: 100%; height: 100%; display: block; object-fit: contain; }
.nd-cats li:hover .nd-ico { transform: translateY(-4px) scale(1.04); }

.nd-sw {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nd-sw svg { width: 36px; height: 36px; }
.nd-sw-blue   { background: rgba(47, 34, 225, 0.10);  color: var(--c-blue); }
.nd-sw-red    { background: rgba(221, 38, 57, 0.10);  color: var(--c-red); }
.nd-sw-purple { background: rgba(178, 28, 223, 0.10); color: var(--c-purple); }
.nd-sw-yellow { background: rgba(225, 225, 32, 0.22); color: #7d7d12; }
.nd-sw { transition: transform 0.25s ease; }

/* ---------- 4. Reach / stats ---------- */
.nd-avatars {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  isolation: isolate;
}
.nd-av {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  box-shadow: 0 0 0 3px #fff;
  margin: 0 -14px;
  position: relative;
  object-fit: cover;
  background: #e9e9ef;
}
.nd-av-1 { z-index: 1; }
.nd-av-2 { z-index: 2; }
.nd-av-3 { width: 196px; height: 196px; z-index: 3; }
.nd-av-4 { z-index: 2; }
.nd-av-5 { z-index: 1; }


/* ---------- 5. Single phone ---------- */
.nd-phone-solo {
  position: relative;
  width: min(100%, 720px);
  height: clamp(380px, 90vw, 640px);
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* stop flex stretch squashing the image to the container height */
}
.nd-phone-solo img {
  width: 100%;
  max-width: 720px;
  height: auto;
  display: block;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 7%, #000 12.5%),
    linear-gradient(to right, transparent 14%, #000 23%, #000 77%, transparent 86%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 7%, #000 12.5%),
    linear-gradient(to right, transparent 14%, #000 23%, #000 77%, transparent 86%);
  mask-composite: intersect;
}
.nd-phone-solo::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  pointer-events: none;
}

/* ---------- 6. Two cards ---------- */
.nd-duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px 48px;
}
.nd-duo-card { margin: 0; }
.nd-duo-shot {
  background: var(--nd-ph-bg);
  border-radius: var(--nd-radius);
  overflow: hidden;
  height: clamp(320px, 80vw, 470px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.nd-duo-shot img {
  width: 128%;
  max-width: none;
  height: auto;
  display: block;
  margin-top: -3%;
}
.nd-duo-card figcaption { text-align: center; padding: 28px 16px 0; }
.nd-duo-card figcaption h3 { font-size: 1.2rem; margin-bottom: 8px; }
.nd-duo-card figcaption p { max-width: 380px; margin: 0 auto; font-size: 1.05rem; color: var(--muted); }
@media (min-width: 880px) {
  .nd-duo { grid-template-columns: 1fr 1fr; }
}

/* ---------- 7. Safety (tools) ---------- */
.nd-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.nd-tool {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(19, 19, 70, 0.04);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.nd-tool:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(19, 19, 70, 0.10); border-color: rgba(178, 28, 223, 0.30); }
.nd-tool .nd-sw { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 20px; }
.nd-tool .nd-sw svg { width: 26px; height: 26px; }
.nd-tool p { font-size: 0.98rem; color: var(--muted); }
@media (min-width: 720px) { .nd-tools { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .nd-tools { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 9. FAQ ---------- */
.nd-faq h3 {
  font-size: 1.25rem;
  margin: 48px 0 8px;
}
.nd-faq h3:first-child { margin-top: 0; }
.nd-faq details {
  border-bottom: 1px solid var(--line);
}
.nd-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}
.nd-faq summary::-webkit-details-marker { display: none; }
.nd-faq summary::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 0.25s;
  flex-shrink: 0;
  margin-right: 4px;
}
.nd-faq details[open] summary::after { transform: rotate(-135deg); }
.nd-faq details p { padding: 0 0 20px; font-size: 1rem; color: var(--muted); max-width: 680px; }

/* ---------- 10. Download ---------- */
.nd-download {
  text-align: center;
  padding: 0 24px var(--nd-gap);
}
.nd-download h2 { margin-bottom: 16px; }
.nd-download-top { padding: calc(var(--nd-gap) * 0.6) 24px 0; }
.nd-download-top > .nd-wrap > p { margin-bottom: 28px; }
.nd-download > .nd-wrap > p { max-width: 520px; margin: 0 auto 40px; font-size: 1.15rem; color: var(--muted); }
.nd-download-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px;
}
.badges-row { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.badges-row .store-badge { justify-content: flex-start; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #0a0a14;
  border: 1px solid #0a0a14;
  padding: 12px 18px;
  border-radius: 14px;
  transition: all 0.2s;
  color: #fff;
}
.store-badge:hover {
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(178, 28, 223, 0.28);
  background-image: linear-gradient(#0a0a14, #0a0a14), var(--brand-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge-small { font-size: 0.65rem; color: #d1d5db; text-transform: uppercase; letter-spacing: 0.6px; }
.store-badge-big { font-size: 1.05rem; font-weight: 600; color: #fff; }
.nd-qr {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.nd-qr img { width: 160px; height: 160px; display: block; }
.nd-qr span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
@media (max-width: 720px) { .nd-qr { display: none; } }

/* ---------- About page ---------- */
.nd-about-body { max-width: 720px; margin: 0 auto; }
.nd-about-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 44px 0 12px;
  color: var(--ink);
}
.nd-about-body h3:first-child { margin-top: 0; }
.nd-about-body p { font-size: 1.1rem; line-height: 1.6; color: var(--muted); }
.nd-about-body a { color: var(--c-blue); text-decoration: underline; text-underline-offset: 3px; }
.nd-about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 16px;
}
.nd-about-grid > div {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
  background: #fff;
}
.nd-about-grid dt { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.nd-about-grid dd { font-size: 1rem; line-height: 1.55; color: var(--muted); }
@media (min-width: 720px) { .nd-about-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Get the App page ---------- */
.nd-get-row { margin-top: 32px; }
.nd-hero-get .eyebrow { margin-bottom: 18px; }
@media (min-width: 880px) { .nd-hero-get .nd-hero-text { padding-top: 56px; padding-bottom: 56px; } }
.nd-get-row .nd-download-row { justify-content: center; }
.nd-tools-3 { max-width: 1040px; margin: 0 auto; }
@media (min-width: 720px) { .nd-tools-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .nd-tools.nd-tools-3 { grid-template-columns: repeat(3, 1fr); } }
.nd-safe-line { max-width: 640px; margin: 0 auto; text-align: center; font-size: 1.05rem; line-height: 1.6; color: var(--muted); }
.nd-safe-line a { color: var(--c-blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Mobile rhythm ---------- */
@media (max-width: 879px) {
  :root { --nd-gap: 72px; }
  .nd-head { margin-bottom: 40px; }
  .nd-head p, .nd-lede { font-size: 1.1rem; }
  .nd-av { width: 72px; height: 72px; font-size: 1.1rem; margin: 0 -10px; }
  .nd-av-3 { width: 128px; height: 128px; font-size: 1.9rem; }
}
