/* Clypello — shared stylesheet (macOS / Apple-inspired) */

:root {
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --surface: #f5f5f7;
  --surface-2: #ececef;
  --border: #d2d2d7;
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --radius: 18px;
  --maxw: 980px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-elevated: #1c1c1e;
    --surface: #1c1c1e;
    --surface-2: #2c2c2e;
    --border: #38383a;
    --text: #f5f5f7;
    --secondary: #98989d;
    --accent: #2997ff;
    --accent-hover: #4aa8ff;
    --nav-bg: rgba(22, 22, 23, 0.72);
    --shadow: 0 4px 28px rgba(0, 0, 0, 0.5);
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* ---------------------------------------------------------------- Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
}
.nav-brand:hover { text-decoration: none; }
.nav-logo {
  width: 24px; height: 24px;
  border-radius: 6px;
  flex: none;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--secondary);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--text); }

/* Language selector */
.lang-select {
  font-family: inherit;
  font-size: 13px;
  color: var(--secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px 10px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.lang-select:hover { color: var(--text); }

/* ---------------------------------------------------------------- Announcement bar */
.announce {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  text-align: center;
}
.announce-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  padding: 3px 10px;
}
.announce-text { font-weight: 500; }

/* ---------------------------------------------------------------- Hero */
.hero {
  text-align: center;
  padding: 88px 24px 72px;
}
.hero-icon {
  width: 104px; height: 104px;
  border-radius: 23px;
  margin: 0 auto 26px;
  display: block;
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin-bottom: 18px;
}
.hero .tagline {
  font-size: clamp(19px, 3vw, 26px);
  font-weight: 400;
  color: var(--secondary);
  max-width: 640px;
  margin: 0 auto 34px;
  letter-spacing: -0.01em;
}
.hero .meta {
  font-size: 13px;
  color: var(--secondary);
  margin-top: 18px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 26px;
  border-radius: 980px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--surface); }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- Sections */
section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-head p {
  font-size: 18px;
  color: var(--secondary);
  max-width: 560px;
  margin: 0 auto;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 14px;
  display: block;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 7px;
}
.feature-card p { font-size: 15px; color: var(--secondary); }
.kbd {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.86em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--text);
  white-space: nowrap;
}

/* Banner / CTA */
.banner {
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
}
.banner h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.banner p { font-size: 18px; color: var(--secondary); margin-bottom: 28px; }

/* ---------------------------------------------------------------- Doc / help & privacy pages */
.doc { padding: 56px 0 80px; }
.doc-header { margin-bottom: 12px; }
.doc-header .eyebrow { text-align: left; }
.doc-header h1 {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 10px;
}
.doc-header .meta { font-size: 14px; color: var(--secondary); }

.doc h2 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 44px 0 12px;
  scroll-margin-top: 70px;
}
.doc h3 { font-size: 17px; font-weight: 600; margin: 22px 0 6px; }
.doc p { font-size: 16px; color: var(--secondary); margin-bottom: 14px; }
.doc p strong, .doc li strong { color: var(--text); font-weight: 600; }
.doc ul, .doc ol { margin: 8px 0 16px 22px; color: var(--secondary); }
.doc li { font-size: 16px; margin-bottom: 8px; }
.doc hr { border: none; border-top: 1px solid var(--border); margin: 44px 0 8px; }

/* Step cards for the help guide */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px 22px 64px;
  margin-bottom: 16px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px; top: 22px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; color: var(--text); }
.step p { margin: 0; font-size: 15px; }

/* Table of contents */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 36px;
}
.toc h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--secondary); margin: 0 0 12px; }
.toc ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.toc li { margin-bottom: 8px; font-size: 15px; }

/* Highlight / callout */
.highlight {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 28px;
  font-size: 16px;
  color: var(--secondary);
}
.highlight strong { color: var(--text); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 20px;
  background: #d1fae5;
  color: #065f46;
  margin-bottom: 10px;
}
@media (prefers-color-scheme: dark) {
  .badge { background: #052e16; color: #4ade80; }
}

/* ---------------------------------------------------------------- Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-size: 13px;
  color: var(--secondary);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--secondary); }
.footer-links a:hover { color: var(--text); }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
  .toc ul { columns: 1; }
  .hero { padding: 60px 24px 48px; }
}
