/* Gestalt Studio landing page. Every value comes from the Gestalt visual language (--g-*); the only typed-in colors are the
   app icon colors, set on each tile in index.html by scripts/apps.mjs. */
:root { --page-max: 1120px; --band: 96px; }
@media (max-width: 719px) { :root { --band: 64px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--g-bg);
  color: var(--g-text);
  font: var(--g-weight-regular) var(--g-text-m) / var(--g-lh-m) var(--g-font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--g-brand-link); }
:focus-visible { outline: 2px solid var(--g-focus); outline-offset: 2px; border-radius: var(--g-radius-s); }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--g-font-display); font-weight: var(--g-weight-title); text-wrap: balance; }
ul { padding: 0; list-style: none; }

.skip { position: absolute; left: var(--g-space-4); top: -100px; z-index: 20; padding: var(--g-space-2) var(--g-space-3); background: var(--g-surface); border-radius: var(--g-radius-m); }
.skip:focus { top: var(--g-space-2); }

.wrap {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-left: max(var(--g-space-4), env(safe-area-inset-left, 0px));
  padding-right: max(var(--g-space-4), env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(var(--g-space-8), env(safe-area-inset-left, 0px)); padding-right: max(var(--g-space-8), env(safe-area-inset-right, 0px)); }
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--g-surface); border-bottom: 1px solid var(--g-line); padding-top: env(safe-area-inset-top, 0px); }
.site-header .wrap { display: flex; align-items: center; gap: var(--g-space-3); min-height: 56px; }
.mark { display: flex; align-items: center; gap: var(--g-space-2); color: var(--g-text); text-decoration: none; font-weight: var(--g-weight-title); font-size: var(--g-text-l); white-space: nowrap; }
.mark-tile { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--g-radius-m); background: var(--g-brand); }
.mark-tile svg { width: 18px; height: 18px; }
.nav { display: flex; gap: var(--g-space-1); margin-left: auto; }
.nav a { color: var(--g-muted); text-decoration: none; padding: var(--g-space-2) var(--g-space-3); border-radius: var(--g-radius-m); }
.nav a:hover { color: var(--g-text); background: var(--g-hover-tint); }
.icon-btn {
  display: inline-grid; place-items: center; flex: none;
  width: var(--g-control-l); height: var(--g-control-l);
  border: 1px solid var(--g-line-strong); border-radius: var(--g-btn-radius);
  background: transparent; color: var(--g-text); cursor: pointer;
}
.icon-btn:hover { background: var(--g-hover-tint); }
.icon-btn svg { width: 18px; height: 18px; }
@media (max-width: 899px) { .nav { display: none; } .icon-btn { margin-left: auto; } }
@media (max-width: 479px) { .site-header .btn { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--g-space-2);
  min-height: var(--g-control-l); padding: 0 var(--g-space-4);
  border-radius: var(--g-btn-radius); border: 1px solid transparent;
  font: var(--g-weight-strong) var(--g-text-m) / 1 var(--g-font);
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--g-brand-fill); color: var(--g-brand-contrast); }
.btn-primary:hover { background: var(--g-brand-hover); }
.btn-secondary { color: var(--g-text); border-color: var(--g-line-strong); }
.btn-secondary:hover { background: var(--g-hover-tint); }
.btn-lg { min-height: var(--g-control-xl); padding: 0 var(--g-space-5); font-size: var(--g-text-l); }
.btn-icon { width: 18px; height: 18px; }

/* Type */
.eyebrow { font-size: var(--g-text-xs); line-height: var(--g-lh-xs); font-weight: var(--g-weight-strong); letter-spacing: 0.08em; text-transform: uppercase; color: var(--g-brand-link); }
h1 { font-size: var(--g-text-5xl); line-height: var(--g-lh-5xl); letter-spacing: -0.02em; }
h2 { font-size: var(--g-text-4xl); line-height: var(--g-lh-4xl); letter-spacing: -0.015em; }
h3 { font-size: var(--g-text-l); line-height: var(--g-lh-l); }
.lede { font-size: var(--g-text-xl); line-height: var(--g-lh-xl); color: var(--g-muted); max-width: 30em; }
.section-lede { font-size: var(--g-text-l); line-height: var(--g-lh-l); color: var(--g-muted); max-width: 40em; }
.cap { display: inline-block; }
.cap::first-letter { text-transform: uppercase; }
@media (max-width: 719px) {
  h1 { font-size: var(--g-text-4xl); line-height: var(--g-lh-4xl); }
  h2 { font-size: var(--g-text-3xl); line-height: var(--g-lh-3xl); }
  .lede { font-size: var(--g-text-l); line-height: var(--g-lh-l); }
}

