/* ThatOneText — design tokens */
:root {
  --paper: #F6F4EF;
  --paper-2: #EDEAE2;
  --paper-3: #E2DED3;
  --ink: #0A0A0A;
  --ink-2: #1A1A1A;
  --ink-3: #2A2A2A;
  --muted: #6B6963;
  --muted-2: #9A968D;
  --rule: #1A1A1A1A;

  --blue: #0B84FE;
  --blue-2: #2D95FF;
  --blue-3: #E6F1FF;
  --blue-deep: #0057C2;

  --noir: #0A0B0D;
  --noir-2: #131418;
  --noir-3: #1C1E24;
  --noir-rule: #2A2D35;
  --bone: #EDEAE2;
  --bone-dim: #B8B4AB;

  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 22px;
  --r-bubble: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

@keyframes totBlink { 0%, 80%, 100% { opacity: .25 } 40% { opacity: 1 } }
@keyframes totFadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Smooth scroll + give anchors room under the sticky nav */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 80px; }

/* ----- NAV ----- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--rule);
  background: rgba(246,244,239,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-wordmark { height: 36px; width: auto; display: block; }
.nav-links { display: flex; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.nav-link {
  color: var(--muted); text-decoration: none;
  padding: 8px 14px; border-radius: 999px;
  transition: all .18s ease;
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-active {
  color: white;
  background: var(--blue);
  box-shadow: 0 4px 12px -4px rgba(11,132,254,0.5);
}
.nav-cta {
  font-family: var(--mono); font-size: 12px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--blue); color: white; text-decoration: none;
}

/* ----- HERO ----- */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  padding: 60px 48px 100px;
  align-items: center;
}
.hero-left { max-width: 640px; }
.bubble-stream {
  display: flex; flex-direction: column; gap: 6px;
  align-items: flex-start;
  margin-bottom: 36px;
  min-height: 200px;
}
.hero-bubble {
  padding: 10px 16px; border-radius: var(--r-bubble);
  max-width: 90%; font-size: 16px; line-height: 1.4;
  animation: totFadeUp 0.5s ease-out both;
}
.hero-bubble.tot { background: var(--paper-2); color: var(--ink); border-bottom-left-radius: 6px; }
.hero-bubble.you { background: var(--blue); color: white; border-bottom-right-radius: 6px; align-self: flex-end; }
.h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(56px, 6.5vw, 92px);
  line-height: 0.98; letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.lede { font-size: 18px; color: var(--ink-2); max-width: 520px; margin: 0 0 32px; }
