/* OnlyStack org site. Tokens mirror onlystack.com (user-facing/landing globals.css :root). */
@font-face { font-family: 'FKTRag'; src: url('/fonts/FKTRag_Rg.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'FKTRag'; src: url('/fonts/FKTRag_Md.woff2') format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'FKTRag'; src: url('/fonts/FKTRag_Bd.woff2') format('woff2'); font-weight: 700 900; font-display: swap; }
@font-face { font-family: 'FKTEcho'; src: url('/fonts/FKTEcho_XCdRg.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'FKTEcho'; src: url('/fonts/FKTEcho_XCdMd.woff2') format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'FKTEcho'; src: url('/fonts/FKTEcho_XCdBd.woff2') format('woff2'); font-weight: 700 900; font-display: swap; }

:root {
  --surface-base: #f8f8fb;
  --surface-1: #ececf1;
  --surface-2: #dddde3;
  --surface-3: #cacad1;
  --card: #ffffff;
  --fg: #18181e;
  --fg-soft: #424248;
  --fg-muted: #68686f;
  --indigo: #524fdd;
  --indigo-hover: #413ebb;
  --indigo-light: #7374ef;
  --indigo-quiet: #dde3ff;
  --on-accent: #f8f8fa;
  --font-body: 'FKTRag', 'SF Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'FKTEcho', 'FKTRag', system-ui, sans-serif;
  --font-brand: 'Bricolage Grotesque', 'FKTRag', system-ui, sans-serif;
  --font-nav: Helvetica, Arial, sans-serif;
  --ink: #050507;
  --wrap: 1200px;
  --gutter: 48px;
  --r-card: 32px 32px 4px 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface-base);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--indigo-light); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 8.4vw, 7.5rem);
  line-height: .92;
  letter-spacing: -.01em;
  text-transform: uppercase;
  display: flex; flex-direction: column;
}
.display__accent { color: var(--indigo); font-weight: 400; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.55; color: var(--fg-soft); max-width: 720px; }
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -.005em;
}
.h3 { font-family: var(--font-brand); font-weight: 800; font-size: 1.5rem; line-height: 1.1; text-transform: uppercase; }
.body { color: var(--fg-soft); max-width: 860px; }
.eyebrow, .label {
  font-family: var(--font-nav);
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--indigo);
}
/* Indigo slab with a hard offset shadow: the FREE TRIAL treatment on onlystack.com */
.pill {
  display: inline-block;
  background: var(--indigo); color: var(--on-accent);
  padding: .04em .22em .02em;
  box-shadow: -5px 5px 0 var(--ink);
}

/* Buttons: square, as on onlystack.com. Black GET STARTED, outlined BOOK DEMO, indigo slab FREE TRIAL. */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 20px; border: 1px solid var(--ink);
  font-family: var(--font-nav); font-weight: 900; font-size: 15px; text-transform: uppercase;
  transition: background-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translate(-2px, 2px); box-shadow: none; }
.btn--dark { background: var(--ink); color: var(--surface-base); }
.btn--dark:hover { background: var(--indigo); border-color: var(--indigo); }
.btn--line { background: transparent; color: var(--fg); font-weight: 700; }
.btn--line:hover { background: var(--ink); color: var(--surface-base); }
.btn--accent {
  height: 56px; padding: 0 24px; background: var(--indigo); border-color: var(--indigo); color: var(--on-accent);
  font-family: var(--font-display); font-weight: 500; font-size: 30px; box-shadow: -5px 5px 0 var(--ink);
}
.btn--accent:hover { background: var(--indigo-hover); box-shadow: -7px 7px 0 var(--ink); }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 26px; height: 26px; }
.logo__word { font-family: var(--font-brand); font-size: 23px; line-height: 1; letter-spacing: -.01em; }
.logo__only { font-weight: 500; }
.logo__stack { font-weight: 800; }
.logo--sm .logo__mark { width: 22px; height: 22px; }
.logo--sm .logo__word { font-size: 20px; }

