/* Zilcast pre-launch site.
   One bold moment: the hero "lock screen" with notification banners. Everything else stays quiet. */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;

  --paper: #eef1f6;
  --field: #ffffff;
  --ink: #121a2f;
  --ink-2: #4a5470;
  --rule: #d3d9e4;
  --control: #7b859c;
  --wall: #22336a;
  --ring: rgba(255, 255, 255, 0.075);
  --badge: #d3302a;
  --badge-hover: #b5261f;
  --on-badge: #ffffff;
  --link: #1f45c2;
  --focus: #1f45c2;
  --error: #b02a1f;
  --error-bg: #fbe7e4;
  --warn: #8a5f00;
  --warn-bg: #fff4d6;
  --note-bg: rgba(255, 255, 255, 0.94);
  --note-ink: #121a2f;
  --note-ink-2: #4a5470;
  --note-edge: rgba(255, 255, 255, 0.55);
  --icon-bg: #121a2f;
  --code-bg: rgba(18, 26, 47, 0.07);

  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1221;
    --field: #131b2e;
    --ink: #e6eaf2;
    --ink-2: #a3adc3;
    --rule: #253049;
    --control: #6f7a95;
    --wall: #18244c;
    --ring: rgba(255, 255, 255, 0.06);
    --badge: #ff6b5f;
    --badge-hover: #ff8a80;
    --on-badge: #1c0906;
    --link: #9db2ff;
    --focus: #9db2ff;
    --error: #ff9a91;
    --error-bg: rgba(255, 107, 95, 0.13);
    --warn: #f2c14e;
    --warn-bg: rgba(242, 193, 78, 0.1);
    --note-bg: rgba(35, 46, 78, 0.94);
    --note-ink: #eef1f7;
    --note-ink-2: #b9c2d6;
    --note-edge: rgba(255, 255, 255, 0.09);
    --icon-bg: #0c1221;
    --code-bg: rgba(230, 234, 242, 0.09);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

svg {
  display: block;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--badge);
  color: var(--on-badge);
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 0.12em 0.38em;
  border-radius: 6px;
  background: var(--code-bg);
}

.wrap {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
}

@media (min-width: 640px) {
  .wrap {
    padding-inline: 32px;
  }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

/* Header ------------------------------------------------------------------ */

.site-header {
  padding-block: 16px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 30px;
  height: 30px;
}

.brand-mark .bell {
  fill: currentColor;
}

.brand-mark .badge {
  fill: var(--badge);
  stroke: var(--paper);
  stroke-width: 2.5;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav ul {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 24px;
}

.site-nav ul a {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav ul a:hover {
  text-decoration: underline;
}

@media (min-width: 780px) {
  .site-nav ul {
    display: flex;
  }
}

/* Buttons ----------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.45em;
  border: 0;
  border-radius: 999px;
  background: var(--badge);
  color: var(--on-badge);
  font: 700 1.0625rem/1 var(--font);
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.button:hover {
  background: var(--badge-hover);
}

.button:active {
  transform: translateY(1px);
}

.button[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.button-small {
  min-height: 40px;
  padding: 0 1.1em;
  font-size: 0.9375rem;
}

/* Hero: a lock screen with notifications ---------------------------------- */

.hero {
  padding-top: 4px;
}

.screen {
  --focus: #ffffff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(20px, 5vw, 64px);
  padding-bottom: clamp(28px, 5vw, 60px);
  border-radius: clamp(22px, 3vw, 38px);
  background: var(--wall);
  color: #ffffff;
}

/* Bell rings radiating from the top-right corner. */
.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-radial-gradient(circle at 94% 4%, transparent 0 56px, var(--ring) 56px 57.5px);
  -webkit-mask-image: radial-gradient(circle at 94% 4%, #000 0 30%, transparent 78%);
  mask-image: radial-gradient(circle at 94% 4%, #000 0 30%, transparent 78%);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(18px, 3vw, 32px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9375rem;
  font-weight: 600;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffc24b;
  box-shadow: 0 0 0 4px rgba(255, 194, 75, 0.2);
}

.stack {
  display: grid;
  gap: 10px;
  max-width: 46rem;
}

.note {
  display: block;
  padding: 13px 18px 16px;
  border-radius: 22px;
  background: var(--note-bg);
  color: var(--note-ink);
  text-decoration: none;
  box-shadow: 0 0 0 1px var(--note-edge), 0 22px 44px -26px rgba(3, 7, 24, 0.7);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
}

.note-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--note-ink-2);
  font-size: 0.875rem;
  line-height: 1.2;
}

.note-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--icon-bg);
}

