/*
 * The child's own templates: front page, how it works, download. One idea carries them: the app on a phone sits on
 * top of a real home photo, and the walk together is the centre of the page. Wine only for actions and the current
 * state, sage only for the mutual "you both want to meet" moment.
 */

/* ---------------------------------------------------------------- hero */

.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(72px, 9vw, 128px); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
#top #wrap_all h1.hero-title {
  font-size: clamp(2.75rem, 1.5rem + 4.4vw, 4.75rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  max-width: 11ch;
  text-wrap: balance;
}
#top.wc-lang-nl #wrap_all h1.hero-title { max-width: 11ch; }
.hero-lede { font-size: var(--fs-lede); line-height: 1.6; color: var(--ink-soft); margin: 0 0 36px; max-width: 30rem; }
.hero-more { margin: 16px 0 0; }

.hero-visual { position: relative; padding-bottom: 48px; padding-left: clamp(72px, 9vw, 128px); }
.hero-photo { margin: 0; border-radius: 32px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--surface-low); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; display: block; }

/* The phone: a quiet device frame around the app's Discover card, as in the 3.0.0 screenshots. */
.phone {
  position: absolute; left: 0; bottom: 0;
  width: clamp(220px, 21vw, 272px);
  padding: 9px;
  background: var(--ink);
  border-radius: 36px;
  box-shadow: 0 24px 48px -24px rgba(43, 24, 28, 0.45);
}
.phone-screen {
  background: var(--canvas); border-radius: 28px; overflow: hidden;
  padding: 16px 12px 14px; display: flex; flex-direction: column; gap: 10px;
}
.phone-logo { width: 72px; height: auto; margin: 2px 4px 0; }
.discover-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.discover-photo { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.discover-body { padding: 10px 12px 12px; margin-top: -14px; position: relative; background: var(--surface); border-radius: 14px 14px 0 0; }
.discover-body p { margin: 0; line-height: 1.35; }
.discover-names { font-weight: 600; font-size: 0.9375rem; color: var(--ink); }
.discover-place { font-size: 0.75rem; color: var(--muted); }
.discover-facts { font-size: 0.75rem; color: var(--ink); margin-top: 4px !important; }
.discover-view { font-size: 0.75rem; font-weight: 600; color: var(--wine); margin-top: 6px !important; }
.discover-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pill {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 32px; padding: 4px 8px; border-radius: 999px;
  font-size: 0.6875rem; font-weight: 600; line-height: 1.2;
}
.pill-quiet { background: var(--surface-low); color: var(--ink); }
.pill-wine { background: var(--wine); color: #fff; }

/* ---------------------------------------------------------------- shared section rhythm */

.band { padding: var(--band-pad) 0; }
#top #wrap_all h2.section-title {
  padding: 0;
  font-size: var(--fs-h2); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em;
  margin: 0 0 20px; text-wrap: balance;
}
.section-lede { font-size: var(--fs-lede); line-height: 1.6; color: var(--ink-soft); margin: 0 0 32px; max-width: 34rem; }

/* ---------------------------------------------------------------- steps: a real sequence, so numbered */

.steps { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* The three steps are stops on one walk: a dotted route runs behind the numbered stops. */
.step-list {
  position: relative; list-style: none; margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px);
}
.step-path {
  position: absolute; top: 0; height: 56px; margin: 0; color: var(--control-line); pointer-events: none;
  left: 28px; right: calc((100% - 2 * clamp(24px, 4vw, 64px)) / 3 - 28px);
}
.walk-path { display: block; width: 100%; height: 100%; }
.step { position: relative; margin: 0; padding: 0; }
.step-number {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wine); color: #fff; font-weight: 600; font-size: 1.375rem; margin-bottom: 24px;
  box-shadow: 0 0 0 8px var(--surface);
}
#top #wrap_all h3.step-title { font-size: var(--fs-h3); line-height: 1.3; font-weight: 600; margin: 0 0 10px; padding: 0; }
.step p { margin: 0; color: var(--ink-soft); max-width: 22rem; }
.steps-note {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 56px 0 0; padding: 12px 22px; border-radius: var(--r-pill);
  background: var(--subtle); color: var(--ink); font-weight: 500;
}

/* ---------------------------------------------------------------- the walk: the emotional centre */

