/* Lightmorphic Text website — Lightmorphic palette, self-hosted, no build step. */

@font-face {
  font-family: 'Manrope';
  src: url('fonts/Manrope-Variable.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bm-content-width: min(65rem, calc(100% - 3rem));
  --bg: #09090b;  --fg: #fafafa;
  --panel: #1b1d29;  --panel-border: rgba(255,255,255,.09);
  --border: #27272a;  --muted: #1c1c1f;  --muted-fg: #a1a1aa;
  --shadow-panel: 0 1px 2px rgba(0,0,0,.35), 0 8px 24px -16px rgba(0,0,0,.6);

  --accent: #fbc711;  --accent-hover: #ddaf0f;  --on-accent: #645007;
  --accent-container: #4b3c05;  --on-accent-container: #fde694;

  --brand-navy: #111827;
  --link: #2295f1;

  --dot-green: #4bae4f;
  --dot-amber: #ffc006;
  --dot-blue: #2295f1;
  --dot-red: #f34236;

  --radius: 0.875rem;
  --panel-radius: 1.375rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

a { color: var(--link); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header .wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--fg);
  text-decoration: none;
}

.wordmark img { width: 2rem; height: 2rem; }

header nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.25rem;
}

header nav a {
  color: var(--muted-fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}

header nav a:hover { color: var(--fg); }

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 auto 1rem;
  max-width: 22ch;
}

.hero .sub {
  color: var(--muted-fg);
  max-width: 46ch;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
}

.cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 0.8rem 1.5rem;
}

.button-primary:hover { background: var(--accent-hover); }
.button-primary svg { width: 1.1rem; height: 1.1rem; }

.cta .aside {
  color: var(--muted-fg);
  font-size: 0.8125rem;
}

.hero .shot {
  margin: 2.75rem auto 0;
  max-width: 58rem;
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  box-shadow: var(--shadow-panel);
}

section { padding: 2.5rem 0; }

section h2 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  box-shadow: var(--shadow-panel);
  padding: 1.5rem;
}

.panel h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.panel h3 svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--accent-hover);
  flex: none;
}

.panel p { margin: 0; color: var(--muted-fg); }

.features {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.features .lead-card { grid-column: 1 / -1; }

.features .lead-card .split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 40rem) {
  .features .lead-card .split { grid-template-columns: 1fr; }
}

.features .lead-card img {
  width: 100%;
  height: auto;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
}

.install ol {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.75rem;
  max-width: 65ch;
}

.install code, .install pre {
  font-family: ui-monospace, 'Cascadia Mono', 'DejaVu Sans Mono', monospace;
  font-size: 0.9375rem;
}

.install pre {
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  overflow-x: auto;
  margin: 0.5rem 0 0;
}

.install .hint {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  margin-top: 1.25rem;
  max-width: 65ch;
}

.guide-row {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}
.guide-row.flip { grid-template-columns: 4fr 5fr; }
.guide-row.flip .guide-text { order: 2; }
.guide-row.flip .guide-shot { order: 1; }
@media (max-width: 46rem) {
  .guide-row, .guide-row.flip { grid-template-columns: 1fr; }
  .guide-row.flip .guide-text { order: 1; }
  .guide-row.flip .guide-shot { order: 2; }
}
.guide-row h2 { margin-top: 0; }
.guide-row p { color: var(--muted-fg); max-width: 55ch; }
.guide-shot img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  box-shadow: var(--shadow-panel);
}

.dot-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.25rem;
  text-align: center;
}
.dot-legend .state { display: grid; justify-items: center; gap: 0.5rem; }
.dot-legend .dot {
  width: 34px; height: 34px; border-radius: 50%;
}
.dot-legend .dot.green { background: var(--dot-green); }
.dot-legend .dot.yellow { background: var(--dot-amber); }
.dot-legend .dot.blue { background: var(--dot-blue); }
.dot-legend .dot.red { background: var(--dot-red); }
.dot-legend .dot.ring {
  background: none;
  border: 3px solid var(--border);
  border-top-color: var(--fg);
  transform: rotate(45deg);
}
.dot-legend .state strong { font-size: 0.9375rem; }
.dot-legend .state span { font-size: 0.8125rem; color: var(--muted-fg); max-width: 22ch; }

.button-guide { display: grid; gap: 0.9rem; margin: 0; }
.button-guide div { display: flex; align-items: center; gap: 0.9rem; }
.button-guide .icon {
  flex: none;
  width: 2.25rem; height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--fg);
}
.button-guide .icon svg { width: 1.1rem; height: 1.1rem; }
.button-guide p { margin: 0; font-size: 0.9375rem; color: var(--muted-fg); }
.button-guide strong { color: var(--fg); }

