/* Ad landing page, version 2 (src/render/types/landing2.mjs). Phone first (390 wide), then checked at 864, 1440 and
   Ian's 2140 window. Laid out on Good Life's approved home page: a solid header with a clear Book button, the photo
   full width with the words centred on it, every section opening centred in the house 1240 column; lists stay left
   inside a centred block, text beside a picture stays against the picture. Every word passes the contrast check
   (small labels use --g-mute; drip colours are darkened for text with --g-ink-accent). site.css gives the tokens,
   type and buttons. */

html { scroll-behavior: smooth; }
.g { --g-mute: #50565d; --g-ink-accent: color-mix(in srgb, var(--accent) 70%, #000); --g-col: 1240px; background: var(--paper); }
.g-in { max-width: var(--g-col); margin: 0 auto; padding: 0 20px; }
.g main > section { padding: 48px 0; }
.g-h2 { margin-bottom: 14px; font: 400 clamp(36px, 10vw, 76px)/.98 var(--f); letter-spacing: -.035em; overflow-wrap: break-word; }
.g-h2 .v, .g-h1 .v { font-weight: 200; }
.g-h2 .b, .g-h1 .b { font-weight: 800; }
.g-label { margin-bottom: 10px; font: 700 12.5px/1.3 var(--f); letter-spacing: .15em; text-transform: uppercase; color: var(--g-mute); }
.g-label--on { color: var(--aqua-l); }
/* a section's opening: centred */
.g-open { text-align: center; margin: 0 auto 28px; max-width: 760px; }
.g-intro { max-width: 36em; margin: 0 auto 22px; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }

/* ---------- header: a solid bar, Call and a clear Book button ---------- */
.g-bar { position: relative; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.g-bar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: var(--g-col); margin: 0 auto; padding: 10px 16px 10px 20px; }
.g-bar__logo { color: var(--ink); }
.g-bar__logo .logo { width: 132px; height: auto; }
.g-bar__go { display: flex; align-items: center; gap: 8px; }
.g-bar__go a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px; border-radius: 999px; font: 700 15px/1 var(--f); text-decoration: none; }
.g-bar__call { border: 1.5px solid rgba(14,16,19,.25); color: var(--ink); }
.g-bar__num { display: none; }
.g-bar__book { background: var(--ink); color: #fff; }

/* ---------- opening: the town full width, the words centred on it ---------- */
.g main > .g-hero { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: calc(100svh - 65px); padding: 0; background: var(--ink); color: #fff; overflow: hidden; text-align: center; }
.g-hero__ph { position: absolute; inset: 0; }
.g-hero__ph picture, .g-hero__ph img { width: 100%; height: 100%; }
.g-hero__ph img { object-fit: cover; }
.g-hero__ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,16,19,0) 0%, rgba(14,16,19,0) 28%, rgba(14,16,19,.72) 52%, rgba(14,16,19,.92) 72%, var(--ink) 100%); }
.g-hero__in { position: relative; width: 100%; max-width: 860px; padding: 0 20px 28px; }
.g-kick { display: inline-block; margin-bottom: 14px; padding: 8px 14px; border-radius: 999px; background: var(--aqua); color: #06232a; font: 700 13.5px/1 var(--f); }
.g-h1 { margin-bottom: 14px; font-size: clamp(50px, 14vw, 120px); line-height: .9; letter-spacing: -.045em; text-wrap: balance; }
.g-h1 span { display: block; }
.g-lede { max-width: 34em; margin: 0 auto 20px; font-size: 16.5px; line-height: 1.5; color: rgba(255,255,255,.9); }
.g-facts { display: flex; justify-content: center; margin: 0 0 22px; }
.g-facts div { padding: 0 16px; border-left: 1px solid rgba(255,255,255,.25); }
.g-facts div:first-child { border-left: 0; }
.g-facts dt { font: 800 22px/1.05 var(--f); letter-spacing: -.02em; color: #fff; }
.g-facts dd { margin: 3px 0 0; font-size: 13px; color: rgba(255,255,255,.8); }
.g-cta { display: grid; gap: 10px; }
.g-cta .btn { width: 100%; }

/* ---------- opening, people mode (version 3): their real visits. Phones and tablets: the first visit fills the top,
   the words below it on ink. Big screens (1100+): two visits full height at the left and right edges, the words
   centred between them, each photo fading into the ink on its inner edge. ---------- */
.g-side { position: absolute; inset: 0 0 auto; height: 52%; margin: 0; }
.g-side img { width: 100%; height: 100%; object-fit: cover; }
.g-side::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,16,19,0) 0%, rgba(14,16,19,0) 50%, rgba(14,16,19,.75) 82%, var(--ink) 100%); }
.g-side--r { display: none; }
/* who comes, version 3: the arriving nurse, a real photo on every screen (not a thumbnail) */
.g-nurse__ph--one { width: 100%; max-width: 420px; }
.g-nurse__ph.g-nurse__ph--one img { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 24px; object-fit: cover; }

