/* TextSatchel landing page with iMessage blue accents. */
:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --secondary: #555555;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --seam: #d0d0d0;
  --tint: #f5f5f5;
  --accent: #0a0a0a;
  --stitch: 1.5px dashed;
  --font: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sf: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 var(--font);
}
::selection { background: #e2e2e2; color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- Hero: copy beside the phone ---------- */
.top {
  max-width: 1100px; margin: 0 auto; padding: 56px 20px 0;
  display: flex; flex-direction: column; gap: 48px;
}
.hero { display: flex; flex-direction: column; align-items: flex-start; }
.soon {
  padding: 5px 12px; border-radius: 10px;
  border: var(--stitch) var(--seam); background: var(--tint);
  font-size: 0.875rem; font-weight: 500;
}
.hero h1 { margin-top: 28px; font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.035em; }
.hero h1 span { display: block; white-space: nowrap; }
/* Optical alignment: the S and F side bearings sit right of the J, so pull them back to a shared edge. */
.hero h1 .l-save { margin-left: -0.02em; }
.hero h1 .l-find { margin-left: -0.065em; }
.hero h1 .l-text { color: #0b84fe; }
.lede { margin-top: 22px; max-width: 34ch; font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); line-height: 1.5; color: var(--secondary); }
.actions { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; }
.fineprint { font-size: 0.875rem; color: var(--muted); }
.save-example { margin-top: 28px; }
.save-example .b { overflow-wrap: anywhere; }
.file-example { display: flex; align-items: center; gap: 12px; }
.file-example svg { flex: none; }
.file-example small { display: block; margin-top: 2px; font-size: 11px; opacity: 0.8; }
.waitlist { display: grid; gap: 10px; width: 100%; }
.waitlist label { font-size: 0.875rem; color: var(--secondary); }
.waitlist-fields { display: flex; align-items: center; gap: 8px; width: min(100%, 380px); padding: 6px; border: 1px solid #c7c7cc; border-radius: 28px; background: var(--bg); }
.waitlist-fields:focus-within { border-color: #0b84fe; }
.waitlist input:focus, .waitlist-send:focus { outline: none; }
.waitlist input { flex: 1; min-width: 0; height: 38px; padding: 0 10px; border: 0; border-radius: 20px; font: inherit; background: transparent; color: var(--ink); }
.waitlist input::placeholder { color: #8e8e93; }
.waitlist-send { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #0b84fe; color: #fff; cursor: pointer; }
.waitlist-send:hover { background: #0074e8; }
.waitlist button:disabled { opacity: 0.6; cursor: wait; }
.waitlist .fineprint { min-height: 22px; }
.signup-toast { position: fixed; z-index: 20; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 16px; background: #fff; color: #0b84fe; border: 1px solid #e6e6e6; font-size: 0.9375rem; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16); }

/* ---------- Phone ---------- */
.demo { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.phone {
  position: relative;
  width: min(340px, 80vw);
  aspect-ratio: 1406 / 2822;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.16)) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.06));
}
.phone-frame {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 2; pointer-events: none; user-select: none;
}
/* Screen cutout measured from the bezel PNG: 1206x2622 at (100,100) in 1406x2822. */
.phone-screen {
  position: absolute; z-index: 1;
  left: 7.112%; top: 3.544%; width: 85.775%; height: 92.913%;
  border-radius: 15.4% / 7.1%;
  overflow: hidden; background: #fff;
}

/* UI is laid out in iPhone 17 Pro points (402x874) and scaled to fit. */
.ui {
  position: absolute; left: 0; top: 0;
  width: 402px; height: 874px;
  transform-origin: 0 0; transform: scale(var(--s, 0.72));
  font-family: var(--sf); color: #000; background: #fff;
  --kb: 0px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}
.ui.kb-on { --kb: 302px; }

.glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 4px 14px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sb { position: absolute; z-index: 6; top: 0; left: 0; right: 0; height: 54px; }
.sb-time {
  position: absolute; left: 0; width: 137px; top: 19px; text-align: center;
  font-size: 17px; font-weight: 600; letter-spacing: -0.3px;
}
.sb-icons {
  position: absolute; left: 264px; right: 0; top: 21px;
  display: flex; justify-content: center; align-items: center; gap: 6px;
}
.sb-icons svg { fill: currentColor; }

.hd {
  position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: 168px;
  padding: 62px 16px 0;
  display: flex; justify-content: space-between; align-items: flex-start;
  background: linear-gradient(#fff 58%, rgba(255, 255, 255, 0.85) 78%, rgba(255, 255, 255, 0));
  pointer-events: none;
}
.hd-back, .hd-video {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: #000;
}
.hd-center {
  position: absolute; left: 50%; top: 58px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
}
.hd-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
}
.hd-avatar img { width: 64px; height: 64px; object-fit: contain; }
.hd-name {
  transform: translateX(5px);
  margin-top: -6px; padding: 5px 12px; border-radius: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.2px;
}
.hd-name svg { color: rgba(0, 0, 0, 0.35); }

.thread {
  position: absolute; left: 0; right: 0; top: 168px;
  bottom: calc(var(--kb) + 34px + 56px + 12px);
  overflow: hidden;
  touch-action: pan-y; overscroll-behavior-x: none;
  display: flex; flex-direction: column;
}
.thread-inner { width: 100%; min-width: 0; padding: 0 14px 4px; flex-shrink: 0; transition: opacity 0.4s ease-out; }
.thread-inner.fading { opacity: 0; }

.stamp {
  text-align: center; font-size: 12px; color: #8e8e93;
  margin: 16px 0 8px; letter-spacing: -0.05px;
}
.stamp b { font-weight: 600; }

.msg { display: flex; margin-top: 2px; }
.msg.first { margin-top: 10px; }
.msg.sent { justify-content: flex-end; }
/* New messages just fade in: no scale, slide, or bounce. */
.msg.in { animation: fade-in 0.25s ease-out both; }
@keyframes fade-in { from { opacity: 0; } }

.b {
  --bc: #e9e9eb;
  position: relative;
  max-width: 290px;
  padding: 7px 13px 8px;
  border-radius: 19px;
  background: var(--bc); color: #000;
  font-size: 17px; line-height: 22px; letter-spacing: -0.25px;
  white-space: pre-line; overflow-wrap: anywhere;
}
.sent .b { --bc: #0b84fe; color: #fff; }
.b.tail::before, .b.tail::after {
  content: ""; position: absolute; bottom: 0; height: 20px;
}
.recv .b.tail::before { left: -7px; width: 20px; background: var(--bc); border-bottom-right-radius: 16px 14px; }
.recv .b.tail::after { left: -26px; width: 26px; background: #fff; border-bottom-right-radius: 10px; }
.sent .b.tail::before { right: -7px; width: 20px; background: var(--bc); border-bottom-left-radius: 16px 14px; }
.sent .b.tail::after { right: -26px; width: 26px; background: #fff; border-bottom-left-radius: 10px; }

.b.link { padding: 0; width: 262px; }
.card { position: relative; z-index: 1; border-radius: 19px; overflow: hidden; background: var(--bc); }
.card svg { display: block; width: 100%; height: auto; }
.card-meta { padding: 9px 13px 10px; }
.card-title { font-size: 15px; line-height: 19px; font-weight: 600; letter-spacing: -0.2px; }
.card-domain { font-size: 13px; line-height: 17px; color: #8e8e93; margin-top: 1px; }

.b.typing { padding: 12px 14px; display: flex; gap: 5px; }
.b.typing span {
  width: 8px; height: 8px; border-radius: 50%; background: #9a9aa0;
  animation: dot 1.2s infinite ease-in-out;
}
.b.typing span:nth-child(2) { animation-delay: 0.15s; }
.b.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot {
  0%, 60%, 100% { opacity: 0.35; }
  30% { opacity: 1; }
}

.rcpt {
  text-align: right; font-size: 11.5px; color: #8e8e93;
  margin: 3px 4px 0 0; animation: fade-in 0.3s ease both;
}
.rcpt b { font-weight: 600; }

.composer {
  position: absolute; z-index: 4; left: 0; right: 0;
  bottom: calc(var(--kb) + 34px);
  padding: 8px 14px;
  display: flex; align-items: flex-end; gap: 9px;
  background: #fff;
}
.cmp-plus { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #3c3c43; }
.cmp-field {
  flex: 1; min-width: 0; min-height: 40px; border-radius: 20px;
  padding: 9px 44px 9px 15px; position: relative;
  font-size: 17px; line-height: 22px; letter-spacing: -0.25px;
  white-space: nowrap; overflow: hidden;
}
.cmp-caret {
  display: none; width: 2px; height: 21px; margin-left: 1px;
  background: #0b84fe; vertical-align: -4px; border-radius: 1px;
  animation: blink 1s step-end infinite;
}
.cmp-text { display: inline-block; max-width: calc(100% - 4px); overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.ui.kb-on .cmp-caret { display: inline-block; }
@keyframes blink { 50% { opacity: 0; } }
.cmp-ph { position: absolute; left: 16px; top: 9px; color: #a2a2a8; }
.ui.has-text .cmp-ph, .ui.kb-on .cmp-ph { display: none; }
.cmp-mic, .cmp-send { position: absolute; right: 6px; bottom: 6px; width: 28px; height: 28px; display: grid; place-items: center; }
.cmp-mic { color: #8e8e93; }
.cmp-send { border-radius: 50%; background: #0b84fe; transform: scale(0); transition: transform 0.2s var(--ease); }
.ui.has-text .cmp-send { transform: scale(1); }
.ui.has-text .cmp-mic { opacity: 0; }

.kbd {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  height: 336px; padding: 10px 3px 0;
  background: #d5d7dd;
  transform: translateY(100%);
}
.ui.kb-on .kbd { transform: none; }
.kb-row { display: flex; gap: 6px; height: 43px; margin-bottom: 11px; }
.kb-row.r2 { padding: 0 19px; }
.key {
  flex: 1; display: grid; place-items: center;
  background: #fff; border-radius: 6px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
  font-size: 23px; color: #000;
  transition: background 0.08s;
}
.key.mod { background: #abb0ba; font-size: 16px; }
.key.wide { flex: 0 0 44px; }
.r3 .key.wide:first-child { margin-right: 8px; }
.r3 .key.wide:last-child { margin-left: 8px; }
.r4 .key.mod { flex: 0 0 92px; }
.r4 .key.space { font-size: 16px; }
.key.down { background: #c9ccd3; }
.key.mod.down { background: #fff; }
.kb-extra {
  display: flex; justify-content: space-between; padding: 6px 22px 0; color: #50555c;
}

.home-ind {
  position: absolute; z-index: 7; left: 50%; bottom: 8px; transform: translateX(-50%);
  width: 140px; height: 5px; border-radius: 3px; background: #000;
}


.card-dur {
  position: absolute; right: 8px; bottom: 8px;
  padding: 1px 5px; border-radius: 4px;
  background: rgba(0, 0, 0, 0.6); color: #fff;
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.card-art { position: relative; }



/* ---------- What it does ---------- */
.section { max-width: 1100px; margin: 0 auto; padding: 48px 20px 0; }
.section h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); line-height: 1.05; letter-spacing: -0.03em; }
.rows { margin-top: 28px; border-top: 1.5px solid var(--ink); }
.row { display: grid; gap: 8px; padding: 24px 0; border-bottom: var(--stitch) var(--line); }
.row h3 { font-size: 1.25rem; line-height: 1.15; letter-spacing: -0.02em; }
.row p { max-width: 44ch; color: var(--secondary); }
/* A tiny iMessage exchange per row, reusing the phone's bubble styles at a smaller size. */
.mini { margin-top: 8px; width: min(320px, 100%); padding-inline: 8px; overflow-x: clip; justify-self: end; font-family: var(--sf); }
.mini .b { max-width: 250px; padding: 6px 12px 7px; font-size: 15px; line-height: 20px; }
.mini .rcpt { margin-bottom: 4px; }

.footer {
  max-width: 1100px; margin: 0 auto; padding: 40px 20px 48px;
  font-size: 0.875rem; color: var(--muted);
}
.footer a { text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 4px; }

@media (hover: hover) {
  .footer a:hover { color: var(--ink); }
}

@media (min-width: 720px) {
  .phone { width: 360px; }
  .section { max-width: 604px; }
  .row { grid-template-columns: 220px 320px; align-items: start; gap: 16px 24px; padding: 28px 0; }
  .row h3 { grid-column: 1; grid-row: 1 / span 2; }
  .row p, .row .mini { grid-column: 2; }
  .row p { width: min(320px, 100%); justify-self: end; }
  .mini { margin-top: 0; }
}

/* Mobile hero: centered copy and signup, then the phone preview. */
@media (max-width: 899px) {
  .top { padding-top: 32px; gap: 36px; }
  .hero { align-items: center; text-align: center; }
  .hero h1 { font-size: clamp(2.5rem, 10.5vw, 4rem); line-height: 1.08; }
  .hero h1 .l-save, .hero h1 .l-find { margin-left: 0; }
  .lede { margin-top: 24px; font-size: 1.125rem; line-height: 1.55; }
  .actions { margin-top: 28px; align-items: center; gap: 8px; }
  .waitlist { justify-items: center; max-width: 380px; }
  .waitlist label { max-width: 30ch; }
  .waitlist .fineprint { width: 100%; }
  .phone { width: min(340px, 84vw); }
}

/* Desktop: copy and phone share the first screen. */
@media (min-width: 900px) {
  .hero { flex: 1; min-width: 0; }
  .demo { flex: none; }
  .top {
    min-height: 100svh; padding-top: 32px; padding-bottom: 32px;
    flex-direction: row; align-items: center; justify-content: space-between; gap: 64px;
  }
  .phone { width: auto; height: min(700px, calc(100svh - 120px)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