@media (max-width: 34rem) {
  header .wrap { flex-wrap: wrap; }
  header nav { margin-left: 0; width: 100%; gap: 0 1rem; }
  }

.install ol > li { min-width: 0; }

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.legal { max-width: 42rem; }
.legal h1 { font-size: 1.75rem; letter-spacing: -0.01em; }
.legal h2 { font-size: 1.125rem; margin-top: 2rem; }
.legal p, .legal li { color: var(--muted-fg); }

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  z-index: 200;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  transition: top 0.15s ease;
}
.skip-link:focus-visible { top: 1rem; }

header nav a { padding: 0.6rem 0.2rem; display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .skip-link { transition: none; }
}

[id] { scroll-margin-top: 5.5rem; }

.site-foot { border-top: 1px solid var(--border); background: var(--muted);
  padding: 2.25rem 0 2rem; margin-top: 1rem; }

.site-foot > .wrap { width: 100%; max-width: none; padding: 0; }
.foot-grid { display: grid; grid-template-columns: max-content max-content max-content;
  justify-content: space-evenly; column-gap: 0; row-gap: 1.5rem; }
.foot-grid > :first-child  { max-width: 17.5rem; }
.foot-grid > :nth-child(2) { min-width: 15rem; max-width: 18rem; }

.site-foot h3 { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted-fg); margin: 0 0 .6rem; text-align: center; }
.foot-grid > :first-child h3 { text-align: left; }
.foot-grid > :nth-child(3), .foot-grid > :nth-child(3) h3 { text-align: right; }
.foot-grid > :nth-child(3) li a { justify-content: flex-end; }

.brand { display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; color: var(--fg); text-decoration: none; }
.brand img { width: 2rem; height: 2rem; }
.foot-lead { font-size: .9375rem; margin: .6rem 0 0; color: var(--muted-fg); }

.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: .35rem; }
.site-foot a { color: var(--fg); text-decoration: none; font-size: .9375rem; }
.site-foot a:hover { color: var(--accent); text-decoration: underline; }
.site-foot li a { display: inline-flex; align-items: center; min-height: 2rem; }

@media (max-width: 62rem) {
  .site-foot > .wrap { padding: 0 1.25rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; justify-content: stretch; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .site-foot h3, .foot-grid > :nth-child(3) { text-align: left; }
  .foot-grid > :nth-child(3) li a { justify-content: flex-start; }
}
@media (max-width: 34rem) { .foot-grid { grid-template-columns: 1fr; } }

.cookie-game { position: relative; height: 136px; }
.cookie-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  transition: left .18s ease, top .18s ease;
  background: var(--accent); color: var(--on-accent); border: none;
  padding: 9px 16px; border-radius: 999px; font: inherit; font-weight: 700;
  font-size: .8125rem; white-space: nowrap; cursor: pointer;
}
@media (prefers-reduced-motion: reduce) { .cookie-btn { transition: none; } }

.foot-small { margin: .1rem 0 0; font-size: .75rem; color: var(--muted-fg); line-height: 1.6; }
.foot-small b { color: var(--fg); font-weight: 700; }
.foot-vow { margin-top: .5rem; }
.foot-grid > :nth-child(2) .foot-small { text-align: center; }
@media (max-width: 62rem) { .foot-grid > :nth-child(2) .foot-small { text-align: left; } }

.legal { border-top: 1px solid var(--border); background: var(--muted); padding: 1.1rem 0 1.4rem; }
.legal-inner { display: grid; grid-template-columns: 1fr auto; gap: .1rem 1.5rem; align-items: center; }
.legal-line { grid-column: 1; margin: 0; font-size: .75rem; line-height: 1.7; color: var(--muted-fg); }
.legal-line a { color: var(--muted-fg); }
.legal-ai { grid-column: 2; grid-row: 1; justify-self: end; margin: 0;
  font-size: .75rem; line-height: 1.7; color: var(--muted-fg);
  display: inline-flex; align-items: center; gap: .4rem; }
.ai-spark { width: .95rem; height: .95rem; flex: none; color: var(--accent); }
.legal-links { grid-column: 2; grid-row: 3; justify-self: end;
  display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.legal-links a { color: var(--muted-fg); text-decoration: none; font-size: .75rem;
  display: inline-flex; align-items: center; min-height: 2.75rem; }
.legal-links a:hover { color: var(--fg); text-decoration: underline; }

@media (max-width: 52rem) {
  .legal-inner { grid-template-columns: 1fr; }
  .legal-ai, .legal-links { grid-column: 1; grid-row: auto; justify-self: start; margin-top: .5rem; }
}
