:root {
  color-scheme: dark;
  --ink: #f8efe2;
  --paper: #fffaf0;
  --coal: #0c1115;
  --coal-2: #141b20;
  --line: rgba(255, 244, 226, 0.18);
  --line-strong: rgba(255, 244, 226, 0.34);
  --muted: rgba(255, 244, 226, 0.7);
  --soft: rgba(255, 244, 226, 0.08);
  --copper: #df8541;
  --blue: #5fb1d5;
  --blue-deep: #0c2d44;
  --cream: #efe4cf;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 18% 18%, rgba(223, 133, 65, 0.18), transparent 26%),
    radial-gradient(circle at 84% 16%, rgba(95, 177, 213, 0.14), transparent 24%),
    linear-gradient(135deg, #070b0e 0%, #111a20 52%, #081119 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.026) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, black, transparent 76%);
}

a {
  color: inherit;
  text-decoration-color: rgba(223, 133, 65, 0.55);
  text-underline-offset: 4px;
}

.site-shell {
  position: relative;
  min-height: 100vh;
}

.daily-sums-page {
  min-height: 100svh;
  overflow-x: hidden;
  --ink: #eef8ff;
  --paper: #f4fbff;
  --coal: #061521;
  --coal-2: #0a2030;
  --line: rgba(151, 207, 233, 0.24);
  --line-strong: rgba(151, 207, 233, 0.42);
  --muted: rgba(215, 235, 246, 0.76);
  --soft: rgba(104, 170, 205, 0.12);
  --copper: #8fc9e7;
  --blue: #72b9dc;
  --blue-deep: #08263a;
  --cream: #eef8ff;
  background:
    radial-gradient(circle at 76% 18%, rgba(114, 185, 220, 0.18), transparent 28%),
    radial-gradient(circle at 20% 72%, rgba(49, 124, 164, 0.16), transparent 28%),
    linear-gradient(135deg, #04111c 0%, #092235 52%, #061724 100%);
}

.daily-sums-page .site-shell {
  min-height: 100svh;
}

.daily-sums-page .eyebrow {
  color: #8fc9e7;
}

.daily-sums-page .button {
  border-color: rgba(151, 207, 233, 0.34);
  background: rgba(72, 132, 171, 0.2);
}

.daily-sums-page .button.secondary {
  background: rgba(238, 248, 255, 0.06);
}

.daily-sums-page .proof-row span,
.daily-sums-page .pill-list span {
  background: rgba(114, 185, 220, 0.1);
  color: rgba(235, 247, 253, 0.82);
}

.daily-sums-page .plate {
  background: linear-gradient(180deg, rgba(114,185,220,0.13), rgba(10,32,48,0.32));
  box-shadow: 0 28px 82px rgba(0, 10, 20, 0.34);
}

.topbar {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: min(240px, 48vw);
  height: auto;
  display: block;
}

.nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  background: rgba(255, 244, 226, 0.06);
  backdrop-filter: blur(18px);
}

.nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 860;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  background: rgba(255, 244, 226, 0.1);
}

.support-link {
  justify-self: end;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 244, 226, 0.06);
  font-size: 12px;
  font-weight: 860;
  text-decoration: none;
}

.hero {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: calc(100svh - 122px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 48px;
  align-items: center;
  padding: 18px 0 30px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 940;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(62px, 10vw, 132px);
  line-height: 0.86;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(40px, 6vw, 82px);
  line-height: 0.9;
}

h3 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.1;
}

.lead {
  max-width: 680px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.2;
  font-weight: 640;
}

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

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: #11171d;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.button.secondary {
  background: rgba(255, 244, 226, 0.08);
  color: var(--ink);
}

.proof-row,
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.proof-row span,
.pill-list span {
  border: 1px solid var(--line);
  padding: 8px 11px;
  background: rgba(255, 244, 226, 0.055);
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.hero-stack {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: center;
}

.hero-demo-frame {
  width: min(390px, 100%);
  aspect-ratio: 390 / 844;
  display: block;
  border: 0;
  background: transparent;
  border-radius: 38px;
  overflow: hidden;
  clip-path: inset(0 round 38px);
}

.lab-seal {
  position: absolute;
  top: -28px;
  left: -30px;
  width: 116px;
  height: 116px;
  z-index: 2;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.32));
}

.device-shot {
  width: min(100%, 344px);
  display: block;
  border-radius: 34px;
  box-shadow: 0 36px 82px rgba(0, 0, 0, 0.44);
}

.plate {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,244,226,0.1), rgba(255,244,226,0.045));
  box-shadow: 0 28px 82px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0;
}

.compact-tools {
  padding: 10px 0 54px;
}

.app-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
}

.compact-tools .app-band {
  padding: 26px;
}

.compact-tools h2 {
  font-size: clamp(34px, 4.5vw, 58px);
}

.compact-tools .lead {
  margin-bottom: 18px;
  font-size: clamp(17px, 1.6vw, 21px);
}

.wordmark {
  width: min(100%, 330px);
  height: auto;
  display: block;
}

.gallery-intro {
  max-width: 760px;
  margin-bottom: 26px;
}

.demo-stage {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: min(860px, calc(100svh - 40px));
}

.demo-frame {
  width: min(430px, calc(100vw - 40px));
  aspect-ratio: 430 / 880;
  display: block;
  border: 0;
  background: transparent;
}

.screenshot-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.screenshot-rail img {
  width: 100%;
  min-width: 0;
  display: block;
  border-radius: 28px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
  background: #06101a;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.mini-grid article {
  min-height: 142px;
  padding: 18px;
}

.mini-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--cream);
  font-size: 18px;
}

.mini-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-page {
  width: min(920px, calc(100% - 40px));
  margin: 24px auto 76px;
  padding: 48px;
}

.legal-page h1 {
  font-size: clamp(42px, 7vw, 76px);
}

.legal-page h2 {
  margin: 36px 0 10px;
  color: var(--cream);
  font: 800 22px/1.15 Inter, ui-sans-serif, system-ui, sans-serif;
}

.legal-page p,
.legal-page li {
  color: rgba(255, 244, 226, 0.78);
  font-size: 16px;
}

.legal-page ul {
  padding-left: 22px;
}

.meta {
  margin-top: -8px;
  color: var(--muted);
  font-weight: 780;
}

.footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 46px;
  border-top: 1px solid var(--line);
  color: rgba(255, 244, 226, 0.62);
  font-size: 14px;
}

.footer a {
  margin-right: 16px;
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .support-link {
    justify-self: start;
  }

  .nav {
    max-width: 100%;
    overflow-x: auto;
  }

  .hero,
  .app-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .hero-stack {
    justify-items: start;
  }

  .hero-demo-frame {
    width: min(390px, calc(100vw - 40px));
    border-radius: 38px;
    overflow: hidden;
    clip-path: inset(0 round 38px);
  }

  .device-shot {
    width: min(100%, 280px);
  }

  .lab-seal {
    left: 214px;
    width: 84px;
    height: 84px;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .screenshot-rail img {
    border-radius: 22px;
  }

  .demo-stage {
    min-height: auto;
  }

  .demo-frame {
    width: min(430px, calc(100vw - 18px));
  }

  .legal-page {
    padding: 28px 22px;
  }
}
