/* LadyBug landing: the "Coming soon" screen from landing/design/handoff.
   Tokens follow the handoff; dark is the default, light comes from the system setting. */

@font-face { font-family: "Golos"; src: url("/fonts/GolosText-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Golos"; src: url("/fonts/GolosText-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Golos"; src: url("/fonts/GolosText-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Golos"; src: url("/fonts/GolosText-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #1A0D0D;
  --bg2: #120808;
  --fg: #FFF3F2;
  --fg1: rgba(255, 243, 242, .85);
  --fg2: rgba(255, 243, 242, .7);
  --fg3: rgba(255, 243, 242, .55);
  --line: rgba(255, 243, 242, .1);
  --line2: rgba(255, 243, 242, .18);
  --accent: #E5302A;
  --accent2: #FF7A5C;
  --accentLine: rgba(255, 122, 92, .35);
  --live: #A7FF3D;
  --input: rgba(26, 13, 13, .7);
  --veil: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .55) 90%);
  --winLine: rgba(255, 243, 242, .15);
  --winShadow: 0 -40px 100px -30px rgba(0, 0, 0, .7);
  /* Static background: the shader's colours, used without WebGL or with reduced motion */
  --bgStatic: radial-gradient(60% 70% at 18% 28%, rgba(229, 48, 42, .9), transparent 70%),
    radial-gradient(55% 60% at 82% 72%, rgba(255, 122, 92, .6), transparent 70%), #1A0D0D;
  --bgOpacity: .5;
  --gutter: clamp(20px, 5vw, 72px);
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #FBF5F4;
    --bg2: #F3EAE8;
    --fg: #1A0D0D;
    --fg1: rgba(26, 13, 13, .85);
    --fg2: rgba(26, 13, 13, .7);
    --fg3: rgba(26, 13, 13, .6);
    --line: rgba(26, 13, 13, .1);
    --line2: rgba(26, 13, 13, .2);
    --accent: #C8231E;
    --accent2: #C8231E;
    --accentLine: rgba(200, 35, 30, .35);
    --live: #3FA34D;
    --input: rgba(255, 255, 255, .75);
    --veil: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .35) 90%);
    --winLine: rgba(26, 13, 13, .12);
    --winShadow: 0 -40px 100px -40px rgba(26, 13, 13, .35);
    --bgStatic: radial-gradient(60% 70% at 18% 28%, rgba(255, 179, 168, .95), transparent 70%),
      radial-gradient(55% 60% at 82% 72%, rgba(255, 225, 214, .9), transparent 70%), #FBF5F4;
    --bgOpacity: .6;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font-family: "Golos", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:hover { color: var(--accent2); }
::selection { background: #E5302A; color: #FFF3F2; }

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  transition: background .4s, color .4s;
}

.bg { position: absolute; inset: 0; opacity: var(--bgOpacity); background: var(--bgStatic); }
.bg shader-bg { position: absolute; inset: 0; }
.veil { position: absolute; inset: 0; background: var(--veil); pointer-events: none; }

/* Header */
.header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 20px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand:hover { color: inherit; }
.brand img { width: 36px; height: 36px; border-radius: 9px; background: #fff; object-fit: cover; display: block; box-shadow: 0 0 0 1px var(--line); }
.brand span { font-weight: 900; font-size: 24px; letter-spacing: -.04em; line-height: 1; }
.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.status { color: var(--fg2); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 12px var(--live); flex-shrink: 0; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  background: var(--accent);
  color: #FFF3F2;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-family: "Golos", system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--fg); color: var(--bg); }

/* Hero */
.main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter) 0;
}
.hero {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 32px 64px;
  align-items: end;
}
.hero-title { display: grid; gap: 24px; justify-items: start; min-width: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent2);
  padding: 8px 12px;
  border: 1px solid var(--accentLine);
  border-radius: 6px;
  line-height: 1.4;
}
h1 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(34px, 5.2vw, 84px);
  line-height: .95;
  letter-spacing: -.045em;
  text-wrap: balance;
  word-break: keep-all;
  hyphens: manual;
}
.hero-form { min-width: 0; max-width: 560px; width: 100%; justify-self: end; }
.lead { margin: 0 0 28px; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; color: var(--fg1); }