/* 1. Hero */
.hero { position: relative; min-height: 900px; display: flex; flex-direction: column; overflow: hidden; }
.hero__wash {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 65% at 95% 8%, var(--indigo-quiet) 0%, rgba(221, 227, 255, 0) 70%);
}
/* White header bar with rounded bottom corners, as on onlystack.com */
.nav-bar { position: relative; z-index: 2; background: #fbfbfd; border-radius: 0 0 34px 34px; }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.nav__right { display: flex; align-items: center; gap: 28px; }
.nav__link { font-family: var(--font-nav); font-size: 16px; text-transform: uppercase; color: var(--fg); transition: color .15s ease; }
.nav__link:hover { color: var(--indigo); }
.hero__body { position: relative; display: flex; flex-direction: column; gap: 24px; margin-top: 56px; }
.facts {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px;
  margin-top: auto; padding-top: 56px; padding-bottom: 80px;
}
.fact { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--surface-3); padding-top: 20px; }
.fact dt { font-family: var(--font-display); font-weight: 700; font-size: 3rem; line-height: 1; }
.fact dd { color: var(--fg-muted); font-size: 15px; line-height: 1.4; max-width: 200px; }

/* Sections */
.section { position: relative; padding: 56px 0; }
.section__head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.section__head .h2 { margin-bottom: 4px; }

