/* Tellbit landing page. Plain CSS, no build step, no external requests. */
:root {
  --paper: #fbf8f3;
  --paper-deep: #f3ede3;
  --ink: #1f1b16;
  --ink-soft: #5d554b;
  --line: #e7dfd2;
  --blue: #1d6aee;
  --blue-deep: #0b3fcb;
  --blue-soft: #e6efff;
  --sun: #f6c56b;
  --sun-soft: #fdf1d8;
  --radius: 22px;
  --maxw: 1080px;
  --heading: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Dark theme: follows the system unless the visitor picked one with the toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #16130f;
    --paper-deep: #1e1a15;
    --ink: #f6f1e8;
    --ink-soft: #b8ada0;
    --line: #2f2a23;
    --blue: #6aa5ff;
    --blue-deep: #4f8df5;
    --blue-soft: #1a2740;
    --sun: #f6c56b;
    --sun-soft: #2c2413;
  }
  :root:not([data-theme="light"]) .eyebrow { color: var(--blue); }
}
:root[data-theme="dark"] {
  --paper: #16130f;
  --paper-deep: #1e1a15;
  --ink: #f6f1e8;
  --ink-soft: #b8ada0;
  --line: #2f2a23;
  --blue: #6aa5ff;
  --blue-deep: #4f8df5;
  --blue-soft: #1a2740;
  --sun: #f6c56b;
  --sun-soft: #2c2413;
}
:root[data-theme="dark"] .eyebrow { color: var(--blue); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--heading); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Theme toggle (shown only when JavaScript is on) */
.theme-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: 8px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink-soft); cursor: pointer; }
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-soft); }
.js .theme-toggle { display: inline-flex; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

/* Header */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: var(--heading); font-weight: 700; font-size: 22px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-header nav { display: flex; align-items: center; gap: 22px; font-size: 16px; }
.header-tools { display: flex; align-items: center; gap: 22px; }
.site-header nav a { color: var(--ink-soft); text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }
@media (max-width: 560px) { .site-header nav a { display: none; } }

/* Hero */
.hero { padding: 40px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 15px; font-weight: 600; color: var(--blue-deep); background: var(--blue-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--blue); }
.lede { margin-top: 22px; font-size: clamp(19px, 2.2vw, 22px); color: var(--ink-soft); max-width: 30em; }
.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 17px var(--body); padding: 15px 26px; border-radius: 999px; text-decoration: none; background: linear-gradient(160deg, #4f9cff, var(--blue-deep)); color: #fff; box-shadow: 0 8px 22px rgba(29, 106, 238, 0.28); }
.btn:hover { transform: translateY(-1px); }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: none; border: 1.5px solid var(--line); }
.fine { margin-top: 14px; font-size: 15px; color: var(--ink-soft); }

/* Phone frames */
.phone {
  position: relative;
  width: min(100%, 300px);
  margin: 0 auto;
  border-radius: 44px;
  padding: 9px;
  background: linear-gradient(160deg, #2b2620, #0f0d0a);
  box-shadow: 0 30px 60px -20px rgba(31, 27, 22, 0.45), 0 12px 24px -12px rgba(31, 27, 22, 0.35);
}
.phone img { width: 100%; height: auto; border-radius: 36px; background: var(--paper-deep); aspect-ratio: 1320 / 2868; object-fit: cover; }
.hero .phone { width: min(100%, 320px); transform: rotate(2deg); }

/* Sections */
section { padding: 80px 0; }
.section-title { text-align: center; max-width: 34em; margin: 0 auto 52px; }
.section-title h2 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 800; }
.section-title p { margin-top: 16px; color: var(--ink-soft); font-size: 20px; }
.tinted { background: var(--paper-deep); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sun-soft); color: var(--ink); font: 800 18px var(--heading); margin-bottom: 18px; }
.step h3 { font-size: 24px; margin-bottom: 10px; }
.step p { color: var(--ink-soft); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Moments */
.moments { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 820px; margin: 0 auto; }
.chip { font: 600 18px var(--heading); padding: 12px 20px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.chip:nth-child(3n+1) { background: var(--sun-soft); border-color: transparent; }
.chip:nth-child(3n+2) { background: var(--blue-soft); border-color: transparent; }

/* Showcase */
.showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; align-items: start; }
.showcase figure { margin: 0; text-align: center; }
.showcase figcaption { margin-top: 24px; }
.showcase figcaption strong { display: block; font: 700 21px var(--heading); margin-bottom: 4px; }
.showcase figcaption span { color: var(--ink-soft); font-size: 17px; }
.showcase figure:nth-child(2) { margin-top: 40px; }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; gap: 56px; } .showcase figure:nth-child(2) { margin-top: 0; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--paper-deep); border-radius: var(--radius); padding: 28px; }
.feature h3 { font-size: 21px; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 17px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Privacy band */
.privacy { text-align: center; }
.privacy .band { background: linear-gradient(160deg, #3f8bff, var(--blue-deep)); color: #fff; border-radius: 32px; padding: 64px 28px; }
.privacy h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.privacy p { margin: 18px auto 0; max-width: 34em; font-size: 20px; opacity: 0.94; }

/* Closing */
.closing { text-align: center; }
.closing h2 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 800; }
.closing p { margin: 16px auto 0; color: var(--ink-soft); font-size: 20px; max-width: 28em; }
.closing .cta-row { justify-content: center; }
.closing img.icon { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 28px; box-shadow: 0 14px 30px -10px rgba(11, 63, 203, 0.5); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 48px; font-size: 16px; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }
.site-footer .links { display: flex; gap: 22px; }

/* Text pages */
.doc { max-width: 720px; margin: 0 auto; padding: 40px 24px 96px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; margin-bottom: 8px; }
.doc .updated { color: var(--ink-soft); margin-bottom: 40px; }
.doc h2 { font-size: 26px; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 22px; margin: 10px 0; }
.doc li { margin: 6px 0; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero .phone { transform: none; }
  section { padding: 64px 0; }
}

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