/* ------------------------------------------------------------------
   Harper landing, near-black canvas, hairline borders, white ink.
   Display + body: Inter Tight (light weights, River-style).
   Micro-labels: JetBrains Mono.
------------------------------------------------------------------- */

:root {
  /* Warm near-black — espresso, not blue-black — so the page sits in the same
     golden register as the hero rather than fighting it. */
  --ink: #f4f1ea;
  --ink-dim: #a39c91;
  --ink-faint: #6a635a;

  --canvas: #0b0a08;
  --surface: #131110;
  --surface-2: #1a1714;
  --surface-3: #221e1a;

  --line: #262120;
  --line-strong: #342d29;

  --sans: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --blue: #0a84ff;
  --blue-soft: #4aa3ff;

  /* warm accent, lifted from the hero's golden hour */
  --amber: #e7a667;
  --amber-soft: #f0c193;

  --radius: 6px;
  --radius-lg: 14px;
  --pad: clamp(20px, 4vw, 48px);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; border-color: var(--line); }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Subtle film grain — gives the dark canvas a printed, premium texture
   instead of flat black. Fixed so it never scrolls. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* make sure interactive layers sit above the grain */
.nav, main, .footer { position: relative; z-index: 2; }

::selection { background: var(--ink); color: var(--canvas); }

a { color: inherit; text-decoration: none; }

.num { font-variant-numeric: tabular-nums; }

/* Refined scrollbar — a quiet premium detail */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--canvas); }
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border: 3px solid var(--canvas);
  border-radius: 100px;
}
::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) var(--canvas); }

/* Visible, tasteful focus ring for keyboard users */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: var(--pad);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------- nav ---------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  transition: background-color .5s var(--ease), border-color .5s var(--ease), padding .5s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: color-mix(in srgb, var(--canvas) 72%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
  padding-top: 14px;
  padding-bottom: 14px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.014em;
  transition: opacity .2s ease;
}
.nav-logo:hover { opacity: .75; }