/* Hero */
.hero { padding-block: var(--band); }
.hero .wrap { display: grid; gap: var(--g-space-10); align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1fr 1fr; gap: 56px; } }
.hero-copy { display: grid; gap: var(--g-space-6); justify-items: start; min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: var(--g-space-3); }

.dock {
  display: grid; gap: var(--g-space-4);
  padding: var(--g-space-6);
  background: var(--g-surface); border: 1px solid var(--g-line); border-radius: var(--g-radius-l); box-shadow: var(--g-shadow-2);
  min-width: 0;
}
.dock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: var(--g-space-4) var(--g-space-2); }
.dock-app {
  display: grid; justify-items: center; gap: var(--g-space-2); padding: var(--g-space-2) var(--g-space-1);
  border-radius: var(--g-radius-m); color: var(--g-text); text-decoration: none; text-align: center;
  font-size: var(--g-text-s); line-height: var(--g-lh-s);
}
.dock-app:hover { background: var(--g-hover-tint); }
.dock-tile { display: grid; place-items: center; width: var(--g-control-xl); height: var(--g-control-xl); border-radius: var(--g-radius-l); }
.dock-tile svg { width: 24px; height: 24px; }
.dock figcaption { color: var(--g-muted); font-size: var(--g-text-s); line-height: var(--g-lh-s); padding-top: var(--g-space-3); border-top: 1px solid var(--g-line); }

/* Bands */
.band { padding-block: var(--band); border-top: 1px solid var(--g-line); }
.band-alt { background: var(--g-surface); }
.band .wrap { display: grid; gap: var(--g-space-10); }
.band-head { display: grid; gap: var(--g-space-3); }

/* People and AI */
.mantra { display: grid; gap: var(--g-space-4); max-width: 36em; padding-left: var(--g-space-6); border-left: 4px solid var(--g-brand); }
.mantra p { font-family: var(--g-font-display); font-size: var(--g-text-4xl); line-height: var(--g-lh-4xl); font-weight: var(--g-weight-title); letter-spacing: -0.015em; text-wrap: balance; }
.mantra footer { font-size: var(--g-text-l); line-height: var(--g-lh-l); color: var(--g-muted); }
@media (max-width: 719px) { .mantra p { font-size: var(--g-text-3xl); line-height: var(--g-lh-3xl); } .mantra { padding-left: var(--g-space-4); } }

.traits { display: grid; gap: var(--g-space-6); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.trait { display: grid; gap: var(--g-space-2); align-content: start; }
.trait-icon { width: 32px; height: 32px; color: var(--g-brand); }
.trait p { color: var(--g-muted); }

/* App cards */
.group { display: grid; gap: var(--g-space-4); }
.group + .group { margin-top: var(--g-space-6); }
.group-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--g-space-3); padding-bottom: var(--g-space-2); border-bottom: 1px solid var(--g-line); }
.group-head span { color: var(--g-muted); }
.cards { display: grid; gap: var(--g-space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card {
  position: relative; display: grid; gap: var(--g-space-3); align-content: start;
  padding: var(--g-space-5);
  background: var(--g-surface); border: 1px solid var(--g-line); border-radius: var(--g-radius-l);
}
.card:hover { border-color: var(--g-line-strong); }
.card-link { display: flex; align-items: center; gap: var(--g-space-3); color: var(--g-text); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--g-radius-l); } /* the whole card opens the app */
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 2px solid var(--g-focus); outline-offset: 2px; }
.card-tile { display: grid; place-items: center; flex: none; width: var(--g-control-l); height: var(--g-control-l); border-radius: var(--g-radius-m); }
.card-tile svg { width: 24px; height: 24px; }
.card-name { display: grid; flex: 1; font-size: var(--g-text-l); line-height: var(--g-lh-l); font-weight: var(--g-weight-strong); }
.card-name small { font-size: var(--g-text-s); line-height: var(--g-lh-s); font-weight: var(--g-weight-regular); color: var(--g-muted); }
.card-go { width: 18px; height: 18px; color: var(--g-muted); }
.card:hover .card-go { color: var(--g-brand-link); }
.card p { color: var(--g-muted); }

/* Closing */
.closing { justify-items: start; }

.site-footer { border-top: 1px solid var(--g-line); padding-block: var(--g-space-8); padding-bottom: max(var(--g-space-8), env(safe-area-inset-bottom, 0px)); color: var(--g-faint); font-size: var(--g-text-s); line-height: var(--g-lh-s); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: var(--g-space-4); justify-content: space-between; }
