/*
 * GHI public site — the apex domain's front page.
 *
 * A deliberately separate surface from the Harmonica app (app.<domain>):
 * its own fonts (Cormorant Garamond for display, Manrope for text), its own
 * navy/gold palette, no framework. The app's "Inter only" rule does not
 * apply here, and nothing here may be imported into the app.
 *
 * Ported by hand from the client's Lovable design (src/styles.css); class
 * names match it so the two can be compared side by side.
 */
:root {
  --background: oklch(0.99 0.002 240);
  --foreground: oklch(0.25 0.025 251);
  --primary: oklch(0.235 0.038 254);
  --primary-foreground: oklch(0.99 0.002 240);
  --secondary: oklch(0.958 0.003 240);
  --muted-foreground: oklch(0.52 0.016 251);
  --accent: oklch(0.72 0.062 83);
  --border: oklch(0.87 0.006 240);
  --destructive: oklch(0.55 0.2 27);
  --on-dark-muted: oklch(0.8 0.009 240);
  --dark-line: oklch(0.99 0 0 / 19%);
  --hero-shade:
    linear-gradient(96deg, oklch(0.19 0.032 253 / 90%) 0%, oklch(0.2 0.032 253 / 78%) 30%, oklch(0.24 0.03 253 / 44%) 58%, oklch(0.3 0.025 253 / 16%) 82%, oklch(0.34 0.02 253 / 6%) 100%),
    linear-gradient(0deg, oklch(0.16 0.03 253 / 84%) 0%, oklch(0.18 0.03 253 / 52%) 20%, oklch(0.19 0.03 253 / 0%) 52%);
  /* The frosted-glass fill shared by the hero button, the form panel's button. */
  --glass-fill: linear-gradient(180deg, oklch(0.98 0.004 240 / 22%) 0%, oklch(0.98 0.004 240 / 9%) 100%), linear-gradient(0deg, oklch(0.2 0.032 253 / 64%), oklch(0.2 0.032 253 / 64%));
  --glass-fill-hover: linear-gradient(180deg, oklch(0.98 0.004 240 / 30%) 0%, oklch(0.98 0.004 240 / 15%) 100%), linear-gradient(0deg, oklch(0.2 0.032 253 / 64%), oklch(0.2 0.032 253 / 64%));
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  color-scheme: light;
}

/* Base (the parts of Tailwind's preflight the design relies on) */
*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--border); }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--primary); color: var(--foreground); font-family: var(--font-sans); font-size: 14px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
main { background: var(--background); }
h1, h2, h3, p { margin: 0; font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; margin: 0; }
button { background: none; padding: 0; cursor: pointer; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--primary); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

.site-width { max-width: none; margin-inline: auto; padding-inline: 64px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; border-radius: 2px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s, opacity .2s; }
.btn svg { width: 16px; height: 16px; flex: none; pointer-events: none; }
.btn[disabled] { opacity: .5; pointer-events: none; }
/* The header's outlined link into the app ("heroOutline", size sm). */
.btn-nav { height: 32px; padding-inline: 12px; font-size: 12px; border: 1px solid oklch(0.99 0.002 240 / 40%); color: var(--primary-foreground); }
.btn-nav:hover { background: oklch(0.99 0.002 240 / 10%); }

