/* Site layout: a floating glass nav, a short home page, and one page per topic. */
body { min-height: 100svh; }

/* ---------------------------------------------------------------- the glass nav */
.nav-wrap { position: sticky; top: 0; z-index: 20; padding: 12px 16px 0; }
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 7px 7px 7px 18px;
  border-radius: 999px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 18px; text-decoration: none; letter-spacing: -0.02em; margin-right: auto; }
.brand svg { fill: currentColor; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: #3a3a3e;
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.7); color: var(--ink); }
.nav-links a[aria-current="page"] { background: rgba(255, 255, 255, 0.95); color: var(--ink); box-shadow: inset 0 1px 0 #fff, 0 2px 8px rgba(0, 0, 0, 0.06); }
.nav .btn-primary { height: 42px; padding: 0 18px; font-size: 14px; margin-left: 6px; }
.nav-menu { display: none; width: 42px; height: 42px; border-radius: 50%; place-items: center; }
.nav-menu svg { stroke: var(--ink); }
.nav-sheet {
  max-width: 1120px;
  margin: 8px auto 0;
  padding: 8px;
  border-radius: 26px;
  display: grid;
  gap: 2px;
  animation: drop 0.35s var(--spring);
}
.nav-sheet[hidden] { display: none; }
.nav-sheet a { padding: 14px 16px; border-radius: 18px; text-decoration: none; font-size: 17px; font-weight: 500; }
.nav-sheet a[aria-current="page"] { background: rgba(255, 255, 255, 0.85); }
.nav-sheet .btn-primary { margin-top: 6px; }
@keyframes drop { from { transform: translateY(-10px); opacity: 0; } }

@media (max-width: 860px) {
  .nav-links, .nav > .btn-primary { display: none; }
  .nav-menu { display: grid; }
}

/* ---------------------------------------------------------------- page shells */
.page { max-width: 1120px; margin: 0 auto; padding: 24px 24px 80px; }
.page-head { max-width: 720px; padding: 40px 0 8px; }
.page-head .eyebrow { margin: 0 0 14px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.04; font-weight: 600; letter-spacing: -0.045em; }
.page-head .lede { margin-top: 16px; }

/* Home: the story beside the live phone. */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: calc(100svh - 84px);
  padding: 4px 0 24px;
}
.home-hero .hero-title { font-size: clamp(36px, min(5vw, 8.6vh), 62px); }
.home-hero .lede { font-size: clamp(16px, min(1.35vw, 2.4vh), 18px); max-width: 32em; }
.home-hero .eyebrow { margin-top: 0; }
.home-hero .cta { margin-top: clamp(18px, 3.4vh, 30px); }
.home-hero .trust { margin-top: clamp(14px, 2.6vh, 26px); }
.home-hero .device { position: relative; }
.device .phone { width: 390px; margin: 0 auto; }
.device-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 13px; }
.device-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.trust span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; color: #48484c; }
.trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.feature { padding: 22px; border-radius: 26px; }
.feature .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.9); box-shadow: inset 0 1px 0 #fff, 0 2px 8px rgba(0, 0, 0, 0.05); margin-bottom: 16px; }
.feature .ico svg { stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.feature p { color: #48484c; font-size: 15px; line-height: 1.5; margin-top: 6px; }

.cta-band { margin-top: 64px; padding: 40px; border-radius: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { font-size: 30px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.cta-band p { color: #48484c; margin-top: 8px; font-size: 16px; }

@media (max-width: 900px) {
  .page { padding: 8px 16px 64px; }
  .home-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 16px; }
  .home-hero .device { margin-top: 36px; }
  .device .phone { width: min(390px, 100%); }
  .features { grid-template-columns: minmax(0, 1fr); }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 28px; }
}
.nav .nav-demo { height: 42px; padding: 0 16px; font-size: 14px; margin-left: 6px; }
.cta-pair { display: flex; gap: 10px; flex-wrap: wrap; }
.nav-sheet .btn-glass { margin-top: 6px; }
@media (max-width: 860px) { .nav > .nav-demo { display: none; } }

/* ---------------------------------------------------------------- the landing phone, in glass */
.home-hero .device { isolation: isolate; }
.home-hero .device::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8% -18% 12%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side at 35% 40%, rgba(232, 195, 162, 0.75), transparent),
    radial-gradient(closest-side at 70% 65%, rgba(168, 212, 255, 0.55), transparent),
    radial-gradient(closest-side at 45% 85%, rgba(176, 234, 202, 0.5), transparent);
  filter: blur(30px);
}
.device .phone {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.46));
  -webkit-backdrop-filter: blur(36px) saturate(1.9);
  backdrop-filter: blur(36px) saturate(1.9);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 40px 80px -30px rgba(70, 40, 20, 0.35);
}
.device .phone::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 32%);
}
.device .round-card,
.device .chip:not(.active),
.device .icon-btn,
.device .pill,
.device .dock-pill,
.device .dock-plus {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 6px 16px -10px rgba(70, 40, 20, 0.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
}
.device .chip.active { background: rgba(32, 32, 35, 0.86); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 20px -10px rgba(0, 0, 0, 0.5); }
.device .dock-btn.active { background: rgba(255, 255, 255, 0.95); }

/* ---------------------------------------------------------------- the demo video window */
.video-root { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.video-backdrop { position: absolute; inset: 0; background: rgba(30, 20, 14, 0.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.25s ease; }
.video-box { position: relative; width: min(960px, 100%); padding: 10px; border-radius: 28px; opacity: 0; transform: scale(0.97) translateY(8px); transition: opacity 0.25s ease, transform 0.35s var(--spring); }
.video-root.open .video-backdrop { opacity: 1; }
.video-root.open .video-box { opacity: 1; transform: none; }
.video-frame { aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: linear-gradient(140deg, #f6e2cf, #e8c3a2 45%, #c99474); }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-soon { height: 100%; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; color: #3c2a20; padding: 20px; }
.video-soon p { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.video-play { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: #3c2a20; background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 1px 0 #fff, 0 10px 24px -10px rgba(60, 30, 10, 0.5); }
.video-x { position: absolute; z-index: 1; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #3a3a3e; background: rgba(255, 255, 255, 0.85); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
