/* Lock In site (ADR-061): same palette and type as the app (packages/tokens), no framework. */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-cyrillic.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  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+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Unbounded';
  src: url('fonts/unbounded-cyrillic.woff2') format('woff2');
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  src: url('fonts/unbounded-latin.woff2') format('woff2');
  font-weight: 200 900;
  font-display: swap;
  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+2191, U+2193, U+2212, U+2215;
}

:root {
  /* Dark by default; the header button switches to light (site.js, remembered per browser). */
  --canvas: #0f1112;
  --surface: #16191b;
  --sunken: #0b0c0d;
  --line: #262a2e;
  --line-strong: #353a3f;
  --fg: #ecedea;
  --muted: #a3a7a6;
  --subtle: #848988;
  --accent: #c8f02e;
  --on-accent: #16170f;
  --accent-text: #d2f55c;
  --accent-subtle: #243010;
  --p1: #e5484d;
  --p2: #f5a524;
  --p3: #3e8ef7;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 40px rgba(0, 0, 0, 0.45);
  --radius: 20px;
  color-scheme: dark;
}
:root[data-theme='light'] {
  --canvas: #faf9f6;
  --surface: #ffffff;
  --sunken: #f2f0eb;
  --line: #e8e5de;
  --line-strong: #d5d1c7;
  --fg: #1a1a17;
  --muted: #5f5d56;
  --subtle: #76736b;
  --accent-text: #4a6500;
  --accent-subtle: #eef8cc;
  --shadow:
    0 1px 2px rgba(26, 26, 23, 0.06), 0 8px 24px rgba(26, 26, 23, 0.08),
    0 24px 64px rgba(26, 26, 23, 0.08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--fg);
  font:
    16px/1.6 'Inter',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  /* The drawn phone may reach past the edge on narrow screens: never scroll sideways. */
  overflow-x: clip;
}
a {
  color: inherit;
}
img,
svg {
  display: block;
}
:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.display {
  font-family: 'Unbounded', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
}
.brand img {
  width: 30px;
  height: 30px;
}
.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
}
.tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font:
    600 13px/1 'Inter',
    system-ui,
    sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.icon-btn:hover {
  color: var(--fg);
  background: var(--sunken);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}
/* The button shows where it leads: a sun in the dark theme, a moon in the light one. */
.theme-toggle .moon,
:root[data-theme='light'] .theme-toggle .sun {
  display: none;
}
:root[data-theme='light'] .theme-toggle .moon {
  display: block;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover {
  color: var(--fg);
}
@media (max-width: 720px) {
  .nav .hide-sm {
    display: none;
  }
  .top .wrap {
    gap: 10px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--fg);
  transition:
    transform 0.12s ease,
    filter 0.12s ease,
    background 0.12s ease;
}
.btn:hover {
  background: var(--sunken);
}
.btn:active {
  transform: translateY(1px);
}
.btn.primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: transparent;
}
.btn.primary:hover {
  filter: brightness(0.96);
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.btn.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 11px;
}

/* Hero */
.hero {
  /* Only top and bottom: the sides come from .wrap (it was overridden here, so on phones the
     text touched the screen edges). */
  padding-top: 72px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 44px;
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-subtle);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 600;
}
.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 700;
}
.hero h1 mark {
  background: none;
  color: var(--accent-text);
}
.lead {
  text-wrap: pretty;
  margin: 0 0 30px;
  font-size: 19px;
  color: var(--muted);
  max-width: 560px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.meta {
  margin-top: 16px;
  font-size: 14px;
  color: var(--subtle);
}

/* App preview (drawn in HTML/CSS — no screenshots to keep up to date) */
.preview {
  position: relative;
  min-height: 420px;
}
.window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 172px 1fr;
  min-height: 380px;
}
.window .side {
  background: var(--canvas);
  border-right: 1px solid var(--line);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}
.window .side .item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 9px;
}
.window .side .item.on {
  background: var(--accent-subtle);
  color: var(--fg);
  font-weight: 600;
}
.window .main {
  padding: 20px 22px;
}
.window h3 {
  margin: 0 0 4px;
  font-size: 22px;
}
.window .date {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.task {
  display: flex;
  gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
}
.task:last-child {
  border-bottom: 0;
}
.box {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 5px;
  border: 1.5px solid var(--line-strong);
}
.box.p1 {
  border: 2px solid var(--p1);
}
.box.p2 {
  border: 2px solid var(--p2);
}
.box.done {
  background: var(--accent);
  border-color: var(--accent);
}
.task .t {
  font-size: 14px;
  font-weight: 500;
}
.task .done-t {
  color: var(--subtle);
  text-decoration: line-through;
}
.task .m {
  font-size: 12px;
  color: var(--accent-text);
  margin-top: 2px;
}
.task .m.late {
  color: var(--p1);
}
.phone {
  position: absolute;
  right: 0;
  bottom: -30px;
  width: 190px;
  background: var(--canvas);
  border: 7px solid #1d2124;
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: 22px 10px 14px;
}
@media (max-width: 520px) {
  .hero {
    padding-top: 28px;
    gap: 36px;
  }
  .hero h1 {
    font-size: 34px;
    margin: 16px 0 14px;
  }
  .lead {
    font-size: 17px;
    margin-bottom: 24px;
  }
  /* The download buttons stack as two equal full-width buttons. */
  .cta .btn {
    flex: 1 1 100%;
  }
  .meta {
    text-align: center;
  }
  .phone {
    display: none;
  }
  .window {
    grid-template-columns: 1fr;
  }
  .window .side {
    display: none;
  }
}
.widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.widget .h {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.widget .t {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}
.widget .m {
  font-size: 11px;
  color: var(--muted);
}
.widget .check {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--accent-text);
  background: var(--accent-subtle);
  display: grid;
  place-items: center;
  color: var(--accent-text);
  font-weight: 800;
  font-size: 14px;
}
.phone .cap {
  font-size: 10px;
  color: var(--subtle);
  text-align: center;
  margin-top: 8px;
}

/* Sections */
section {
  padding: 72px 0;
  scroll-margin-top: 64px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
  font-weight: 700;
}
.section-lead {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 18px;
  max-width: 680px;
  text-wrap: pretty;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--accent-subtle);
  color: var(--accent-text);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.card .icon svg {
  width: 22px;
  height: 22px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  text-wrap: balance;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  /* Left-aligned, single spaces; lines balanced so no word is left alone. */
  text-align: left;
  text-wrap: pretty;
}
.card code {
  font:
    600 14px/1.4 'Inter',
    system-ui,
    sans-serif;
  color: var(--accent-text);
}

/* Downloads */
.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}
.dl {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dl h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 20px;
}
.dl h3 svg {
  width: 26px;
  height: 26px;
}
.dl .ver {
  font-size: 14px;
  color: var(--subtle);
}
.dl ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}
.dl .btn {
  margin-top: auto;
}

/* FAQ */
details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  color: var(--subtle);
  font-weight: 400;
}
details[open] summary::after {
  content: '−';
}
details p {
  margin: 10px 0 0;
  color: var(--muted);
  text-wrap: pretty;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--subtle);
  font-size: 14px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
}
footer a {
  color: var(--muted);
}

/* Text pages */
.doc {
  max-width: 760px;
  padding: 48px 20px 72px;
}
.doc h1 {
  font-size: clamp(30px, 5vw, 42px);
  margin: 0 0 8px;
}
.doc .updated {
  color: var(--subtle);
  margin: 0 0 32px;
}
.doc h2 {
  font-size: 20px;
  margin: 32px 0 8px;
}
.doc p,
.doc li {
  color: var(--muted);
}
.center {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
}