/* metallic mark on black, screen-blend the square away */
.nav-logo img { display: block; mix-blend-mode: screen; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.nav-links a { transition: color .25s var(--ease); position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav-links a:not(.nav-cta):hover { color: var(--ink); }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-cta {
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 100px;
  padding: 9px 16px;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.nav-cta::after { display: none; }

.nav-cta:hover {
  background: var(--ink);
  color: var(--canvas) !important;
  border-color: var(--ink);
  transform: translateY(-1px);
}

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

/* Cinematic nature hero. Muted, darkened color grade keeps the photo
   on-brand; swap the <img> for a <video> and nothing else moves. */
.hero-media {
  position: absolute;
  inset: 0;
}

/* Single looping montage video. Soft blur (like the known.com hero);
   scaled up a touch so the blurred edges never show. */
.hero-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: saturate(1.07) brightness(1.0) blur(4px);
  transform: scale(1.06);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    /* seat the headline bottom-left in a soft warm wash (not black) */
    linear-gradient(100deg, rgba(38,24,14,.62) 0%, rgba(38,24,14,.26) 32%, rgba(38,24,14,.04) 54%, transparent 64%),
    /* gentle lift off the bottom for the sub-copy + feature strip */
    linear-gradient(to top, rgba(28,18,10,.6) 0%, rgba(28,18,10,.14) 24%, transparent 42%),
    /* whisper of shade up top so the nav stays legible */
    linear-gradient(to bottom, rgba(28,18,10,.32) 0%, transparent 14%);
  pointer-events: none;
}

.hero-inner {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: clamp(120px, 19vh, 210px);
  max-width: 720px;
}

.hero-title {
  margin: 0;
  font-weight: 200;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  min-height: 1.1em;
  text-shadow: 0 2px 24px rgba(10,10,10,.55);
}

.caret {
  display: inline-block;
  width: .04em;
  min-width: 2px;
  height: .9em;
  margin-left: .06em;
  background: var(--ink);
  vertical-align: -0.1em;
  animation: blink 1.1s steps(1) infinite;
}

.caret.is-done { animation: blink 1.1s steps(1) 4; animation-fill-mode: forwards; opacity: 0; }

@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  margin: 22px 0 0;
  max-width: 460px;
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.7;
  color: #c9c9cc;
  text-shadow: 0 1px 16px rgba(10,10,10,.65);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .9s ease, transform .9s ease;
}

.hero-sub.is-in { opacity: 1; transform: none; }

/* ---------------- standalone iMessage bubbles (poke-style) ---------------- */

.msgs-label {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.hbubble {
  position: relative;
  width: fit-content;
  max-width: 86%;
  padding: 10px 15px 11px;
  margin-bottom: 3px;
  border-radius: 19px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter Tight', sans-serif;
  font-size: 14.5px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.hbubble.them {
  margin-right: auto;
  background: #26262a;
  color: #e9e9eb;
}

.hbubble.me {
  margin-left: auto;
  background: linear-gradient(180deg, #1f8fff 0%, #0a7aff 100%);
  color: #fff;
}

.hbubble.tail.me::after,
.hbubble.tail.them::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 20px;
  height: 18px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.hbubble.tail.me::after {
  right: -6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 18'%3E%3Cpath d='M0 0 L0 18 L20 18 C12 18 5 12 4 0 Z' fill='%230a7aff'/%3E%3C/svg%3E");
}

.hbubble.tail.them::after {
  left: -6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 18'%3E%3Cpath d='M20 0 L20 18 L0 18 C8 18 15 12 16 0 Z' fill='%2326262a'/%3E%3C/svg%3E");
}

/* hero cluster: floats over the photo, frosted */
.hero-msgs {
  position: absolute;
  right: clamp(20px, 6vw, 88px);
  bottom: clamp(140px, 23vh, 280px);
  width: min(350px, 40vw);
  display: flex;
  flex-direction: column;
}

.hero-msgs .hbubble {
  box-shadow: 0 14px 36px rgba(0,0,0,.4);
}

.hero-msgs .hbubble.them {
  background: rgba(36, 36, 40, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.hero-msgs .hbubble.tail.them::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 18'%3E%3Cpath d='M20 0 L20 18 L0 18 C8 18 15 12 16 0 Z' fill='%23242428' fill-opacity='0.92'/%3E%3C/svg%3E");
}

.hero-msgs .msgs-label { color: rgba(237,237,237,.55); }

.hero-msgs > * {
  opacity: 0;
  transform: translateY(12px) scale(.94);
  transition: opacity .55s cubic-bezier(.2,.8,.25,1), transform .55s cubic-bezier(.2,.8,.25,1);
}

.hero-msgs > .is-in { opacity: 1; transform: none; }

/* ---------------- vignette: shared framed surface (sections 03 & 04) ---------------- */

.vignette {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,.025) 0%, transparent 28%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow:
    0 1px 0 rgba(255,255,255,.04) inset,
    0 30px 80px -30px rgba(0,0,0,.7),
    0 8px 24px -12px rgba(0,0,0,.5);
  overflow: hidden;
}

/* a soft aurora glow in the corner — gives the dark panel depth */
.vignette::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    radial-gradient(60% 50% at 88% 0%, rgba(231,166,103,.08), transparent 60%),
    radial-gradient(45% 50% at 0% 100%, rgba(255,255,255,.04), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.vignette > * { position: relative; z-index: 1; }

/* section 03: conversation groups */
.texts {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 440px;
  margin-inline: auto;
}

.text-group { display: flex; flex-direction: column; }
.text-group .msgs-label { text-align: center; margin-bottom: 14px; }

/* conversation bubbles inside the framed panel feel a touch lighter */
.vignette .hbubble.them {
  background: #2a2a2e;
}
.vignette .hbubble.tail.them::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 18'%3E%3Cpath d='M20 0 L20 18 L0 18 C8 18 15 12 16 0 Z' fill='%232a2a2e'/%3E%3C/svg%3E");
}

/* ---------------- hero strip (boxy cells) ---------------- */

.hero-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(10,10,12,.42) 0%, rgba(10,10,12,.7) 100%);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
}

.strip-cell {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 20px 24px 22px;
  border-left: 1px solid rgba(255,255,255,.08);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(242,242,242,.82);
  white-space: nowrap;
  overflow: hidden;
  transition: background-color .4s var(--ease);
}

.strip-cell:hover { background-color: rgba(255,255,255,.03); }

.strip-cell:first-child { border-left: 0; }
.strip-k {
  color: rgba(242,242,242,.34);
  flex: none;
  font-weight: 300;
}

/* ---------------- shared section bits ---------------- */

.section { padding: clamp(96px, 14vh, 170px) 0; }

.kicker {
  margin: 0 0 28px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.kicker::before {
  content: '';
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--amber), color-mix(in srgb, var(--amber) 0%, transparent));
  display: inline-block;
}

.display {
  margin: 0;
  font-weight: 200;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.028em;
}

/* the punchline of a two-line display heading — brighter, slightly heavier */
.display-accent {
  font-weight: 300;
  color: #fff;
}

/* responsive <br> — visible only on larger screens */
.br-lg { display: inline; }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 var(--pad);
}

