/* Quitly — shared brand styles for the marketing site + privacy/support pages. */

:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-2: #eef3f1;
  --ink: #16231f;
  --ink-muted: #4e5f58;
  --ink-faint: #7c8b84;
  --accent: #0f7a6c;
  --accent-2: #2fae6b;
  --accent-soft: #e3f2ed;
  --rule: #dce6e1;
  --shadow: 0 1px 2px rgba(22, 35, 31, 0.04), 0 8px 24px rgba(22, 35, 31, 0.05);
  --shadow-lg: 0 20px 60px rgba(15, 122, 108, 0.18), 0 4px 16px rgba(22, 35, 31, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1512;
    --surface: #121c18;
    --surface-2: #17221d;
    --ink: #ecf3f0;
    --ink-muted: #a7b7b0;
    --ink-faint: #6e7d76;
    --accent: #57d9bc;
    --accent-2: #5bd98a;
    --accent-soft: rgba(87, 217, 188, 0.12);
    --rule: #223029;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
  }
}
:root[data-theme="dark"] {
  --bg: #0d1512; --surface: #121c18; --surface-2: #17221d;
  --ink: #ecf3f0; --ink-muted: #a7b7b0; --ink-faint: #6e7d76;
  --accent: #57d9bc; --accent-2: #5bd98a; --accent-soft: rgba(87, 217, 188, 0.12);
  --rule: #223029;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
}
:root[data-theme="light"] {
  --bg: #f6f8f7; --surface: #ffffff; --surface-2: #eef3f1;
  --ink: #16231f; --ink-muted: #4e5f58; --ink-faint: #7c8b84;
  --accent: #0f7a6c; --accent-2: #2fae6b; --accent-soft: #e3f2ed;
  --rule: #dce6e1;
  --shadow: 0 1px 2px rgba(22, 35, 31, 0.04), 0 8px 24px rgba(22, 35, 31, 0.05);
  --shadow-lg: 0 20px 60px rgba(15, 122, 108, 0.18), 0 4px 16px rgba(22, 35, 31, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.serif {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
}

h1, h2, h3 { font-family: ui-serif, Georgia, "Times New Roman", serif; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- nav ---------- */
.site-header {
  padding: 24px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand svg { width: 28px; height: 28px; flex-shrink: 0; }
.brand span {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 600;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 15px;
}
.nav-links a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover { opacity: 0.88; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn--ghost:hover { background: var(--surface-2); }
.btn--sm { padding: 9px 16px; font-size: 14px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 40px 0 100px;
}
.hero__bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 640px;
  background: radial-gradient(60% 60% at 30% 20%, var(--accent-soft), transparent 70%),
              radial-gradient(50% 50% at 80% 10%, rgba(47, 174, 107, 0.14), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.08;
}
.hero p.lede {
  color: var(--ink-muted);
  font-size: 19px;
  max-width: 46ch;
  margin: 20px 0 32px;
}
.hero__ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ---------- phone frame ---------- */
.phone {
  position: relative;
  width: clamp(120px, 34vw, 220px);
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(160deg, #232d29, #0f1613);
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}
.phone__screen {
  border-radius: 26px;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 1320 / 2868;
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  background: #0f1613;
  border-radius: 14px;
  z-index: 2;
}

.hero__phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
  padding: 20px 0 40px;
}
.hero__phones .phone:nth-child(1) {
  transform: rotate(-6deg) translate(28px, 10px);
  z-index: 1;
}
.hero__phones .phone:nth-child(2) {
  transform: rotate(4deg) translate(-28px, -10px);
  z-index: 2;
  width: clamp(132px, 37vw, 240px);
}

/* ---------- sections ---------- */
.section {
  padding: 88px 0;
}
.section--tight { padding: 56px 0; }
.section-head {
  max-width: 560px;
  margin: 0 0 48px;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 600;
}
.section-head p {
  color: var(--ink-muted);
  font-size: 17px;
  margin: 14px 0 0;
}
.section--alt {
  background: var(--surface-2);
}

/* ---------- feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.feature-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-card__icon svg { width: 20px; height: 20px; }
.feature-card h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--ink-muted);
  font-size: 14.5px;
  margin: 0;
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 44px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-family: ui-serif, Georgia, serif;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.step p {
  color: var(--ink-muted);
  font-size: 14.5px;
  margin: 0;
}

/* ---------- gallery ---------- */
.gallery {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 24px 24px;
  margin: 0 -24px;
  scroll-snap-type: x mandatory;
}
.gallery .phone { scroll-snap-align: start; }
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 999px; }

/* ---------- stat band ---------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-band .stat b {
  display: block;
  font-family: ui-serif, Georgia, serif;
  font-size: 40px;
  color: var(--accent);
  font-weight: 600;
}
.stat-band .stat span {
  color: var(--ink-muted);
  font-size: 14.5px;
}

/* ---------- cta band ---------- */
.cta-band {
  text-align: center;
  padding: 88px 24px;
  background: linear-gradient(165deg, var(--ink) 0%, #0a1613 100%);
  color: #fff;
  border-radius: 28px;
  margin: 0 24px;
}
.cta-band h2 {
  color: #fff;
  font-size: clamp(28px, 3.4vw, 38px);
}
.cta-band p {
  color: rgba(255,255,255,0.7);
  font-size: 17px;
  margin: 14px 0 32px;
}
.cta-band .btn--primary {
  background: #fff;
  color: var(--ink);
}

/* ---------- footer ---------- */
.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--rule);
  margin-top: 40px;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer .brand span { font-size: 16px; }
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}
.footer-links a { color: var(--ink-muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-note {
  color: var(--ink-faint);
  font-size: 13px;
  width: 100%;
  margin-top: 8px;
}

/* ---------- simple content pages (privacy/support) ---------- */
.doc {
  padding: 8px 0 40px;
}
.doc h1 {
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 8px;
}
.doc .updated {
  color: var(--ink-faint);
  font-size: 14px;
  margin: 0 0 40px;
}
.doc .summary {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 48px;
  box-shadow: var(--shadow);
}
.doc .summary p { margin: 0; color: var(--ink-muted); }
.doc .summary strong { color: var(--ink); }
.doc section { margin-bottom: 8px; }
.doc h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 44px 0 12px;
}
.doc section p, .doc section li { color: var(--ink-muted); }
.doc section p { margin: 0 0 14px; }
.doc .rule { border: none; border-top: 1px solid var(--rule); margin: 48px 0; }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 48px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.contact-card p { margin: 0; color: var(--ink-muted); }
.contact-card strong { color: var(--ink); display: block; font-size: 15px; margin-bottom: 2px; }

.faq { display: flex; flex-direction: column; gap: 0; margin-bottom: 8px; }
.faq-item { padding: 22px 0; border-top: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; color: var(--ink); }
.faq-item p { margin: 0; color: var(--ink-muted); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__phones { min-height: 320px; margin-top: 24px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stat-band { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { gap: 16px; }
  .cta-band { margin: 0 16px; padding: 64px 20px; }
}
@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .site-header .container { justify-content: space-between; }
}