/* ---------- proof: one centred row ---------- */
.g main > .g-proof { padding: 0; background: #fff; border-bottom: 1px solid var(--line); }
.g-proof ul { display: grid; grid-template-columns: 1fr 1fr; max-width: var(--g-col); margin: 0 auto; }
.g-proof li { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 15px 10px; text-align: center; }
.g-proof li:nth-child(odd) { border-right: 1px solid var(--line); }
.g-proof li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.g-proof b { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15.5px; line-height: 1.25; }
.g-proof span { font-size: 13.5px; color: var(--g-mute); }
.g-stars { display: inline-flex; color: #b97a00; }

/* ---------- the drip: a centred card on the drip's own colour ---------- */
.g main > .g-drip { background: var(--room); transition: background-color .35s var(--ease); }
.g-dcs { max-width: 940px; margin: 0 auto; }
html.js .g-dc[data-off] { display: none; }
.g-dc { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 18px; align-items: start; padding: 22px 20px; border-radius: 28px; background: #fff; box-shadow: 0 24px 50px -28px rgba(14,16,19,.35); animation: g-in .35s var(--ease); }
/* phones: the name and price beside the bag, everything else the full width of the card */
.g-dc__txt { display: contents; }
.g-dc { grid-template-rows: 1fr auto auto auto 1fr; }
.g-dc__bag { grid-row: 1 / 6; }
.g-dc__for { grid-column: 2; grid-row: 2; }
.g-dc__name { grid-column: 2; grid-row: 3; }
.g-dc__price { grid-column: 2; grid-row: 4; }
.g-dc__line { margin-top: 18px; }
.g-dc__in { margin-top: 14px; }
.g-dc__go { margin-top: 18px; }
@keyframes g-in { from { opacity: 0; transform: translateY(6px); } }
.g-dc__bag img { width: 104px; height: auto; filter: drop-shadow(0 16px 20px rgba(14,16,19,.16)); }
.g-dc__for { margin-bottom: 6px; font: 700 12px/1.3 var(--f); letter-spacing: .14em; text-transform: uppercase; color: var(--g-ink-accent); }
.g-dc__name { margin-bottom: 8px; font: 800 30px/1 var(--f); letter-spacing: -.03em; }
.g-dc__price { font-size: 15px; color: var(--ink-2); }
.g-dc__price b { font: 800 26px/1 var(--f); letter-spacing: -.02em; color: var(--g-ink-accent); }
.g-dc__line, .g-dc__in, .g-dc__go { grid-column: 1 / -1; }
.g-dc__line { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.g-dc__in { display: flex; flex-wrap: wrap; gap: 6px; }
.g-dc__in li { padding: 6px 11px; border-radius: 999px; background: var(--room); font-size: 13px; line-height: 1.2; }
.g-dc__go { width: 100%; }
.g-tabs { margin-top: 22px; text-align: center; }
.g-tabs > p { margin-bottom: 10px; font: 600 15px/1.3 var(--f); }
.g-tabs [role="tablist"] { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.g-tab { appearance: none; padding: 11px 15px; border: 1.5px solid rgba(14,16,19,.2); border-radius: 999px; background: rgba(255,255,255,.75); font: 600 14.5px/1 var(--f); cursor: pointer; }
.g-tab span { font-weight: 400; color: var(--ink-2); }
.g-tab[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.g-tab[aria-selected="true"] span { color: rgba(255,255,255,.85); }

/* ---------- your morning, fixed: three centred steps, then their photo in a frame ---------- */
.g-steps__list { display: grid; gap: 26px; max-width: 1080px; margin: 0 auto 32px; text-align: center; }
.g-steps__big { margin-bottom: 8px; font: 800 30px/1 var(--f); letter-spacing: -.03em; color: var(--aqua-d); }
.g-steps__list h3 { margin-bottom: 6px; font: 700 19px/1.2 var(--f); }
.g-steps__list li > p:last-child { max-width: 26em; margin: 0 auto; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.g-moment { max-width: 960px; margin: 0 auto; }
.g-moment img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 40% 70%; border-radius: 24px; }

/* ---------- the nurse: photo beside the words (centred on phones) ---------- */
.g main > .g-nurse { background: var(--ink); color: #fff; }
.g-nurse__grid { display: grid; gap: 22px; justify-items: center; text-align: center; }
.g-nurse__ph img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.g-nurse .g-h2 { font-size: clamp(32px, 8.5vw, 60px); }
.g-nurse__txt > p:not(.g-label) { max-width: 34em; margin: 0 auto 16px; font-size: 16.5px; color: rgba(255,255,255,.86); }
.g-nurse .care { display: inline-flex; align-items: flex-start; gap: 9px; margin: 0; font-size: 15px; line-height: 1.4; color: var(--aqua-l); text-align: left; }
.g-nurse .care svg { flex: none; margin-top: 1px; }
.g-nurse .care b { color: #fff; }

/* ---------- reviews: tinted cards, never a plain block ---------- */
.g-rev__score { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; font-size: 15px; color: var(--g-mute); }
.g-rev__list { display: grid; gap: 14px; max-width: var(--g-col); margin: 0 auto; }
.g-rev__list li { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 24px; border-radius: 24px; background: var(--tint); }
.g-rev__list blockquote { margin: 0; font: 500 18px/1.45 var(--f); letter-spacing: -.005em; }
.g-rev__list p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 700 14.5px/1.3 var(--f); }

/* ---------- groups: centred ---------- */
.g main > .g-groups { background: var(--blush); }

/* ---------- where we come: the town beside the list ---------- */
.g main > .g-areas { background: #fff; }
.g-areas__grid { display: grid; gap: 26px; }
.g-areas__ph img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 30% 40%; border-radius: 24px; }
.g-areas__txt { text-align: center; }
.g-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.g-chips li { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 14.5px; line-height: 1.2; }
.g-note { max-width: 40em; margin: 16px auto 0; font-size: 15px; color: var(--g-mute); }

/* ---------- questions: two columns side by side on bigger screens ---------- */
.g-faq__cols { display: grid; gap: 0; max-width: 1080px; margin: 0 auto; }
.g-qa { border-bottom: 1px solid var(--line); }
.g-faq__col:first-child .g-qa:first-child { border-top: 1px solid var(--line); }
.g-qa summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 0; list-style: none; cursor: pointer; font: 600 17px/1.35 var(--f); }
.g-qa summary::-webkit-details-marker { display: none; }
.g-qa summary i { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; }
.g-qa summary i::before, .g-qa summary i::after { content: ''; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; border-radius: 2px; background: var(--ink); }
.g-qa summary i::after { transform: rotate(90deg); transition: transform .3s var(--ease); }
.g-qa[open] summary i { background: var(--ink); }
.g-qa[open] summary i::before, .g-qa[open] summary i::after { background: #fff; }
.g-qa[open] summary i::after { transform: rotate(0deg); }
.g-qa p { padding: 0 0 18px; font-size: 16px; color: var(--ink-2); }

/* ---------- book: centred ---------- */
.g main > .g-book { padding: 64px 0 80px; background: var(--ink); color: #fff; }
.g-book .g-h2 { font-size: clamp(40px, 11vw, 92px); }
.g-book .g-intro { color: rgba(255,255,255,.86); }
.g-book__cta { display: grid; gap: 10px; max-width: 520px; margin: 0 auto; }
.g-book__cta .btn { width: 100%; }
.g-book__fine { max-width: 40em; margin: 22px auto 0; font-size: 14.5px; color: rgba(255,255,255,.72); }

/* ---------- footer ---------- */
.g-foot { padding: 44px 20px 120px; background: #08090b; color: rgba(255,255,255,.72); text-align: center; }
.g-foot__logo { display: inline-block; color: #fff; }
.g-foot__logo .logo { width: 160px; height: auto; }
.g-foot__line { margin: 14px 0 16px; font-size: 20px; color: #fff; }
.g-foot__line .v { font-weight: 200; }
.g-foot__line .b { font-weight: 800; }
.g-foot__site a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--aqua-l); text-decoration: none; }
.g-foot__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 16px 0; font-size: 13.5px; }
.g-foot__fine { max-width: 46em; margin: 0 auto 8px; font-size: 12.5px; color: rgba(255,255,255,.62); }
.g-foot__fine a { color: inherit; }
.g-foot__credit { display: grid; justify-items: center; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; color: rgba(255,255,255,.62); }
.g-foot__credit .omg { height: 20px; width: auto; color: #fff; opacity: .75; }

/* ---------- the Book bar: arrives once the opening's buttons have scrolled away ---------- */
.g-dock { position: fixed; z-index: 40; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 2fr; gap: 8px; padding: 7px; border-radius: 999px; background: rgba(14,16,19,.94); box-shadow: 0 12px 30px rgba(0,0,0,.25); transform: translateY(150%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s linear .35s; }
.g-dock.on { transform: none; visibility: visible; transition: transform .35s var(--ease), visibility 0s; }
.g-dock .btn { min-height: 48px; padding: 0 14px; font-size: 15.5px; }

/* ---------- bigger screens ---------- */
@media (min-width: 761px) {
  .g-in { padding: 0 40px; }
  .g main > section { padding: 96px 0; }
  .g-bar__in { padding: 12px 40px; }
  .g-bar__logo .logo { width: 164px; }
  .g-bar__num { display: inline; }
  .g-bar__word { display: none; }
  .g-bar__go a { min-height: 48px; padding: 0 22px; font-size: 15.5px; }
  .g main > .g-hero { align-items: center; min-height: min(calc(100vh - 73px), 940px); }
  .g-hero__ph::after { background: radial-gradient(ellipse 60% 70% at 50% 52%, rgba(14,16,19,.78) 0%, rgba(14,16,19,.55) 55%, rgba(14,16,19,.25) 100%); }
  .g-hero__in { padding: 80px 40px; }
  .g-h1 span { display: inline; }
  .g-h1 { font-size: clamp(64px, 6.4vw, 120px); }
  .g-lede { font-size: 19px; }
  .g-facts dt { font-size: 28px; }
  .g-facts dd { font-size: 14px; }
  .g-facts div { padding: 0 28px; }
  .g-cta { display: flex; justify-content: center; }
  .g-cta .btn { width: auto; }
  .g main > .g-hero--people { align-items: flex-end; }
  .g-hero--people .g-side { height: 56%; }
  .g-hero--people .g-hero__in { padding-top: 0; padding-bottom: 56px; }
  .g-proof ul { grid-template-columns: repeat(4, 1fr); }
  .g-proof li { padding: 20px 10px; border-bottom: 0 !important; border-right: 1px solid var(--line); }
  .g-proof li:last-child { border-right: 0; }
  .g-dc { grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: none; gap: 0 48px; align-items: center; padding: 44px 56px; }
  .g-dc__txt { display: block; }
  .g-dc__bag { grid-row: auto; display: flex; justify-content: center; }
  .g-dc__for, .g-dc__name, .g-dc__price { grid-row: auto; }
  .g-dc__bag img { width: 190px; }
  .g-dc__for, .g-dc__name, .g-dc__price, .g-dc__line, .g-dc__in, .g-dc__go { grid-column: auto; }
  .g-dc__name { font-size: 48px; }
  .g-dc__line { margin: 16px 0; }
  .g-dc__in { margin-bottom: 22px; }
  .g-dc__go { width: auto; }
  .g-steps__list { grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
  .g-steps__big { font-size: 40px; }
  .g-nurse__grid { grid-template-columns: minmax(220px, 420px) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; justify-items: stretch; max-width: 1080px; text-align: left; }
  .g-nurse__ph img { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 26px; }
  .g-nurse__txt > p:not(.g-label) { margin-left: 0; }
  .g-rev__list { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .g-areas__grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .g-areas__txt { text-align: left; }
  .g-chips { justify-content: flex-start; }
  .g-note { margin-left: 0; }
  .g-faq__cols { grid-template-columns: 1fr 1fr; gap: 0 48px; align-items: start; }
  .g-faq__col:last-child .g-qa:first-child { border-top: 1px solid var(--line); }
  .g-book__cta { display: flex; justify-content: center; max-width: none; }
  .g-book__cta .btn { width: auto; }
  .g-dock { left: 50%; right: auto; width: 460px; margin-left: -230px; }
}
@media (min-width: 1100px) {
  .g main > .g-hero--people { display: grid; grid-template-columns: minmax(0, 1fr) minmax(600px, 1.15fr) minmax(0, 1fr); align-items: center; }
  .g-hero--people .g-side { position: relative; inset: auto; height: 100%; min-height: inherit; }
  .g-hero--people .g-side--l { grid-column: 1; grid-row: 1; }
  .g-hero--people .g-side--r { display: block; grid-column: 3; grid-row: 1; }
  .g-hero--people .g-side--l::after { background: linear-gradient(90deg, rgba(14,16,19,0) 0%, rgba(14,16,19,0) 62%, var(--ink) 100%); }
  .g-hero--people .g-side--r::after { background: linear-gradient(270deg, rgba(14,16,19,0) 0%, rgba(14,16,19,0) 62%, var(--ink) 100%); }
  .g-hero--people .g-hero__in { grid-column: 2; grid-row: 1; align-self: center; max-width: none; padding: 64px 24px; }
  .g-hero--people .g-h1 { font-size: clamp(56px, 4.4vw, 92px); }
  .g-hero--people .g-h1 span { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .g-dc { animation: none; }
  .g-dock, .g-dock.on, .g main > .g-drip { transition: none; }
}