/* Header: transparent, laid over the hero / page intro photo. */
.site-header { height: 98px; color: var(--primary-foreground); position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.header-inner { height: 100%; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.brand-wrap { display: flex; align-items: center; }
.brand-mark { width: 27px; height: 27px; display: block; flex: none; }

.lang-switch { display: inline-flex; gap: 2px; font-size: 11px; letter-spacing: .14em; }
.lang-switch button { padding: 4px 6px; opacity: .55; transition: opacity .2s; }
.lang-switch button:hover, .lang-switch button[aria-pressed="true"] { opacity: 1; }
.lang-switch button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 4px; }

/* Hero: the full-height Zürich photo */
.hero { position: relative; color: var(--primary-foreground); background: var(--primary); overflow: hidden; }
.hero-full { height: 100vh; min-height: 560px; display: flex; align-items: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: var(--hero-shade); }
/* Seamless hand-off: the hero fades into navy at its bottom edge; the band starts in the same navy. */
.hero-full::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38vh; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent 0%, oklch(0.19 0.032 253 / 35%) 40%, oklch(0.19 0.032 253 / 80%) 75%, var(--primary) 100%); }
.parallax-wrap { position: absolute; inset: 0; will-change: transform; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 100%; }
.hero-full .hero-image { animation: ken-burns 22s ease-out both; will-change: transform; transform-origin: 50% 60%; }
.hero-content { position: relative; z-index: 2; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 4.9vw, 64px); line-height: 1.06; max-width: 600px; margin: 26px 0 22px; }
.hero h1 em { font-weight: 400; font-style: italic; }
.hero-description { font-size: 14px; line-height: 1.85; color: oklch(0.93 0.006 240 / 92%); max-width: 452px; text-wrap: balance; }
.hero-actions { display: flex; gap: 28px; align-items: center; margin-top: 32px; }
/* The quiet sentence under the button opens with a short accent rule, like the eyebrow. */
.hero-role { margin-top: 28px; font-family: var(--font-display); font-size: 16px; line-height: 1.55; max-width: 420px; color: oklch(0.97 0.004 240); text-wrap: balance; }
.hero-role::before { content: ""; display: block; width: 26px; height: 1px; background: var(--accent); margin-bottom: 18px; }
.hero-bottom { position: absolute; bottom: 27px; left: 0; right: 0; z-index: 2; display: flex; justify-content: space-between; font-size: 10px; text-transform: uppercase; letter-spacing: .18em; color: oklch(0.92 0.005 240 / 94%); }

/* Contact CTA: a frosted button that sits inside the photo instead of on top of it. */
.hero-cta { height: 40px; padding-inline: 32px; border: 1px solid oklch(0.98 0.004 240 / 32%); background: var(--glass-fill); color: var(--primary-foreground); box-shadow: 0 22px 55px -22px oklch(0.1 0.03 253 / 75%), inset 0 1px 0 oklch(1 0 0 / 20%); -webkit-backdrop-filter: blur(16px) saturate(115%); backdrop-filter: blur(16px) saturate(115%); transition: background .5s ease, border-color .5s ease, box-shadow .5s ease, transform .5s var(--ease-out); }
.hero-cta:hover { background: var(--glass-fill-hover); border-color: oklch(0.98 0.004 240 / 52%); box-shadow: 0 30px 70px -24px oklch(0.1 0.03 253 / 82%), inset 0 1px 0 oklch(1 0 0 / 28%); transform: translateY(-2px); }
.hero-cta svg { transition: transform .5s var(--ease-out); }
.hero-cta:hover svg { transform: translateX(5px); }

/* Contact band over the Graubünden valley: headline left, enquiry form on a frosted panel. */
.cta { background: var(--primary); color: var(--primary-foreground); }
.cta-scene { position: relative; overflow: hidden; margin-top: -1px; }
.band-parallax { position: absolute; inset: -14% 0; will-change: transform; }
.cta-scene-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; animation: cta-drift 26s ease-in-out infinite alternate; will-change: transform; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%); mask-image: linear-gradient(180deg, transparent 0%, #000 45%); }
.cta-scene::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--primary) 0%, oklch(0.19 0.032 253 / 85%) 20%, oklch(0.2 0.03 253 / 55%) 45%, oklch(0.2 0.03 253 / 42%) 65%, oklch(0.17 0.03 253 / 75%) 100%); }
.cta-inner { display: flex; justify-content: center; align-items: center; gap: 72px; }
.cta-scene .cta-inner { position: relative; z-index: 2; min-height: 62vh; padding-block: 110px; }
.cta-copy { max-width: 520px; }
.cta h2 { font-family: var(--font-display); font-weight: 400; font-size: 36px; line-height: 1.15; text-wrap: balance; text-shadow: 0 1px 18px oklch(0.15 0.03 253 / 55%); }
/* Each beat of the headline gets its own line: three short sentences, stacked. */
.cta h2 .beat { display: block; white-space: nowrap; }
.cta-copy p { margin-top: 12px; font-size: 12px; color: oklch(0.97 0.004 240); text-wrap: balance; text-shadow: 0 1px 12px oklch(0.15 0.03 253 / 55%); }
/* Headline and panel rise into place once the band scrolls into view (site.js adds .in-view). */
.js .cta-scene .cta-inner > * { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s var(--ease-out); }
.js .cta-scene .cta-inner > .cta-panel { transition-delay: .12s; }
.js .cta-scene.in-view .cta-inner > * { opacity: 1; transform: none; }

