/* gable3d.com's homepage, in the app's own voice (docs/design-language.md):
   the Warm Studio palette (mirrors backend/internal/web/static/gable.css and
   native/src/app_ui/brand/colors.h), Cormorant Garamond at 580 for display and
   Inter Regular for everything else, and page actions at the app's
   proportions. The fonts and the soft-3D home are the app's, borrowed from
   its /static/ through Caddy. */
@font-face {
  font-family: "Gable Inter";
  src: url("/static/inter.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Gable Cormorant";
  src: url("/static/cormorant-garamond.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #FAF6F0;
  --canvas-alt: #F0E8D6;
  --cream: #EEE8DC;
  --ink: #1F1A15;
  --ink-soft: #5E574E;
  --divider: #D8D0C2;
  --terracotta: #E2725B;
  --terracotta-hover: #EC8975;
  --terracotta-pressed: #C75D47;
  --sage: #3E5C4A;
  --sage-hover: #4F7060;
  --sans: "Gable Inter", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Gable Cormorant", "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
/* The app draws every label in Inter Regular; hierarchy comes from size and
   colour, never from a synthesised bold. */
html { font-synthesis: none; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sage); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--sage-hover); }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }

/* The wordmark with its sage, roof-pitch underline. */
.masthead { width: 100%; max-width: 1080px; margin: 0 auto; padding: 28px 24px 0; }
.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font: 580 34px/1 var(--display);
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark::after { content: ""; width: 1.95em; height: 2px; margin-top: 0.14em; border-radius: 2px; background: var(--sage); }
.wordmark:hover { color: var(--ink); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px 32px;
}
.display { margin: 0 0 20px; font: 580 clamp(52px, 6.4vw, 84px)/0.98 var(--display); letter-spacing: -0.01em; }
.lede { margin: 0; max-width: 30em; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.hero-art { justify-self: center; width: 100%; max-width: 400px; height: auto; }

/* Page actions: primary 44px with a 10px corner, capped at 280px. */
.start { margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  background: var(--terracotta);
  color: var(--canvas);
  font-size: 14px;
  text-decoration: none;
  transition: background-color 120ms ease-out;
}
.button:hover { background: var(--terracotta-hover); color: var(--canvas); }
.button:active { background: var(--terracotta-pressed); }
.reassure { margin: 10px 0 0; max-width: 30em; font-size: 14px; }
.aside { margin: 16px 0 0; color: var(--ink-soft); font-size: 14px; }
.aside a { color: var(--ink-soft); }

/* The connector setup: one cream panel, three numbered steps. */
.ai {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 36px 40px 32px;
  border-radius: 18px;
  background: var(--cream);
}
.section-title { margin: 0 0 8px; font: 580 clamp(30px, 3.4vw, 40px)/1.08 var(--display); }
.ai .lede { max-width: none; font-size: 16px; }
.steps { display: grid; gap: 18px; margin: 24px 0 0; padding: 0 0 0 1.3em; }
.steps > li { padding-left: 4px; }
.steps > li::marker { color: var(--sage); font: 580 18px var(--display); }
.steps p { margin: 0 0 10px; }
.steps li:last-child p { margin: 0; }
/* The link selects in one tap, ready to copy. */
.mcp-link {
  display: block;
  max-width: 460px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px var(--divider);
  font: 13px/1.4 ui-monospace, "SF Mono", Menlo, monospace;
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}

/* The assistant choice is the app's segmented control. The radios precede the
   instructions they reveal, so a sibling selector shows the chosen one. */
.clients { display: flex; flex-wrap: wrap; }
.clients input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.clients label { min-height: 30px; padding: 6px 14px; background: var(--canvas); color: var(--ink-soft); font-size: 13px; cursor: pointer; }
.clients label:first-of-type { border-radius: 10px 0 0 10px; padding-left: 17px; }
.clients label:last-of-type { border-radius: 0 10px 10px 0; padding-right: 17px; }
.clients label:hover { color: var(--ink); }
.clients input:checked + label { border-radius: 8px; background: var(--sage); color: var(--canvas); box-shadow: 0 0 0 3px var(--canvas); }
.clients input:focus-visible + label { outline: 2px solid var(--sage); outline-offset: 2px; }
.client { display: none; flex-basis: 100%; margin: 10px 0 0; color: var(--ink-soft); font-size: 15px; }
.client strong { font-weight: 400; color: var(--ink); }
.client code { padding: 2px 6px; border-radius: 6px; background: var(--canvas); color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
#client-claude:checked ~ .client-claude,
#client-chatgpt:checked ~ .client-chatgpt,
#client-code:checked ~ .client-code { display: block; }

.trust { margin: 24px 0 0; padding: 18px 0 0 1.1em; border-top: 1px solid var(--divider); font-size: 14px; }
.trust li { margin: 4px 0; }
.trust li::marker { color: var(--sage); }

footer { padding: 40px 16px 32px; text-align: center; color: var(--ink-soft); font-size: 13px; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-bottom: 8px; }
footer a { color: var(--ink-soft); }

@media (max-width: 859px) {
  .masthead { text-align: center; padding: 24px 16px 0; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 8px; max-width: 560px; padding: 16px 16px 8px; }
  .hero-art { order: -1; max-width: 220px; margin-bottom: 12px; }
  .ai { margin: 32px 16px 0; padding: 28px 20px 24px; }
}

@media (max-width: 479px) {
  .display { font-size: 46px; margin-bottom: 14px; }
  .lede { font-size: 16px; }
  .button { max-width: none; }
}