@media (min-width: 1216px) {
  .rule { margin: 0 auto; max-width: 1120px; }
}

/* ---------------- manifesto ---------------- */

/* Ease the cut from the warm hero into the dark canvas with a faint golden
   wash behind the opening statement. */
.manifesto {
  position: relative;
  isolation: isolate;
}
.manifesto::before {
  content: '';
  position: absolute;
  inset: -10% -20% auto -20%;
  height: 60%;
  z-index: -1;
  background: radial-gradient(60% 100% at 30% 0%, rgba(231,166,103,.06), transparent 70%);
  pointer-events: none;
}

.manifesto .kicker { color: var(--ink-dim); }

.manifesto-body {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(28px, 4vw, 64px);
  max-width: 920px;
}

.manifesto-body p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.78;
}

/* the second column reads like a thesis statement — slightly brighter */
.manifesto-body p:nth-child(2) { color: #c6c6c9; }

/* ---------------- features ---------------- */

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.feature-grid.flip .feature-copy { order: 2; }
.feature-grid.flip .vignette { order: 1; }

.feature-title {
  margin: 0;
  font-weight: 200;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.024em;
}

.feature-blurb {
  margin: 22px 0 0;
  color: var(--ink-dim);
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.75;
  max-width: 420px;
}

.ticks {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.ticks li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  font-weight: 300;
  color: #c4c4c8;
  line-height: 1.5;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .4em;
  width: 14px;
  height: 1px;
  background: var(--ink-dim);
}

.ticks li::after {
  content: '';
  position: absolute;
  left: 14px;
  top: .4em;
  width: 4px;
  height: 1px;
  background: var(--line-strong);
}

/* ---------------- iMessage marquee ---------------- */

.imessage-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: clamp(8px, 2vw, 24px) 0;
}

.phone-glow {
  position: absolute;
  inset: -8% 6%;
  background: radial-gradient(ellipse 50% 46% at 50% 46%, rgba(237,237,237,.07), transparent 70%);
  pointer-events: none;
}

/* --- iPhone 17 Pro frame, pure CSS --- */

.iphone {
  position: relative;
  width: min(360px, 82vw);
  aspect-ratio: 360 / 738;
  border-radius: 60px;
  padding: 3px;
  background:
    linear-gradient(145deg, #6b6b70 0%, #3a3a3e 18%, #232326 40%, #1b1b1e 62%, #4c4c51 88%, #707076 100%);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.85),
    0 30px 80px rgba(0,0,0,.6),
    0 6px 18px rgba(0,0,0,.5);
}

.iphone::after {
  /* side button glint */
  content: '';
  position: absolute;
  right: -2px;
  top: 27%;
  width: 2px;
  height: 9%;
  border-radius: 2px;
  background: linear-gradient(180deg, #6f6f74, #3c3c40);
}

.iphone-screen {
  position: relative;
  height: 100%;
  border-radius: 57px;
  border: 8px solid #000;
  /* iOS 26 warm conversation background (a "custom background") */
  background: #15100a;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter Tight', sans-serif;
}

.ios-statusbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 26px 6px;
  color: #fff;
}

.ios-time {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

.ios-island {
  position: absolute;
  left: 50%;
  top: 11px;
  transform: translateX(-50%);
  width: 32%;
  height: 24px;
  border-radius: 14px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.045);
}

.ios-status-icons { display: flex; align-items: center; gap: 5px; color: #fff; }

/* iOS 26 floating Liquid Glass header — controls float over the
   conversation as separate glass pills, content scrolls beneath. */
.msg-header {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 11px;
  pointer-events: none;
}
.msg-header > * { pointer-events: auto; }

/* shared glass treatment for the floating controls */
.msg-back,
.msg-name,
.msg-video {
  background: rgba(38,30,20,.5);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    inset 0 .5px 0 rgba(255,255,255,.16),
    0 4px 14px rgba(0,0,0,.28);
}

.msg-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px 0 9px;
  border-radius: 16px;
}

.msg-badge {
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: #0a84ff;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.msg-contact {
  position: absolute;
  left: 50%;
  top: -8px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.msg-avatar {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #0c0c0d;
  box-shadow:
    0 0 0 .5px rgba(255,255,255,.14),
    0 4px 14px rgba(0,0,0,.4);
}

.msg-avatar img { width: 100%; height: 100%; object-fit: cover; }

.msg-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 10px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f1ede6;
}
.msg-name svg { color: rgba(241,237,230,.5); }

.msg-video {
  display: grid;
  place-items: center;
  width: 36px;
  height: 32px;
  border-radius: 16px;
}

.msg-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* messages stack up from the input, like real iMessage */
  gap: 2px;
  padding: 60px 14px 6px;
  /* warm glow at the top of the conversation, fading into the solid base */
  background: radial-gradient(135% 52% at 50% -8%, rgba(231,166,103,.13), transparent 52%);
  overflow: hidden;
}

