/* Inbox Sherpa site styles.
   Dark in both colour schemes. Colours are custom properties below.
   Motion uses CSS scroll-driven animations only (no JavaScript); browsers without
   support, and visitors who prefer reduced motion, see everything static. */

:root {
  color-scheme: dark;

  /* Backdrop */
  --navy: #070B1F;
  --navy-2: #0B1130;
  --indigo: #121A4A;
  --violet: #1E0F3A;
  --violet-2: #2A1250;

  /* Text (contrast checked against --navy and --violet-2) */
  --text: #F4F5FC;
  --text-2: #C5C9E6;
  --text-3: #A4AAD2;

  /* Accents: amber from the icon's compass needle, lavender for labels */
  --amber: #F2B24C;
  --amber-2: #FFD089;
  --lavender: #B7A9FF;
  --sky: #8FB4FF;

  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.18);
  --card: rgba(255, 255, 255, 0.045);
  --card-hi: rgba(255, 255, 255, 0.075);

  --radius: 22px;
  --gutter: clamp(16px, 4vw, 40px);
  --tile-pad: clamp(24px, 2.6vw, 36px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Newsreader", Georgia, "Times New Roman", serif;
}

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

html {
  background: var(--navy);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--navy);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }

a { color: var(--sky); text-underline-offset: 3px; }
a:hover { color: #B9D0FF; }

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

h1, h2, h3 { color: var(--text); margin: 0; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-wide { max-width: 1320px; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--amber);
  color: #1A1205;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 31, 0.72);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; transform: scale(1.24); /* icon.svg has a transparent margin around its tile */ }
.brand-sm { font-size: 16px; }
.brand-sm img { width: 24px; height: 24px; }

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

.nav-link {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.nav-link:hover { color: var(--text); background: var(--card-hi); }

@media (max-width: 900px) {
  .nav-link { display: none; }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { color: var(--text); background: var(--card-hi); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  border-color: transparent;
  background: linear-gradient(180deg, var(--amber-2), var(--amber));
  color: #1A1205;
  box-shadow: 0 8px 30px -8px rgba(242, 178, 76, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-primary:hover {
  color: #1A1205;
  background: linear-gradient(180deg, #FFE0AE, #F7BE62);
  box-shadow: 0 10px 40px -8px rgba(242, 178, 76, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-ghost { background: rgba(255, 255, 255, 0.04); }

.btn-sm { min-height: 36px; padding: 6px 16px; font-size: 14px; }
.btn-lg { min-height: 58px; padding: 16px 36px; font-size: 18px; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.cta-center, .hero-copy .cta-row { justify-content: center; }

/* Type */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw + 0.4rem, 6rem);
  line-height: 0.98;
  letter-spacing: -0.038em;
  text-wrap: balance;
  background: linear-gradient(180deg, #FFFFFF 30%, #C9CCF2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
h2.display { font-size: clamp(2.4rem, 5.6vw + 0.4rem, 5rem); }
h2.display-md { font-size: clamp(2.2rem, 3.6vw + 0.6rem, 3.75rem); line-height: 1.02; }
h3.display-sm { font-size: clamp(2rem, 2.6vw + 0.8rem, 3.25rem); line-height: 1.04; }

.display em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding-right: 0.06em;
  background: linear-gradient(100deg, var(--amber-2) 0%, var(--amber) 45%, #E58AC0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--lavender);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lede {
  margin: 24px 0 0;
  max-width: 40em;
  color: var(--text-2);
  font-size: clamp(1.1rem, 0.6vw + 0.95rem, 1.35rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.center { text-align: center; }
.center .lede { margin-inline: auto; }
.center-text { text-align: center; margin-inline: auto; }

.aside {
  margin: 32px 0 0;
  max-width: 52em;
  color: var(--text-3);
  font-size: 15px;
}

.pill {
  display: inline-block;
  margin: 0 0 28px;
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

/* Sections */

.section {
  position: relative;
  padding-block: clamp(96px, 14vw, 180px);
  overflow-x: hidden;
}
@supports (overflow: clip) {
  .section, .hero { overflow-x: clip; }
}

.section-violet {
  background:
    radial-gradient(55% 40% at 75% 35%, rgba(42, 18, 80, 0.85), transparent 70%),
    radial-gradient(45% 35% at 20% 70%, rgba(30, 15, 58, 0.9), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--violet) 50%, var(--navy) 100%);
}

.section-blue {
  background:
    radial-gradient(55% 40% at 25% 35%, rgba(18, 26, 74, 0.95), transparent 70%),
    radial-gradient(45% 35% at 80% 70%, rgba(42, 18, 80, 0.6), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 50%, var(--navy) 100%);
}

/* Hero */

.hero {
  position: relative;
  padding-top: clamp(72px, 11vw, 140px);
  padding-bottom: clamp(80px, 10vw, 140px);
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(18, 26, 74, 1), transparent 72%),
    radial-gradient(45% 40% at 85% 35%, rgba(42, 18, 80, 0.9), transparent 70%),
    radial-gradient(40% 35% at 10% 50%, rgba(30, 15, 58, 0.9), transparent 70%),
    var(--navy);
}

.hero-copy { text-align: center; }
.hero-copy .display { max-width: 12ch; margin-inline: auto; }
.hero-copy .lede { margin-inline: auto; max-width: 34em; }

.hero .shot-hero { margin-top: clamp(56px, 8vw, 96px); }

/* Product shots in a window frame */

.shot {
  position: relative;
  margin: 0;
}

.shot picture {
  position: relative;
  z-index: 1;
  display: block;
  border-radius: clamp(10px, 1.2vw, 16px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    linear-gradient(135deg, #141B4D, #22124A);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 30px 60px -20px rgba(0, 0, 0, 0.65),
    0 60px 140px -30px rgba(4, 6, 20, 0.9);
}

/* Glass highlight across the top edge */
.shot picture::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 22%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  color: var(--text-3);
  font-size: 14px;
}

/* Soft glow behind a shot */
.glow::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -12% -8% -18%;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.75;
  pointer-events: none;
}
.glow-violet::before {
  background: radial-gradient(50% 50% at 50% 50%, rgba(124, 77, 255, 0.55), rgba(42, 18, 80, 0.35) 55%, transparent 75%);
}
.glow-blue::before {
  background: radial-gradient(50% 50% at 50% 50%, rgba(66, 110, 255, 0.5), rgba(18, 26, 74, 0.4) 55%, transparent 75%);
}

/* Floor reflection under large shots */
.shot-hero::after,
.reveal-zoom::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 8%;
  right: 8%;
  bottom: -40px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(160, 140, 255, 0.22), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.shot figcaption {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  color: var(--text-3);
  font-size: 15px;
  text-align: center;
}

.section > .wrap-wide { margin-top: clamp(48px, 7vw, 88px); }

/* Steps */

.steps {
  list-style: none;
  margin: clamp(64px, 8vw, 104px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.steps h3 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.steps p { margin: 10px 0 0; }

.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  border: 1px solid rgba(242, 178, 76, 0.5);
  color: var(--amber-2);
  font-family: var(--font-display);
  font-weight: 700;
}

/* Bento */

.bento {
  margin-top: clamp(56px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: var(--tile-pad);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 60%),
    rgba(14, 16, 48, 0.55);
  overflow: hidden;
}
.tile h3 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1.1vw + 1rem, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}
.tile p { margin: 12px 0 0; }

.tile-hero {
  grid-column: span 2;
  grid-row: span 2;
  padding-bottom: 0;
  padding-right: 0;
  background:
    radial-gradient(70% 60% at 70% 100%, rgba(108, 80, 255, 0.35), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015) 60%),
    rgba(18, 20, 60, 0.6);
}
.tile-hero h3 { font-size: clamp(2rem, 2.6vw + 1rem, 3rem); padding-right: var(--tile-pad); }
.tile-hero p { max-width: 30em; font-size: 18px; padding-right: var(--tile-pad); }

.shot-tile {
  margin-top: auto;
  padding-top: 32px;
  width: calc(100% + 60px);
}
.shot-tile picture { border-radius: 14px 0 0 0; }

.tile-full { grid-column: 1 / -1; min-height: 0; }
.tile-full p { max-width: 40em; }

.tile-kicker {
  margin-bottom: 14px;
  color: var(--amber-2);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

a.tile-link {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}
a.tile-link::before {
  content: "\2192";
  position: absolute;
  right: var(--tile-pad);
  bottom: calc(var(--tile-pad) - 4px);
  color: var(--text-3);
  font-size: 20px;
  transition: transform 0.2s ease, color 0.2s ease;
}
a.tile-link:hover { border-color: var(--line-2); color: inherit; }
a.tile-link:hover::before { color: var(--amber-2); transform: translateX(4px); }
a.tile-link:focus-visible { border-radius: var(--radius); }

.tile:not(.tile-hero)::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 169, 255, 0.18), transparent 70%);
  pointer-events: none;
}

/* Facts row */

.facts {
  list-style: none;
  margin: clamp(56px, 7vw, 88px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.facts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin-inline: auto; }
.facts strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
}

/* Alternating rows */

.row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.row-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.row-tight { margin-top: clamp(80px, 10vw, 140px); }
.row-flip .row-copy { order: 2; }
.row-flip .shot { order: 1; }

/* Checks */

.checks {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.checks li {
  position: relative;
  padding-left: 30px;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.2 4.7-5' fill='none' stroke='%231A1205' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat,
    linear-gradient(180deg, var(--amber-2), var(--amber));
}

.checks-grid {
  margin-top: clamp(48px, 6vw, 72px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 48px;
}

/* Cards */

.duo {
  margin-top: clamp(56px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.card {
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 60%),
    rgba(14, 16, 48, 0.55);
}
.card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.6vw + 1rem, 2.4rem);
  letter-spacing: -0.035em;
}
.card p { margin: 12px 0 0; }

/* Final CTA */

.final {
  padding-block: clamp(120px, 16vw, 220px);
  background:
    radial-gradient(55% 60% at 50% 55%, rgba(84, 52, 190, 0.55), transparent 70%),
    radial-gradient(70% 70% at 50% 100%, rgba(42, 18, 80, 0.9), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--violet) 70%, var(--violet-2) 100%);
}
.final-icon {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto 36px;
  transform: scale(1.24);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.55));
}

/* Waitlist form */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.waitlist {
  display: flex;
  gap: 12px;
  max-width: 560px;
  margin: 40px auto 0;
}
.waitlist input[type="email"] {
  flex: 1;
  min-width: 0;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(7, 11, 31, 0.6);
  color: var(--text);
  font: inherit;
  font-size: 17px;
}
.waitlist input[type="email"]::placeholder { color: var(--text-3); }
.waitlist input[type="email"]:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-color: transparent;
}
.waitlist .btn { flex-shrink: 0; }
.waitlist .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.waitlist-note { margin: 16px 0 0; color: var(--text-3); font-size: 15px; }
.waitlist-note a { color: var(--text-2); }
@media (max-width: 560px) {
  .waitlist { flex-direction: column; }
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: #06081A;
  color: var(--text-3);
  font-size: 14px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-block: 32px;
}
.footer-copy { margin-left: auto; }
.site-footer a:not(.brand) { color: var(--text-2); }
.site-footer a:not(.brand):hover { color: var(--text); }

/* Prose pages (privacy, 404) */

.page-hero {
  min-height: 70vh;
  padding-top: clamp(72px, 10vw, 128px);
  padding-bottom: clamp(72px, 10vw, 120px);
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(18, 26, 74, 1), transparent 72%),
    radial-gradient(40% 30% at 90% 20%, rgba(42, 18, 80, 0.85), transparent 70%),
    var(--navy);
}

.prose { max-width: 820px; }
.prose .updated { margin: 20px 0 0; color: var(--text-3); font-size: 15px; }
.prose h2 {
  margin: 72px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2vw + 1rem, 2.5rem);
  letter-spacing: -0.035em;
}
.prose p { margin: 16px 0 0; }
.prose ul { margin: 24px 0 0; padding-left: 0; list-style: none; display: grid; gap: 12px; }
.prose li {
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.prose strong { color: var(--text); }
.prose .back { margin-top: 56px; }

/* Responsive */

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-hero { grid-column: span 2; grid-row: auto; }
  .row, .row-flip { grid-template-columns: minmax(0, 1fr); }
  .row-flip .row-copy, .row-flip .shot { order: 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .steps, .facts, .facts-2, .duo, .checks-grid { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile-hero { grid-column: auto; }
  .tile { min-height: 0; }
  .cta-row .btn { flex: 1 1 100%; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-copy { margin-left: 0; }
}

/* Motion: scroll-driven reveals, only when supported and wanted */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .shot-hero {
    animation: rise-far 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
  }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    .reveal-zoom picture {
      animation: zoom linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes rise-far {
  from { opacity: 0; transform: translateY(60px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes reveal {
  from { opacity: 0; transform: translateY(48px); }
  to { opacity: 1; transform: none; }
}
@keyframes zoom {
  from { opacity: 0.4; transform: scale(0.9) translateY(40px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
