/* Aireframes landing — tokens mirrored from the app's tokens.css. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/Inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/Inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/InstrumentSerif-400.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/JetBrainsMono-400.woff2") format("woff2");
}

:root {
  --surface-0: #FAFAF9;
  --surface-1: #FFFFFF;
  --surface-2: #F4F4F2;
  --surface-3: #EDEBE7;

  --border:        #E7E5E1;
  --border-strong: #D6D3CD;

  --text-1: #171614;
  --text-2: #57534E;
  --text-3: #8B8680;

  --accent:        #15803D;
  --accent-hover:  #166534;
  --accent-active: #14532D;
  --accent-weak:   #DCFCE7;
  --accent-softer: #F0FDF4;

  --warn:       #D97706;
  --warn-weak:  #FEF3C7;

  --radius-sm: 4px;
  --radius:    6px;
  --radius-lg: 10px;
  --radius-xl: 14px;

  --shadow-sm:  0 1px 2px rgba(23, 22, 20, 0.04), 0 1px 1px rgba(23, 22, 20, 0.03);
  --shadow-md:  0 2px 4px rgba(23, 22, 20, 0.05), 0 4px 12px rgba(23, 22, 20, 0.05);
  --shadow-pop: 0 1px 2px rgba(23, 22, 20, 0.04), 0 8px 24px rgba(23, 22, 20, 0.08), 0 2px 6px rgba(23, 22, 20, 0.04);
  --shadow-lg:  0 2px 4px rgba(23, 22, 20, 0.04), 0 20px 40px rgba(23, 22, 20, 0.14), 0 8px 16px rgba(23, 22, 20, 0.06);
  --shadow-accent: 0 6px 16px rgba(21, 128, 61, 0.24), 0 2px 6px rgba(21, 128, 61, 0.18);

  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Instrument Serif", ui-serif, Georgia, serif;
  --font-mono:    "JetBrains Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;

  --ease:     cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --page: 1180px;
}

html { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--surface-0);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01", "ss03";
}

a { color: inherit; text-decoration: none; transition: color 120ms var(--ease); }
a:hover { color: var(--accent); }

::selection { background: var(--accent-weak); color: var(--text-1); }

/* Subtle page backdrop: a faint dotted grid evocative of wireframe paper. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(23, 22, 20, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -14px -14px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}

main, .nav, .foot { position: relative; z-index: 1; }

/* ── Logo + beta badge ─────────────────────────────────────────────── */

.logo {
  display: block;
  height: 30px;
  width: auto;
}
.logo--sm { height: 22px; }

.badge-beta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-softer);
  border: 1px solid var(--accent-weak);
  border-radius: 999px;
}
.badge-beta--quiet {
  color: var(--text-3);
  background: var(--surface-2);
  border-color: var(--border);
}

/* ── Navigation ────────────────────────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--page);
  margin: 0 auto;
  padding: 22px 28px;
}
.nav__brand { display: inline-flex; align-items: center; gap: 10px; }
.nav__brand:hover { color: inherit; }
.foot__brand { display: inline-flex; align-items: center; gap: 10px; }
.nav__links { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.nav__links a:not(.btn) { color: var(--text-2); }
.nav__links a:not(.btn):hover { color: var(--text-1); }

/* ── Buttons ───────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background 160ms var(--ease), color 120ms var(--ease),
    border-color 160ms var(--ease), box-shadow 160ms var(--ease),
    transform 120ms var(--ease-out);
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}
.btn--primary:active {
  background: var(--accent-active);
  transform: translateY(0);
}
.btn--ghost {
  background: transparent;
  color: var(--text-1);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  background: var(--surface-1);
  color: var(--text-1);
  border-color: var(--text-3);
}
.btn--lg { height: 46px; padding: 0 24px; font-size: 15px; border-radius: var(--radius-lg); }

/* ── Typography ────────────────────────────────────────────────────── */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  font-feature-settings: "liga", "dlig";
  color: var(--text-1);
  line-height: 1.02;
}
.display--em { color: var(--accent); font-style: italic; }
.brand-ai {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
  font-style: normal;
  font-size: 0.86em;
  margin-right: -0.04em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid var(--accent-weak);
  background: var(--accent-softer);
  border-radius: 999px;
}

/* ── Hero ──────────────────────────────────────────────────────────── */

.hero {
  max-width: var(--page);
  margin: 36px auto 120px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero__copy { max-width: 560px; }
.hero h1.display {
  font-size: clamp(44px, 6.2vw, 76px);
  margin: 18px 0 22px;
}
.lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 52ch;
  margin: 0 0 30px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__foot {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-3);
  max-width: 48ch;
}

/* ── Hero mock: a stylised project grid, same vibe as the app ─────── */

