/*
  Headspace (website): faithful spec for the design bank component library.

  Sources
  - "from live site": measured or sampled from reference/headspace-live-01.jpg (1440x900 at 2400 px wide,
    1 CSS px = 1.667 image px) and reference/headspace-live-long.jpg (whole homepage at 493 px wide,
    1 CSS px = 0.342 image px). Sizes from the long capture are accurate to about 3 px.
  - "from app guide": source/claude-design-systems/headspace-ios/project/README.md and tokens.json.
    That guide describes the iOS app, so it is used only for brand values that also show on the website.
  - "guess": neither source gives the value. Each one is listed in COMPARE.md.

  The live site sits on a white canvas with near-black text and warm grey panels. The app guide's
  butter cream canvas (#FFF7E7) and Ink Brown text (#2E1A47) do not appear on the website, so the
  page follows the site. See COMPARE.md, "Live site against the app guide".
*/

:root {
  /* Named palette */
  --hs-white: #ffffff;            /* from live site: page canvas */
  --hs-panel: #f9f4f1;            /* from live site: twin panels, quote cards (close to app guide Off Cream #FBF1DA) */
  --hs-ink: #222120;              /* from live site: headline and nav text, sampled #212121 to #252120 */
  --hs-ink-2: #2d2c2a;            /* from live site: dark pill buttons, active tab */
  --hs-grey: #5a5957;             /* from live site: tick trust row text */
  --hs-line: #ececec;             /* from live site: tile borders and FAQ rules, sampled #f2f2f2 to #f3f3f3, darkened slightly to stay visible */
  --hs-yellow: #fece00;           /* from live site: promo bar, carousel panel, marquee */
  --hs-blue: #0061f0;             /* from live site: "Try for free" button and partner panel */
  --hs-blue-hover: #004fc4;       /* guess: about 12% darker than the live blue */
  --hs-marigold: #ff6b35;         /* from app guide: Marigold primary, matches the live logo dot and face (#fe7446) */
  --hs-marigold-light: #ffb89e;   /* from app guide: Marigold Light, Aurora stop 1 */
  --hs-butter: #ffd25c;           /* from app guide: Butter Yellow, Aurora stop 2 */
  --hs-coral: #f4877e;            /* from app guide: Coral Flush, character cheeks and faces */
  --hs-lavender: #b7b0dc;         /* from app guide: Sky Lavender, moon icon */
  --hs-sage: #7e9f4b;             /* from app guide: Sage Moss, character two-tone */
  --hs-pink: #f7a8d8;             /* from live site: pink face halves and next-slide peek */
  --hs-purple: #3a1982;           /* from live site: sleep and kids library card */
  --hs-orange: #ff7300;           /* from live site: families library card */
  --hs-amber: #fdb546;            /* from live site: library card 1 top */
  --hs-sky-1: #1d72c2;            /* from live site sky #389ee8, deepened so white text passes AA (see COMPARE.md) */
  --hs-sky-2: #2a80cc;            /* from live site sky mid #73bcf3, deepened for AA */
  --hs-sky-3: #1a6bb8;            /* guess: deeper base so stat labels pass AA */
  --hs-cloud: #98cbe6;            /* from live site: cloud on the therapy panel */
  --hs-sun: #f9b50c;              /* from live site: sun on the therapy panel */
  --hs-aurora: linear-gradient(160deg, var(--hs-marigold-light) 0%, var(--hs-butter) 50%, var(--hs-marigold) 100%); /* from app guide: Aurora gradient */
  --hs-shadow-soft: 0 2px 8px rgba(34, 33, 32, 0.06);    /* from app guide: Card level 1 (tinted with the site ink instead of Ink Brown) */
  --hs-shadow-float: 0 4px 16px rgba(34, 33, 32, 0.08);  /* from app guide: Floating level 2 */

  /* Colour roles */
  --c-bg: var(--hs-white);                 /* from live site */
  --c-surface: var(--hs-white);            /* from live site: option tiles */
  --c-surface-2: var(--hs-panel);          /* from live site */
  --c-inverse: var(--hs-blue);             /* from live site: the only full-colour dark band is the blue partner panel */
  --c-on-inverse: #ffffff;                 /* from live site */
  --c-fg: var(--hs-ink);                   /* from live site */
  --c-fg-2: #3a3937;                       /* from live site: body text, sampled between ink and tick grey */
  --c-muted: var(--hs-grey);               /* from live site */
  --c-border: var(--hs-line);              /* from live site */
  --c-accent: var(--hs-blue);              /* from live site: primary action colour on the website is blue, not marigold */
  --c-on-accent: #ffffff;                  /* from live site */
  --c-accent-hover: var(--hs-blue-hover);  /* guess */
  --c-link: var(--hs-ink);                 /* from live site: promo and "View all" links are ink, underlined */
  --c-focus: 0 0 0 3px #ffffff, 0 0 0 5px var(--hs-blue); /* guess: the site's blue as a two-ring focus that shows on yellow and blue */

  /* Type families */
  --f-display: "Figtree", "Apercu", "Nunito", system-ui, sans-serif; /* stand-in: Figtree for Apercu (app guide names Apercu, live letterforms match) */
  --f-body: "Figtree", "Apercu", "Nunito", system-ui, sans-serif;    /* stand-in, as above */
  --f-mono: ui-monospace, "SF Mono", Menlo, monospace;                /* from app guide tokens.json */
  --f-features: normal;                                               /* from app guide: no letter-spacing or feature tricks */

  /* Type roles */
  --t-display-size: 52px; --t-display-weight: 700; --t-display-lh: 1.12; --t-display-track: -0.01em; /* from live site: hero, 58 px line pitch */
  --t-h2-size: 44px; --t-h2-weight: 700; --t-h2-lh: 1.1; --t-h2-track: -0.01em;    /* from live site: "every moment" heading */
  --t-h3-size: 24px; --t-h3-weight: 700; --t-h3-lh: 1.2; --t-h3-track: 0em;         /* from live site: library card titles */
  --t-lead-size: 18px; --t-lead-weight: 400; --t-lead-lh: 1.5;                      /* from live site: tick row 18 px; line height from app guide (1.5) */
  --t-body-size: 16px; --t-body-weight: 400; --t-body-lh: 1.5;                      /* from app guide: Body 16/1.5 */
  --t-small-size: 14px; --t-small-weight: 400; --t-small-lh: 1.45;                  /* from live site: card subtitles */
  --t-label-size: 13px; --t-label-weight: 600; --t-label-track: 0.01em; --t-label-case: none; --t-label-font: var(--f-body); /* from app guide: Tag Pill 13/600, title case, never uppercase */
  --t-button-size: 17px; --t-button-weight: 700; --t-button-track: 0em; --t-button-case: none; /* from live site: buttons are bold (app guide says 600) */
  --t-nav-size: 17px; --t-nav-weight: 400;                                          /* from live site */

  /* Layout and spacing */
  --s-container: 1330px;   /* from live site: panels run 55 px in from each edge at 1440 */
  --s-gutter: 24px;        /* from app guide: 24 pt standard margin, used below the container width */
  --s-section: 104px;      /* from live site: about 104 px between panel blocks */
  --s-section-sm: 56px;    /* from live site */
  --s-stack: 24px;         /* from app guide: 24 pt */
  --s-grid-gap: 22px;      /* from live site: option tile and quote card gap */
  --s-list-gap: 12px;      /* from app guide: 4 pt scale */

  /* Shape and depth */
  --r-sm: 8px;      /* from live site: option tiles */
  --r-md: 16px;     /* from live site: chat bubbles, library cards (app guide Medium 16) */
  --r-lg: 28px;     /* from live site: twin panels, yellow and blue panels */
  --r-pill: 9999px; /* from app guide: Pill */
  --shadow-1: var(--hs-shadow-soft);  /* from app guide */
  --shadow-2: var(--hs-shadow-float); /* from app guide */
  --border-w: 1px;                    /* from live site */

  /* Components */
  --nav-height: 80px; --nav-bg: var(--hs-white); --nav-border: transparent; --nav-radius: 0; --nav-inset: 0px; /* from live site */
  --btn-height: 48px; --btn-pad-x: 30px; --btn-radius: var(--r-pill);                                       /* from live site: 48 px pills */
  --btn-primary-bg: var(--hs-blue); --btn-primary-fg: #ffffff; --btn-primary-border: transparent; --btn-primary-hover-bg: var(--hs-blue-hover); /* from live site */
  --btn-secondary-bg: var(--hs-ink-2); --btn-secondary-fg: #ffffff; --btn-secondary-border: var(--hs-ink-2); --btn-secondary-hover-bg: #000000; /* from live site: dark pills in panels; hover is a guess */
  --btn-hover-transform: none; --btn-active-transform: scale(0.98); --btn-transition: 200ms ease;              /* from app guide: pressed scale 0.98, 200 ms */
  --card-bg: var(--hs-panel); --card-border: transparent; --card-radius: var(--r-md); --card-pad: 32px; --card-shadow: none; --card-media-radius: 0; /* from live site: quote cards */
  --tag-bg: var(--hs-panel); --tag-fg: var(--hs-ink); --tag-radius: var(--r-pill); --tag-pad: 10px 18px;     /* from live site: filter pills */
  --field-bg: var(--hs-white); --field-border: var(--hs-line); --field-radius: var(--r-sm); --field-height: 48px; /* guess: no field on the homepage */
  --list-marker-colour: var(--hs-grey); --list-divider: var(--border-w) solid var(--hs-line);                 /* from live site */
  --quote-size: 20px; --quote-font: var(--f-body); --quote-weight: 400; --quote-lh: 1.45;                       /* from live site: quote cards */
  --stat-size: 48px; --stat-weight: 700; --stat-colour: #ffffff; --stat-font: var(--f-display);                /* from live site: sky panel stats */
  --cta-bg: var(--hs-blue); --cta-fg: #ffffff; --cta-radius: var(--r-lg);                                     /* from live site */
  --footer-bg: var(--hs-white); --footer-fg: var(--hs-grey); --footer-border: var(--hs-line);                 /* guess: footer is hidden behind the cookie banner in the capture */
  --media-radius: var(--r-md); --media-shadow: none;                                                          /* from live site */
}