.cta-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cta-primary {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 24px; border-radius: 999px;
  background: var(--blue); color: white; text-decoration: none;
  font-size: 15px;
  box-shadow: 0 8px 20px -8px rgba(11,132,254,0.5);
}
.cta-icon { display: inline-flex; }
.cta-ghost {
  font-size: 14px; color: var(--ink-2); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.hero-right { display: flex; justify-content: center; }

/* Hero phone-ish device frame (squared, with bezel — not iPhone) */
.device-frame {
  width: 380px; height: 720px;
  background: white;
  border-radius: 36px; overflow: hidden;
  border: 10px solid var(--ink);
  box-shadow: 0 30px 80px -20px rgba(10,10,10,0.35), 0 2px 6px -2px rgba(10,10,10,0.1);
  display: flex; flex-direction: column;
}
.device-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.device-bar-dot { width: 8px; height: 8px; border-radius: 999px; background: #34C759; }
.device-bar-title { font-family: var(--mono); font-size: 12px; color: var(--ink); letter-spacing: 0.02em; flex: 1; }
.device-bar-meta { font-family: var(--mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.device-screen { flex: 1; background: white; overflow: hidden; }

/* ----- Section heads ----- */
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-label {
  font-family: var(--mono); font-size: 12px; color: var(--blue);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.0; letter-spacing: -0.02em;
  margin: 0;
}
.lede2 { font-size: 18px; color: var(--muted); margin-top: 20px; }

/* ----- HOW ----- */
.how-section { padding: 100px 48px; background: white; }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-card { padding: 32px; background: var(--paper); border-radius: 20px; }
.step-bubble {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--blue); color: white;
  border-radius: var(--r-bubble); border-bottom-left-radius: 6px;
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  margin-bottom: 24px;
}
.step-title { font-family: var(--serif); font-size: 28px; margin: 0 0 8px; letter-spacing: -0.01em; font-weight: 400; }
.step-body { color: var(--muted); margin: 0; font-size: 15px; }

/* ----- DEMO ----- */
.demo-section { padding: 100px 48px; }
.demo-frame {
  max-width: 760px; height: 680px; margin: 0 auto;
  background: white; border-radius: 32px;
  box-shadow: 0 30px 80px -20px rgba(10,10,10,0.35);
  overflow: hidden;
  border: 10px solid #0a0a0a;
}

/* ----- SMS DEMO (interior of device + demo frame) ----- */
.sms {
  display: flex; flex-direction: column;
  width: 100%; height: 100%;
  background: white; color: var(--ink);
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--rule);
  font-family: var(--sans);
  font-feature-settings: "ss01";
}
.sms-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}
.sms-avatar {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  gap: 5px;
}
.sms-avatar-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--blue); }
.sms-name { flex: 1; min-width: 0; }
.sms-title { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.sms-title .blue { color: var(--blue); }
.sms-sub { font-size: 11px; color: var(--muted); font-family: var(--mono); margin-top: 2px; }
.sms-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--muted); font-family: var(--mono);
}
.sms-status-dot { width: 6px; height: 6px; border-radius: 999px; background: #34C759; display: inline-block; }
.sms-scroll {
  flex: 1; overflow-y: auto;
  padding: 20px 18px 10px;
  display: flex; flex-direction: column; gap: 6px;
  position: relative;
}
.sms-scroll.compact { padding: 14px 14px 6px; }
.sms-day {
  text-align: center; font-size: 10px; color: var(--muted);
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
  margin: 4px 0 12px;
}
.bubble-row { display: flex; margin-bottom: 4px; }
.bubble-row.you { justify-content: flex-end; }
.bubble {
  max-width: 78%;
  padding: 9px 14px;
  border-radius: var(--r-bubble);
  background: var(--paper-2);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  border-bottom-left-radius: 6px;
  font-family: var(--sans);
  animation: totFadeUp .35s ease-out both;
}
.bubble-row.you .bubble {
  background: var(--blue); color: white;
  border-bottom-right-radius: 6px; border-bottom-left-radius: var(--r-bubble);
}
.typing { padding: 10px 14px; display: inline-flex; gap: 4px; }
.typing-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--muted); display: inline-block; animation: totBlink 1s infinite ease-in-out; }
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }

.sms-suggest-row { display: flex; gap: 6px; padding: 0 14px 8px; flex-wrap: wrap; }
.sms-suggest {
  font-size: 11px; font-family: var(--mono);
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--rule); background: transparent;
  color: var(--muted); cursor: pointer;
  transition: all .15s;
}
.sms-suggest:hover { color: var(--ink); border-color: var(--ink); }

