/* LidOwl website.
   Concept: the night is the page, the content sits on the back of a laptop
   lid, and the owl from the app icon peeks over its top edge.
   No third-party requests: system fonts only. */

:root {
  --night-1: #050d1d;
  --night-2: #0a1730;
  --night-3: #14335f;
  --owl: #3f93d6;
  --owl-soft: #7bbbea;
  --owl-deep: #2f6ca6;
  --amber: #f5a623;
  --led: #34c759;

  /* The lid: brushed aluminium */
  --lid-1: #f6f8fb;
  --lid-2: #e3e9f0;
  --lid-edge: #ffffff;
  --ink: #0d1b31;
  --ink-soft: #4d5d74;
  --rule: rgba(13, 27, 49, 0.1);
  --inset: rgba(13, 27, 49, 0.05);

  --display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --lid-width: min(100% - 24px, 1180px);
  --owl-w: min(64vw, 620px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Space gray lid */
    --lid-1: #2a313c;
    --lid-2: #1c222b;
    --lid-edge: #4a5462;
    --ink: #eef2f8;
    --ink-soft: #a3afc0;
    --rule: rgba(238, 242, 248, 0.1);
    --inset: rgba(0, 0, 0, 0.2);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  color: #fff;
  font: 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  /* The night sky, behind everything */
  background:
    radial-gradient(1.4px 1.4px at 8% 12%, #fff9, transparent),
    radial-gradient(1px 1px at 22% 30%, #fff7, transparent),
    radial-gradient(1.6px 1.6px at 37% 8%, #fffa, transparent),
    radial-gradient(1px 1px at 52% 22%, #fff6, transparent),
    radial-gradient(1.4px 1.4px at 71% 6%, #fff9, transparent),
    radial-gradient(1px 1px at 84% 26%, #fff7, transparent),
    radial-gradient(1.6px 1.6px at 93% 14%, #fffa, transparent),
    radial-gradient(1px 1px at 63% 38%, #fff5, transparent),
    radial-gradient(1px 1px at 14% 44%, #fff5, transparent),
    radial-gradient(70% 40% at 50% 34%, rgba(63, 147, 214, 0.32), transparent 70%),
    linear-gradient(180deg, var(--night-1), var(--night-2) 40%, var(--night-3));
  background-color: var(--night-2);
  background-attachment: fixed;
}

/* height: auto keeps images in proportion when they shrink to fit */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--owl-soft); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: #fff; color: var(--night-2); font-weight: 700;
}
.skip:focus { top: 16px; }

/* ---------- Header: a floating glass pill ---------- */

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 14px 12px 0;
}
.nav-pill {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background: rgba(10, 23, 48, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font: 800 18px/1 var(--display); letter-spacing: -0.01em;
  text-decoration: none; color: #fff;
}
.brand img { width: 30px; height: 30px; }
.site-nav { display: flex; gap: 18px; font-size: 14.5px; }
.site-nav a { text-decoration: none; color: rgba(255, 255, 255, 0.78); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
@media (max-width: 720px) { .site-nav { display: none; } }

/* "Soon in the Mac App Store": not a link, and not Apple's badge */
.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font: 700 18px/1.1 var(--display);
  letter-spacing: -0.01em;
}
.soon svg { width: 26px; height: 26px; flex: none; }
.soon small {
  display: block;
  font: 500 11.5px/1.2 var(--body);
  letter-spacing: 0.02em;
  opacity: 0.75;
}
.soon-small {
  padding: 8px 14px;
  border-radius: 999px;
  font: 700 13px/1 var(--display);
  background: #fff;
  color: var(--night-2);
  border: 0;
}
@media (max-width: 420px) { .soon-small { display: none; } }
.soon-dark {
  background: var(--ink);
  color: var(--lid-1);
  border: 0;
}

/* ---------- Hero ---------- */

.hero {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
  padding: clamp(56px, 9vh, 96px) 0 calc(var(--owl-w) * 0.584 + 40px);
  text-align: center;
}
.hero-log {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 14px;
  border-radius: 999px;
  font: 500 13.5px/1 var(--mono);
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.live {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 10px 2px rgba(52, 199, 89, 0.7);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

.hero h1 {
  margin: 0;
  font: 900 clamp(36px, 5.8vw, 76px)/0.98 var(--display);
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.whos {
  display: block;
  color: var(--owl-soft);
}
.hero-lede {
  max-width: 42ch;
  margin: 26px auto 34px;
  font-size: clamp(18px, 2.1vw, 22px);
  color: rgba(255, 255, 255, 0.78);
  text-wrap: balance;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 28px;
}
.text-link {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 5px;
}
.hero .text-link::after { content: " ↓"; }

/* ---------- The lid ---------- */

.lid {
  position: relative;            /* no z-index: the owl's head can sit behind it */
  width: var(--lid-width);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 88px) clamp(20px, 5vw, 72px) clamp(48px, 6vw, 72px);
  border-radius: 44px 44px 0 0;
  color: var(--ink);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 2px, rgba(0, 0, 0, 0.015) 2px 4px),
    linear-gradient(180deg, var(--lid-1), var(--lid-2));
  box-shadow:
    inset 0 2px 0 var(--lid-edge),
    0 -20px 60px rgba(0, 0, 0, 0.35);
}

/* The owl: head behind the lid, wings over its edge */
.owl-stage {
  position: absolute;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: var(--owl-w);
  aspect-ratio: 784 / 500;
  bottom: calc(100% - var(--owl-w) * 0.0536);
  pointer-events: none;
}
.owl { position: absolute; inset: 0; width: 100%; height: 100%; }
.owl-back { z-index: -1; }
.owl-front { z-index: 1; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.22)); }
/* Eyelids rest above the eye (hidden by the clip), slide down to close,
   hold for a beat and lift again. */
.lid-blink {
  transform-box: fill-box;
  transform: translateY(-104%);
}
.blinking .lid-blink { animation: blink 0.22s ease-in-out; }
@keyframes blink {
  0%, 100% { transform: translateY(-104%); }
  40%, 55% { transform: translateY(0); }
}
.pupil, .glint { transition: transform 0.18s ease-out; }

/* ---------- Blocks on the lid ---------- */

.block { max-width: 980px; margin-inline: auto; }
.block + .block { margin-top: clamp(80px, 11vw, 136px); }
.block h2 {
  margin: 0 0 16px;
  font: 900 clamp(34px, 5.2vw, 60px)/1.02 var(--display);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lede { margin: 0 0 32px; font-size: 19px; color: var(--ink-soft); max-width: 52ch; }

/* Story */
.story { text-align: center; max-width: 760px; }
.story p { margin: 0 auto; font-size: clamp(19px, 2.2vw, 23px); color: var(--ink-soft); max-width: 38ch; text-wrap: pretty; }
.story-turn { margin-top: 18px !important; font: 800 clamp(24px, 3vw, 32px)/1.2 var(--display) !important; color: var(--ink) !important; }

/* How it works: the log, next to the phone */
.how {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } }
.log {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  border-radius: 22px;
  background: var(--inset);
  border: 1px solid var(--rule);
}
.log li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  padding: 18px 22px;
}
.log li + li { border-top: 1px solid var(--rule); }
.log time { font: 600 14px/1.5 var(--mono); color: var(--ink-soft); }
.log code { font: 700 14px/1.5 var(--mono); color: var(--owl); }
.log p { grid-column: 1 / -1; margin: 6px 0 0; font-size: 16.5px; }
.footnote { margin: 14px 4px 0; font-size: 14px; color: var(--ink-soft); }

.phone-mock {
  justify-self: center;
  width: min(100%, 330px);
  padding: 11px;
  border-radius: 54px;
  background: #0b0d12;
  box-shadow: 0 40px 80px rgba(10, 23, 48, 0.35), inset 0 0 0 2px #2a2f38;
}
.phone-screen {
  aspect-ratio: 9 / 18;
  border-radius: 44px;
  padding: 46px 14px 14px;
  color: #fff;
  background:
    radial-gradient(80% 50% at 70% 20%, rgba(63, 147, 214, 0.55), transparent 70%),
    linear-gradient(170deg, #12305a, #050d1d);
  overflow: hidden;
}
.ls-time { margin: 0; text-align: center; font: 300 64px/1 var(--display); letter-spacing: -0.03em; }
.ls-date { margin: 6px 0 22px; text-align: center; font-size: 14px; opacity: 0.75; }
.alert {
  border-radius: 22px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  animation: arrive 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.15) 0.3s both;
}
@keyframes arrive { from { opacity: 0; transform: translateY(-24px) scale(0.96); } }
.alert-head { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.alert-head img { width: 22px; height: 22px; border-radius: 6px; }
.alert-app { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.85; }
.alert-when { margin-left: auto; opacity: 0.7; }
.alert-title { margin: 8px 2px 1px; font-weight: 700; font-size: 15px; }
.alert-body { margin: 0 2px 10px; font-size: 14px; opacity: 0.9; }
.alert-photo { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; }
.alert-photo svg { width: 100%; height: 100%; display: block; }
.led {
  position: absolute; top: 9px; left: 50%;
  width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: var(--led); box-shadow: 0 0 10px 3px rgba(52, 199, 89, 0.7);
}

/* Benefits */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule);
}
.benefit-grid article { padding: 30px 32px 30px 0; border-bottom: 1px solid var(--rule); }
.benefit-grid article:nth-child(odd) { border-right: 1px solid var(--rule); }
.benefit-grid article:nth-child(even) { padding-left: 32px; padding-right: 0; }
@media (max-width: 760px) {
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-grid article, .benefit-grid article:nth-child(even) { padding: 26px 0; border-right: 0; }
}
.benefit-grid h3 { margin: 0 0 8px; font: 800 24px/1.2 var(--display); letter-spacing: -0.015em; }
.benefit-grid p { margin: 0; color: var(--ink-soft); }
.fine { margin-top: 8px !important; font-size: 14px; }
.say {
  display: inline-block;
  margin-top: 14px !important;
  padding: 7px 14px;
  border-radius: 999px;
  font: 500 14.5px/1.3 var(--mono);
  color: var(--ink) !important;
  background: var(--inset);
  border: 1px solid var(--rule);
}

/* Screens */
.screens-row {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 36px;
  align-items: end;
}
@media (max-width: 860px) { .screens-row { grid-template-columns: 1fr; justify-items: center; } }
figure { margin: 0; }
.window {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: 0 30px 70px rgba(10, 23, 48, 0.25);
  background: var(--lid-1);
}
.window-bar { display: flex; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--rule); }
.window-bar span { width: 12px; height: 12px; border-radius: 50%; }
.window-bar span:nth-child(1) { background: #ff5f57; }
.window-bar span:nth-child(2) { background: #febc2e; }
.window-bar span:nth-child(3) { background: #28c840; }
.phone { width: 240px; padding: 9px; border-radius: 44px; background: #0b0d12; box-shadow: 0 30px 70px rgba(10, 23, 48, 0.3); }
.phone img { border-radius: 36px; }
figcaption { margin-top: 12px; text-align: center; font-size: 14px; color: var(--ink-soft); }

/* Honesty: an inset night panel in the lid */
.honest {
  padding: clamp(32px, 5vw, 56px);
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(60% 60% at 90% 0%, rgba(63, 147, 214, 0.35), transparent 70%),
    linear-gradient(160deg, var(--night-2), var(--night-1));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.honest ul { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 40px; }
@media (max-width: 760px) { .honest ul { grid-template-columns: 1fr; } }
.honest h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font: 800 21px/1.25 var(--display); }
.honest p { margin: 0; color: rgba(255, 255, 255, 0.72); }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--owl-soft); }
.dot-led { background: var(--led); box-shadow: 0 0 8px rgba(52, 199, 89, 0.8); }
.own { margin: 30px 0 0 !important; font-size: 14px; color: rgba(255, 255, 255, 0.6) !important; }

/* FAQ */
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 40px 22px 0;
  position: relative;
  font: 800 21px/1.3 var(--display);
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 4px; top: 18px;
  font: 400 28px/1 var(--display); color: var(--owl);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 22px; max-width: 62ch; color: var(--ink-soft); }
.faq a { color: var(--owl); }

/* Closing, with the lid's emblem */
.closing { text-align: center; }
.emblem {
  width: 64px; height: 64px; margin: 0 auto 20px; display: block;
  /* Embossed into the lid, like the logo on the back of a laptop */
  fill: color-mix(in srgb, var(--lid-2) 82%, var(--ink));
  filter: drop-shadow(0 1px 0 var(--lid-edge)) drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.15));
}
.closing .lede { margin-inline: auto; }

/* ---------- Footer: the lid's hinge ---------- */

.site-footer {
  width: var(--lid-width);
  margin: 0 auto 32px;
  padding: 26px clamp(20px, 5vw, 72px);
  border-radius: 0 0 28px 28px;
  color: var(--ink-soft);
  background: linear-gradient(180deg, var(--lid-2), color-mix(in srgb, var(--lid-2) 80%, #000));
  border-top: 1px solid var(--rule);
  font-size: 14px;
}
.footer-row { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.site-footer nav { display: flex; gap: 20px; }
.legal { margin: 10px 0 0; font-size: 12.5px; opacity: 0.85; }

/* ---------- Prose pages (privacy) ---------- */

.page-hero { width: min(100% - 32px, 760px); margin: 0 auto; padding: 72px 0 56px; text-align: center; }
.page-hero h1 { margin: 0; font: 900 clamp(44px, 7vw, 76px)/1 var(--display); letter-spacing: -0.04em; }
.page-hero p { margin: 14px 0 0; color: rgba(255, 255, 255, 0.7); }
.prose .wrap { max-width: 720px; margin-inline: auto; }
.prose h2 { margin: 44px 0 10px; font: 800 26px/1.2 var(--display); letter-spacing: -0.01em; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--owl); }
.prose .summary { padding: 22px 24px; border-radius: 20px; background: var(--inset); border: 1px solid var(--rule); margin-top: 0; }
