/*
 * 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;
  /* Main buttons: dark on light pages, teal on dark ones (like lanibo.com). */
  --primary: #111827;
  --primary-text: #ffffff;

  --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;
    --primary: #5eead4;
    --primary-text: #0b1120;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0b1120;
  --surface: #141c2f;
  --text: #f3f4f6;
  --muted: #a8b3c7;
  --line: #243049;
  --link: #5eead4;
  --primary: #5eead4;
  --primary-text: #0b1120;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
/* Our display rules (e.g. a flex form) must not override the hidden attribute. */
[hidden] {
  display: none !important;
}
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 img {
  width: 30px;
  height: 30px;
  flex: none;
  display: block;
}
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);
}

/* The edit timeline under the home video: the real edit plan, like an editor's tracks. */
.edit {
  max-width: var(--column);
  margin: 0 auto;
  padding-block: 0 48px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.edit-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.edit-head .eyebrow {
  color: var(--roof);
}
.edit-head .timecode {
  color: var(--ground-muted);
}
.tracks {
  position: relative;
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  row-gap: 6px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgb(255 255 255 / 3%);
}
.track-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ground-muted);
  align-self: center;
}
.lane {
  position: relative;
  height: 34px;
}
.lane[data-lane='voice'] {
  height: 14px;
}
.lane[data-lane='music'] {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 1px;
}
.clip {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  padding: 0 6px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 6px;
  background: rgb(255 255 255 / 7%);
  color: var(--ground-text);
  font: 700 0.72rem/1 var(--font);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.clip:hover {
  border-color: var(--roof);
}
.clip.on {
  background: var(--roof);
  border-color: var(--roof);
  color: var(--ground);
}
.clip.card {
  border-style: dashed;
}
.clip-number {
  font-family: var(--mono);
  font-weight: 400;
  opacity: 0.7;
}
.clip-title {
  overflow: hidden;
  text-overflow: ellipsis;
}
.line {
  position: absolute;
  top: 3px;
  bottom: 3px;
  border-radius: 999px;
  background: rgb(94 234 212 / 45%);
}
.level {
  flex: 1;
  min-width: 0;
  border-radius: 1px;
  background: rgb(168 179 199 / 45%);
}
.playhead {
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: 2px;
  margin-left: calc(4.2rem + 12px);
  background: #ffffff;
  box-shadow: 0 0 10px rgb(94 234 212 / 80%);
  pointer-events: none;
}
.playhead-area {
  position: absolute;
  inset: 0 12px 0 calc(4.2rem + 12px);
  pointer-events: none;
}
.playhead-area .playhead {
  margin-left: 0;
}
.words {
  min-height: 1.6em;
  color: var(--ground-muted);
  font-style: italic;
}
@media (max-width: 680px) {
  .clip-title {
    display: none;
  }
  .clip {
    justify-content: center;
    padding: 0;
  }
  .tracks {
    grid-template-columns: 3.2rem minmax(0, 1fr);
  }
  .playhead-area {
    inset: 0 12px 0 calc(3.2rem + 12px);
  }
}

/* Facts from the example video */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.fact b {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.fact span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Scenario → steps → frame: the same moment in three forms. */
.triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.triptych > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.triptych blockquote {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.95rem;
}
.triptych img {
  width: 100%;
  border-radius: 14px;
  display: block;
}
.step-label {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--link);
}
@media (max-width: 760px) {
  .triptych {
    grid-template-columns: minmax(0, 1fr);
  }
  .triptych img {
    max-width: 280px;
  }
}

/* Where the video runs */
.places {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.place {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.place .ratio {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.place p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Comparison: our column comes first after the labels and is highlighted, so it shows on a phone too. */
.compare th:nth-child(2),
.compare td:nth-child(2) {
  background: color-mix(in srgb, var(--roof) 14%, transparent);
  font-weight: 700;
}
.compare td {
  white-space: normal;
}
.compare td:first-child {
  font-weight: 700;
  white-space: normal;
  min-width: 9rem;
}

/* FAQ */
details {
  border-bottom: 1px solid var(--line);
  padding-block: 12px;
}
summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  color: var(--link);
  font-weight: 900;
}
details[open] summary::after {
  content: '–';
}
details p {
  margin-top: 8px;
  color: var(--muted);
}

/* Closing band */
.closing {
  background: var(--ground);
  color: var(--ground-text);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.closing p {
  color: var(--ground-muted);
}
.closing a {
  color: var(--roof);
  font-weight: 800;
}

/* Fits for the home sections at the column's width. */
.triptych {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 0.75fr);
}
.triptych pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.74rem;
}
.triptych img {
  max-width: 220px;
  height: auto;
}
.places {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.compare table {
  font-size: 0.85rem;
}
.compare th {
  white-space: normal;
  vertical-align: bottom;
}
.compare td:first-child {
  min-width: 7rem;
}
@media (max-width: 760px) {
  .triptych {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Account page: cards, a segmented switch, fields, a toast. Calm motion, none if asked. */
.account-main {
  gap: 28px;
}
.account-head {
  gap: 10px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(18px, 4vw, 28px);
  box-shadow:
    0 1px 2px rgb(17 24 39 / 5%),
    0 18px 40px -24px rgb(17 24 39 / 28%);
  animation: card-rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.profile-grid > .card:nth-child(2) {
  animation-delay: 0.06s;
}
.profile-grid > .card:nth-child(3) {
  animation-delay: 0.12s;
}
.profile-grid > .card:nth-child(4) {
  animation-delay: 0.18s;
}
@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
.auth-card {
  max-width: 30rem;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.panel {
  animation: panel-in 0.28s ease both;
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
}
.card-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-head h2 {
  font-size: 1.25rem;
}
.hint {
  color: var(--muted);
  font-size: 0.94rem;
}

/* Segmented switch with a sliding pill (its position comes from --index, set by the script). */
.segmented {
  --index: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
}
.segmented-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 1px 3px rgb(17 24 39 / 18%);
  transform: translateX(calc(var(--index) * 100%));
  transition: transform 0.32s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.segmented button {
  position: relative;
  z-index: 1;
  min-height: 40px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 10px;
  padding: 0 6px;
  transition: color 0.2s ease;
}
.segmented button[aria-selected='true'] {
  color: var(--text);
}

/* Fields */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field label {
  font-weight: 800;
  font-size: 0.88rem;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 16px;
}
.field input,
.field select {
  width: 100%;
  min-height: 48px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  appearance: none;
}
.field select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field input:hover,
.field select:hover {
  border-color: color-mix(in srgb, var(--link) 45%, var(--line));
}
.field input:focus-visible,
.field select:focus-visible {
  outline: none;
  border-color: var(--link);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--link) 20%, transparent);
  border-radius: 12px;
}
.secret {
  position: relative;
}
.secret input {
  padding-right: 52px;
}
.reveal {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.reveal svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.reveal[aria-pressed='true'] {
  color: var(--link);
}

/* Password strength: a bar that fills and colours itself. */
.meter {
  --score: -1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.meter span {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  overflow: hidden;
  position: relative;
}
.meter span::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: #e5484d;
  transition:
    width 0.3s ease,
    background 0.3s ease;
}
.meter small {
  min-width: 6.5rem;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.8rem;
}
.meter[data-score='0'] span::after {
  width: 12%;
}
.meter[data-score='1'] span::after {
  width: 30%;
  background: #f76b15;
}
.meter[data-score='2'] span::after {
  width: 55%;
  background: #ffb224;
}
.meter[data-score='3'] span::after {
  width: 80%;
  background: #30a46c;
}
.meter[data-score='4'] span::after {
  width: 100%;
  background: var(--link);
}

/* Buttons */
.button {
  position: relative;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  font: inherit;
  font-weight: 800;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    opacity 0.15s ease;
}
.button.primary {
  background: var(--primary);
  color: var(--primary-text);
  box-shadow: 0 8px 20px -10px rgb(17 24 39 / 60%);
}
.button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -12px rgb(17 24 39 / 70%);
}
.button.primary:active {
  transform: translateY(0);
}
.button.wide {
  align-self: stretch;
}
.button.ghost,
.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--line);
}
.button.ghost:hover,
.button.secondary:hover {
  border-color: var(--text);
}
.danger-button {
  background: color-mix(in srgb, #e5484d 12%, transparent);
  color: #c4282d;
  border: 1.5px solid color-mix(in srgb, #e5484d 35%, transparent);
}
.danger-button:hover {
  background: #e5484d;
  color: #fff;
}
.button:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}
.button.busy {
  color: transparent;
}
.button.busy::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid var(--primary-text);
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
.button.ghost.busy::after,
.danger-button.busy::after {
  border-color: var(--text);
  border-right-color: transparent;
}
@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

/* Signed in */
.profile-grid {
  display: grid;
  gap: 18px;
  max-width: 40rem;
}
.identity {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.avatar {
  width: 56px;
  height: 56px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--roof), #93c5fd);
  color: var(--ground);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}
.identity-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.identity-text strong {
  font-size: 1.15rem;
}
.identity-text span {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.notice {
  border-radius: 12px;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--link) 12%, transparent);
  color: var(--text);
  font-weight: 700;
}
.danger {
  border-color: color-mix(in srgb, #e5484d 30%, var(--line));
}
.confirm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: panel-in 0.25s ease both;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Toast: slides up from the bottom, above the phone's home bar. */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  max-width: min(32rem, calc(100% - 32px));
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--ground);
  color: var(--ground-text);
  font-weight: 700;
  box-shadow: 0 18px 40px -16px rgb(0 0 0 / 50%);
  transform: translate(-50%, 160%);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.3s ease;
  pointer-events: none;
}
.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
.toast[data-kind='success'] {
  border-left: 4px solid var(--roof);
}
.toast[data-kind='error'] {
  border-left: 4px solid #e5484d;
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .panel,
  .confirm {
    animation: none;
  }
  .segmented-pill,
  .toast,
  .button,
  .meter span::after {
    transition: none;
  }
}

/* Reviews: one card per video, notes on a moment underneath. */
.reviews {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.review {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.review video {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 18px;
}
.review-note {
  color: var(--muted);
}
.notes-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 36rem;
}
.note-add {
  font-variant-numeric: tabular-nums;
}
.note-form textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  min-height: 72px;
  resize: vertical;
}
.note-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: none;
}
.note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.note .time {
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding: 0;
  cursor: pointer;
}
.note .text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.note .who {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.85rem;
}
.note.done .text {
  text-decoration: line-through;
  color: var(--muted);
}

.review .track {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 36rem;
}
.review .track audio {
  width: 100%;
}

/* A plain form column (the review notes). */
.form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Projects page */
.projects {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.project {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.project-head h2 {
  font-size: 1.5rem;
}
.project .reviews {
  gap: 22px;
}
.review.card {
  max-width: 40rem;
}
.review h3 {
  font-size: 1.15rem;
}
.project-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 40rem;
}
.project-actions details summary {
  cursor: pointer;
  font-weight: 800;
}
.project-actions details[open] summary {
  margin-bottom: 12px;
}
.small-form textarea,
.field textarea {
  width: 100%;
  min-height: 96px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  resize: vertical;
}
.field textarea:focus-visible {
  outline: none;
  border-color: var(--link);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--link) 20%, transparent);
}
.request-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: none;
}
.request {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.request .text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#new-request,
#admin-form {
  max-width: 40rem;
}

/* The account button at the right of the header. */
.account-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ground-text);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 4px 12px 4px 4px;
  border: 1px solid rgb(255 255 255 / 18%);
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.account-link:hover,
.account-link[aria-current='page'] {
  border-color: var(--roof);
  background: rgb(94 234 212 / 10%);
}
.account-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--ground);
  background: linear-gradient(135deg, var(--roof), #93c5fd);
}
.account-link:not(.signed-in) .account-dot {
  background: rgb(255 255 255 / 14%);
}
.account-link:not(.signed-in) .account-dot::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--ground-text);
}
.account-link + .lang {
  margin-left: 0;
}

/* Footer: real columns, Lanibo's products among them. */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.footer-inner {
  max-width: var(--column);
  margin: 0 auto;
  padding-block: 36px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
}
.footer-brand .brand {
  color: var(--text);
}
.footer-col h2 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-col a:hover {
  color: var(--link);
  text-decoration: underline;
}
.footer-legal {
  max-width: var(--column);
  margin: 0 auto;
  padding-block: 0 24px;
  color: var(--muted);
  font-size: 0.82rem;
}