.cta-panel { display: flex; flex: none; width: min(352px, 100%); padding: 20px; border: 1px solid oklch(0.98 0.004 240 / 22%); border-radius: 3px; background: linear-gradient(180deg, oklch(0.19 0.03 253 / 34%) 0%, oklch(0.17 0.028 253 / 62%) 100%); box-shadow: 0 34px 80px -34px oklch(0.08 0.03 253 / 78%), inset 0 1px 0 oklch(1 0 0 / 18%); -webkit-backdrop-filter: blur(20px) saturate(130%); backdrop-filter: blur(20px) saturate(130%); }
/* After sending, the panel keeps a small card instead of collapsing to one line. */
.cta-panel:has(.contact-done:not([hidden])) { min-height: 190px; }
.contact-form { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.contact-field { display: flex; flex-direction: column; gap: 5px; }
.contact-field label { font-size: 10px; font-weight: 400; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: oklch(0.93 0.006 240 / 88%); }
.contact-field input, .contact-field textarea { display: block; width: 100%; padding: 8px 10px; border: 1px solid oklch(0.98 0.004 240 / 26%); border-radius: 2px; background: oklch(0.98 0.004 240 / 11%); color: var(--primary-foreground); font-size: 13px; box-shadow: 0 1px 2px 0 oklch(0 0 0 / 5%); outline: none; transition: border-color .2s, background-color .2s; }
.contact-field input { height: 36px; }
.contact-field textarea { resize: none; min-height: 56px; line-height: 1.55; }
.contact-field input:focus-visible, .contact-field textarea:focus-visible { outline: 1px solid oklch(0.98 0.004 240 / 55%); outline-offset: 1px; border-color: oklch(0.98 0.004 240 / 45%); }
.contact-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-submit { width: 100%; height: 40px; padding: 9px 14px; font-size: 12px; letter-spacing: .08em; border: 1px solid oklch(0.98 0.004 240 / 32%); background: var(--glass-fill); color: var(--primary-foreground); box-shadow: 0 18px 44px -20px oklch(0.1 0.03 253 / 75%), inset 0 1px 0 oklch(1 0 0 / 18%); transition: background .5s ease, border-color .5s ease, box-shadow .5s ease; }
.contact-submit:hover:not(:disabled) { background: var(--glass-fill-hover); border-color: oklch(0.98 0.004 240 / 55%); box-shadow: 0 24px 54px -20px oklch(0.1 0.03 253 / 80%), inset 0 1px 0 oklch(1 0 0 / 26%); }
.contact-done { align-self: center; margin: 0; font-size: 14px; line-height: 1.7; color: oklch(0.95 0.006 240 / 94%); }
.contact-error { font-size: 13px; color: oklch(0.86 0.09 25 / 92%); }

/* Regulatory note at the foot of the start page: same navy as the band, one quiet line. */
.regulatory { background: var(--primary); color: oklch(0.9 0.006 240 / 88%); font-size: 11px; letter-spacing: .06em; line-height: 1.7; padding-block: 26px 30px; border-top: 1px solid oklch(0.98 0.004 240 / 10%); }

/* Footer */
.site-footer { background: var(--primary); color: var(--on-dark-muted); border-top: 1px solid var(--dark-line); padding-block: 32px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 22px; font-size: 10px; }
.footer-links { display: flex; gap: 25px; align-items: center; }
.footer-links a:hover { color: var(--primary-foreground); }

/* Inner pages: the intro over the Zürich photo, then the legal sections. */
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .22em; display: flex; align-items: center; gap: 13px; font-weight: 500; }
.eyebrow::before { content: ""; display: block; width: 28px; height: 1px; background: var(--accent); }
.page-intro { position: relative; background: var(--primary); color: var(--primary-foreground); padding-block: 150px 77px; overflow: hidden; }
.page-intro-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 100%; animation: ken-burns 22s ease-out both; }
.page-intro-scene::after { content: ""; position: absolute; inset: 0; background: var(--hero-shade); }
.page-intro-inner { position: relative; z-index: 1; }
.page-intro h1 { font-family: var(--font-display); font-size: 48px; line-height: 1.12; font-weight: 400; margin-top: 20px; max-width: 700px; }
.page-intro p { font-size: 13px; line-height: 1.9; max-width: 570px; color: var(--on-dark-muted); margin-top: 23px; }
.page-intro-scene h1, .page-intro-scene p { text-shadow: 0 1px 22px oklch(0.15 0.03 253 / 55%); }
.section { padding-block: 88px; }
.legal-layout { max-width: 850px; }
.legal-section { padding-block: 44px; border-bottom: 1px solid var(--border); animation: reveal .8s var(--ease-out) both; }
.legal-section:nth-child(2) { animation-delay: .08s; }
.legal-section:nth-child(3) { animation-delay: .14s; }
.legal-section:nth-child(4) { animation-delay: .2s; }
.legal-section:nth-child(5) { animation-delay: .26s; }
.legal-section:nth-child(6) { animation-delay: .32s; }
.legal-section h2 { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.2; margin: 0 0 18px; color: var(--primary); }
.legal-section h2::before { content: ""; display: block; width: 28px; height: 1px; background: var(--accent); margin-bottom: 20px; }
.legal-section p { font-size: 14px; line-height: 1.95; color: var(--muted-foreground); white-space: pre-line; overflow-wrap: anywhere; }