@media (max-width: 959px) {
  :root {
    --t-display-size: 40px; --t-h2-size: 34px; --s-section: 72px; --nav-height: 68px; /* guess: no mobile capture */
  }
}
@media (max-width: 599px) {
  :root {
    --t-display-size: 34px; --t-h2-size: 28px; --t-h3-size: 22px; --s-section: 56px; --t-lead-size: 16px; --card-pad: 24px; --btn-pad-x: 24px; /* guess */
  }
}

body { overflow-x: clip; }
.c-display, .c-h2, .c-h3 { color: var(--c-fg); }

/* ---------- x- components ---------- */

/* Promo bar: full-width yellow strip, centred underlined link (live site, 57 px tall) */
.x-promo { background: var(--hs-yellow); text-align: center; padding: 16px var(--s-gutter); }
.x-promo a { color: #362500; font-size: 17px; text-underline-offset: 0.18em; }

/* Brand wordmark: orange dot plus generic name */
.x-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.x-brand__dot { width: 32px; height: 32px; border-radius: 50%; background: var(--hs-marigold); flex: none; }

/* Nav text links on the right (Log in, Help) */
.x-navtext { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; color: var(--hs-ink); text-decoration: none; font-size: var(--t-nav-size); }
.x-navtext:hover { text-decoration: underline; }
.c-nav__links a:hover { color: var(--hs-ink); text-decoration: underline; }
.c-nav__actions { gap: 0; align-items: center; }
.c-nav .c-btn--primary { padding-inline: 34px; min-height: 48px; }

/* Hero spacing */
.x-hero { padding-block: 16px 26px; }
.x-hero .c-hero__inner { gap: 22px; }

/* Tick trust row */
.x-ticks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 44px; list-style: none; padding: 0; color: var(--hs-grey); font-size: var(--t-lead-size); }
.x-ticks li { display: inline-flex; align-items: center; gap: 8px; }
.x-ticks svg { width: 18px; height: 18px; flex: none; }

