/* ============================================================================
   OneCircle — Flat Design System (light mode, bold poster style)
   Single source of truth for the landing site. Zero shadows, zero artificial
   depth: hierarchy comes from scale, solid color blocks, and typography.
   ========================================================================== */

:root {
  /* Color */
  --bg:        #FFFFFF;
  --fg:        #111827; /* gray-900 */
  --primary:   #3B82F6; /* blue-500  */
  --primary-600: #2563EB;
  --secondary: #10B981; /* emerald-500 */
  --secondary-600: #059669;
  --accent:    #F59E0B; /* amber-500 */
  --accent-600: #D97706;
  --muted:     #F3F4F6; /* gray-100 */
  --border:    #E5E7EB; /* gray-200 */
  --gray-200:  #E5E7EB;
  --gray-500:  #6B7280;
  --blue-50:   #EFF6FF;
  --emerald-50:#ECFDF5;
  --amber-50:  #FFFBEB;

  /* Radius */
  --r-md: 6px;
  --r-lg: 8px;

  /* Type */
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 80rem; /* max-w-7xl */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { position: relative; padding: 88px 0; overflow: hidden; }
@media (max-width: 640px) { .section { padding: 60px 0; } }

/* Solid color-block section variants (sharp transitions, no gradients) */
.section--muted   { background: var(--muted); }
.section--blue    { background: var(--primary); color: #fff; }
.section--emerald { background: var(--secondary); color: #fff; }
.section--amber   { background: var(--accent); color: var(--fg); }
.section--dark    { background: var(--fg); color: #fff; }

/* ── Typography ───────────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
}
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); font-weight: 800; }
.h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
.h3 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); font-weight: 700; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.35rem); line-height: 1.5; font-weight: 400; }
.muted-text { color: var(--gray-500); }
.on-color-sub { opacity: 0.92; }

/* ── Buttons (no shadow; feedback via color + scale) ──────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px; border-radius: var(--r-md);
  font-family: var(--font); font-size: 1.05rem; font-weight: 600; cursor: pointer;
  border: 0; transition: all .2s ease; white-space: nowrap;
}
.btn-lg { height: 64px; padding: 0 34px; font-size: 1.1rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); transform: scale(1.05); }
.btn-secondary { background: var(--muted); color: var(--fg); }
.btn-secondary:hover { background: var(--gray-200); transform: scale(1.05); }
.btn-outline { background: transparent; border: 4px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: scale(1.05); }
.btn-on-blue { background: #fff; color: var(--primary); }
.btn-on-blue:hover { background: var(--fg); color: #fff; transform: scale(1.05); }
.btn[disabled], .btn.is-disabled { cursor: default; opacity: 1; }

/* ── Tags / badges (pill allowed here) ────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 0.9rem;
}
.tag--blue  { background: var(--blue-50); color: var(--primary-600); }
.tag--amber { background: var(--amber-50); color: var(--accent-600); }
.tag--solid { background: var(--fg); color: #fff; }

/* ── Cards (flat color blocks, no shadow/border) ──────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--muted); border-radius: var(--r-lg); padding: 32px;
  transition: all .2s ease;
}
.card--blue    { background: var(--blue-50); }
.card--emerald { background: var(--emerald-50); }
.card--amber   { background: var(--amber-50); }
.card--white   { background: #fff; }
.card.is-interactive { cursor: pointer; }
.card.is-interactive:hover { transform: scale(1.02); }
.card--blue.is-interactive:hover    { background: #DBEAFE; }
.card--emerald.is-interactive:hover { background: #D1FAE5; }
.card--amber.is-interactive:hover   { background: #FEF3C7; }
.card .card-title { font-weight: 700; font-size: 1.25rem; margin: 18px 0 8px; }
.card .card-body { color: var(--gray-500); }
.section--dark .card { background: rgba(255,255,255,0.06); }
.section--dark .card .card-body { color: rgba(255,255,255,0.72); }

/* ── Icon in a solid circle ───────────────────────────────────────────────── */
.icon-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 999px; transition: transform .2s ease;
}
.group:hover .icon-circle, .is-interactive:hover .icon-circle { transform: scale(1.1); }
.icon-circle--blue    { background: var(--primary); color: #fff; }
.icon-circle--emerald { background: var(--secondary); color: #fff; }
.icon-circle--amber   { background: var(--accent); color: #fff; }
.icon-circle--onwhite { background: #fff; color: var(--primary); }
.icon-circle svg { width: 26px; height: 26px; stroke-width: 2.25; }

/* ── Decorative geometric shapes (flat, low opacity; no depth) ────────────── */
.deco { position: absolute; pointer-events: none; z-index: 0; }
.deco-circle { border-radius: 999px; }
.deco-square { border-radius: var(--r-lg); }
.section > .container { position: relative; z-index: 1; }

/* ── Inputs ───────────────────────────────────────────────────────────────── */
.input {
  width: 100%; height: 56px; padding: 0 18px; border-radius: var(--r-md);
  background: var(--muted); border: 2px solid transparent; color: var(--fg);
  font-family: var(--font); font-size: 1rem;
}
.input:focus { outline: none; background: #fff; border-color: var(--primary); }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 2px solid var(--muted); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand .brand-mark {
  width: 38px; height: 38px; border-radius: 999px; background: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.brand .brand-mark img { width: 26px; height: 26px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--gray-500); transition: color .2s ease; }
.nav-links a:hover { color: var(--fg); }
@media (max-width: 600px) { .nav-links a.hide-sm { display: none; } }

/* ── Document layout (privacy / terms / support / delete) ─────────────────── */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.doc .eyebrow { color: var(--primary-600); margin-bottom: 14px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 10px; }
.doc .updated { color: var(--gray-500); margin-bottom: 40px; font-size: 0.95rem; }
.doc h2 { font-size: 1.5rem; font-weight: 700; margin: 40px 0 12px; }
.doc h3 { font-size: 1.15rem; font-weight: 700; margin: 26px 0 8px; }
.doc p, .doc li { color: #374151; font-size: 1.02rem; }
.doc p { margin-bottom: 14px; }
.doc ul { margin: 0 0 16px 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--primary-600); font-weight: 600; }
.doc a:hover { text-decoration: underline; }
.doc .callout { background: var(--blue-50); border-radius: var(--r-lg); padding: 20px 24px; margin: 20px 0; }
.doc .steps { counter-reset: step; list-style: none; margin-left: 0; }
.doc .steps li { position: relative; padding-left: 48px; margin-bottom: 16px; }
.doc .steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 999px;
  background: var(--primary); color: #fff; font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}

/* ── FAQ (thick border-2 dividers per spec) ───────────────────────────────── */
.faq-item { border-top: 2px solid var(--border); padding: 24px 0; }
.faq-item:last-child { border-bottom: 2px solid var(--border); }
.faq-item .q { font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.faq-item .a { color: var(--gray-500); }

/* ── Footer (dark block) ──────────────────────────────────────────────────── */
.footer { background: var(--fg); color: #fff; padding: 56px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.footer .brand { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: rgba(255,255,255,0.7); font-weight: 500; font-size: 0.95rem; transition: color .2s ease; }
.footer-links a:hover { color: #fff; }
.footer .copy { color: rgba(255,255,255,0.5); font-size: 0.9rem; }

/* ── Helpers ──────────────────────────────────────────────────────────────── */
.center { text-align: center; }
.stack-sm > * + * { margin-top: 10px; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row.center { justify-content: center; }

/* ── Mobile alignment fixes ───────────────────────────────────────────────── */
html, body { max-width: 100%; }
@media (max-width: 600px) {
  .nav-inner { height: 60px; }
  .brand { font-size: 1.1rem; gap: 9px; }
  .brand .brand-mark { width: 32px; height: 32px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.9rem; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .card { padding: 24px; }
  /* Footer: space-between goes lopsided when it wraps — stack and left-align. */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  /* Keep centered sections’ inner copy from touching the edges. */
  .hero-copy, .section.center .container, .container.center { padding-left: 20px; padding-right: 20px; }
  /* Disabled "coming soon" button reads cleaner full-width on a phone. */
  .row.center .btn-lg { width: 100%; }
  /* Doc pages: align the article left edge with the nav on mobile. */
  .doc { padding-left: 20px; padding-right: 20px; }
}

/* ── Accessibility & motion ───────────────────────────────────────────────── */
a:focus-visible, .btn:focus-visible, .input:focus-visible {
  outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--primary);
  border-radius: var(--r-md);
}
.section--blue a:focus-visible, .section--dark a:focus-visible { box-shadow: 0 0 0 3px var(--fg), 0 0 0 6px #fff; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .btn:hover, .card.is-interactive:hover, .icon-circle { transform: none !important; }
}
