/* loopyloop marketing site — paper / ink / forest. Same palette + type as the app. */

:root {
  --paper: #F5F2EC;
  --paper-2: #ECE8DF;
  --paper-3: #E0DBD0;
  --ink: #14130F;
  --ink-2: #2A2823;
  --ink-3: #4B4842;
  --ink-4: #767169;
  --forest: #0F4F3F;
  --forest-2: #0B3A2E;
  --forest-soft: #DDE9E3;
  --forest-ink: #082822;
  --warning: #B8721B;
  --sans: 'Inter Tight', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

* { 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;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ── decorative dots scattered around the page ─────────────────────── */
.decor {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}
.decor-1 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(15, 79, 63, 0.08) 0%, transparent 60%);
  top: 80px; right: -120px;
}
.decor-2 {
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(184, 114, 27, 0.10) 0%, transparent 60%);
  top: 720px; left: -80px;
}
.decor-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(15, 79, 63, 0.06) 0%, transparent 60%);
  bottom: 600px; right: -100px;
}
.decor-squiggle {
  position: absolute;
  width: 200px; height: 24px;
  top: 1100px; left: 60px;
  opacity: 0.3;
  z-index: 0;
}

/* ── nav ───────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}
.brand { display: flex; align-items: center; gap: 8px; }
.wordmark {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.6px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--ink-3);
  transition: color 120ms ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--forest);
  color: var(--paper) !important;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
}

/* ── hero ──────────────────────────────────────────────────────────── */
.hero {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 28px 96px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
}
.hero-copy { max-width: 600px; }

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 18px;
}
.eyebrow.center { display: block; text-align: center; }
.eyebrow.subtle { color: rgba(245, 242, 236, 0.55); }

h1 {
  font-size: clamp(56px, 9vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
  font-weight: 700;
}
.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 580px;
  margin: 0;
}
.lede.center { text-align: center; margin-left: auto; margin-right: auto; }

.hero-bullets {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 36px 0 32px;
  max-width: 480px;
}
.bullet {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  color: var(--ink-2);
}
.bullet-icon {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--forest-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid var(--ink);
  transition: transform 120ms ease, background 120ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--paper-2); }

.trial-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.6px;
  color: var(--ink-4);
  margin-top: 18px;
}
.trial-meta.center { text-align: center; }

/* ── sections ──────────────────────────────────────────────────────── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 28px;
  position: relative;
  z-index: 1;
}
.section.dark {
  background: var(--ink);
  color: var(--paper);
  max-width: none;
  padding: 96px 28px;
}
.section.dark .h2.inverse { color: var(--paper); }
.h2 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 16px 0 0;
  max-width: 800px;
}
.h2.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ── ticker (between hero & features) ──────────────────────────────── */
.ticker {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 20px 28px;
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.ticker span:nth-child(odd) { color: var(--paper); }
.ticker span:nth-child(even) { color: rgba(245,242,236,0.4); }

/* ── feature grid ──────────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 64px;
}
.feature {
  background: white;
  border: 1px solid var(--paper-3);
  padding: 28px;
  position: relative;
  transition: transform 200ms ease;
}
.feature:hover { transform: translateY(-3px); }
.feature-icon {
  width: 52px; height: 52px;
  background: var(--forest-soft);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.8px;
  color: var(--ink-4);
}
.feature h3 {
  font-size: 22px;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
  font-weight: 700;
}
.feature p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

/* ── screenshots / phone mockups ───────────────────────────────────── */
.screens { padding-bottom: 120px; }
.phones-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 64px;
  overflow-x: auto;
  padding: 12px 4px 36px;
  scroll-snap-type: x mandatory;
}
.phones-row::-webkit-scrollbar { height: 8px; }
.phones-row::-webkit-scrollbar-thumb { background: var(--paper-3); border-radius: 999px; }

