/* Gima's Piano editorial system — shared by the homepage and the marketing pages that use the
   h2 shell (inc/h2-shell.php): tokens, type, buttons, nav, Meet-Gima split, CTA band, FAQ,
   footer, light/dark. Page-specific sections live in their own files (home-v2.css, …).
   Tokens are --h2-* because html.gp-dark redefines generic names like --ink site-wide. */

:root {
  --h2-paper: #F7F5F1;
  --h2-paper-2: #EFECE6;
  --h2-ink: #16171C;
  --h2-ink-2: #1F2129;
  --h2-ink-3: #3A3D46;
  --h2-line: rgba(22, 23, 28, .12);
  --h2-night: #0B0B0C;
  --h2-night-2: #141519;
  --h2-on-night: #F2F2F6;
  --h2-on-night-2: rgba(242, 242, 246, .64);
  --h2-on-night-3: rgba(242, 242, 246, .62);
  --h2-night-line: rgba(255, 255, 255, .09);
  --h2-blue: var(--gp-blue, #4C9EF3);
  --h2-blue-ink: #1F5FBF;
  /* White text needs a deeper blue than the brand #4C9EF3 (2.8:1): #2E76C7→#2563EB is 4.6–5.2:1. */
  --h2-blue-fill: linear-gradient(135deg, #2E76C7, #2563EB);
  --h2-serif: 'Fraunces', 'Times New Roman', serif;
  --h2-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --h2-ease: cubic-bezier(.22, .9, .27, 1);
  --h2-gutter: clamp(20px, 5vw, 72px);
  --h2-card: #fff;
  --h2-label: #174A9C;
}

/* Dark mode (html.gp-dark, set by the site-wide gp_theme switch): paper sections turn to deep
   ink, cards lift slightly off it, text flips light. Night sections and the blue CTA stay. */
html.gp-dark .h2-body {
  --h2-paper: #111217;
  --h2-paper-2: #17181E;
  --h2-ink: #F2F2F6;
  --h2-ink-2: rgba(242, 242, 246, .86);
  --h2-ink-3: rgba(242, 242, 246, .7);
  --h2-line: rgba(255, 255, 255, .11);
  --h2-card: #1B1C23;
  --h2-label: #8FBDF7;
  --h2-blue-ink: #7DB4F5;
}

html, body.h2-body { margin: 0; padding: 0; background: var(--h2-night); }
html:has(body.h2-body) { overflow-x: clip; }
body.h2-body { color: var(--h2-on-night); font-family: var(--h2-sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.h2-body *, .h2-body *::before, .h2-body *::after { box-sizing: border-box; }
.h2-body a { color: inherit; text-decoration: none; }
.h2-body img { max-width: 100%; display: block; }
:where(.h2-body) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; box-shadow: none; cursor: pointer; }
:where(.h2-body) button:hover { background: none; }
.h2-body h1, .h2-body h2, .h2-body h3 { font-family: var(--h2-serif); font-weight: 400; margin: 0; letter-spacing: -.02em; color: inherit; }
.h2-body p { margin: 0; }
.h2-body .ico { width: 1em; height: 1em; fill: currentColor; flex: none; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.h2-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--h2-gutter); }
.h2-paper { background: var(--h2-paper); color: var(--h2-ink); }
.h2-night { background: var(--h2-night); color: var(--h2-on-night); }

/* ── Type ── */
.h2-eyebrow { font: 700 11px/1.5 var(--h2-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--h2-blue); margin-bottom: 22px; }
.h2-eyebrow--ink { color: var(--h2-label); font-size: 12px; }
.h2-display { font-size: clamp(34px, 4.6vw, 68px); line-height: 1.02; max-width: 16ch; }
.h2-display--xl { font-size: clamp(40px, 6.4vw, 104px); max-width: 14ch; }
.h2-display em, .h2-cta__title em, .h2-hero__title em, .h2-foot__mark em { font-style: italic; color: var(--h2-blue); }
.h2-paper .h2-display em { color: var(--h2-blue-ink); }
.h2-lead { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.65; color: var(--h2-ink-2); max-width: 56ch; margin: 26px 0 32px; }
.h2-lead--night { color: var(--h2-on-night-2); }
.h2-note { font-size: 13px; color: var(--h2-ink-3); margin-top: 14px; }
.h2-note--light { color: #fff; }
.mw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.mw > i { display: inline-block; font-style: inherit; }

/* ── Buttons (DESIGN.md: white-on-blue pill) ── */
.h2-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: var(--gp-r-pill, 999px);
  background: var(--h2-blue-fill); color: #fff !important;
  font: 700 15px/1 var(--h2-sans); letter-spacing: -.005em;
  box-shadow: 0 10px 30px rgba(var(--gp-blue-rgb, 76, 158, 243), .35);
  transition: transform .25s var(--h2-ease), box-shadow .25s var(--h2-ease), background .25s;
  will-change: transform;
}
.h2-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(var(--gp-blue-rgb, 76, 158, 243), .5); }
.h2-btn--sm { min-height: 42px; padding: 0 20px; font-size: 14px; box-shadow: none; }
.h2-btn--ghost { background: transparent; border: 1.5px solid rgba(255, 255, 255, .42); box-shadow: none; }
.h2-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); box-shadow: none; }
.h2-btn--white { background: #fff; color: #16171C !important; box-shadow: 0 12px 34px rgba(0, 0, 0, .18); }
.h2-arrow { width: 16px; height: 16px; transition: transform .25s var(--h2-ease); }
.h2-btn:hover .h2-arrow, .h2-link:hover .h2-arrow { transform: translateX(4px); }
.h2-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.h2-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--h2-blue); white-space: nowrap; }