.walk { background: var(--canvas); overflow: hidden; }
.walk-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
/* The photo runs off the left edge of the window: the one full-bleed image on the page. */
.walk-photo {
  margin: 0 0 0 min(calc(-1 * var(--gutter)), calc((var(--wrap) + 2 * var(--gutter) - 100vw) / 2 - var(--gutter)));
  border-radius: 0 var(--r-card) var(--r-card) 0;
  overflow: hidden; aspect-ratio: 7 / 5;
}
.walk-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 60%; display: block; }
.walk-copy { padding: 0; }
.walk-copy > p { font-size: var(--fs-lede); line-height: 1.6; margin: 0 0 16px; max-width: 30rem; }
.walk-copy > p + p { color: var(--ink-soft); font-size: var(--fs-body); }

/* The mutual moment, drawn as in the app: sage badge, two portraits, a short sage connector. */
.mutual {
  margin: 40px 0 0; padding: 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-card); text-align: center;
}
.mutual-badge {
  display: inline-block; margin: 0 0 18px; padding: 8px 18px; border-radius: 999px;
  /* #46704F: the app sage one step darker, 4.85:1 on the fill (the sage itself is 4.2:1 at this size). */
  background: var(--sage-fill); color: #46704F; font-weight: 600; font-size: 0.9375rem;
}
.mutual-pair { display: flex; align-items: flex-start; justify-content: center; gap: 0; }
.mutual-person { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 112px; font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
.mutual-person img { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); object-fit: cover; }
.mutual-line { width: 28px; height: 4px; border-radius: 2px; background: var(--sage); margin-top: 38px; flex: none; }
.mutual figcaption { margin-top: 14px; font-size: var(--fs-caption); color: var(--muted); }

/* ---------------------------------------------------------------- what you talk about */

.talk { background: var(--canvas); padding-top: 0; }
.talk-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.topics { margin: 0; }
.topic { padding: 18px 0; border-top: 1px solid var(--line); }
.topic:last-child { border-bottom: 1px solid var(--line); }
.topic dt { font-weight: 600; font-size: 1.125rem; margin: 0 0 4px; }
.topic dd { margin: 0; color: var(--ink-soft); }

.chat {
  margin: 0; padding: 28px 24px 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-card);
  display: flex; flex-direction: column; gap: 12px;
}
.bubble { margin: 0; max-width: 82%; padding: 14px 18px; line-height: 1.5; font-size: 1rem; border-radius: 22px; }
.bubble-them { background: var(--canvas); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 8px; }
.bubble-me { background: var(--wine-tint); align-self: flex-end; border-bottom-right-radius: 8px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.chips-label { width: 100%; font-size: var(--fs-caption); color: var(--muted); }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.9375rem; font-weight: 500; }

/* ---------------------------------------------------------------- safety: one carded group, like the app's settings */

/* Safety: the heading on the left, three plain rows on the right, divided by hairlines. */
.safety .wc-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.safety-head { max-width: 26rem; }
.safety-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.safety-list li {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 20px;
  margin: 0; padding: 28px 0; border-bottom: 1px solid var(--line);
}
.safety-icon {
  grid-row: span 3; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; background: var(--wine-tint); color: var(--wine);
}
#top #wrap_all .safety-list h3 { font-size: var(--fs-h3); font-weight: 600; margin: 0 0 6px; padding: 0; }
.safety-list p { margin: 0; color: var(--ink-soft); max-width: 34rem; }
.safety-list p + p { margin-top: 4px; }

/* ---------------------------------------------------------------- Plus (behind WOOFCONNECT_SHOW_PLUS) */

.plus { background: var(--surface); border-top: 1px solid var(--line); }
.plus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plus-col { padding: 32px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--canvas); }
.plus-col-plus { background: var(--wine-tint); border-color: transparent; }
.plus .text-link { max-width: 100%; overflow-wrap: anywhere; }
.plus .text-link::after { flex-shrink: 0; }
#top #wrap_all .plus-col h3 { font-size: var(--fs-h3); margin: 0 0 16px; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { display: flex; gap: 12px; padding: 8px 0; margin: 0; }
.ticks .icon { flex: none; color: var(--wine); margin-top: 2px; }

/* ---------------------------------------------------------------- closing */

.closing { background: var(--surface-low); text-align: center; }
.closing-inner { max-width: 40rem; }
.closing .closing-mark { background: var(--surface); }
.closing p { font-size: var(--fs-lede); color: var(--ink-soft); margin: 0 auto 36px; max-width: 32rem; }
.closing .store-badges { justify-content: center; }

/* ---------------------------------------------------------------- how it works / download heads */

.wc-how .page-head { padding-bottom: clamp(40px, 5vw, 64px); }
.wc-how .page-head .hero-lede { max-width: 38rem; color: var(--muted); }
.wc-how .steps { border-top: 1px solid var(--line); }
#top #wrap_all .wc-download h1.hero-title { max-width: 14ch; }

/* ---------------------------------------------------------------- about */