/* 2. Cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--ink);
  display: flex; flex-direction: column; gap: 24px;
  padding-bottom: 28px; overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translate(3px, -3px); box-shadow: -6px 6px 0 var(--indigo); }
.card__visual {
  height: 170px; border-bottom: 1px solid var(--ink);
  display: grid; place-items: center; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--indigo-quiet), #eef0ff 55%, #f3ecff);
}
.card__visual--ext { background: linear-gradient(135deg, #e3faf9, var(--indigo-quiet)); }
.card__visual--ask { background: linear-gradient(135deg, #f1ecff, var(--indigo-quiet)); }
.card__visual--flow { background: linear-gradient(135deg, var(--indigo-quiet), #e3faf9); }
.card__visual--api { background: var(--ink); }
.card__text { display: flex; flex-direction: column; gap: 10px; padding: 0 24px; }
.card__text p { font-size: 15px; line-height: 1.5; }
.card__text p { color: var(--fg-soft); }

/* Card mocks (decorative, aria-hidden) */
.ln { display: block; height: 8px; border-radius: 4px; background: var(--surface-2); }
.w40 { width: 40%; } .w45 { width: 45%; } .w60 { width: 60%; } .w65 { width: 65%; } .w70 { width: 70%; } .w80 { width: 80%; }
.mock-window {
  width: 82%; height: 160px; background: #1e1e21; border-radius: 12px; display: grid;
  grid-template-columns: 34px 1.1fr 1fr; overflow: hidden; transform: translateY(26px); height: 140px;
}
.mock-side { background: #141416; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 14px; }
.mock-side i { width: 14px; height: 14px; border-radius: 4px; background: #3a3a3d; }
.mock-side i.on { background: var(--indigo); }
.mock-list { padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; border-right: 1px solid #2a2a2d; }
.mock-list .row { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 8px; }
.mock-list .row.active { background: #2a2a2d; }
.mock-list .ln { background: #3a3a3d; flex: 1; }
.mock-list em { font-style: normal; font-size: 10px; color: #8d8cff; font-family: ui-monospace, monospace; }
.av { width: 20px; height: 20px; border-radius: 50%; background: var(--indigo); color: #fff; font-size: 10px; display: grid; place-items: center; flex: none; }
.mock-thread { padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.bub { height: 22px; border-radius: 10px; width: 75%; background: #3a3a3d; }
.bub.out { align-self: flex-end; background: var(--indigo); width: 62%; }
.bub.short { width: 45%; }

.mock-browser { width: 80%; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 0 var(--surface-2); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--surface-1); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.mock-bar span { flex: 1; height: 14px; margin-left: 8px; border-radius: 7px; background: #fff; }
.mock-badges { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 16px 26px; }
.badge { font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.b1 { background: var(--fg); color: #fff; }
.b2 { background: var(--indigo); color: #fff; }
.b3 { background: var(--indigo-quiet); color: var(--indigo-hover); }
.b4 { background: #dff5e9; color: #007137; }
.b4::before { content: '●'; margin-right: 6px; font-size: 9px; vertical-align: 1px; }

.mock-ask { width: 78%; display: flex; flex-direction: column; gap: 10px; }
.ask-q { align-self: flex-end; background: var(--indigo); color: #fff; font-size: 13px; padding: 8px 14px; border-radius: 14px 14px 4px 14px; }
.ask-a { background: #fff; border-radius: 14px 14px 14px 4px; padding: 14px; display: flex; flex-direction: column; gap: 8px; width: 80%; }
.ask-box { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--surface-2); border-radius: 999px; padding: 8px 8px 8px 16px; font-size: 12px; color: var(--fg-muted); }
.ask-box b { width: 24px; height: 24px; border-radius: 50%; background: var(--fg); color: #fff; display: grid; place-items: center; font-size: 12px; }

.flow { display: flex; flex-direction: column; align-items: center; }
.node { background: #fff; border: 1px solid var(--surface-2); border-radius: 10px; padding: 8px 18px; font-size: 13px; font-weight: 600; }
.node--accent { background: var(--fg); color: #fff; border-color: var(--fg); }
.edge { width: 1px; height: 18px; background: var(--fg-muted); }

.term { margin: 0; width: 82%; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; line-height: 1.9; color: #c9c9cf; white-space: pre; overflow: hidden; }
.term .c { color: #8d8cff; }
.term .ok { color: #5fd4a0; }

/* 3. Split on wash */
.section--wash { background: var(--surface-1); overflow: hidden; }
.section--wash::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 80% at 0% 100%, rgba(115, 116, 239, .30), transparent 70%),
    radial-gradient(40% 60% at 100% 0%, rgba(56, 228, 223, .20), transparent 70%);
}
#principles { padding: 56px 0; }
.split { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.split__head { display: flex; flex-direction: column; gap: 16px; align-self: start; }
.split__list { display: flex; flex-direction: column; gap: 48px; }
.principle { display: flex; flex-direction: column; gap: 12px; }
.principle p { color: var(--fg-soft); }

/* 4. Mission image */
#mission { padding: 56px 0; }
#mission .section__head { margin-bottom: 32px; }
.shot { overflow: hidden; background: var(--indigo-quiet); border: 1px solid var(--ink); box-shadow: -8px 8px 0 var(--indigo); padding: 48px 48px 0; }

/* Inbox illustration (decorative HTML, not a screenshot). Rounded inside, like product UI on onlystack.com. */
.app { background: #fbfcfd; border-radius: 14px 14px 0 0; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(20, 20, 40, .45); font-family: -apple-system, 'Segoe UI', var(--font-body); }
.app__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #1e1e21; color: #c9c9cf; font-size: 12.5px; font-weight: 600; }
.app__bar i { width: 11px; height: 11px; border-radius: 50%; background: #4a4a4d; }
.app__bar span { margin-left: 10px; }
.app__body { display: grid; grid-template-columns: 150px 1.1fr 1.6fr 220px; height: 612px; }
.app__nav { background: #f2f2f6; padding: 18px 10px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid #e4e4ec; }
.app__nav b { font-size: 13px; font-weight: 500; color: #3d3d4a; padding: 8px 10px; border-radius: 8px; }
.app__nav b.on { background: #fff; color: var(--indigo); font-weight: 700; box-shadow: 0 0 0 1px #e4e4ec; }
.app__list { border-right: 1px solid #e4e4ec; padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; }
.app__head { font-size: 13px; font-weight: 700; color: #12161e; padding: 2px 8px 10px; display: flex; justify-content: space-between; }
.app__head em { font-style: normal; font-weight: 500; color: var(--fg-muted); font-size: 12px; }
.app__row { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 10px; }
.app__row.on { background: #eef0ff; }
.app__row > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ln.lt { background: #ececf1; height: 6px; }
.av--2 { background: var(--fg); }
.av--3 { background: var(--indigo-light); }
.av--lg { width: 56px; height: 56px; font-size: 20px; }
.app__thread { padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.msg { display: block; height: 30px; border-radius: 14px; background: #ececf1; position: relative; }
.msg.out { align-self: flex-end; background: var(--indigo); }
.msg em { position: absolute; right: 0; top: -17px; font-style: normal; font-size: 10px; font-family: ui-monospace, monospace; color: var(--indigo); letter-spacing: .04em; text-transform: uppercase; }
.app__compose { margin-top: auto; display: flex; justify-content: space-between; align-items: center; border: 1px solid #dddde3; border-radius: 12px; padding: 8px 8px 8px 14px; font-size: 13px; color: var(--fg-muted); }
.app__compose b { background: var(--fg); color: #fff; font-size: 12px; padding: 6px 12px; border-radius: 8px; }
.app__fan { border-left: 1px solid #e4e4ec; padding: 22px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.chip--ink { background: var(--fg); color: #fff; }
.chip--ok { background: #dff5e9; color: #007137; }

/* 5. Careers + footer */
.section--last { padding: 96px 0 0; }
.section--last > .wrap { position: relative; }
.cta {
  position: relative; background: var(--card); border: 1px solid var(--ink);
  padding: 40px 24px 24px; display: flex; flex-direction: column; gap: 24px;
}
.cta__top { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 0 24px; }
.cta__top .btn { margin-top: 20px; }
.roles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); }
.roles li { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; height: 155px; padding: 20px 24px; border-right: 1px solid var(--surface-3); }
.roles li:last-child { border-right: 0; }
.roles span { font-family: var(--font-brand); font-weight: 800; font-size: 1.125rem; text-transform: uppercase; }
.roles em { font-style: normal; color: var(--fg-muted); font-size: 14px; }

/* Black rounded footer panel inset on the canvas, as on onlystack.com */
.footer-shell { position: relative; padding: 80px var(--gutter) 24px; }
.footer {
  max-width: var(--wrap); margin: 0 auto; padding: 56px 48px 40px; background: var(--ink); color: #d9d9e0;
  border-radius: 34px; display: flex; flex-direction: column; gap: 22px;
}
.footer .logo { color: #fff; }
.footer__top { display: flex; align-items: center; gap: 48px; }
.footer__tag { color: #a3a3ad; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 48px; font-size: 14px; }
.footer__links a:hover { color: var(--indigo-light); }
.footer__legal { font-size: 13px; color: #8b8b92; border-top: 1px solid #2a2a2f; padding-top: 18px; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 900px) {
  :root { --gutter: 32px; }
}
@media (max-width: 1024px) {
  .app__body { grid-template-columns: 130px 1fr 1.4fr; }
  .app__fan { display: none; }
  .app__body { height: 575px; }

}
@media (max-width: 760px) {
  :root { --gutter: 16px; --r-card: 24px 24px 4px 4px; }
  .nav__link, .nav .btn--line { display: none; }
  .btn { height: 44px; padding: 0 18px; font-size: 14px; }
  .hero__body { margin-top: 32px; }
  .facts { gap: 24px; padding-bottom: 48px; }
  .fact dt { font-size: 2.25rem; }
  .cards, .split { grid-template-columns: 1fr; }
  .split__head { position: static; }
  .card__visual { height: 190px; border-radius: 22px 22px 0 0; }
  .card__text { padding: 0 20px; }
  #principles, #mission { padding: 64px 0; }
  .section--last { padding-top: 64px; }
  .cta { padding: 28px 8px 8px; }
  .cta__top { padding: 0 12px; }
  .roles { grid-template-columns: 1fr 1fr; }
  .roles li { height: auto; gap: 4px; padding: 16px 12px; border-bottom: 1px solid var(--surface-3); }

  .shot { padding: 20px 12px 0; }
  .app__body { grid-template-columns: 1fr 1.3fr; height: 340px; }
  .hero { min-height: 0; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .app__nav, .app__fan { display: none; }
  .app__thread { padding: 18px 12px; }
  .footer-shell { padding: 56px 8px 8px; }
  .footer { padding: 36px 20px 28px; border-radius: 24px; }
  .footer__top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .nav-bar { border-radius: 0 0 22px 22px; }
  .btn--accent { font-size: 24px; height: 50px; }
  .footer__links { gap: 10px 24px; }
}