.note-icon svg {
  width: 18px;
  height: 18px;
}

.note-icon .bell {
  fill: #ffffff;
}

.note-icon .badge {
  fill: #ff5a4e;
  stroke: var(--icon-bg);
  stroke-width: 2.5;
}

.note-app {
  color: var(--note-ink);
  font-weight: 600;
}

.note-time {
  margin-left: auto;
}

.note-title {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

.note-text {
  display: block;
  margin-top: 2px;
  color: var(--note-ink-2);
  font-size: 1rem;
  line-height: 1.45;
}

a.note:hover .note-title {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a.note:focus-visible {
  outline-offset: 4px;
  border-radius: 22px;
}

.note-lead {
  padding: clamp(16px, 2.4vw, 26px) clamp(18px, 3vw, 34px) clamp(22px, 3vw, 34px);
  border-radius: clamp(22px, 2.6vw, 30px);
}

.note-lead .note-head {
  margin-bottom: clamp(10px, 1.6vw, 18px);
  font-size: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
}

.note-lead h1 {
  margin: 0 0 0.3em;
  font-size: clamp(2.6rem, 1.1rem + 6.6vw, 5.75rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.038em;
}

.note-body {
  max-width: 38ch;
  margin: 0;
  color: var(--note-ink-2);
  font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.3125rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: clamp(22px, 3vw, 36px);
}

.hero-actions p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
}

/* The one orchestrated moment: notifications arrive on load. */
@media (prefers-reduced-motion: no-preference) {
  .note-lead {
    animation: settle 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .stack > a.note {
    animation: arrive 0.6s cubic-bezier(0.3, 1.3, 0.5, 1) both;
  }

  .stack > a.note:nth-of-type(1) {
    animation-delay: 0.55s;
  }

  .stack > a.note:nth-of-type(2) {
    animation-delay: 0.85s;
  }
}

@keyframes settle {
  from {
    transform: translateY(-14px);
  }
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(-26px) scale(0.96);
  }
}

/* Sections ---------------------------------------------------------------- */

.section {
  padding-block: clamp(56px, 9vw, 112px);
  border-top: 1px solid var(--rule);
}

.hero + .section {
  border-top: 0;
}

.section-grid {
  display: grid;
  gap: 20px 64px;
}

@media (min-width: 900px) {
  .section-grid {
    grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
  }

  .section-head {
    position: sticky;
    top: 28px;
    align-self: start;
  }
}

.section-head h2 {
  font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.5rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.028em;
}

.section-note {
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 1rem;
}

.section-body {
  max-width: 42rem;
}

.section-body > :last-child {
  margin-bottom: 0;
}

.lede {
  font-size: 1.25rem;
  line-height: 1.5;
}

.aside,
.source {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.source {
  margin: 0;
}

/* Problem: three sourced facts */
.facts {
  display: grid;
  gap: 34px;
  margin: 32px 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding-left: 20px;
  border-left: 2px solid var(--ink-2);
}

.facts h3 {
  margin-bottom: 10px;
  font-size: 1.3125rem;
}

.facts p:not(.source) {
  margin-bottom: 10px;
}

/* Sequences: build order and migration steps */
.milestones,
.steps {
  display: grid;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.milestones {
  gap: 28px;
  counter-reset: milestone;
}

.milestones li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  column-gap: 16px;
  counter-increment: milestone;
}

.milestones li::before,
.steps li::before {
  display: grid;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.milestones li::before {
  content: counter(milestone);
  grid-row: span 2;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1rem;
}

.milestones h3 {
  align-self: center;
  margin: 2px 0 6px;
  font-size: 1.25rem;
}

.milestones p {
  grid-column: 2;
  margin: 0;
}

.steps {
  gap: 14px;
  margin-top: 28px;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  width: 1.75rem;
  height: 1.75rem;
  margin-top: 1px;
  font-size: 0.875rem;
}

/* Term / description pairs */
.pairs {
  display: grid;
  margin: 28px 0;
}

.pairs dt {
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-weight: 700;
}

.pairs dd {
  margin: 4px 0 16px;
}

@media (min-width: 640px) {
  .pairs {
    grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
    column-gap: 32px;
  }

  .pairs dd {
    margin: 0;
    padding: 16px 0;
    border-top: 1px solid var(--rule);
  }

  .pairs dt {
    padding-bottom: 16px;
  }
}

.subhead {
  margin: 36px 0 12px;
  font-size: 1.125rem;
}

.rules {
  margin: 0 0 20px;
  padding-left: 1.2em;
}

.rules li {
  margin-bottom: 10px;
}

/* Self-host or hosted */
.options {
  display: grid;
  gap: 32px;
  margin-bottom: 28px;
}

@media (min-width: 640px) {
  .options {
    grid-template-columns: 1fr 1fr;
  }
}

.option {
  padding-top: 18px;
  border-top: 3px solid var(--ink);
}

.option h3 {
  font-size: 1.375rem;
}

.option-price {
  margin: 4px 0 12px;
  color: var(--ink-2);
  font-weight: 600;
}

.option p:last-child {
  margin-bottom: 0;
}

/* FAQ */
.faq details {
  border-top: 1px solid var(--rule);
}

.faq details:last-child {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  position: relative;
  padding: 18px 44px 18px 0;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
}

.faq details[open] summary::after {
  transform: translateY(-25%) rotate(-135deg);
}

@media (prefers-reduced-motion: no-preference) {
  .faq summary::after {
    transition: transform 0.2s ease;
  }
}

.faq details p {
  margin: 0 0 22px;
}

/* Waitlist form ----------------------------------------------------------- */

.form {
  display: grid;
  gap: 30px;
}

.field label,
.choice legend {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  font-weight: 700;
  line-height: 1.35;
}

.req,
.hint {
  color: var(--ink-2);
  font-weight: 400;
}

input[type="email"] {
  width: 100%;
  max-width: 30rem;
  min-height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--control);
  border-radius: 12px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}

input[type="email"]:focus-visible {
  outline-offset: 1px;
  border-color: var(--ink);
}

input[aria-invalid="true"] {
  border-color: var(--error);
}

.choice {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips label {
  position: relative;
  display: block;
}

.chips input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--control);
  border-radius: 999px;
  background: var(--field);
  font-size: 1rem;
  font-weight: 500;
  user-select: none;
}

@media (prefers-reduced-motion: no-preference) {
  .chips span {
    transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  }
}

@media (hover: hover) {
  .chips input:hover + span {
    border-color: var(--ink);
  }
}

.chips input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.chips input[type="checkbox"]:checked + span::before {
  content: "";
  width: 5px;
  height: 10px;
  margin: -3px 10px 0 1px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.chips input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.checks {
  display: grid;
  gap: 14px;
}

.check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
}

.check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--ink);
  cursor: pointer;
}