/* Motion: staggered hero text, Ken Burns, a slow drift on the band photo */
.reveal { animation: reveal .8s ease both; }
.hero-content > * { animation: reveal 1s var(--ease-out) both; }
.hero-content > :nth-child(1) { animation-delay: .15s; }
.hero-content > :nth-child(2) { animation-delay: .45s; }
.hero-content > :nth-child(3) { animation-delay: .75s; }
.hero-content > :nth-child(4) { animation-delay: 1.05s; }
.hero-bottom { animation: fade-in 1.2s ease 1.4s both; }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ken-burns { from { transform: scale(1.14); } to { transform: scale(1.02); } }
@keyframes cta-drift { from { transform: scale(1.02); } to { transform: scale(1.12); } }

@media (min-width: 1600px) { .hero-full { min-height: 650px; } }
@media (max-width: 1000px) {
  .site-width { padding-inline: 35px; }
  .cta-inner { gap: 50px; }
}
@media (max-width: 700px) {
  .site-width { padding-inline: 25px; }
  .site-header { height: 80px; }
  .header-inner { gap: 12px; }
  .header-actions { gap: 10px; }
  .brand-mark { width: 20px; height: 20px; }
  .lang-switch { font-size: 10px; letter-spacing: .12em; }
  .lang-switch button { padding: 4px 3px; }
  .btn-nav { height: 28px; padding-inline: 10px; font-size: 10px; letter-spacing: .14em; }
  .hero-full { min-height: 560px; }
  .hero-image { object-position: 50% 62%; }
  .hero h1 { font-size: 42px; margin-top: 18px; max-width: 340px; }
  .hero-description { font-size: 13px; max-width: 320px; color: oklch(0.95 0.004 240 / 96%); }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 28px; }
  .hero-role { margin-top: 26px; max-width: 330px; }
  .hero-role::before { margin-bottom: 16px; }
  .hero-bottom { bottom: 23px; font-size: 9px; letter-spacing: .14em; color: oklch(0.92 0.005 240 / 90%); }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 34px; }
  .cta-scene .cta-inner { min-height: 52vh; padding-block: 80px; }
  .cta h2 { font-size: 44px; }
  .cta-panel { width: 100%; padding: 18px; }
  .regulatory { font-size: 10px; padding-block: 20px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 23px; }
  .footer-links { flex-wrap: wrap; gap: 18px; }
  .page-intro { padding-block: 120px 52px; }
  .page-intro h1 { font-size: 47px; }
  .section { padding-block: 55px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-content > *, .hero-bottom, .hero-full .hero-image, .page-intro-img, .legal-section, .cta-scene-img { animation: none; }
  .js .cta-scene .cta-inner > * { opacity: 1; transform: none; transition: none; }
  .parallax-wrap, .band-parallax { will-change: auto; }
  *, *::before, *::after { transition: none !important; }
}
