:root {
  color-scheme: light;
  --bg: #fffaf2;
  --paper: #ffffff;
  --ink: #171717;
  --muted: #6f665f;
  --line: #e7d9c9;
  --blue: #0759b8;
  --gold: #b89564;
  --green: #2ead68;
  --coral: #d45a45;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.locked .site-content {
  display: none;
}

body:not(.locked) .access-gate {
  display: none;
}

a {
  color: var(--blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.access-gate {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, .96), rgba(242, 232, 217, .92)),
    url("assets/app-icon.png") right 8vw bottom 8vw / min(44vw, 390px) no-repeat;
}

.gate-panel {
  width: min(100%, 460px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 22px 80px rgba(23, 23, 23, .14);
}

.gate-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 950;
}

.gate-logo img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}

.gate-panel h1 {
  margin-top: 0;
  font-size: clamp(34px, 9vw, 54px);
}

.gate-panel p {
  color: var(--muted);
}

.gate-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.gate-form label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.gate-form input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.gate-form input:focus {
  outline: 2px solid rgba(7, 89, 184, .2);
  border-color: var(--blue);
}

.gate-error {
  min-height: 22px;
  margin: 0;
  color: var(--coral);
  font-weight: 800;
}

.gate-small {
  margin-top: 18px;
  font-size: 13px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 68px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(231, 217, 201, .72);
  background: rgba(255, 250, 242, .92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.hero {
  min-height: calc(100svh - 68px);
  display: grid;
  align-items: center;
  padding: clamp(52px, 8vw, 96px) clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 250, 242, .97) 0%, rgba(255, 250, 242, .86) 50%, rgba(255, 250, 242, .62) 100%),
    url("assets/app-icon.png") right 8vw center / min(42vw, 520px) no-repeat,
    #fffaf2;
}

.hero-inner {
  max-width: 740px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(184, 149, 100, .32);
  background: rgba(184, 149, 100, .12);
  color: #5d4427;
  font-size: 13px;
  font-weight: 900;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.04;
}

h1 {
  margin-top: 22px;
  max-width: 720px;
  font-size: clamp(48px, 8vw, 94px);
  font-weight: 950;
}

.lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 23px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-weight: 900;
  text-decoration: none;
}

.button.secondary {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.section {
  padding: clamp(48px, 7vw, 84px) clamp(18px, 5vw, 72px);
}

.section.alt {
  background: #f3eadf;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 950;
}

.section p {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.panel {
  min-height: 180px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 260px;
  gap: 44px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.document {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.document h1 {
  margin-top: 0;
  font-size: clamp(34px, 5vw, 58px);
}

.document h2 {
  margin-top: 34px;
  font-size: 24px;
}

.document ul {
  padding-left: 22px;
}

.sidebar {
  position: sticky;
  top: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.sidebar a {
  display: block;
  margin: 8px 0;
  font-weight: 800;
}

.footer {
  padding: 34px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #171717;
  color: #fffaf2;
}

.footer a {
  color: #f2d08f;
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav {
    flex-wrap: wrap;
    margin-left: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
    background:
      linear-gradient(180deg, rgba(255, 250, 242, .97), rgba(255, 250, 242, .86)),
      url("assets/app-icon.png") right 20px bottom 28px / 190px no-repeat,
      #fffaf2;
  }

  .hero-inner {
    padding-bottom: 180px;
  }

  .grid,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .document {
    padding: 24px;
  }
}