.field-error {
  margin: 8px 0 0;
  color: var(--error);
  font-size: 0.9375rem;
  font-weight: 600;
}

.checks .field-error {
  margin: -6px 0 0 34px;
}

.form-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--error-bg);
  color: var(--error);
  font-size: 0.9375rem;
  font-weight: 600;
}

.form-note {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success {
  padding: clamp(16px, 3vw, 28px);
  border-radius: 26px;
  background: var(--wall);
}

.form-success:focus {
  outline: none;
}

.form-success .note-title {
  font-size: 1.375rem;
}

/* Thanks, errors, 404 ----------------------------------------------------- */

.message {
  max-width: 46rem;
  padding-block: clamp(64px, 12vw, 140px);
}

.message h1 {
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 1.4rem + 3vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.message ul {
  padding-left: 1.2em;
}

.message-action {
  margin-top: 32px;
}

/* Privacy notice ---------------------------------------------------------- */

.doc {
  max-width: 46rem;
  padding-block: 40px 96px;
}

.doc h1 {
  margin-bottom: 12px;
  font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.doc h2 {
  margin: 48px 0 14px;
  font-size: 1.5rem;
}

.doc h3 {
  margin: 26px 0 8px;
  font-size: 1.125rem;
}

.doc ul {
  padding-left: 1.2em;
}

.doc li {
  margin-bottom: 8px;
}

.doc-meta {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.template-note {
  margin: 0 0 32px;
  padding: 14px 16px;
  border: 2px dashed var(--warn);
  border-radius: 12px;
  background: var(--warn-bg);
  font-size: 1rem;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  padding-block: 40px 56px;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.footer-about strong {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.footer-legal {
  margin: 0 0 6px;
}