.mock { margin: 0; position: relative; }
.mock__window {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.mock__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.mock__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}
.mock__dot:nth-child(1) { background: #E6A8A0; }
.mock__dot:nth-child(2) { background: #E6D296; }
.mock__dot:nth-child(3) { background: #A8D5B0; }
.mock__url {
  margin-left: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}
.mock__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 20px;
  background: var(--surface-0);
}
.mock__card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
.mock__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.mock__thumb {
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: flex-start;
}
.mock__bar {
  height: 6px;
  background: var(--border-strong);
  border-radius: 3px;
  opacity: 0.55;
}
.mock__row { display: flex; gap: 4px; }
.mock__row span {
  flex: 1;
  height: 14px;
  border: 1px dashed var(--border-strong);
  border-radius: 3px;
}
.mock__box {
  flex: 1;
  background: transparent;
  border: 1px dashed var(--border-strong);
  border-radius: 4px;
  position: relative;
}
.mock__box::before, .mock__box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px dashed var(--border-strong);
  transform-origin: center;
}
.mock__box::before { transform: rotate(8.5deg) scaleY(0); border-top: none; }
.mock__box--sm { min-height: 18px; max-height: 18px; flex: none; }

.mock__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  padding-left: 4px;
}

.mock__pin {
  position: absolute;
  top: 122px;
  right: 28%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--warn);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.45);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.35); }
  50%      { box-shadow: 0 0 0 10px rgba(217, 119, 6, 0); }
}

.mock__caption {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

/* ── Bands ─────────────────────────────────────────────────────────── */

.band {
  max-width: var(--page);
  margin: 0 auto;
  padding: 90px 28px;
  border-top: 1px solid var(--border);
}
.band--alt { background: transparent; }
.band__head {
  max-width: 640px;
  margin: 0 0 56px;
}
.band__head .eyebrow { margin-bottom: 16px; }
.h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  margin: 0;
  line-height: 1.1;
}

/* ── Steps ─────────────────────────────────────────────────────────── */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 26px 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.step::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0.85;
}
.step__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.step__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 6px 0 10px;
}
.step p { color: var(--text-2); margin: 0; font-size: 15px; }

/* ── What you can build ────────────────────────────────────────────── */

.builds {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.build {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color 240ms var(--ease-out);
}
.build:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.build__tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-softer);
  border: 1px solid var(--accent-weak);
  padding: 4px 10px;
  border-radius: 999px;
}
.build p {
  margin: 0;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ── Who it's for ──────────────────────────────────────────────────── */

.audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.audience__card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 30px 28px;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color 240ms var(--ease-out);
}
.audience__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.audience__card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.audience__card p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
}
.audience__tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-softer);
  border: 1px solid var(--accent-weak);
  border-radius: 999px;
}

/* ── Features ──────────────────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 26px 24px;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color 240ms var(--ease-out);
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.feature h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.feature p { color: var(--text-2); margin: 0; font-size: 15px; }

/* ── Closing CTA ───────────────────────────────────────────────────── */

.cta {
  max-width: var(--page);
  margin: 0 auto 120px;
  padding: 80px 28px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta .h2 { margin-bottom: 10px; }
.cta p {
  color: var(--text-2);
  font-size: 17px;
  margin: 0 0 28px;
}

/* ── Footer ────────────────────────────────────────────────────────── */

.foot {
  max-width: var(--page);
  margin: 0 auto;
  padding: 24px 28px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-3);
}
.foot__meta { flex: 1 1 auto; text-align: center; }
.foot__links { display: inline-flex; gap: 18px; }
.foot__links a { color: var(--text-3); }
.foot__links a:hover { color: var(--text-1); }

/* ── Legal pages (privacy, terms) ──────────────────────────────────── */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 28px 120px;
}
.legal-page .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 40px;
}
.legal-page .back:hover { color: var(--accent); }

.legal h1 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.05;
  margin: 0 0 12px;
  color: var(--text-1);
}
.legal .updated {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-3);
  margin: 0 0 36px;
}
.legal .intro {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0 0 28px;
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  font-size: 26px;
  line-height: 1.2;
  color: var(--text-1);
  margin: 44px 0 14px;
}
.legal h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  margin: 24px 0 8px;
}
.legal p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0 0 14px;
}
.legal ul {
  margin: 0 0 16px;
  padding-left: 20px;
}
.legal li {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 6px;
}
.legal li strong { color: var(--text-1); font-weight: 500; }
.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.legal a:hover { color: var(--accent-hover); }
.legal strong { font-weight: 500; color: var(--text-1); }
.legal .contact-block {
  margin-top: 16px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  font-size: 15px;
  line-height: 1.6;
}

/* ── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .builds { grid-template-columns: repeat(2, 1fr); }
  .audience { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 80px;
  }
  .steps { grid-template-columns: 1fr; }
  .band { padding: 72px 24px; }
}

@media (max-width: 640px) {
  .audience, .builds, .features { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav { padding: 18px 20px; }
  .nav__links { gap: 14px; }
  .nav__links a:not(.btn) { display: none; }
  .hero { padding: 0 20px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .mock__grid { grid-template-columns: repeat(2, 1fr); }
  .mock__pin { display: none; }
  .cta { padding: 60px 20px; }
  .foot { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.001ms !important; }
}
