/* Landing page — layout only (tokens from acid-terminal.css) */

:root {
  --nav-h: 64px;
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-lead: 18px;
  --fs-h3: 22px;
  --fs-h2: 28px;
  --fs-h1: clamp(34px, 4.4vw, 50px);
}

body.landing-page p,
body.landing-page .flow__copy,
body.landing-page .everywhere__copy,
body.landing-page .fw-row__desc,
body.landing-page .frameworks__note {
  font-size: var(--fs-body) !important;
  line-height: 1.65 !important;
  max-width: 62ch;
}

body.landing-page .frameworks h2,
body.landing-page .flow h2,
body.landing-page .free h2,
body.landing-page .everywhere h2,
body.landing-page .marketplace h2 {
  max-width: none !important;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem) !important;
  line-height: 1.15 !important;
  margin-bottom: 18px;
}

body.landing-page .free > .container {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) !important;
  gap: 40px 56px !important;
  align-items: start;
}

body.landing-page .free > .container > * {
  grid-column: auto !important;
  min-width: 0;
}

body.landing-page .free__copy,
body.landing-page .free__list li {
  font-size: 17px !important;
  line-height: 1.65 !important;
  max-width: none !important;
}

body.landing-page .free__list {
  padding-top: 4px;
}

body.landing-page .hero__ctas {
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

body.landing-page .hero__ctas .btn {
  min-width: 148px;
}

body.landing-page .footer-tagline {
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.65;
}

@media (max-width: 800px) {
  body.landing-page .free > .container {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
}

.hidden { display: none !important; }

.measure { max-width: 62ch; }

.avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 5px 12px 5px 5px;
  cursor: pointer;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
}

.avatar-circle {
  width: 26px;
  height: 26px;
  background: var(--acid);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.avatar-name { color: var(--text-primary); }
.avatar-arrow { font-size: 8px; color: var(--text-muted); margin-left: 1px; }

#mobile-menu-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 16px 24px 20px;
}

.mobile-menu.open { display: block; }

.mobile-menu__link {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mobile-menu__link:hover { color: var(--acid); }

body.landing-page .free__list li::before {
  background: #000;
}

body.landing-page .free h2,
body.landing-page .free p,
body.landing-page .free li {
  color: #000 !important;
}

body.landing-page .free {
  padding-inline: 0 !important;
}

body.landing-page .free > .container {
  padding-block: 8px;
}

body.landing-page .free .btn {
  margin-top: 8px;
}

body.landing-page .fw-row__name mark {
  background: transparent;
  color: var(--acid);
  text-decoration: underline;
  text-decoration-color: var(--acid-dim);
  text-underline-offset: 4px;
}

@media (max-width: 860px) {
  body.landing-page {
    --mobile-gutter: 20px;
  }

  .site-nav__links { display: none; }
  .site-nav__actions .nav-link-plain,
  .site-nav__actions #start-free-link { display: none; }
  #mobile-menu-btn { display: block !important; }

  body.landing-page .site-nav__actions {
    display: none !important;
  }

  body.landing-page .site-nav .container {
    display: grid !important;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    padding-inline: var(--mobile-gutter) !important;
    width: 100%;
    max-width: 100%;
  }

  body.landing-page .site-nav__logo {
    min-width: 0;
  }

  body.landing-page #mobile-menu-btn {
    grid-column: 2;
    justify-self: end;
    margin-left: 0;
  }

  body.landing-page .mobile-menu {
    padding-inline: var(--mobile-gutter);
  }
}

@media (min-width: 861px) {
  #mobile-menu-btn { display: none; }
}

.hero { padding-top: calc(var(--nav-h) + 48px); }

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.hero__intro { max-width: 640px; }

.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.prompt-demo__label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acid);
  margin-bottom: 10px;
}

.prompt-demo__rough {
  font-size: 17px;
  font-style: italic;
  line-height: 1.55;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.prompt-demo__arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--acid);
  margin: -6px 0 20px;
}

.prompt-demo__field {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14.5px;
  line-height: 1.6;
}

.prompt-demo__field b {
  flex-shrink: 0;
  width: 84px;
  color: var(--acid);
  font-size: 13px;
  letter-spacing: 0.02em;
  padding-top: 1px;
}

.flow__diagram {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 18px;
  max-width: 900px;
}

.flow__node { flex: 1 1 200px; min-width: 180px; }