/* Text pages (about, help, contact): a hairline under the page head, with modest space on both sides of it, so the
   heading and the content read as one block. */
.wc-about .page-head, .wc-help .page-head, .wc-contact .page-head { padding-bottom: clamp(28px, 3vw, 40px); }
.wc-about .page-head .hero-lede, .wc-help .page-head .hero-lede, .wc-contact .page-head .hero-lede { margin-bottom: 0; }
.wc-about .page-head + .band, .wc-help .page-head + .band, .wc-contact .page-head + .band {
  border-top: 1px solid var(--line); padding-top: clamp(32px, 4vw, 56px);
}

.wc-about .page-head .hero-lede { max-width: 38rem; color: var(--muted); }
.about-story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.about-prose { max-width: 40rem; }
.about-prose p { font-size: var(--fs-lede); line-height: 1.7; margin: 0 0 20px; }
.about-prose p:last-child { margin-bottom: 0; color: var(--muted); }
.about-why { background: var(--surface-low); }
.about-points { max-width: 46rem; }
.about-who-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.about-card {
  font-style: normal; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 28px 32px;
}
.about-card p { margin: 0 0 12px; }
.about-card p:last-child { margin-bottom: 0; }
.about-card .company-lines { line-height: 1.6; }
#top .about-card .company-mail a { color: var(--wine); font-weight: 600; }
.about-card-note { color: var(--muted); }

@media (max-width: 799px) {
  .about-story-grid, .about-who-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- help and contact */

.wc-help .page-head .hero-lede, .wc-contact .page-head .hero-lede { max-width: 38rem; color: var(--muted); }
.help-grid { display: grid; gap: clamp(32px, 4vw, 56px); }
.help-grid > .help-group { max-width: 52rem; }
#top #wrap_all h2.help-group-title { font-size: var(--fs-h3); font-weight: 600; margin: 0 0 12px; padding: 0; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 24px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.0625rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--subtle); }
.faq-item summary .icon { flex: none; width: 20px; height: 20px; color: var(--muted); transition: transform 0.15s ease; }
.faq-item[open] summary .icon { transform: rotate(180deg); color: var(--wine); }
.faq-answer { padding: 0 24px 20px; color: var(--muted); max-width: 44rem; }
.faq-answer p { margin: 0 0 12px; }
.faq-answer p:last-child { margin-bottom: 0; }
.help-support { background: var(--surface-low); }
.contact-steps { margin: 0 0 24px; padding-left: 1.4em; font-size: var(--fs-lede); line-height: 1.7; }
.contact-steps li::marker { color: var(--wine); font-weight: 600; }
.contact-note { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .faq-item summary .icon { transition: none; }
}

/* ---------------------------------------------------------------- tablet and phone */

@media (max-width: 999px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; }
  .walk-grid, .talk-grid { grid-template-columns: 1fr; }
  .walk-photo { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); border-radius: 0; aspect-ratio: 16 / 10; }
  .walk { padding-top: 0; }
  .walk-copy { padding-top: 8px; }
  .walk-grid { gap: 32px; }
  .safety .wc-wrap { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 699px) {
  .hero { padding-top: 28px; }
  #top #wrap_all h1.hero-title, #top.wc-lang-nl #wrap_all h1.hero-title { max-width: none; letter-spacing: -0.025em; }
  .hero-lede { margin-bottom: 24px; }
  .hero-visual { padding-left: 0; padding-bottom: 0; margin-top: 8px; }
  .hero-photo { aspect-ratio: 4 / 3; margin-right: calc(-1 * var(--gutter)); border-radius: var(--r-card) 0 0 var(--r-card); }
  .phone { position: relative; width: 208px; margin: -120px 0 0 16px; }
  .hero { padding-bottom: 56px; }
  .store-badges img { height: 44px; }
  /* Stacked: the route becomes a dotted line down the left, the numbers sit on it. */
  .step-list { grid-template-columns: 1fr; gap: 32px; }
  .step-path { display: none; }
  .step-list::before {
    content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 0;
    border-left: 3px dotted var(--control-line);
  }
  .step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; }
  .step-number { grid-row: span 2; margin-bottom: 0; }
  #top #wrap_all h3.step-title { margin-top: 12px; }
  .steps .step-list { margin-top: 28px; }
  .steps-note { margin-top: 40px; border-radius: var(--r-card); }
  .mutual { padding: 20px 12px; }
  .safety-list li { padding: 22px 0; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; }
  .safety-icon { width: 40px; height: 40px; }
  .plus-grid { grid-template-columns: 1fr; }
  .chat { padding: 20px 16px; }
}