.phone {
  flex: 0 0 290px;
  background: var(--ink);
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 30px 60px -20px rgba(20,19,15,0.25), 0 0 0 1px var(--ink);
  scroll-snap-align: center;
}
.hero-phone {
  margin: 0 auto;
  align-self: stretch;
  transform: rotate(2deg);
  flex: 0 0 320px;
}
.phone-notch {
  width: 96px; height: 22px;
  background: var(--ink);
  border-radius: 0 0 14px 14px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.phone-screen {
  background: var(--paper);
  border-radius: 28px;
  margin-top: -10px;
  padding: 32px 14px 18px;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 11px;
}
.status-bar {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.header-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.phone-wordmark {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.4px;
}
.loop-fab {
  margin-left: auto;
  width: 24px; height: 24px;
  border-radius: 999px;
  background: var(--forest-soft);
  border: 1px solid var(--forest);
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
}

.conf-card {
  background: var(--ink);
  color: var(--paper);
  padding: 14px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.conf-eyebrow {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(245,242,236,0.55);
}
.conf-title { font-weight: 700; font-size: 18px; letter-spacing: -0.4px; }
.conf-meta {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.6px;
  color: rgba(245,242,236,0.7);
}
.conf-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}
.conf-stats > div { display: flex; flex-direction: column; align-items: flex-end; }
.conf-stats strong { font-size: 18px; font-weight: 700; letter-spacing: -0.5px; }
.conf-stats span {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(245,242,236,0.5);
  margin-top: 2px;
}

.capture-row { display: flex; gap: 8px; }
.capture-tile {
  flex: 1;
  background: white;
  border: 1px solid var(--paper-3);
  padding: 14px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.capture-tile.mic { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.capture-icon { font-size: 20px; }
.capture-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
}
.sec-meta {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--forest);
  letter-spacing: 0.6px;
}

.due-row {
  background: white;
  border: 1px solid var(--paper-3);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -8px; border: 2px solid white; }
.avatar-stack .avatar:first-child { margin-left: 0; }

.avatar {
  width: 26px; height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  color: var(--ink);
  text-transform: lowercase;
}
.avatar.a1 { background: #F4C7B5; }
.avatar.a2 { background: #B5D5C5; }
.avatar.a3 { background: #C9B7E0; }
.avatar.a4 { background: #F2D89A; }
.avatar.a5 { background: #B8D8E8; }
.avatar.a6 { background: #F2A8B8; }

.due-text { display: flex; flex-direction: column; gap: 2px; }
.due-text strong { font-size: 12px; font-weight: 600; }
.due-text span {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-4);
  letter-spacing: 0.4px;
}

/* ── phone screenshots — modal head, identity card, etc. ───────────── */
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-3);
}
.modal-title { color: var(--ink); }
.ico-row { font-size: 12px; letter-spacing: 4px; }
.id-card {
  display: flex;
  gap: 10px;
  padding: 14px;
  background: white;
  border: 1px solid var(--paper-3);
  align-items: center;
}
.big-avatar {
  width: 46px; height: 46px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}
.big-name { font-weight: 700; font-size: 16px; letter-spacing: -0.3px; }
.big-meta {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.6px;
  color: var(--ink-4);
  margin-top: 2px;
}
.stamp-row { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.stamp {
  background: var(--paper-3);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.4px;
  padding: 2px 6px;
  border-radius: 3px;
}
.stamp.forest { background: var(--forest-soft); color: var(--forest); }
.stamp.small { font-size: 7px; padding: 1px 5px; }

.play-pill {
  background: var(--forest);
  color: var(--paper);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.4px;
  align-self: flex-start;
}
.play-pill.mini { padding: 4px 10px; font-size: 9px; margin-top: 6px; }
.play-tri {
  display: inline-block;
  width: 0; height: 0;
  border-left: 7px solid var(--paper);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  vertical-align: middle;
  margin-right: 2px;
}
.play-tri.small { border-left-width: 5px; border-top-width: 4px; border-bottom-width: 4px; }

.ai-card {
  background: white;
  border: 1px solid var(--paper-3);
  padding: 12px;
}
.card-eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-4);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ai-card p { margin: 0; font-size: 11px; color: var(--ink-2); line-height: 1.5; }

.todo-eyebrow {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-4);
}
.todo-h { font-weight: 700; font-size: 22px; letter-spacing: -0.5px; }
.tab-row { display: flex; gap: 6px; }
.tab {
  font-family: var(--mono);
  font-size: 10px;
  padding: 4px 10px;
  border: 1px solid var(--paper-3);
  border-radius: 999px;
  color: var(--ink-3);
}
.tab.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.todo-card {
  background: white;
  border: 1px solid var(--paper-3);
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.check {
  width: 18px; height: 18px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.check.on { background: var(--forest); border-color: var(--forest); color: var(--paper); font-size: 11px; }
.todo-text { font-size: 12px; font-weight: 500; }
.todo-text.done { text-decoration: line-through; opacity: 0.6; }
.todo-meta {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-4);
  letter-spacing: 0.4px;
  margin-top: 4px;
}

.thread {
  background: white;
  border: 1px solid var(--paper-3);
  padding: 10px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  position: relative;
}
.thread > div:nth-child(2) { flex: 1; }
.thread-name {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 12px;
}
.thread-time {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-4);
  letter-spacing: 0.4px;
}
.thread-msg {
  font-size: 11px;
  color: var(--ink-2);
  margin-top: 4px;
  line-height: 1.4;
}
.unread-dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: #15715A;
  align-self: center;
  flex-shrink: 0;
}

/* timeline */
.tline { display: flex; flex-direction: column; gap: 10px; }
.tline-row { display: flex; gap: 10px; align-items: flex-start; }
.dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  margin-top: 6px;
  flex-shrink: 0;
}
.dot.accent { background: var(--forest); }
.dot.ink { background: var(--ink); }
.tline-card {
  flex: 1;
  background: white;
  border: 1px solid var(--paper-3);
  padding: 8px 10px;
}
.tline-kind {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--forest);
}
.tline-body { font-size: 11px; color: var(--ink-2); margin-top: 4px; line-height: 1.4; }
.tline-gap {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-4);
  padding-left: 22px;
}

