/* The Groundlayer: plain CSS classes (prefix gl-), built only on tokens.css variables.
   Fonts are self-hosted: tokens.css declares them from fonts/. No requests to Google. */

.gl-page { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.gl-page *, .gl-page *::before, .gl-page *::after { box-sizing: border-box; }

/* ---------- Layout ---------- */
/* The page gradient: ONCE, on <body class="gl-page gl-ground">. Sections stay transparent so it runs top to bottom without restarting.
   White holds through the first screen on a long page (up to 800px), or the top quarter of a short one, then fades. */
.gl-ground { background-color: var(--canvas); background-image: linear-gradient(180deg, var(--card) 0, var(--card) min(800px, 25%), var(--canvas) min(1400px, 50%), var(--canvas-deep) 80%, var(--canvas) 100%); }
/* The footer and strip sit at the bottom of the window even when the page is short. */
body.gl-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.gl-page > main { flex: 1; }
.gl-container { max-width: var(--page-max-width); margin-inline: auto; padding-inline: var(--space-6); }
.gl-section { padding-block: var(--space-8); }
/* The one contained panel: the booking section. Inside the page width, so the page gradient keeps running around it. */
.gl-panel { border-radius: var(--radius-xl); padding: var(--space-8) var(--space-7); background: var(--wash); }
.gl-section__head { max-width: 40em; margin-bottom: var(--space-6); }
.gl-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.gl-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.gl-hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--space-8); align-items: center; padding-block: var(--space-8); }
.gl-hero__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-6); }

/* ---------- Text ---------- */
.gl-display { font-family: var(--font-heading); font-size: clamp(38px, 3.2vw + 12px, 52px); line-height: 1.05; font-weight: 500; letter-spacing: -0.025em; color: var(--ink); margin: 0 0 var(--space-5); text-wrap: balance; }
.gl-h1 { font-family: var(--font-heading); font-size: clamp(34px, 2vw + 22px, 44px); line-height: 1.1; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 var(--space-5); text-wrap: balance; }
.gl-h2 { font-family: var(--font-heading); font-size: clamp(28px, 1vw + 22px, 34px); line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 var(--space-4); text-wrap: balance; }
.gl-h3 { font-family: var(--font-heading); font-size: 26px; line-height: 1.2; font-weight: 500; letter-spacing: -0.015em; margin: 0 0 var(--space-2); }
.gl-h4 { font-family: var(--font-heading); font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 var(--space-2); }
.gl-lead { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 38em; margin: 0; }
.gl-small { font-size: 14px; color: var(--ink-2); margin: 0; }
.gl-caption { font-size: 13px; color: var(--muted); margin: 0; }
.gl-highlight { background: linear-gradient(to top, #6e8ce8 .1em, var(--wash) .1em); color: inherit; padding: 0 .1em; border-radius: var(--radius-sm); /* a band at the base, like the logo: rounded outer corners, straight top edge */ box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- Actions ---------- */
.gl-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; font-family: var(--font-body); font-size: 15px; line-height: 1.4; font-weight: 600; padding: var(--space-2) var(--space-5); border-radius: var(--radius-md); border: 0; background: var(--blue); color: var(--on-blue); text-decoration: none; white-space: nowrap; cursor: pointer; }
.gl-btn:hover { background: var(--blue-hover); }
.gl-btn:active { transform: translateY(1px); }
.gl-btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.gl-btn--ghost:hover { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.gl-btn--sm { min-height: 36px; font-size: 14px; padding: var(--space-1) var(--space-4); }
.gl-btn[aria-disabled="true"] { background: var(--hairline); color: var(--muted); box-shadow: none; pointer-events: none; }
/* Links in text: body grey with a soft blue underline, close to the sentence. Blue text is only for booking (.gl-link--book). */
.gl-link { color: var(--ink-2); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.gl-link:hover { text-decoration-thickness: 2px; }
.gl-link--book { color: var(--blue); text-decoration-color: currentColor; }
.gl-link--book:hover { color: var(--blue-hover); }
.gl-link--arrow { text-decoration: none; }
.gl-link--arrow::after { content: " →"; }
.gl-link--arrow:hover { text-decoration: underline; }
.gl-page :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: var(--radius-sm); }

/* ---------- Cards ---------- */
.gl-card { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: var(--space-5); }
.gl-offer { display: flex; flex-direction: column; gap: var(--space-2); }
.gl-offer .gl-h4 { margin: 0; }
.gl-offer > p { font-size: 14px; color: var(--ink-2); margin: 0; flex: 1; }
.gl-offer .gl-link { font-size: 14px; margin-top: var(--space-2); }
/* Featured offer: the logo's motif, a blue band under the card. */
.gl-offer--feature { border-color: var(--ink); border-bottom: var(--strip-height) solid var(--blue); }

/* ---------- Portrait: photo over a navy block standing on a blue band (the logo) ---------- */
.gl-portrait { position: relative; margin: 0; padding: 0 0 var(--space-7) var(--space-5); max-width: 440px; }
.gl-portrait::before { content: ""; position: absolute; left: 0; right: var(--space-7); top: var(--space-7); bottom: var(--space-5); background: var(--surface-navy); }
.gl-portrait::after { content: ""; position: absolute; left: 0; right: var(--space-7); bottom: 0; height: var(--space-5); background: var(--blue); }
.gl-portrait img { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); filter: grayscale(1); }
.gl-portrait figcaption { position: absolute; z-index: 1; left: calc(var(--space-5) + var(--space-4)); bottom: calc(var(--space-7) + var(--space-4)); background: var(--card); color: var(--ink); border-radius: var(--radius-md); padding: var(--space-2) var(--space-3); font-size: 14px; line-height: 1.3; }
.gl-portrait figcaption b { display: block; font-weight: 600; }
.gl-portrait figcaption span { color: var(--muted); font-size: 13px; }

/* ---------- Booking: the cal.com embed in a card ---------- */
.gl-book { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); overflow: hidden; }
.gl-book__intro { padding: var(--space-6); border-right: 1px solid var(--hairline); }
.gl-book__meta { font-size: 14px; color: var(--muted); margin: 0 0 var(--space-5); }
.gl-book__list { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: grid; gap: var(--space-3); font-size: 15px; color: var(--ink-2); }
.gl-book__list li { padding-left: var(--space-5); position: relative; }
.gl-book__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--ink); }
.gl-book__embed { min-height: 560px; padding: var(--space-4); display: flex; align-items: center; justify-content: center; }
.gl-book__embed:has(.gl-book__fallback) { min-height: 240px; }
.gl-book__fallback { text-align: center; display: grid; gap: var(--space-3); justify-items: center; }

