/* yea.sh. Rosé Pine dark, as F1 (src/f1/Theme.h). Flat: no glows, small shadows.
   Nested corners are concentric: inner radius = outer radius - padding. */
@font-face { font-family: Inter; src: url(/fonts/Inter-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/Inter-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/Inter-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/JetBrainsMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --base: #191724;
  --surface: #1f1d2e;
  --raised: #26233a;
  --text: #e0def4;
  --muted: #908caa;
  --subtle: #6e6a86;
  --accent: #ede09c;
  --on-accent: #191724;
  --love: #eb6f92;
  --foam: #9ccfd8;
  --pine: #31748f;
  --iris: #c4a7e7;
  --line: rgba(224, 222, 244, 0.07);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  --card-r: 16px;
  --control-r: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font: 400 17px/1.55 Inter, system-ui, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
a { color: var(--iris); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }

.bar, main, .foot { width: min(1120px, 100% - 40px); margin-inline: auto; }

.bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.bar nav { display: flex; align-items: center; gap: 24px; }
.bar nav a:not(.button) { color: var(--muted); font-size: 15px; }
.bar nav a:not(.button):hover { color: var(--text); text-decoration: none; }

.button {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px;
  border-radius: var(--control-r); background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: 15px; box-shadow: var(--shadow);
}
.button:hover { text-decoration: none; background: #f3e8b2; }
.button.small { height: 36px; padding: 0 14px; }
.button.quiet { background: var(--raised); color: var(--text); }
.button.quiet:hover { background: #2f2b47; }
.button.disabled { background: var(--raised); color: var(--subtle); box-shadow: none; cursor: default; }

.hero { padding: 72px 0 24px; text-align: center; }
.hero h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.05; letter-spacing: -0.035em; }
.lead { max-width: 620px; margin: 20px auto 0; color: var(--muted); font-size: 19px; }
.actions { display: flex; justify-content: center; gap: 12px; margin-top: 32px; }

/* The app picture: frame 26 - 6 = 20; inner 20 - 8 = 12; chat 12 - 6 = 6. */
.app {
  margin: 64px 0 0; padding: 6px; border-radius: 26px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: left;
}
.app-inner {
  display: grid; grid-template-columns: 1fr 300px; grid-template-rows: auto 1fr; gap: 8px;
  height: 460px; padding: 8px; border-radius: 20px; background: #16141f;
}
.tabs { grid-column: 1; display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--raised); width: max-content; }
.tab { padding: 4px 12px; border-radius: 8px; color: var(--muted); font-size: 13px; }
.tab.on { background: var(--accent); color: var(--on-accent); font-weight: 600; }

.stage {
  grid-column: 1; position: relative; overflow: hidden; border-radius: 12px;
  background-color: #1d2a24;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
}
.stage i { position: absolute; display: block; }
.tree { width: 34px; height: 34px; border-radius: 50%; background: var(--pine); }
.t1 { left: 12%; top: 18%; } .t2 { left: 70%; top: 14%; width: 44px; height: 44px; }
.t3 { left: 24%; top: 68%; } .t4 { left: 82%; top: 62%; width: 28px; height: 28px; } .t5 { left: 52%; top: 80%; }
.player { left: 46%; top: 44%; width: 26px; height: 26px; border-radius: 50%; background: var(--iris); }
.enemy { width: 18px; height: 18px; border-radius: 3px; background: var(--love); }
.e1 { left: 34%; top: 32%; } .e2 { left: 61%; top: 54%; } .e3 { left: 40%; top: 60%; }

.chat {
  grid-column: 2; grid-row: 1 / 3; display: flex; flex-direction: column; gap: 6px;
  padding: 6px; border-radius: 12px; background: var(--base); font-size: 13px; line-height: 1.45;
}
.agents { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-radius: 6px; background: var(--surface); }
.agent { display: flex; align-items: center; gap: 6px; padding: 2px 8px; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--subtle); }
.dot.run { background: var(--accent); }
.msgs { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 6px; }
.who { align-self: flex-end; color: var(--subtle); font-size: 11px; margin-bottom: -4px; }
.you { align-self: flex-end; max-width: 88%; padding: 8px 10px; border-radius: 6px; background: var(--raised); }
.agent-line { color: var(--subtle); font-size: 12px; }
.them { color: var(--text); }
.composer { padding: 10px; border-radius: 6px; background: var(--surface); color: var(--subtle); }

.section { padding: 96px 0 0; }
.section > h2 { font-size: 32px; margin-bottom: 28px; }

.card { padding: 24px; border-radius: var(--card-r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.num { display: block; margin-bottom: 14px; color: var(--accent); font: 400 14px "JetBrains Mono", monospace; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 16px; }
.plan .big { margin: 4px 0 10px; color: var(--text); font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }
.plan.main { border-color: rgba(237, 224, 156, 0.35); }
.note { margin-top: 20px; color: var(--subtle); font-size: 15px; }

/* Card 20 - 12 = 8 around its button. */
.download .wide { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 12px 12px 28px; border-radius: 20px; }
.download .wide > div { padding: 16px 0; }
.download h2 { font-size: 28px; margin-bottom: 6px; }
.download .button { height: 52px; border-radius: 8px; }

.foot { display: flex; justify-content: space-between; padding: 64px 0 40px; color: var(--subtle); font-size: 14px; }
.foot a { color: var(--muted); }

@media (max-width: 860px) {
  .app-inner { grid-template-columns: 1fr; grid-template-rows: auto 260px auto; height: auto; }
  .chat { grid-column: 1; grid-row: auto; }
  .steps, .grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .bar nav a:not(.button) { display: none; }
  .hero { padding-top: 40px; }
  .section { padding-top: 72px; }
  .download .wide { flex-direction: column; align-items: stretch; padding: 12px; }
  .download .wide > div { padding: 12px 16px 4px; }
  .download .button { justify-content: center; }
}