.msg-stamp {
  margin: 0 0 8px;
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  color: #8e8e93;
}

.msg-meta {
  margin: 1px 4px 6px 0;
  text-align: right;
  font-size: 9.5px;
  font-weight: 500;
  color: #8e8e93;
}

.ibubble {
  position: relative;
  max-width: 74%;
  padding: 8px 13px 9px;
  margin-bottom: 2px;
  border-radius: 19px;
  font-size: 15px;
  line-height: 1.32;
  letter-spacing: -0.012em;
}

.ibubble b { font-weight: 600; }

.ibubble.me {
  align-self: flex-end;
  /* iOS 18 system-blue sent bubble */
  background: linear-gradient(180deg, #2a9bff 0%, #0a84ff 55%, #0a7afc 100%);
  color: #fff;
}

.ibubble.them {
  align-self: flex-start;
  background: #3b3b3d; /* iOS 18 dark-mode incoming gray */
  color: #fff;
}

/* Authentic iOS tail: a curved nub drawn with a thick rounded border
   (::before), then carved by a thread-colored bite (::after). This is how
   real iMessage renders the curl — only works over the solid #000 thread. */
.ibubble.tail::before,
.ibubble.tail::after {
  content: '';
  position: absolute;
  bottom: -0.5px;
  height: 16px;
}
.ibubble.tail.me::before {
  right: -6px;
  border-bottom-left-radius: 14px 11px;
  border-right: 17px solid #0a7afc;
}
.ibubble.tail.me::after {
  right: -10px;
  width: 11px;
  background: #15100a;
  border-bottom-left-radius: 9px;
}
.ibubble.tail.them::before {
  left: -6px;
  border-bottom-right-radius: 14px 11px;
  border-left: 17px solid #3b3b3d;
}
.ibubble.tail.them::after {
  left: -10px;
  width: 11px;
  background: #15100a;
  border-bottom-right-radius: 9px;
}

.ibubble + .ibubble.me, .ibubble + .ibubble.them { margin-top: 4px; }

.ibubble.typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 11px 14px;
}

.ibubble.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8e8e93;
  animation: typing 1.3s ease-in-out infinite;
}

.ibubble.typing span:nth-child(2) { animation-delay: .18s; }
.ibubble.typing span:nth-child(3) { animation-delay: .36s; }

@keyframes typing {
  0%, 60%, 100% { opacity: .35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

/* Liquid Glass compose bar (iOS 26) */
.msg-inputrow {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px 8px;
  background: rgba(28,22,15,.45);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border-top: .5px solid rgba(255,255,255,.07);
}

.msg-plus {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex: none;
  border-radius: 50%;
  background: rgba(255,255,255,.13);
  color: #d8d4cd;
  box-shadow: inset 0 .5px 0 rgba(255,255,255,.22);
}

.msg-field {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 33px;
  padding: 0 8px 0 14px;
  border-radius: 17px;
  border: .5px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
}

.msg-input {
  color: rgba(235,235,245,.42);
  font-size: 14px;
  letter-spacing: -0.01em;
}

.msg-audio {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  color: rgba(235,235,245,.45);
}

.ios-homebar {
  width: 36%;
  height: 4px;
  border-radius: 3px;
  background: #fff;
  opacity: .9;
  margin: 6px auto 8px;
}

/* ---------------- browser vignette (web chat) ---------------- */

.browser {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,.02) 0%, transparent 30%),
    var(--surface);
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.7);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.browser-bar .dots { display: flex; gap: 7px; }

