/* Ringlist — shared theme */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Accent — deep indigo (default) */
  --accent: oklch(0.44 0.17 270);
  --accent-hover: oklch(0.40 0.18 270);
  --accent-soft: oklch(0.96 0.03 270);
  --accent-text: oklch(0.36 0.17 270);
  --accent-contrast: #ffffff;

  /* Neutrals — warm off-white / slate */
  --bg: oklch(0.992 0.003 85);
  --bg-alt: oklch(0.975 0.005 85);
  --surface: #ffffff;
  --border: oklch(0.92 0.004 85);
  --border-strong: oklch(0.86 0.005 85);

  --text: oklch(0.22 0.01 270);
  --text-muted: oklch(0.48 0.01 270);
  --text-subtle: oklch(0.62 0.008 270);

  /* Status colors (used in dashboard) */
  --status-reached: oklch(0.58 0.14 155);
  --status-reached-soft: oklch(0.95 0.04 155);
  --status-callback: oklch(0.62 0.14 70);
  --status-callback-soft: oklch(0.96 0.05 80);
  --status-voicemail: oklch(0.58 0.13 260);
  --status-voicemail-soft: oklch(0.96 0.03 260);
  --status-calling: oklch(0.58 0.14 220);
  --status-calling-soft: oklch(0.96 0.03 220);
  --status-failed: oklch(0.58 0.14 25);
  --status-failed-soft: oklch(0.96 0.04 25);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-sm: 0 1px 2px oklch(0.22 0.01 270 / 0.05);
  --shadow: 0 1px 3px oklch(0.22 0.01 270 / 0.06), 0 4px 14px oklch(0.22 0.01 270 / 0.04);
  --shadow-lg: 0 4px 12px oklch(0.22 0.01 270 / 0.06), 0 24px 48px oklch(0.22 0.01 270 / 0.08);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Geist', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

/* Coral accent (Tweak) */
[data-accent="coral"] {
  --accent: oklch(0.66 0.17 35);
  --accent-hover: oklch(0.60 0.18 35);
  --accent-soft: oklch(0.96 0.03 35);
  --accent-text: oklch(0.48 0.17 35);
}

/* Dark mode (Tweak) */
[data-theme="dark"] {
  --bg: oklch(0.16 0.01 270);
  --bg-alt: oklch(0.19 0.012 270);
  --surface: oklch(0.21 0.012 270);
  --border: oklch(0.27 0.012 270);
  --border-strong: oklch(0.33 0.014 270);

  --text: oklch(0.96 0.004 270);
  --text-muted: oklch(0.72 0.008 270);
  --text-subtle: oklch(0.58 0.008 270);

  --accent: oklch(0.72 0.15 270);
  --accent-hover: oklch(0.78 0.15 270);
  --accent-soft: oklch(0.28 0.08 270);
  --accent-text: oklch(0.82 0.13 270);

  --status-reached-soft: oklch(0.30 0.07 155);
  --status-callback-soft: oklch(0.30 0.08 70);
  --status-voicemail-soft: oklch(0.30 0.07 260);
  --status-calling-soft: oklch(0.30 0.07 220);
  --status-failed-soft: oklch(0.30 0.07 25);

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
  --shadow: 0 1px 3px rgb(0 0 0 / 0.3), 0 4px 14px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 4px 12px rgb(0 0 0 / 0.4), 0 24px 48px rgb(0 0 0 / 0.5);
}

[data-theme="dark"][data-accent="coral"] {
  --accent: oklch(0.74 0.15 35);
  --accent-hover: oklch(0.80 0.15 35);
  --accent-soft: oklch(0.32 0.09 35);
  --accent-text: oklch(0.82 0.13 35);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); }
p { margin: 0; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.mono { font-family: var(--font-mono); font-feature-settings: "ss01"; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.15s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--text-muted); }
.btn-subtle {
  background: transparent;
  color: var(--text-muted);
}
.btn-subtle:hover { color: var(--text); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: var(--radius); }

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo-mark {
  width: 22px;
  height: 22px;
  flex: none;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  margin-top: 120px;
  color: var(--text-muted);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}
.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: 0;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Utility */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  padding: 6px 12px;
  background: var(--accent-soft);
  border-radius: 100px;
  border: 1px solid color-mix(in oklch, var(--accent) 18%, transparent);
}

.section {
  padding: 96px 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Tweaks panel */
.tweaks-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  gap: 14px;
  min-width: 240px;
  font-size: 13px;
}
.tweaks-panel.active { display: flex; }
.tweaks-panel h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0;
}
.tweak-row { display: flex; flex-direction: column; gap: 8px; }
.tweak-row label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.tweak-segmented {
  display: flex;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.tweak-segmented button {
  flex: 1;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.15s var(--ease);
}
.tweak-segmented button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.tweak-swatches { display: flex; gap: 8px; }
.tweak-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: transform 0.15s var(--ease);
}
.tweak-swatch.active { border-color: var(--text); transform: scale(1.1); }