/* ── Nav ── */
.h2-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  display: flex; align-items: center; gap: 28px;
  height: 72px; padding: 0 var(--h2-gutter);
  transition: transform .5s var(--h2-ease), background .35s, backdrop-filter .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.h2-nav.is-solid { background: rgba(11, 11, 12, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--h2-night-line); }
.h2-nav.is-hidden { transform: translateY(-100%); }
.h2-nav__logo img { height: 34px; width: auto; filter: brightness(0) invert(1); }
.h2-nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 500; }
.h2-nav__links a { color: var(--h2-on-night-2); transition: color .2s; }
.h2-nav__links a:hover { color: #fff; }
.h2-nav__burger { display: none; width: 44px; height: 44px; position: relative; margin-left: 4px; }
.h2-nav__burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--h2-ease), top .3s var(--h2-ease); }
.h2-nav__burger span:first-child { top: 17px; }
.h2-nav__burger span:last-child { top: 25px; }
.h2-nav.is-open .h2-nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
.h2-nav.is-open .h2-nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }
@media (max-width: 900px) {
  .h2-nav { gap: 12px; height: 64px; }
  .h2-nav__links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0; margin: 0;
    background: rgba(11, 11, 12, .97); padding: 8px var(--h2-gutter) 24px; font-size: 18px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--h2-ease);
  }
  .h2-nav__links a { padding: 14px 0; border-bottom: 1px solid var(--h2-night-line); color: var(--h2-on-night); }
  .h2-nav.is-open .h2-nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .h2-nav .h2-btn--sm { margin-left: auto; }
  .h2-nav__burger { display: block; }
}

/* ── Meet Gima ── */
.h2-gima { padding: 130px 0; }
.h2-gima__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.h2-gima__photo { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--h2-paper-2); }
.h2-gima__photo img, .h2-gima__photo video, .h2-gima__photo iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.h2-gima__copy .h2-display { margin-bottom: 28px; max-width: 18ch; }
.h2-gima__copy p { color: var(--h2-ink-2); margin-bottom: 18px; max-width: 58ch; }
.h2-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 28px 0 0; }
.h2-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--h2-card); border: 1px solid var(--h2-line); font-size: 13.5px; font-weight: 600; color: var(--h2-ink); }
.h2-chips li .ico { color: var(--h2-blue-ink); }
.h2-chips--night li { background: rgba(255, 255, 255, .05); border-color: var(--h2-night-line); color: var(--h2-on-night); }
@media (max-width: 900px) { .h2-gima__grid { grid-template-columns: minmax(0, 1fr); } }