.browser-bar .dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
}

.urlpill {
  flex: 1;
  max-width: 320px;
  margin-inline: auto;
  text-align: center;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  color: var(--ink-dim);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.urlpill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-soft);
  box-shadow: 0 0 6px var(--blue-soft);
}

.browser-body { padding: 28px 28px 26px; }

.web-h1 {
  margin: 0;
  font-weight: 200;
  font-size: 32px;
  letter-spacing: -0.024em;
  line-height: 1;
}

.web-sub {
  margin: 8px 0 22px;
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-faint);
}

.chat-card {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
}

.chat-q { margin: 0; font-size: 14px; line-height: 1.6; color: #d8d8db; }
.chat-q .faint { color: var(--ink-faint); }

.chat-a {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--ink-dim);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.72;
}

.chat-a p { margin: 0; }
.chat-a .num {
  color: var(--ink);
  font-weight: 400;
  background: rgba(255,255,255,.06);
  padding: 1px 6px;
  border-radius: 4px;
  margin: 0 1px;
}

.agent-bar {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 10px 16px 10px 10px;
  transition: border-color .3s var(--ease);
}
.agent-bar:hover { border-color: var(--ink-faint); }

.agent-glyph {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  background: var(--ink);
  color: var(--canvas);
  border-radius: 50%;
}

.agent-placeholder {
  display: inline-flex;
  align-items: center;
  color: var(--ink-faint);
  font-size: 14px;
  font-weight: 300;
}

.agent-caret {
  width: 1px;
  height: 15px;
  background: var(--ink-dim);
  animation: blink 1.1s steps(1) infinite;
}

/* ---------------- grounded / accounts ---------------- */

.grounded-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  margin-bottom: 56px;
}

.grounded-head .feature-blurb { justify-self: end; }

.accounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.acct {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.022) 0%, transparent 50%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 24px 22px;
  transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
  overflow: hidden;
}

.acct::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(80% 60% at 20% 0%, rgba(231,166,103,.07), transparent 60%);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}

.acct:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px -25px rgba(0,0,0,.7);
}
.acct:hover::before { opacity: 1; }

.acct-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.acct-label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.acct-mask {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 300;
  color: var(--ink-faint);
  letter-spacing: .04em;
}

.acct-balance {
  margin: 18px 0 20px;
  font-weight: 300;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1;
  letter-spacing: -0.022em;
  font-variant-numeric: tabular-nums;
}

/* credit balance reads subtly red, like a real bank would show it */
.acct-balance.negative { color: #ff7a7a; }

.spark { display: block; width: 100%; height: 30px; }
.spark path:last-child {
  fill: none;
  stroke: var(--ink-faint);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .35s var(--ease);
}
.acct:hover .spark path:last-child { stroke: var(--ink); }

/* ---------------- statement (cinematic warm interstitial) ---------------- */

.statement {
  position: relative;
  padding: clamp(170px, 32vh, 340px) 0;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  background: #0b0a08;
}

/* golden-hour field, slowly drifting, as the backdrop */
.statement::before {
  content: '';
  position: absolute;
  inset: -4%;
  z-index: 0;
  background: url("assets/statement-bg.jpg") center 40% / cover no-repeat;
  transform: scale(1.04);
  animation: statement-drift 26s ease-in-out infinite alternate;
}

/* warm veil so the headline reads crisp and the field stays a glow */
.statement::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(62% 64% at 50% 50%, rgba(20,13,5,.12), rgba(11,10,8,.58) 70%, rgba(11,10,8,.88) 100%),
    linear-gradient(180deg, rgba(11,10,8,.6) 0%, rgba(11,10,8,.24) 36%, rgba(11,10,8,.5) 70%, rgba(11,10,8,.88) 100%);
  pointer-events: none;
}

@keyframes statement-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .statement::before { animation: none; }
}

.statement-inner { position: relative; z-index: 2; }

.statement-line {
  margin: 0;
  font-weight: 200;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.18;
  color: rgba(244,241,234,.74);
  letter-spacing: -0.022em;
  text-shadow: 0 1px 30px rgba(0,0,0,.5);
}