/* ── about ─────────────────────────────────────────────────────────── */
.about-cols {
  max-width: 1100px;
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 800px) {
  .about-cols { grid-template-columns: 1fr; gap: 32px; }
}
.about-col p {
  color: var(--paper);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 18px;
}
.about-col p strong { color: var(--paper); font-weight: 600; }
.about-col em { color: rgba(245, 242, 236, 0.75); }
.about-card {
  background: rgba(245, 242, 236, 0.06);
  border: 1px solid rgba(245, 242, 236, 0.14);
  padding: 28px;
}
.about-card ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-card li { display: flex; flex-direction: column; }
.about-card li strong {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--paper);
  line-height: 1;
}
.about-card li span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.6);
  margin-top: 6px;
}

.founders-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.founder {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(245, 242, 236, 0.06);
  border: 1px solid rgba(245, 242, 236, 0.14);
  border-radius: 999px;
}
.founder-avatar {
  width: 42px; height: 42px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}
.founder-avatar.matt { background: var(--warning); }
.founder strong { color: var(--paper); display: block; font-size: 14px; }
.founder span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.6px;
  color: rgba(245, 242, 236, 0.6);
}

/* ── quotes ────────────────────────────────────────────────────────── */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.quote {
  margin: 0;
  background: white;
  border: 1px solid var(--paper-3);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.quote blockquote {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  font-style: italic;
  position: relative;
  padding-top: 16px;
}
.quote blockquote::before {
  content: "“";
  position: absolute;
  left: -8px;
  top: -22px;
  font-size: 64px;
  line-height: 1;
  color: var(--forest);
  font-style: normal;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--paper-3);
  padding-top: 14px;
}
.q-avatar {
  width: 38px; height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.q-avatar.a1 { background: #F4C7B5; }
.q-avatar.a2 { background: #B5D5C5; }
.q-avatar.a3 { background: #C9B7E0; }
.q-avatar.a4 { background: #F2D89A; }
.q-avatar.a5 { background: #B8D8E8; }
.q-avatar.a6 { background: #F2A8B8; }
.quote figcaption strong { font-weight: 600; font-size: 14px; display: block; }
.quote figcaption span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--ink-4);
}

/* ── download ──────────────────────────────────────────────────────── */
.download { text-align: center; }
.store-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 40px 0 22px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 26px;
  border-radius: 12px;
  min-width: 220px;
  transition: transform 120ms ease;
}
.store-btn:hover { transform: translateY(-2px); }
.store-icon { display: inline-flex; align-items: center; color: var(--paper); }
.store-icon svg { display: block; }
.store-stack { display: inline-flex; flex-direction: column; align-items: flex-start; }
.store-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.7);
  margin-bottom: 4px;
}
.store-name { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }

/* ── footer ────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--paper-3);
  padding: 32px 28px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.6px;
  color: var(--ink-4);
}
.footer-meta a {
  color: var(--forest);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .h2 { font-size: 36px; }
  .section, .section.dark { padding: 72px 24px; }
  .phones-row { gap: 16px; }
  .phone { flex: 0 0 240px; }
  .phone-screen { min-height: 460px; padding: 24px 10px 14px; }
}