/* Twin rounded panels */
.x-twin { display: grid; gap: 21px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .x-twin { grid-template-columns: 913fr 397fr; } }
.x-panel { position: relative; overflow: hidden; background: var(--hs-panel); border-radius: var(--r-lg); padding: 44px 32px 0; min-height: 492px; display: grid; grid-template-rows: auto auto 1fr; justify-items: center; text-align: center; gap: 30px; }
.x-panel .c-h2 { font-size: 36px; line-height: 1.06; max-width: 19em; }
.x-panel h2 { text-wrap: balance; }
.x-panel__art { position: relative; width: 100%; max-width: 760px; align-self: end; height: 300px; }
@media (max-width: 599px) { .x-panel { padding-top: 32px; } .x-panel .c-h2 { font-size: 28px; } .x-panel__art { height: 260px; } }

/* Phone mockup (HTML and CSS screen) */
.x-phone { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); width: 196px; height: 300px; border: 5px solid #1c1b1a; border-bottom: 0; border-radius: 26px 26px 0 0; overflow: hidden; background: #fff; }
.x-phone__screen { height: 100%; padding: 46px 14px 0; display: grid; justify-items: center; align-content: start; gap: 8px; background: linear-gradient(180deg, #fdb700 0%, #ffd400 38%, #ffe14f 100%); }
.x-phone__screen::after { content: ""; position: absolute; left: -20%; right: -20%; top: 150px; height: 220px; border-radius: 50%; background: #ffe36a; z-index: 0; }
.x-phone__screen > * { position: relative; z-index: 1; }
.x-phone__eyebrow { font-size: 10px; color: #6b4b00; }
.x-phone__title { font-size: 19px; font-weight: 700; color: var(--hs-ink); line-height: 1.15; }
.x-phone__chips { display: flex; gap: 6px; }
.x-phone__chip { display: inline-flex; align-items: center; gap: 4px; background: #ffea9b; border-radius: 99px; padding: 3px 9px; font-size: 10px; font-weight: 600; color: var(--hs-ink); }
.x-phone__chip i { width: 14px; height: 14px; border-radius: 50%; background: var(--hs-blue); display: block; }
.x-phone__play { margin-top: 34px; width: 56px; height: 56px; border-radius: 50%; background: var(--hs-ink-2); display: grid; place-items: center; }
.x-phone__play::before { content: ""; border-left: 14px solid #fff; border-block: 9px solid transparent; margin-left: 4px; }
.x-phone.is-video { width: 176px; background: #3b3633; }
.x-phone.is-video .c-ph { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; padding: 20px; text-align: center; background: #e9e1db; }
.x-phone.is-video .x-phone__pip { inset: auto; position: absolute; left: 10px; bottom: 16px; width: 54px; height: 70px; border-radius: 8px; z-index: 2; aspect-ratio: auto !important; font-size: 9px !important; padding: 4px; text-align: center; border: 2px solid #fff; }
.x-phone__caption { position: absolute; top: 12px; left: 0; right: 0; z-index: 2; font-size: 9px; color: var(--hs-ink); text-align: center; }

/* Floating cards around the phone */
.x-float { position: absolute; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-2); }
.x-float.is-programs { left: calc(50% - 292px); top: 34px; width: 152px; height: 100px; }
.x-float.is-programs .c-ph { height: 100%; aspect-ratio: auto; border-radius: 0; background: #d7cfc6; font-size: 11px; padding: 8px; text-align: center; }
.x-float.is-sleep { left: calc(50% - 256px); top: 146px; width: 178px; height: 118px; background: linear-gradient(180deg, #8b3fd6 0%, #5a2aa8 55%, #3a1982 100%); }
.x-float.is-sleep::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -40px; height: 90px; background: #4b1f93; clip-path: polygon(0 60%, 25% 20%, 45% 55%, 65% 10%, 100% 50%, 100% 100%, 0 100%); }
.x-float.is-sleep::after { content: ""; position: absolute; inset: 8px 20px auto auto; width: 90px; height: 30px; border-radius: 50%; background: #f47ad0; opacity: 0.7; filter: blur(4px); }
.x-float__label { position: absolute; left: 10px; bottom: 8px; z-index: 1; color: #fff; font-size: 11px; font-weight: 700; }
.x-sphere { position: absolute; left: calc(50% + 92px); top: 70px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, var(--hs-marigold-light) 0%, var(--hs-marigold) 62%, #e55a2b 100%); }
.x-sphere svg { width: 60%; margin: 26% auto 0; }
.x-bubble { position: absolute; left: calc(50% + 132px); top: 172px; background: #fff; border-radius: 12px; padding: 10px 14px; text-align: left; box-shadow: 0 0 0 4px rgba(244, 135, 126, 0.15), var(--shadow-2); font-size: 13px; color: var(--hs-ink); }
.x-bubble small { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 600; font-size: 11px; }
.x-bubble small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hs-coral); }
.x-sparkle { position: absolute; width: 22px; height: 22px; background: var(--hs-butter); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.x-sun { position: absolute; width: 86px; height: 86px; border-radius: 50%; background: var(--hs-sun); }
.x-cloud { position: absolute; width: 90px; height: 44px; border-radius: 40px; background: var(--hs-cloud); }
.x-cloud::before { content: ""; position: absolute; width: 48px; height: 48px; border-radius: 50%; background: inherit; left: 18px; top: -24px; }
@media (max-width: 599px) {
  .x-float.is-programs { left: 4px; top: 10px; width: 120px; height: 80px; }
  .x-float.is-sleep { left: 0; top: 150px; width: 130px; height: 90px; }
  .x-sphere { left: auto; right: 0; top: 30px; width: 86px; height: 86px; }
  .x-bubble { left: auto; right: 0; top: 150px; }
}

/* Option tiles: label, small icon, chevron */
.x-options { display: grid; gap: 16px var(--s-grid-gap); grid-template-columns: 1fr; list-style: none; padding: 0; margin-top: 40px; }
@media (min-width: 720px) { .x-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .x-options { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.x-option { display: flex; align-items: center; gap: 14px; min-height: 74px; padding: 0 24px; background: var(--c-surface); border: var(--border-w) solid var(--hs-line); border-radius: var(--r-sm); box-shadow: var(--shadow-1); color: var(--hs-ink); text-decoration: none; font-size: 20px; transition: box-shadow var(--btn-transition); }
.x-option:hover { box-shadow: var(--shadow-2); }
.x-option span { margin-right: auto; }
.x-option svg { width: 40px; height: 40px; flex: none; }
.x-option::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--hs-ink); border-top: 2px solid var(--hs-ink); transform: rotate(45deg); margin-left: 6px; flex: none; }

/* Tabbed carousel on a big yellow panel */
.x-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.x-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 45px; padding: 0 22px; border-radius: var(--r-pill); border: 0; background: var(--hs-panel); color: var(--hs-ink); font: 600 15px/1 var(--f-body); cursor: pointer; }
.x-tab[aria-selected="true"] { background: var(--hs-ink-2); color: #fff; }
.x-tab[aria-selected="true"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.x-carousel { position: relative; margin-top: 26px; }
.x-carousel__peek { position: absolute; top: 0; bottom: 0; left: calc(100% + 22px); width: 400px; border-radius: var(--r-lg); background: var(--hs-pink); }
.x-slide { position: relative; background: var(--hs-yellow); border-radius: var(--r-lg); min-height: 588px; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; padding: 60px clamp(24px, 6vw, 136px); }
@media (min-width: 960px) { .x-slide { grid-template-columns: 1fr 1fr; padding-block: 60px; } }
.x-slide__copy { display: grid; gap: 22px; justify-items: start; max-width: 340px; }
.x-slide__copy .c-h2 { font-size: 36px; line-height: 1.12; }
.x-slide__copy p { font-size: 15px; color: #2f2a1c; }
.x-slide .c-btn { background: var(--hs-panel); color: var(--hs-ink); border-color: transparent; min-height: 44px; font-size: 15px; padding-inline: 24px; }
.x-slide .c-btn:hover { background: #ffffff; }
.x-chat { position: relative; display: grid; gap: 14px; width: min(100%, 394px); padding-bottom: 80px; }
.x-chat__msg { background: #fff; border-radius: var(--r-md); padding: 18px 22px; font-size: 15px; color: var(--hs-ink); line-height: 1.45; }
.x-chat__who { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 6px; }
.x-chat__who::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--hs-blue); }
.x-chat__msg.is-companion .x-chat__who::before { background: var(--hs-marigold); }
.x-chat__card { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 6px; padding: 8px 18px 8px 8px; box-shadow: var(--shadow-2); }
.x-chat__thumb { width: 72px; height: 46px; border-radius: 6px; background: linear-gradient(90deg, #1452d8 0 45%, #4aa0f0 45% 70%, #1452d8 70%); flex: none; }
.x-chat__card div { margin-right: auto; font-size: 13px; font-weight: 700; color: var(--hs-ink); }
.x-chat__card small { display: block; font-weight: 400; color: var(--hs-grey); }
.x-chat__card::after { content: ""; border-left: 13px solid var(--hs-ink); border-block: 8px solid transparent; }
.x-chat .x-face { position: absolute; left: 90px; bottom: -20px; }
.x-dots { display: flex; justify-content: center; gap: 6px; margin-top: 26px; }
.x-dots span { width: 7px; height: 7px; border-radius: 50%; background: #d8d4d1; }
.x-dots span:first-child { background: var(--hs-ink-2); }

/* Floating character faces: CSS circle, two tone, smiling face drawn in inline SVG */
.x-face { --face-a: var(--hs-marigold); --face-b: var(--hs-butter); --face-size: 90px; width: var(--face-size); height: var(--face-size); border-radius: 50%; background: linear-gradient(200deg, var(--face-b) 0 34%, var(--face-a) 34%); display: grid; place-items: center; flex: none; }
.x-face svg { width: 52%; }
.x-face.is-sphere { background: radial-gradient(circle at 70% 30%, var(--face-b) 0%, var(--face-a) 70%); }
.x-faces { position: relative; text-align: center; padding-block: 200px 130px; }
.x-faces .c-h2 { font-size: 54px; max-width: 16ch; margin-inline: auto; position: relative; z-index: 1; }
.x-faces .x-face, .x-faces .x-sparkle { position: absolute; }
@media (max-width: 959px) { .x-faces { padding-block: 120px 90px; } .x-faces .c-h2 { font-size: 36px; } }
@media (max-width: 599px) { .x-faces .c-h2 { font-size: 30px; } .x-faces .x-face { --face-size: 56px !important; } }

/* Quote cards (library c-card + c-quote, tuned) */
.x-quotes .c-card { min-height: 430px; align-content: space-between; padding: 36px 32px 44px; }
.x-quotes .c-quote figcaption { font-size: 13px; color: var(--hs-grey); max-width: 22ch; }

/* Partner panel: blue, logo row, copy and photo collage */
.x-partner { background: var(--hs-blue); color: #fff; border-radius: var(--r-lg); padding: 30px clamp(24px, 6vw, 116px) 64px; overflow: hidden; }
.x-logos { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 36px; padding-block: 16px 40px; color: #cfe0ff; }
.x-logos span { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.x-logos span:nth-child(2n) { font-family: Georgia, serif; font-weight: 400; }
.x-logos span:nth-child(3n) { font-size: 15px; letter-spacing: 0.12em; }
.x-logos span.is-big { font-family: Georgia, serif; font-size: 40px; color: #fff; }
.x-partner__body { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .x-partner__body { grid-template-columns: 1fr 1fr; } }
.x-partner .c-h2 { color: #fff; font-size: 36px; line-height: 1.14; max-width: 14ch; }
.x-partner p { color: #eef4ff; }
.x-partner .c-btn--secondary { background: var(--hs-panel); color: var(--hs-ink); border-color: var(--hs-panel); min-height: 46px; font-size: 15px; }
.x-partner .x-btn-outline { background: transparent; color: #fff; border: 2px solid #fff; min-height: 46px; font-size: 15px; }
.x-partner .x-btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.x-collage { position: relative; height: 580px; }
.x-collage .c-ph { position: absolute; aspect-ratio: auto; border-radius: 10px; background: #dfe7f5; color: #3a4558; padding: 12px; text-align: center; }
.x-collage .c-ph:nth-child(1) { left: 12%; top: 0; width: 150px; height: 180px; }
.x-collage .c-ph:nth-child(2) { left: 46%; top: 44px; width: 230px; height: 285px; }
.x-collage .c-ph:nth-child(3) { left: 12%; top: 236px; width: 232px; height: 284px; }
.x-collage .x-cloud { left: 66%; top: 300px; width: 140px; height: 60px; background: #8fd0ff; }
.x-collage .x-sparkle { left: 0; top: 190px; width: 34px; height: 34px; }
@media (max-width: 599px) {
  .x-collage { height: 380px; }
  .x-collage .c-ph:nth-child(1) { left: 0; width: 120px; height: 140px; }
  .x-collage .c-ph:nth-child(2) { left: auto; right: 0; top: 30px; width: 150px; height: 190px; }
  .x-collage .c-ph:nth-child(3) { left: 0; top: 170px; width: 160px; height: 200px; }
  .x-collage .x-cloud { left: auto; right: 0; top: 250px; }
}

/* Marquee: yellow strip, words scroll left, stops under reduced motion */
.x-marquee { background: var(--hs-yellow); overflow: hidden; height: 85px; display: flex; align-items: center; }
.x-marquee__track { display: flex; flex: none; gap: 0; animation: x-marquee 40s linear infinite; }
.x-marquee__track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap; font-size: 27px; color: var(--hs-ink); }
.x-marquee__track span::after { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--hs-marigold); }
@keyframes x-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .x-marquee__track { animation: none !important; transform: none; } }

/* Library: filter pills and colourful content cards */
.x-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.x-filters .c-tag { gap: 8px; font-size: 14px; }
.x-filters .c-tag[aria-pressed="true"] { background: var(--hs-ink-2); color: #fff; }
.x-filters i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.x-library { margin-top: 22px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
@media (min-width: 1040px) { .x-library { grid-auto-columns: calc((100% - 66px) / 4); } }
.x-lib-card { position: relative; scroll-snap-align: start; min-height: 434px; border-radius: var(--r-md); overflow: hidden; display: grid; align-content: end; justify-items: center; text-align: center; padding: 0 22px 34px; color: #fff; text-decoration: none; isolation: isolate; }
.x-lib-card::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, transparent, rgba(40, 18, 8, 0.72)); z-index: -1; }
.x-lib-card .c-h3 { color: #fff; font-size: 24px; text-wrap: balance; }
.x-lib-card p { font-size: 13px; margin-top: 10px; color: #fff; }
.x-lib-card .c-tag { position: absolute; top: 16px; left: 16px; background: #fff; color: var(--hs-blue); font-size: 11px; padding: 2px 9px; font-weight: 700; }
.x-lib-card.is-aurora { background: linear-gradient(180deg, var(--hs-amber) 0%, #f6a15b 55%, #a0634f 100%); }
.x-lib-card.is-purple { background: linear-gradient(180deg, #3a1982 0%, #4a2492 60%, #5a3a7a 100%); }
.x-lib-card.is-orange { background: linear-gradient(180deg, var(--hs-orange) 0%, #e86a0a 60%, #8f4a16 100%); }
.x-lib-card.is-amber { background: linear-gradient(180deg, #ffb000 0%, #f39a00 60%, #8a5a12 100%); }
.x-lib-card.is-pink { background: linear-gradient(180deg, #ff8fb8 0%, #e0679a 60%, #7a3555 100%); }
.x-lib-card__art { position: absolute; left: 50%; top: 56px; transform: translateX(-50%); z-index: -1; }
.x-lib-card__art .x-face { --face-size: 150px; }
.x-house { width: 150px; height: 110px; background: #fff; clip-path: polygon(50% 0, 100% 40%, 100% 100%, 0 100%, 0 40%); position: relative; }
.x-house::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 70px; height: 35px; border-radius: 70px 70px 0 0; transform: translateX(-50%); background: conic-gradient(from -90deg at 50% 100%, var(--hs-coral), var(--hs-butter), var(--hs-sage), var(--hs-lavender) 50%, transparent 0); }
.x-cloud-bed { width: 180px; height: 70px; border-radius: 50px; background: #a879e0; position: relative; margin-top: 70px; }
.x-cloud-bed::before { content: ""; position: absolute; width: 80px; height: 80px; border-radius: 50%; background: inherit; left: 50px; top: -40px; }
.x-lib-nav { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 18px; }
.x-lib-nav .c-btn--link { color: var(--hs-ink); font-size: 15px; }
.x-round { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--hs-panel); display: grid; place-items: center; cursor: pointer; color: var(--hs-ink); }
.x-round svg { width: 14px; }
.x-round[disabled] { color: #b8b3b0; cursor: default; }

/* Sky gradient stats panel */
.x-sky { position: relative; overflow: hidden; border-radius: var(--r-lg); color: #fff; text-align: center; padding: 96px clamp(24px, 5vw, 80px) 100px; background:
  radial-gradient(ellipse 30% 18% at 22% 30%, rgba(255, 255, 255, 0.08), transparent 70%),
  radial-gradient(ellipse 34% 20% at 78% 58%, rgba(255, 255, 255, 0.07), transparent 70%),
  linear-gradient(180deg, var(--hs-sky-1) 0%, var(--hs-sky-2) 45%, var(--hs-sky-3) 100%); }
.x-sky .c-h2 { color: #fff; font-size: 48px; max-width: 17ch; margin-inline: auto; }
.x-sky__pill { display: inline-flex; align-items: center; gap: 10px; border: 2px solid rgba(255, 255, 255, 0.8); border-radius: var(--r-pill); padding: 6px 16px 6px 8px; font-size: 14px; font-weight: 700; }
.x-sky__pill .x-face { --face-size: 24px; margin-left: -8px; border: 2px solid var(--hs-sky-1); }
.x-sky__pill .x-face:first-child { margin-left: 0; }
.x-sky__pill .x-face svg { display: none; }
.x-sky .c-btn--secondary { margin-top: 28px; min-height: 44px; font-size: 15px; }
.x-sky__avatar { position: absolute; width: 62px; height: 62px; border-radius: 50% !important; aspect-ratio: 1 !important; font-size: 9px !important; padding: 4px; text-align: center; line-height: 1.1; border: 3px solid rgba(255, 255, 255, 0.85); background: #cfe3f5 !important; color: #2b4256 !important; }
.x-stats { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 110px; list-style: none; padding: 0; }
@media (min-width: 960px) { .x-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.x-stats .c-stat__l { color: #fff; font-size: 14px; font-weight: 600; }
.x-stars { display: flex; justify-content: center; gap: 3px; height: 48px; align-items: center; }
.x-stars svg { width: 24px; }
.x-awards { display: flex; justify-content: center; gap: 6px; height: 48px; align-items: center; }
.x-awards span { width: 36px; height: 36px; border-radius: 50%; background: #eaf4fd; }
@media (max-width: 959px) { .x-sky__avatar { display: none; } .x-sky .c-h2 { font-size: 34px; } }

/* FAQ: library c-faq, set to the site's narrower column and lighter questions */
.x-faq { max-width: 883px; margin: 40px auto 0; }
.x-faq.c-faq summary { font-family: var(--f-body); font-size: 18px; font-weight: 400; align-items: center; min-height: 40px; }
.x-faq.c-faq summary::after { color: var(--hs-ink); font-size: 20px; }
.x-faq.c-faq details { padding-block: 16px; }
.x-faq.c-faq details:first-child { border-top: 0; }
.x-faq.c-faq details:last-child { border-bottom: 0; }

/* Footer extras */
.x-footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: var(--border-w) solid var(--hs-line); }
.c-footer .x-brand { font-size: 22px; color: var(--hs-ink); }
.c-footer .x-brand__dot { width: 26px; height: 26px; }
.c-footer a:hover { text-decoration: underline; }

/* Visually hidden helper */
.x-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Small screens: tidy the panel art and card heights (guess, no mobile capture) */
@media (max-width: 719px) {
  .x-quotes .c-card { min-height: 0; gap: 28px; }
  .x-stats { --stat-size: 38px; }
}
@media (max-width: 599px) {
  .x-float.is-programs { display: none; }
  .x-panel__art .x-phone:not(.is-video) { left: 58%; }
  .x-float.is-sleep { top: 120px; }
}