.statement-answer {
  margin: 14px 0 0;
  font-weight: 300;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  background: linear-gradient(180deg, #ffffff 0%, #f3e6d3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 30px rgba(0,0,0,.45));
}

/* ---------------- waitlist ---------------- */

.waitlist {
  position: relative;
  text-align: center;
}

.waitlist .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.waitlist .kicker { justify-content: center; }

.waitlist .display {
  background: linear-gradient(180deg, #ffffff 0%, #c0c0c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.waitlist-cta {
  margin-top: clamp(36px, 5vh, 52px); /* was flush against the headline */
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 32px;
  background: var(--ink);
  color: var(--canvas);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
  box-shadow: 0 12px 32px -10px rgba(255,255,255,.18);
}
.waitlist-cta::after {
  content: '→';
  transition: transform .3s var(--ease-out);
}
.waitlist-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px -10px rgba(255,255,255,.28);
  background: #fff;
}
.waitlist-cta:hover::after { transform: translateX(5px); }

.waitlist-form {
  margin-top: 44px;
  display: flex;
  max-width: 520px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: var(--surface);
  transition: border-color .25s ease;
}

.waitlist-form:focus-within { border-color: var(--ink-faint); }

.waitlist-form[hidden] { display: none; }

.waitlist-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 16px 22px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
}

.waitlist-form input::placeholder { color: var(--ink-faint); }

.waitlist-form button {
  flex: none;
  margin: 6px;
  padding: 0 24px;
  background: var(--ink);
  color: var(--canvas);
  border: 0;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .2s ease;
}

.waitlist-form button:hover { opacity: .85; }

.waitlist-form.is-error { border-color: #6e3b3b; }

.waitlist-done {
  margin-top: 44px;
  font-weight: 250;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
}

.fine {
  margin-top: 24px;
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-faint);
  text-align: center;
  max-width: 32rem;
}

/* ---------------- footer ---------------- */

.footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding: clamp(64px, 9vw, 96px) 0 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(255,255,255,.012) 100%),
    var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 40px;
  padding-bottom: 72px;
}

.footer-brand { max-width: 28rem; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.014em;
  line-height: 1;
}

.footer-logo img { display: block; mix-blend-mode: screen; }

.footer-tag {
  margin: 16px 0 0;
  color: var(--ink-dim);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
}

.footer-head {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.footer-col { display: flex; flex-direction: column; gap: 12px; }

.footer-col a {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink-dim);
  transition: color .25s var(--ease), transform .25s var(--ease);
  width: fit-content;
}

.footer-col a:hover { color: var(--ink); transform: translateX(2px); }

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-block: 26px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------------- reveal on scroll ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s cubic-bezier(.2,.6,.2,1) var(--d, 0s),
              transform .9s cubic-bezier(.2,.6,.2,1) var(--d, 0s);
}

.reveal.is-in { opacity: 1; transform: none; }

/* ---------------- responsive ---------------- */

@media (max-width: 880px) {
  .feature-grid, .imessage-grid { grid-template-columns: 1fr; gap: 48px; }
  .feature-grid.flip .feature-copy { order: 1; }
  .feature-grid.flip .vignette { order: 2; }
  .grounded-head { grid-template-columns: 1fr; align-items: start; }
  .grounded-head .feature-blurb { justify-self: start; max-width: none; }
  .accounts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero-msgs { display: none; }
  .hero-inner { bottom: clamp(150px, 22vh, 220px); }
  .hero-strip { grid-template-columns: 1fr 1fr; }
  .strip-cell { padding: 13px 16px; font-size: 9.5px; letter-spacing: .12em; }
  .strip-cell:nth-child(3) { border-left: 0; }
  .strip-cell:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
  .br-lg { display: none; }
  .vignette { padding: clamp(20px, 5vw, 28px); }
  .statement-line { font-size: clamp(24px, 6vw, 32px); }
  .statement-answer { font-size: clamp(32px, 9vw, 44px); }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------------- reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-sub, .hero-msgs > * { transition: none; opacity: 1; transform: none; }
  .caret, .agent-caret { animation: none; }
  .ibubble.typing span { animation: none; opacity: .6; }
}

/* screenshot/QA mode: final state, no motion */
.static-qa { scroll-behavior: auto; }
.static-qa .reveal,
.static-qa .hero-sub,
.static-qa .hero-msgs > * { transition: none !important; opacity: 1 !important; transform: none !important; }
.static-qa .caret, .static-qa .agent-caret { animation: none; }