.flow__node-title {
  font-weight: 500;
  font-size: 16px;
  color: var(--acid);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 12px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.flow__node-detail { font-size: 14.5px; color: var(--text-secondary); line-height: 1.55; }

.flow__connector {
  align-self: center;
  font-size: 20px;
  color: var(--text-muted);
  padding-top: 8px;
}

@media (max-width: 700px) {
  .flow__diagram { flex-direction: column; }
  .flow__connector { display: none; }
}

.everywhere__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.7;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.everywhere__list > span {
  display: inline-flex;
  align-items: center;
}

.everywhere__list > span > img {
  width: 26px;
  height: 26px;
  margin-right: 10px;
  display: inline-block;
  object-fit: contain;
}

.everywhere__list > span:not(:last-child)::after {
  content: '·';
  margin-left: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.fw-row {
  display: flex;
  gap: 32px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.fw-row:last-of-type { border-bottom: 1px solid var(--line); }

.fw-row__name {
  flex: 0 0 200px;
  font-weight: 500;
  font-size: var(--fs-h3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fw-row__desc {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 56ch;
  padding-top: 3px;
}

.frameworks__note {
  margin-top: 28px;
  font-size: var(--fs-small);
  color: var(--text-muted);
  max-width: 62ch;
}

@media (max-width: 700px) {
  .fw-row { flex-direction: column; gap: 8px; }
  .fw-row__name { flex: none; }
}

.free .container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px 56px;
  align-items: start;
}

.free__list { list-style: none; display: flex; flex-direction: column; gap: 14px; }

.free__list li {
  font-size: 17px;
  padding-left: 20px;
  position: relative;
  line-height: 1.65;
}

.free__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--acid);
}

@media (max-width: 800px) {
  .free .container { grid-template-columns: 1fr; }
}

.marketplace .container { max-width: 1040px; }

body.landing-page .marketplace__grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 24px;
  max-width: 720px;
}

.marketplace__photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.marketplace__photo figcaption {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.site-footer .footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.site-footer .footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

body.landing-page .marketplace {
  padding-block: 72px !important;
}

body.landing-page .marketplace__grid > div:first-child {
  grid-column: 1 / -1 !important;
}

body.landing-page .marketplace h2 {
  margin-bottom: 16px;
  max-width: none !important;
  font-size: clamp(1.35rem, 2.5vw, 2rem) !important;
  line-height: 1.2 !important;
  text-transform: none !important;
}

body.landing-page .marketplace p {
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.65;
}

/* Retire old tangerine brand photography on landing */
.marketplace__photo {
  display: none !important;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero__sub {
  font-size: 17px !important;
  max-width: 58ch;
  line-height: 1.65 !important;
  margin-bottom: 24px;
}

/* ---- Mobile / device layout ---- */
@media (max-width: 720px) {
  body.landing-page .container,
  body.landing-page section > .container,
  body.landing-page .site-footer > .container {
    padding-inline: var(--mobile-gutter) !important;
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  body.landing-page .hero > .container {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    column-gap: 0 !important;
    gap: 32px !important;
    padding-inline: var(--mobile-gutter) !important;
  }

  body.landing-page .hero__intro,
  body.landing-page .acid-protocol-map,
  body.landing-page .prompt-demo {
    grid-column: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }

  body.landing-page .hero {
    padding-top: calc(var(--nav-h) + 28px);
  }

  body.landing-page .hero h1 {
    max-width: none !important;
    font-size: clamp(1.6rem, 7.5vw, 2.1rem) !important;
    line-height: 1.12 !important;
    text-transform: none !important;
  }

  body.landing-page .hero__sub,
  body.landing-page p,
  body.landing-page .flow__copy,
  body.landing-page .everywhere__copy,
  body.landing-page .fw-row__desc,
  body.landing-page .frameworks__note,
  body.landing-page .marketplace p {
    max-width: none !important;
    font-size: 16px !important;
  }

  body.landing-page .hero__ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  body.landing-page .hero__ctas .btn {
    min-width: 0;
    width: 100%;
  }

  body.landing-page .frameworks h2,
  body.landing-page .flow h2,
  body.landing-page .free h2,
  body.landing-page .everywhere h2,
  body.landing-page .marketplace h2 {
    max-width: none !important;
    font-size: clamp(1.35rem, 6vw, 1.75rem) !important;
    line-height: 1.15 !important;
    text-transform: none !important;
  }

  body.landing-page .everywhere__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 0.03em;
  }

  body.landing-page .everywhere__list > span:not(:last-child)::after {
    display: none;
  }

  body.landing-page .fw-row {
    padding: 20px 0;
    padding-inline: 0;
  }

  body.landing-page .fw-row__name {
    font-size: 18px;
  }

  body.landing-page .free {
    padding-inline: 0 !important;
  }

  body.landing-page .free > .container {
    padding-inline: var(--mobile-gutter) !important;
    padding-block: 12px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    width: 100%;
    max-width: 100% !important;
  }

  body.landing-page .free__copy,
  body.landing-page .free__list li {
    font-size: 16px !important;
    max-width: none !important;
  }

  body.landing-page .free .btn {
    width: 100%;
  }

  body.landing-page .marketplace > .container.marketplace__grid {
    display: block !important;
    grid-template-columns: none !important;
    column-gap: 0 !important;
    max-width: 100% !important;
    padding-inline: var(--mobile-gutter) !important;
  }

  body.landing-page .marketplace .btn {
    width: 100%;
  }

  body.landing-page .flow__node {
    min-width: 0;
    width: 100%;
    flex: none;
  }

  body.landing-page .site-footer .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  body.landing-page .site-footer .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  body.landing-page .site-footer .footer-links a {
    display: block;
    padding: 8px 0;
    width: 100%;
  }

  body.landing-page .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.55;
  }

  body.landing-page .hero,
  body.landing-page .flow,
  body.landing-page .frameworks,
  body.landing-page .free,
  body.landing-page .marketplace,
  body.landing-page .everywhere {
    padding-block: 56px !important;
  }

  body.landing-page .acid-protocol-map {
    min-height: 200px !important;
    padding: 16px !important;
  }

  body.landing-page .acid-protocol-map .section-marker {
    font-size: 11px !important;
    line-height: 1.45 !important;
    word-break: break-word;
    margin-bottom: 12px;
  }

  body.landing-page .d-label--footer {
    display: none;
  }
}

@media (max-width: 480px) {
  body.landing-page .site-nav__logo img {
    height: 24px;
    min-width: 100px;
  }

  body.landing-page #mobile-menu-btn {
    padding: 6px;
    margin-left: auto;
  }
}

