/*
 * promo-agent site. In the family of lanibo.com (its font, its dark ground, its teal roof,
 * its warm paper and pill buttons) but quieter: one accent, no pastels, no gradients.
 * Layout: a dark header and hero band, then one reading column; videos in 9:16 frames.
 * Fonts are served from here (SIL Open Font License): no third-party requests.
 */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/nunito-latin.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/nunito-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-400.woff2') format('woff2');
}

:root {
  /* Lanibo's brand, the same in both themes. */
  --ground: #111827;
  --ground-text: #ffffff;
  --ground-muted: #a8b3c7;
  --roof: #5eead4;

  /* Light theme (lanibo.com's). */
  --bg: #fbf8f3;
  --surface: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --line: #e9e2d6;
  --link: #0f766e;

  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --radius: 22px;
  --column: 46rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0b1120;
    --surface: #141c2f;
    --text: #f3f4f6;
    --muted: #a8b3c7;
    --line: #243049;
    --link: #5eead4;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0b1120;
  --surface: #141c2f;
  --text: #f3f4f6;
  --muted: #a8b3c7;
  --line: #243049;
  --link: #5eead4;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--link);
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 3px solid var(--roof);
  outline-offset: 3px;
  border-radius: 6px;
}
img,
video,
svg {
  max-width: 100%;
}

/* Header: on the dark ground, like lanibo.com's. */
.bar {
  background: var(--ground);
  color: var(--ground-text);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.bar-inner {
  max-width: var(--column);
  margin: 0 auto;
  padding-block: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ground-text);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 0.95rem;
  font-weight: 700;
}
nav a {
  color: var(--ground-muted);
  text-decoration: none;
}
/* The language switch sits at the far end of the header. */
.lang {
  margin-left: auto;
  color: var(--ground-text);
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid var(--ground-muted);
  border-radius: 999px;
  padding: 2px 12px;
}
.lang:hover {
  border-color: var(--roof);
}
nav a:hover {
  color: var(--ground-text);
}
nav a[aria-current='page'] {
  color: var(--ground-text);
  text-decoration: underline;
  text-decoration-color: var(--roof);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

/* Page */
main {
  max-width: var(--column);
  margin: 0 auto;
  padding-block: 40px 64px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  gap: 48px;
}
section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}
h2 {
  font-size: 1.6rem;
  font-weight: 900;
}
h3 {
  font-size: 1.15rem;
  font-weight: 800;
}
p,
ul,
ol {
  margin: 0;
  max-width: 65ch;
}
ul,
ol {
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lede {
  font-size: 1.2rem;
  color: var(--muted);
}
.eyebrow {
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--link);
}
code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 0.3em;
}
pre {
  margin: 0;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.6;
}
pre code {
  border: 0;
  padding: 0;
  background: none;
  font-size: inherit;
}
.table {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 9px 12px 9px 0;
  border-bottom: 1px solid var(--line);
}
th {
  font-weight: 800;
  white-space: nowrap;
}
td:first-child {
  white-space: nowrap;
}

/* Home: a dark band like lanibo.com's hero, without its gradients. */
.hero-band {
  background: var(--ground);
  color: var(--ground-text);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.hero {
  max-width: var(--column);
  margin: 0 auto;
  padding-block: 32px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 290px);
  gap: 40px;
  align-items: center;
}
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.hero .lede {
  color: var(--ground-muted);
}
.hero video {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: var(--radius);
  display: block;
  box-shadow: 0 30px 70px -30px rgb(0 0 0 / 70%);
}
.soon {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--roof);
  color: var(--ground);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 680px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero video {
    max-width: 320px;
  }
}

/* Video frames: 9:16 like the videos themselves */
.reel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}
figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
figure video {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 18px;
  display: block;
}
figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.95rem;
}
figcaption strong {
  font-size: 1.05rem;
  font-weight: 800;
}
.timecode {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Feature list with status: one accent for done; the rest is ink and grey. */
.features {
  list-style: none;
  padding: 0;
  gap: 0;
  max-width: none;
}
.features li {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 4px 14px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.features li > div {
  min-width: 0;
}
.features strong {
  display: block;
  font-weight: 800;
}
.features p {
  color: var(--muted);
  font-size: 0.97rem;
}
.status {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 4px;
  white-space: nowrap;
}
.status.done {
  color: var(--link);
}
.status.building {
  color: var(--text);
}
.status.planned {
  color: var(--muted);
}
.status::before {
  margin-right: 6px;
}
.status.done::before {
  content: '●';
}
.status.building::before {
  content: '◐';
}
.status.planned::before {
  content: '○';
}

/* Pipeline (How it works): a real sequence, so numbered. */
.pipeline {
  list-style: none;
  padding: 0;
  gap: 0;
  max-width: none;
  counter-reset: stage;
}
.pipeline li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 4px 12px;
  padding-block: 14px;
  border-left: 2px solid var(--line);
  margin-left: 1.2rem;
}
.pipeline li::before {
  counter-increment: stage;
  content: counter(stage);
  font-weight: 800;
  font-size: 0.85rem;
  width: 1.9rem;
  height: 1.9rem;
  margin-left: -1rem;
  border-radius: 50%;
  background: var(--ground);
  color: var(--roof);
  display: grid;
  place-items: center;
}
.pipeline li > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pipeline .files {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.note {
  border-left: 3px solid var(--roof);
  padding: 4px 0 4px 14px;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
footer p {
  max-width: var(--column);
  margin: 0 auto;
  padding-block: 20px;
  font-size: 0.88rem;
  color: var(--muted);
}
