/* Slashy Labs, variant B: text first, one painting. Layout after thinkingmachines.ai. */
:root {
  --ink: #2d2b36;
  --muted: #625f6b;
  --accent: #4457c4;
  --rule: #ebebeb;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wide: 880px;
  --column: 640px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* No rubber-band bounce past the top or bottom of the page. Vertical only, so horizontal swipes
   still go back and forward in history. */
html, body { overscroll-behavior-y: none; }
body {
  margin: 0;
  background: #f5f5f5; /* the same light grey page as the playground (voice-model styles.css --page) */
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; }
h1, h2, h3, p { margin: 0; }

.skip {
  position: absolute; left: 16px; top: -120px; z-index: 10;
  padding: 8px 12px; border-radius: 8px; background: var(--ink); color: #fff;
  font-size: 14px; text-decoration: none;
}
.skip:focus { top: 16px; }

/* Top right text nav */
.nav {
  display: flex; justify-content: flex-end; gap: 28px;
  padding: 20px 32px;
}
.nav a, .col a {
  color: var(--ink); text-decoration: none;
  font-size: 15px; line-height: 20px;
  transition: color 150ms ease;
}
.nav a:hover, .col a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav { align-items: center; }
.nav-signin {
  border: 0; border-radius: 8px; padding: 6px 14px;
  background: var(--accent); color: #fff;
  font: 500 14px/20px var(--sans); cursor: pointer;
  transition: background-color 150ms ease, opacity 150ms ease;
}
.nav-signin:hover { background: #3a4cb3; }

main { display: flex; flex-direction: column; align-items: center; padding: 0 16px; }

.mark {
  display: flex; align-items: flex-end; gap: 12px;
  padding: 56px 0;
}
.mark img { width: 156px; height: 52px; }
.mark span {
  /* Geist, the wordmark's own kind of face, exactly as "echo" in the playground (voice-model
     styles.css .mark span), so the logo reads as one. No slot around the word: the logo is
     centred on its letters. */
  font-family: var(--sans); font-weight: 500;
  font-size: 46px; line-height: 46px; letter-spacing: -0.04em;
  color: var(--muted); padding-bottom: 2.5px;
}

/* An <img> in the HTML (AVIF/WebP/JPEG), so it is requested with the page, not after the CSS. */
picture { display: block; width: 100%; max-width: var(--wide); }
/* One line under the logo for what is new: a small tag and a link, as a single target. */
.mark:has(+ .chip) { padding-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 36px;
  font: 500 15px/22px var(--sans); color: var(--ink); text-decoration: none;
}
.chip-tag {
  padding: 3px 9px; border-radius: 999px; background: #e9e9ee;
  font: 500 11px/16px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
}
.chip:hover { color: var(--accent); }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

.painting {
  display: block;
  width: 100%; height: auto;
  aspect-ratio: 880 / 400;
  border-radius: 18px;
  object-fit: cover; object-position: center 62%;
  background: #c9cdee;
}

.prose {
  width: 100%; max-width: var(--column);
  padding-top: 64px;
  display: flex; flex-direction: column; gap: 22px;
}
.prose p {
  font-size: 17px; line-height: 28px; text-wrap: pretty;
}
.prose h2 {
  font-family: var(--sans); font-weight: 500;
  font-size: 22px; line-height: 28px; letter-spacing: -0.01em;
  padding-top: 34px; margin-bottom: -8px;
}
.prose a {
  color: var(--accent);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: color 150ms ease;
}
#echo-get-key { white-space: nowrap; }
/* The same hover as the playground and /keys (voice-model styles.css --accent-strong). */
.prose a:hover { color: #2b3796; }

/* Footer */
.footer {
  width: 100%; max-width: calc(var(--wide) + 32px);
  margin: 0 auto;
  padding: 160px 16px 48px;
}
/* Each column is as wide as its text and the space goes between them, so the last one ends where
   the painting does. Equal columns left the last one's empty part on the right, off centre. */
.footer__cols {
  display: flex; justify-content: space-between;
  padding-top: 44px;
}
.col { display: flex; flex-direction: column; gap: 14px; }
.col h3 {
  font-size: 15px; line-height: 20px; font-weight: 400;
  color: var(--muted); padding-bottom: 4px;
}
.footer__copy { padding-top: 72px; font-size: 14px; line-height: 20px; color: var(--muted); }

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

@media (max-width: 640px) {
  /* One row on phones, the same as the app pages: the external Slashy link goes. */
  .nav { flex-wrap: wrap; gap: 8px 16px; padding: 16px; } /* wraps only when it can't fit */
  .nav a { white-space: nowrap; }
  .nav a { font-size: 14px; }
  .nav .nav-external { display: none; }
  .mark { padding: 36px 0 40px; } /* 36px above, as in the playground, so the logo stays put */
  .mark img { width: 120px; height: 40px; }
  .mark span { font-size: 36px; line-height: 36px; padding-bottom: 1.5px; }
  .painting { border-radius: 14px; aspect-ratio: 4 / 3; }
  .prose { padding-top: 40px; }
  .prose h2 { font-size: 20px; padding-top: 24px; }
  .footer { padding-top: 112px; }
  .footer__cols { flex-wrap: wrap; row-gap: 36px; }
  .col { flex: 0 0 50%; }
  .footer__copy { padding-top: 48px; }
}

/* The nav's Sign in failing (a blocked popup). Inside .prose, so it needs .prose to win over the body paragraph style. */
.prose .echo-error { font: 14px/20px var(--sans); color: #b3402e; }

/* The account pill and its menu, the same as the app pages (voice-model styles.css). */
.account { position: relative; display: flex; }
.account[hidden], .nav-signin[hidden] { display: none; }
.account-pill {
  display: flex; align-items: center; gap: 8px; padding: 2px;
  border: 0; border-radius: 999px; background: #f7f7f5; cursor: pointer;
  transition: background-color 150ms ease;
}
.account-pill:has(.account-balance:not([hidden])) { padding-left: 12px; }
.account-pill:hover, .account-pill[aria-expanded="true"] { background: #efefed; }
.account-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.account-balance { font: 500 13px/20px var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.account-balance[hidden] { display: none; }
.account-balance:empty { display: inline-block; min-width: 35px; } /* the space of "$4.99" while it loads */
.account-photo { display: block; flex-shrink: 0; border-radius: 50%; background: #e8e8e6; object-fit: cover; }
.account-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 10;
  display: flex; flex-direction: column; width: 232px; padding: 6px;
  border-radius: 12px; background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 16, 20, 0.05), 0 4px 12px rgba(15, 16, 20, 0.08), 0 16px 40px -12px rgba(15, 16, 20, 0.22);
  opacity: 0; transform: scale(0.97); transform-origin: top right;
  pointer-events: none; visibility: hidden;
  transition: opacity 100ms ease-out, transform 100ms ease-out, visibility 0s linear 100ms;
}
.account-menu[data-open="true"] {
  opacity: 1; transform: none; pointer-events: auto; visibility: visible;
  transition: opacity 100ms ease-out, transform 100ms ease-out, visibility 0s;
}
.account-who { display: flex; align-items: center; gap: 10px; padding: 8px 8px 10px; }
.account-names { display: flex; flex-direction: column; min-width: 0; }
.account-name, .account-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-name { font: 500 14px/20px var(--sans); color: var(--ink); }
.account-email { font: 12px/16px var(--sans); color: var(--muted); }
.account-item {
  display: flex; align-items: center; height: 32px; padding: 0 8px;
  border: 0; border-radius: 6px; background: none;
  font: 450 13px/19.5px var(--sans); color: var(--ink); text-align: left; cursor: pointer;
}
.account-item:hover, .account-item:focus-visible { background: #f7f7f5; outline: none; }
@media (prefers-reduced-motion: reduce) { .account-menu, .account-menu[data-open="true"] { transition: none; } }
