/* Circal · marketing site
   Brand tokens mirror the app:
   accent #E05C38, accentBg #fff2ee, bg #fafafa, surface #fff
   text #16161a / #7a7a90 / #c0c0cc
   DM Sans + DM Mono */

:root {
  --accent: #E05C38;
  --accent-bg: #fff2ee;
  --accent-dark: #c44d2e;
  --bg: #fafafa;
  --surface: #ffffff;
  --border: #ebebef;
  --txt1: #16161a;
  --txt2: #7a7a90;
  --txt3: #c0c0cc;
  --success: #10b981;
  --content-width: 1080px;
  --content-narrow: 760px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--txt1);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; color: var(--txt1);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px;
  background: url('logo.png') center/contain no-repeat;
  flex-shrink: 0;
}
.nav { display: flex; gap: 28px; align-items: center; }
.nav a:not(.btn) {
  color: var(--txt2); font-size: 14px; font-weight: 500;
}
.nav a:not(.btn):hover { color: var(--txt1); text-decoration: none; }
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border-radius: 10px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; }
.btn-secondary {
  background: var(--surface); color: var(--txt1);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--accent-bg); text-decoration: none; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }

/* ── Layout helpers ──────────────────────────────────────────── */
.section { padding: 88px 24px; }
.section-tight { padding: 56px 24px; }
.wrap { max-width: var(--content-width); margin: 0 auto; }
.wrap-narrow { max-width: var(--content-narrow); margin: 0 auto; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  padding: 88px 24px 64px;
  text-align: center;
}
.hero .eyebrow {
  display: inline-block;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 auto 18px;
  max-width: 720px;
  text-wrap: balance;
}
.hero .lede {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--txt2);
  max-width: 580px; margin: 0 auto 32px;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ── Hero visual: real screenshot ──────────────────────────── */
.hero-visual {
  margin: 64px auto 0;
  display: flex; justify-content: center;
}
.hero-shot {
  max-width: 320px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.18));
}

/* ── Screenshots gallery ──────────────────────────────────── */
.screenshots {
  padding: 88px 24px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--accent-bg) 100%);
  overflow: hidden;
}
.screenshots .wrap-narrow {
  text-align: center;
  margin-bottom: 56px;
}
.screenshots-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}
.screenshot {
  flex: 1 1 280px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.screenshot img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.14));
  transition: transform 0.3s ease;
}
.screenshot:hover img {
  transform: translateY(-6px);
}
.screenshot-caption {
  text-align: center;
  max-width: 240px;
}
.screenshot-caption h3 {
  font-size: 16px; font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.screenshot-caption p {
  font-size: 13.5px; color: var(--txt2);
  line-height: 1.5;
  text-wrap: pretty;
}
@media (min-width: 900px) {
  .screenshot:nth-child(2) {
    transform: translateY(-24px);
  }
}

/* ── Features ────────────────────────────────────────────────── */
.features {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.feature {
  padding: 4px 0;
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-bg);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature h3 {
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.feature p {
  font-size: 14.5px; color: var(--txt2); line-height: 1.55;
  text-wrap: pretty;
}

/* ── Section header ──────────────────────────────────────────── */
.section-eyebrow {
  font-size: 12px; font-weight: 700;
  color: var(--accent); letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.1;
  margin-bottom: 14px;
  text-wrap: balance;
}
.section-lede {
  font-size: 17px; color: var(--txt2);
  max-width: 560px; text-wrap: pretty;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  background: var(--surface);
}
.site-footer .wrap {
  display: flex; gap: 32px;
  justify-content: space-between; flex-wrap: wrap;
}
.footer-brand p {
  font-size: 13px; color: var(--txt2); margin-top: 10px;
  max-width: 280px;
}
.footer-links {
  display: flex; gap: 48px; flex-wrap: wrap;
}
.footer-col h4 {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--txt2); margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--txt1); font-size: 14px; font-weight: 500; }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 36px; padding-top: 20px;
  font-size: 12px; color: var(--txt3);
  text-align: center;
}

/* ── Document pages (privacy, terms, support) ─────────────────── */
.doc {
  padding: 56px 24px 96px;
}
.doc-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.doc-header h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.doc-header .meta {
  font-size: 13px; color: var(--txt2);
  font-family: 'DM Mono', monospace;
}
.doc-body { font-size: 16px; line-height: 1.7; color: var(--txt1); }
.doc-body h2 {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.01em;
  margin: 36px 0 10px;
}
.doc-body h3 {
  font-size: 17px; font-weight: 600;
  margin: 24px 0 6px;
}
.doc-body p { margin: 0 0 14px; color: var(--txt1); text-wrap: pretty; }
.doc-body ul, .doc-body ol { margin: 0 0 14px 24px; }
.doc-body li { margin-bottom: 6px; }
.doc-body strong { font-weight: 600; }

/* ── Contact card (support page) ─────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.contact-card .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-bg);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.contact-card h3 {
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.contact-card p { font-size: 14px; color: var(--txt2); margin-bottom: 12px; }
.contact-card .value {
  font-family: 'DM Mono', monospace; font-size: 14px;
  color: var(--accent); font-weight: 500;
  word-break: break-all;
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-size: 16px; font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 6px;
}
.faq-a { font-size: 15px; color: var(--txt2); line-height: 1.65; }