/* ---------- How I work ---------- */
.gl-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
.gl-step { border-top: 2px solid var(--ink); padding-top: var(--space-4); }
.gl-step p { font-size: 15px; color: var(--ink-2); margin: 0; }

/* ---------- Proof ---------- */
.gl-stat { border-left: 1px solid var(--hairline); padding-left: var(--space-5); }
.gl-stat .gl-stat__value { font-family: var(--font-heading); font-size: 44px; line-height: 1; font-weight: 500; letter-spacing: -0.025em; color: var(--ink); margin: 0 0 var(--space-2); }
.gl-stat p:not(.gl-stat__value) { font-size: 14px; color: var(--ink-2); margin: 0; }

/* ---------- FAQ ---------- */
.gl-faq { border-top: 1px solid var(--hairline); max-width: 760px; }
.gl-faq details { border-bottom: 1px solid var(--hairline); }
.gl-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) 0; font-family: var(--font-heading); font-size: 19px; font-weight: 500; color: var(--ink); }
.gl-faq summary::-webkit-details-marker { display: none; }
.gl-faq summary::after { content: "+"; font-family: var(--font-body); font-weight: 400; font-size: 22px; line-height: 1; color: var(--ink-2); }
.gl-faq details[open] summary::after { content: "–"; }
.gl-faq details p { margin: 0 0 var(--space-5); color: var(--ink-2); max-width: 38em; }

/* ---------- Nav ---------- */
/* A full-width white bar; its content sits in the page container, links grouped on the right next to the button. */
.gl-nav { background: var(--card); border-bottom: 1px solid var(--hairline); }
.gl-nav > .gl-container { display: flex; align-items: center; gap: var(--space-6); padding-block: var(--space-3); }
.gl-nav ul { display: flex; gap: var(--space-5); list-style: none; margin: 0 0 0 auto; padding: 0; font-size: 14px; font-weight: 500; }
.gl-nav ul a { color: var(--ink-2); text-decoration: none; }
.gl-nav ul a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .3em; }
.gl-logo { display: inline-flex; align-items: center; gap: var(--space-3); font-family: var(--font-logo); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.gl-logo img, .gl-logo svg { width: 28px; height: 28px; display: block; flex: none; }

/* ---------- Footer, then the blue strip that ends every page ---------- */
.gl-footer { background: var(--card); border-top: 1px solid var(--hairline); font-size: 15px; color: var(--ink); }
.gl-footer > .gl-container { padding-block: var(--space-4); display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; } /* same edges as the nav */
.gl-footer nav { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.gl-footer a { color: var(--ink-2); text-decoration: none; }
.gl-footer a:hover { color: var(--ink); text-decoration: underline; }
.gl-strip { height: var(--strip-height); background: var(--blue); }

/* ---------- Phones ---------- */
@media (max-width: 720px) {
  .gl-container { padding-inline: var(--space-5); }
  .gl-section, .gl-hero { padding-block: var(--space-7); }
  .gl-panel { padding: var(--space-6) var(--space-4); border-radius: var(--radius-lg); }
  .gl-hero, .gl-grid-3, .gl-book { grid-template-columns: 1fr; gap: var(--space-6); }
  .gl-grid-4, .gl-steps { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .gl-nav ul { display: none; }
  .gl-nav .gl-btn { margin-left: auto; }
  .gl-logo { font-size: 18px; }
  .gl-btn--sm { min-height: 44px; }
  .gl-portrait { max-width: 340px; }
  .gl-book__intro { border-right: 0; border-bottom: 1px solid var(--hairline); padding: var(--space-5); }
  .gl-stat .gl-stat__value { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) { .gl-page * { transition: none !important; animation: none !important; } }

/* Large screens (1400px and up): the page scales up by about a quarter, so it doesn't float small in a wide window. */
@media (min-width: 1400px) {
  :root { --page-max-width: min(1500px, 100vw - 160px); } /* keeps a wide margin as the window narrows */
  .gl-display { font-size: clamp(52px, 2.6vw + 15px, 65px); } /* 52px at 1440, 65px from about 1920 */
  .gl-lead { font-size: 22px; }
  .gl-btn { min-height: 52px; font-size: 18px; padding: var(--space-2) var(--space-6); border-radius: 10px; }
  .gl-btn--sm { min-height: 44px; font-size: 17px; padding: var(--space-1) var(--space-5); }
  .gl-nav > .gl-container { padding-block: var(--space-4); }
  .gl-nav ul { font-size: 17px; gap: var(--space-6); }
  .gl-logo { font-size: 25px; gap: var(--space-4); }
  .gl-logo img, .gl-logo svg { width: 35px; height: 35px; }
  .gl-footer { font-size: 18px; }
  .gl-hero { gap: calc(var(--space-8) + var(--space-4)); }
}