/* ── CTA ── */
.h2-cta { background: linear-gradient(135deg, #2563EB, #1D4ED8); color: #fff; padding: clamp(100px, 14vw, 180px) 0; text-align: center; overflow: hidden; }
.h2-cta .h2-cta__title { font: 400 clamp(46px, 8vw, 132px)/.96 var(--h2-serif); letter-spacing: -.04em; max-width: 14ch; margin: 0 auto 28px; }
.h2-cta__title em { color: #fff; }
.h2-cta .h2-cta__sub { font-size: clamp(16px, 1.4vw, 20px); color: #fff; max-width: 44ch; margin: 0 auto 40px; }
.h2-cta .h2-ctas { justify-content: center; }
.h2-cta .h2-btn--ghost { border-color: rgba(255, 255, 255, .6); }

/* ── FAQ ── */
.h2-faq { padding: 130px 0; }
.h2-faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.h2-faq__list { display: flex; flex-direction: column; gap: 14px; counter-reset: faq; }
.h2-faq__item {
  counter-increment: faq; background: var(--h2-card); border: 1px solid var(--h2-line); border-radius: 22px;
  transition: border-color .35s, box-shadow .35s var(--h2-ease), transform .35s var(--h2-ease);
}
.h2-faq__item:hover { border-color: rgba(37, 99, 235, .35); box-shadow: 0 10px 30px rgba(20, 30, 50, .07); }
.h2-faq__item.is-open { border-color: rgba(37, 99, 235, .5); box-shadow: 0 18px 44px rgba(20, 30, 50, .10); }
.h2-faq .h2-faq__q {
  width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px;
  padding: 24px 24px 24px 28px; text-align: left; border-radius: 22px;
  font: 400 clamp(20px, 1.7vw, 25px)/1.25 var(--h2-serif); letter-spacing: -.01em; color: var(--h2-ink);
}
.h2-faq .h2-faq__q, .h2-faq .h2-faq__q:hover, .h2-faq .h2-faq__q:focus, .h2-faq .h2-faq__q:active { background: transparent; color: var(--h2-ink); box-shadow: none; }
.h2-faq .h2-faq__q::before { content: counter(faq, decimal-leading-zero); font: 600 13px/1 var(--h2-sans); letter-spacing: .08em; color: var(--h2-label); }
.h2-faq .h2-faq__q:focus-visible { outline: 2px solid #2563EB; outline-offset: 3px; }
.h2-faq__q i {
  position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: var(--h2-paper); border: 1px solid var(--h2-line);
  transition: background .35s, border-color .35s, transform .45s var(--h2-ease);
}
.h2-faq__q i::before, .h2-faq__q i::after { content: ''; position: absolute; left: 14px; right: 14px; top: 21px; height: 2px; background: var(--h2-ink); border-radius: 2px; transition: background .35s; }
.h2-faq__q i::after { transform: rotate(90deg); }
.h2-faq__item:hover .h2-faq__q i { border-color: rgba(37, 99, 235, .45); }
.h2-faq__item.is-open .h2-faq__q i { background: #2563EB; border-color: #2563EB; transform: rotate(135deg); }
.h2-faq__item.is-open .h2-faq__q i::before, .h2-faq__item.is-open .h2-faq__q i::after { background: #fff; }
.h2-faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--h2-ease); }
.h2-faq__a > p { overflow: hidden; color: var(--h2-ink-2); font-size: 16.5px; line-height: 1.7; padding: 0 84px 0 calc(28px + 20px + 2ch); }
.h2-faq__item.is-open .h2-faq__a { grid-template-rows: 1fr; }
.h2-faq__item.is-open .h2-faq__a > p { padding-bottom: 28px; }
.h2-faq__a a { color: var(--h2-label); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .h2-faq__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .h2-faq .h2-faq__q { gap: 14px; padding: 20px 18px; }
  .h2-faq__q i { width: 38px; height: 38px; }
  .h2-faq__q i::before, .h2-faq__q i::after { left: 11px; right: 11px; top: 18px; }
  .h2-faq__a > p { padding: 0 18px; }
}

/* ── Footer ── */
.h2-foot { padding: 100px 0 0; overflow: hidden; }
.h2-foot__cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.h2-foot__cols img { height: 30px; width: auto; filter: brightness(0) invert(1); }
.h2-foot__tag { color: var(--h2-on-night-3); font-size: 13px; margin-top: 16px; max-width: 22ch; }
.h2-foot__h { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--h2-on-night); margin-bottom: 14px; }
.h2-foot__cols a, .h2-foot__cols span { display: block; font-size: 14px; color: var(--h2-on-night-3); margin-bottom: 9px; transition: color .2s; }
.h2-foot__cols a:hover { color: var(--h2-on-night); }
.h2-foot__mark { font: 400 clamp(64px, 17vw, 280px)/.85 var(--h2-serif); letter-spacing: -.055em; text-align: center; white-space: nowrap; margin-top: 90px; color: var(--h2-on-night); }
.h2-foot__copy { font-size: 12px; color: var(--h2-on-night-3); padding-top: 28px; padding-bottom: 96px; border-top: 1px solid var(--h2-night-line); margin-top: 24px; }
@media (max-width: 900px) { .h2-foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .h2-foot__cols > div:first-child { grid-column: 1 / -1; } }


/* ── Theme switch in the (always dark) nav — reuses gp_theme_toggle() + gp-theme.js ── */
.h2-nav .gph-theme-toggle { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.h2-nav .gph-theme-toggle button { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 999px !important; color: rgba(242, 242, 246, .7) !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; }
.h2-nav .gph-theme-toggle button:hover { color: #fff !important; }
.h2-nav .gph-theme-toggle button.is-active { background: rgba(255, 255, 255, .16) !important; color: #fff !important; }
.h2-nav .gph-theme-toggle svg { width: 15px; height: 15px; }
@media (max-width: 900px) { .h2-nav .gph-theme-toggle { margin-left: auto; } .h2-nav .h2-btn--sm { margin-left: 0; } }
@media (max-width: 420px) { .h2-nav .gph-theme-toggle button { width: 26px; height: 26px; } .h2-nav .h2-btn--sm { padding: 0 14px; font-size: 13px; } }

/* ── Photo rails: two rows drifting in opposite directions (motion in gp-editorial.js) ── */
.h2-rail { overflow: hidden; margin-top: 16px; }
.h2-rail__track { display: flex; gap: 16px; width: max-content; will-change: transform; }
.h2-rail__track img { height: clamp(200px, 26vw, 360px); width: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }

/* ── Nav over a light opening section (login, join, contact): ink instead of white until dark
   mode makes the page dark anyway ── */
html:not(.gp-dark) .h2-body.h2-light-top { background: var(--h2-paper); }
html:not(.gp-dark) .h2-light-top .h2-nav__logo img, html:not(.gp-dark) .h2-light-top .h2-foot__cols img { filter: none; }
html:not(.gp-dark) .h2-light-top .h2-foot__cols img { filter: brightness(0) invert(1); }
html:not(.gp-dark) .h2-light-top .h2-nav__links a { color: var(--h2-ink-2); }
html:not(.gp-dark) .h2-light-top .h2-nav__links a:hover { color: var(--h2-ink); }
html:not(.gp-dark) .h2-light-top .h2-nav__burger span { background: var(--h2-ink); }
html:not(.gp-dark) .h2-light-top .h2-nav.is-solid { background: rgba(247, 245, 241, .86); border-bottom-color: var(--h2-line); }
html:not(.gp-dark) .h2-light-top .h2-nav .gph-theme-toggle { background: var(--h2-card); border-color: var(--h2-line); }
html:not(.gp-dark) .h2-light-top .h2-nav .gph-theme-toggle button { color: var(--h2-ink-2) !important; }
html:not(.gp-dark) .h2-light-top .h2-nav .gph-theme-toggle button:hover { color: var(--h2-ink) !important; }
html:not(.gp-dark) .h2-light-top .h2-nav .gph-theme-toggle button.is-active { background: var(--h2-paper-2) !important; color: var(--h2-ink) !important; }
@media (max-width: 900px) {
  html:not(.gp-dark) .h2-light-top .h2-nav__links { background: rgba(247, 245, 241, .98); }
  html:not(.gp-dark) .h2-light-top .h2-nav__links a { color: var(--h2-ink); border-bottom-color: var(--h2-line); }
}