.sms-composer {
  display: flex; gap: 8px; align-items: center;
  padding: 10px 12px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.sms-input {
  flex: 1; border: none; outline: none; background: transparent;
  color: var(--ink); font-size: 14px; font-family: var(--sans);
  padding: 8px 10px;
}
.sms-send {
  width: 32px; height: 32px; border-radius: 999px;
  border: none; background: var(--blue); color: white;
  display: inline-flex; align-items: center; justify-content: center;
  transition: opacity .15s;
}
.sms-send[disabled] { opacity: .4; cursor: default; }

/* Limit overlay (after 10 user messages) */
.sms-limit-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.92) 55%, rgba(255,255,255,1) 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding: 40px 28px 28px;
  pointer-events: none;
  animation: totFadeUp .6s ease both;
}
.sms-limit-mark {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); margin-bottom: 14px;
}
.sms-limit-h {
  font-family: var(--serif); font-size: 28px; line-height: 1.15;
  text-align: center; max-width: 480px;
  color: var(--ink); letter-spacing: -0.01em; font-weight: 500;
}
.sms-limit-sub { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; max-width: 420px; }
.sms-limit-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 20px;
  background: var(--blue); color: white;
  text-decoration: none;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  letter-spacing: -0.01em;
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* ----- USES ----- */
.uses-section { padding: 100px 48px; background: white; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 56px; max-width: 1000px; }
.chip { padding: 10px 18px; border-radius: 999px; background: var(--paper-2); color: var(--ink); font-size: 15px; }
.chip.blue { background: var(--blue); color: white; }
.use-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.use-card { padding: 28px; background: var(--paper); border-radius: 16px; }
.use-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.use-label { font-family: var(--serif); font-size: 24px; letter-spacing: -0.01em; }
.use-body { color: var(--muted); margin: 0; font-size: 14px; }
.tag-live, .tag-soon {
  font-family: var(--mono); font-size: 10px;
  padding: 3px 7px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.tag-live { background: var(--blue); color: white; }
.tag-soon { color: var(--muted); border: 1px solid var(--rule); }

/* ----- WHY (dark) ----- */
.why-section { padding: 100px 48px; background: var(--ink); color: var(--paper); }
.why-section .section-label { color: rgba(255,255,255,0.7); }
.why-section .h2 { color: white; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.why-card { padding: 32px; background: var(--ink-2); border-radius: 20px; border: 1px solid #2A2A2A; }
.why-k { font-family: var(--serif); font-size: 28px; margin: 0 0 12px; letter-spacing: -0.01em; font-weight: 400; }
.why-v { color: var(--bone-dim); margin: 0; font-size: 16px; }

/* ----- FAQ ----- */
.faq-section { padding: 100px 48px; }
.faq-thread { display: flex; flex-direction: column; gap: 24px; max-width: 760px; }
.faq-exchange { display: flex; flex-direction: column; gap: 6px; }
.faq-exchange .hero-bubble.you { align-self: flex-end; }
.faq-exchange .hero-bubble.tot { max-width: 560px; }

/* ----- FINAL CTA ----- */
.final-cta { padding: 120px 48px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.final-h {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.95; letter-spacing: -0.02em; margin: 0;
}
.final-sub { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.final-cta .cta-primary { font-size: 18px; padding: 20px 32px; }

/* ----- FOOTER ----- */
.footer {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
  padding: 60px 48px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
}
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col a { text-decoration: none; }
.foot-head { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 8px; }
.foot-small { color: var(--muted); font-size: 12px; margin-top: 12px; }

/* ----- SUCCESS PAGE (Conversation style) ----- */
.success-divider {
  border-top: 16px solid #0a0a0a;
  padding: 48px 48px 16px;
  background: #0a0a0a;
  color: #a0a0a0;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.success-page { background: var(--paper); color: var(--ink); font-family: var(--sans); min-height: 100%; }
.success-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px; border-bottom: 1px solid var(--rule);
}
.success-receipt-id { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.success-main {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px;
  padding: 80px 48px; max-width: 1280px; margin: 0 auto;
  align-items: center;
}
.success-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; background: #34C75920;
  font-family: var(--mono); font-size: 12px; color: #207a3a; margin-bottom: 28px;
}
.success-pill-dot { width: 8px; height: 8px; border-radius: 999px; background: #34C759; }
.success-h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(52px, 6vw, 80px);
  line-height: 1.0; letter-spacing: -0.02em; margin: 0 0 24px;
}
.success-h1 em { font-style: italic; color: var(--blue); }
.success-bubbles { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin-bottom: 32px; min-height: 240px; }
.success-bubble {
  padding: 10px 16px; border-radius: 18px;
  max-width: 85%; font-size: 16px; line-height: 1.4;
  background: var(--paper-2); color: var(--ink);
  border-bottom-left-radius: 6px;
  animation: totFadeUp 0.4s ease-out both;
}
.success-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.success-cta-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 24px; border-radius: 999px;
  background: var(--blue); color: white; text-decoration: none;
  font-size: 15px;
  box-shadow: 0 8px 20px -8px rgba(11,132,254,0.5);
}
.success-cta-secondary {
  padding: 16px 24px; border-radius: 999px;
  background: white; border: 1px solid var(--rule);
  color: var(--ink); font-size: 15px; cursor: pointer;
}
.success-aside {
  background: white; border-radius: 24px; padding: 32px;
  border: 1px solid var(--rule);
  box-shadow: 0 30px 80px -30px rgba(10,10,10,0.15);
}
.success-aside-label {
  font-family: var(--mono); font-size: 11px; color: var(--blue);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 20px;
}
.summary-row {
  display: flex; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px dotted var(--rule);
}
.summary-row .k { font-size: 14px; color: var(--muted); }
.summary-row .v { font-size: 14px; color: var(--ink); }
.summary-row .v.bold { font-weight: 600; }
.summary-row .v.mono { font-family: var(--mono); }
.success-pdf {
  display: block; margin-top: 24px;
  font-family: var(--mono); font-size: 12px; color: var(--blue);
  text-decoration: none;
}

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding: 32px 24px 64px; gap: 32px; }
  .nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .how-section, .demo-section, .uses-section, .why-section, .faq-section { padding: 64px 24px; }
  .steps-row, .use-grid, .why-grid { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr 1fr; padding: 40px 24px; }
  .device-frame { width: 100%; max-width: 380px; height: 600px; }
  .demo-frame { height: 560px; }
  .final-cta { padding: 80px 24px; }
  .success-main { grid-template-columns: 1fr; padding: 48px 24px; gap: 32px; }
  .success-header { padding: 16px 24px; }
}