/* Form */
.notify { max-width: 560px; }
.notify-row { display: flex; flex-wrap: wrap; gap: 10px; }
.notify input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  background: var(--input);
  border: 1px solid var(--line2);
  color: inherit;
  padding: 16px 18px;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  outline: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.notify input[type="email"]::placeholder { color: var(--fg3); }
.notify input[type="email"]:focus { border-color: var(--accent); }
.notify button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--accent);
  color: #FFF3F2;
  padding: 16px 26px;
  border-radius: 10px;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 1 auto;
  min-height: 52px;
}
.notify button:hover { background: var(--fg); color: var(--bg); }
.notify button:disabled { cursor: default; }
.notify button:disabled:hover { background: var(--accent); color: #FFF3F2; }
.notify button:focus-visible, .nav-cta:focus-visible, .consent input:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--fg3);
  cursor: pointer;
}
.consent input { flex-shrink: 0; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--accent); }
.consent a { color: var(--accent2); }
.consent a:hover { color: var(--fg); }

/* Honeypot: off-screen for people, still in the form for bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { display: none; margin: 12px 0 0; font-size: 14px; line-height: 1.5; }
.notice-ok { color: var(--live); }
.notice-error { color: var(--accent2); }
.notice:target, .notice.is-shown { display: block; }

.fine { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: var(--fg3); }

/* Preview window */
.window {
  margin: 0 auto -1px;
  width: 100%;
  max-width: 1100px;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  border: 1px solid var(--winLine);
  border-bottom: 0;
  box-shadow: var(--winShadow);
  background: #2A1515;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 243, 242, .1);
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 243, 242, .6);
}
.light { width: 10px; height: 10px; border-radius: 50%; }
.light-red { background: #FF5F57; }
.light-yellow { background: #FEBC2E; }
.light-green { background: #28C840; }
.window-title { margin-left: 10px; }
/* An explicit width: with aspect-ratio, max-height would otherwise narrow the box on short screens */
.window-body { width: 100%; aspect-ratio: 16 / 7; min-height: 260px; max-height: 70vh; background: #1A0D0D; }
.window-body case-viz { width: 100%; height: 100%; }

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  background: var(--bg2);
  border-top: 1px solid var(--line);
  padding: 22px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 24px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--fg3);
}
.footer-legal { display: grid; gap: 6px; min-width: 0; }
.footer-copy { color: var(--fg1); }
.footer-links { display: grid; gap: 6px; align-self: end; justify-items: end; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--accent2); }

/* Tablet */
@media (max-width: 1000px) {
  .hero-form { justify-self: start; }
  .window-body { aspect-ratio: 16 / 10; }
}

/* Mobile */
@media (max-width: 760px) {
  .nav-cta { display: none; }
  .window-body { aspect-ratio: 4 / 3; }
  .footer { flex-direction: column; }
  .footer-links { justify-items: start; align-self: start; }
}

/* motion.js always runs its entrance; with reduced motion everything shows at once. */
@media (prefers-reduced-motion: reduce) {
  [data-intro] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .page { transition: none; }
}

/* Inner pages: /privacy, /consent, 404 */
.doc { position: relative; z-index: 2; flex: 1; padding: clamp(40px, 6vw, 80px) var(--gutter); }
.doc-body { max-width: 760px; margin: 0 auto; font-size: 16px; line-height: 1.65; color: var(--fg1); }
.doc-body h1 { font-size: clamp(30px, 4vw, 52px); line-height: 1; margin-bottom: 12px; color: var(--fg); }
.doc-body h2 { margin: 36px 0 8px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--fg); }
.doc-body .edition { margin: 0 0 32px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent2); }
.doc-body a { color: var(--accent2); }
.doc-body a:hover { color: var(--fg); }
.doc-body ul { padding-left: 1.2em; }
.doc-body li + li { margin-top: 4px; }
.doc-back { display: inline-block; margin-top: 40px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

/* Cookie notice (js/notice.js): a compact bar at the bottom, clear of the form */
.cookie-notice {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 12px 20px;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: var(--bg2);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, .5);
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg1);
}
.cookie-notice p { margin: 0; }
.cookie-notice a { color: var(--accent2); }
.cookie-notice button {
  flex-shrink: 0;
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #FFF3F2;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.cookie-notice button:hover { background: var(--fg); color: var(--bg); }
@media (max-width: 760px) {
  .cookie-notice { bottom: 10px; font-size: 12px; padding: 10px 10px 10px 14px; }
}
