/* ClickToDoc site styles. Matches the extension's DCU navy accent
   so the marketing surface and the in-product surface feel like
   the same product. System font stack so we don't pull a webfont
   and slow first paint. */

:root {
  --ink: #0B1623;
  --ink-soft: #4A5664;
  --ink-muted: #7A8694;
  --bg: #FFFFFF;
  --bg-soft: #F5F8FC;
  --bg-tint: #ECF1F8;
  --bg-grad-start: #F8FAFD;
  --bg-grad-end: #ECF2F9;
  --accent: #00334F;
  --accent-bright: #0A6FB5;
  --accent-hover: #014B70;
  --accent-soft: #DCE9F2;
  --accent-glow: rgba(10, 111, 181, 0.15);
  --border: #E1E8F0;
  --border-strong: #C8D4E1;
  --warn-bg: #FFF7D6;
  --warn-border: #F2D77A;
  --warn-fg: #5A4A00;
  --success: #2F9E6F;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-sm: 6px;
  --shadow-1: 0 1px 2px rgba(15, 26, 38, 0.04), 0 2px 8px rgba(15, 26, 38, 0.05);
  --shadow-2: 0 4px 12px rgba(15, 26, 38, 0.06), 0 16px 40px rgba(15, 26, 38, 0.08);
  --shadow-glow: 0 8px 28px rgba(10, 111, 181, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ECEFF4;
    --ink-soft: #B7C0CC;
    --ink-muted: #8B96A4;
    --bg: #0B1118;
    --bg-soft: #131B24;
    --bg-tint: #1A242F;
    --bg-grad-start: #0E1620;
    --bg-grad-end: #131D2A;
    --accent: #5BBEE6;
    --accent-bright: #6FC8EC;
    --accent-hover: #82D2F0;
    --accent-soft: #1B2D3A;
    --accent-glow: rgba(91, 190, 230, 0.18);
    --border: #1F2A36;
    --border-strong: #2A3744;
    --warn-bg: #2A2410;
    --warn-border: #5A4A00;
    --warn-fg: #F2D77A;
    --success: #6BCC9F;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-2: 0 4px 12px rgba(0, 0, 0, 0.45), 0 16px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 8px 28px rgba(91, 190, 230, 0.25);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-bright); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }

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

/* ---------- top bar ---------- */
.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
}
@media (prefers-color-scheme: dark) {
  .topbar { background: rgba(11, 17, 24, 0.82); }
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand:hover { text-decoration: none; color: var(--ink); }
.nav { display: flex; gap: 28px; font-size: 14.5px; font-weight: 500; }
.nav a { color: var(--ink-soft); }
.nav a:hover { color: var(--accent-bright); }
.nav-install {
  background: var(--accent);
  color: white !important;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13.5px;
}
.nav-install:hover { background: var(--accent-hover); color: white !important; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 64px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 0%, var(--accent-glow), transparent 50%),
    radial-gradient(circle at 80% 20%, var(--accent-glow), transparent 50%),
    linear-gradient(180deg, var(--bg-grad-start) 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 26px;
  box-shadow: var(--shadow-1);
  position: relative;
}
.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(47, 158, 111, 0.18);
}
.hero h1 {
  font-size: 56px;
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-weight: 800;
  position: relative;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .tagline {
  font-size: 19.5px;
  color: var(--ink-soft);
  margin: 0 auto 36px;
  max-width: 640px;
  line-height: 1.55;
  position: relative;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-glow);
  position: relative;
}
.cta:hover {
  background: var(--accent-hover);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(10, 111, 181, 0.25);
}
.cta:active { transform: translateY(0); }
.cta svg { width: 17px; height: 17px; }

.cta-secondary {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-1);
}
.cta-secondary:hover {
  background: var(--bg-soft);
  color: var(--ink);
  box-shadow: var(--shadow-2);
}
.cta-disabled {
  background: var(--bg-soft);
  color: var(--ink-muted);
  border: 1px dashed var(--border-strong);
  cursor: not-allowed;
  box-shadow: none;
}
.cta-disabled:hover {
  background: var(--bg-soft);
  color: var(--ink-muted);
  transform: none;
  box-shadow: none;
}

.cta-group { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.cta-note {
  margin-top: 18px;
  color: var(--ink-muted);
  font-size: 13.5px;
  position: relative;
}
.cta-note strong { color: var(--ink-soft); font-weight: 600; }

/* ---------- hero mockup ---------- */
.hero-mockup {
  margin: 60px auto 0;
  max-width: 880px;
  position: relative;
}
.browser-frame {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  border: 1px solid var(--border);
  overflow: hidden;
  text-align: left;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
}
.browser-url {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12.5px;
  color: var(--ink-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin: 0 8px;
  max-width: 320px;
}
.browser-extension {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--accent);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.mockup-content { padding: 32px 40px 36px; }
.mockup-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.mockup-subtitle { font-size: 13.5px; color: var(--ink-muted); margin: 0 0 24px; }
.mock-step {
  display: flex;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  align-items: flex-start;
}
.mock-step:first-of-type { border-top: 0; padding-top: 8px; }
.mock-step-num {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mock-step-body { flex: 1; min-width: 0; }
.mock-step-title {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  margin: 4px 0 6px;
}
.mock-step-shot {
  height: 60px;
  background:
    linear-gradient(135deg, var(--bg-tint) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.mock-step-shot::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-bright);
  opacity: 0.22;
  top: 50%;
  left: 38%;
  transform: translate(-50%, -50%);
  animation: pulse 2.4s ease-in-out infinite;
}
.mock-step-shot::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-bright);
  top: 50%;
  left: 38%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px var(--bg);
}
.mock-step:nth-child(2) .mock-step-shot::before,
.mock-step:nth-child(2) .mock-step-shot::after { left: 62%; }
.mock-step:nth-child(3) .mock-step-shot::before,
.mock-step:nth-child(3) .mock-step-shot::after { left: 50%; }

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.22; }
  50% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
}

/* ---------- generic section ---------- */
.section { padding: 88px 0; }
.section + .section { padding-top: 32px; }
.section h2 {
  font-size: 36px;
  margin: 8px 0 14px;
  letter-spacing: -0.025em;
  font-weight: 800;
  line-height: 1.15;
}
.section .lead {
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 600px;
  margin-bottom: 0;
  line-height: 1.55;
}
.section-head { margin-bottom: 48px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-bright);
  margin: 0;
  display: inline-block;
}

/* ---------- feature grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--border-strong);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature h3 {
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---------- how-it-works ---------- */
.how-section { background: var(--bg-soft); padding: 88px 0; }
.steps {
  counter-reset: stepnum;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.steps li {
  counter-increment: stepnum;
  position: relative;
  padding: 28px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.steps li::before {
  content: counter(stepnum);
  position: absolute;
  top: -16px;
  left: 28px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
  color: white;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px var(--accent-glow);
}
.steps h3 {
  font-size: 18px;
  margin: 18px 0 8px;
  color: var(--ink);
  font-weight: 700;
}
.steps p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }

/* ---------- principles strip ---------- */
.principles {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 28px;
  background: linear-gradient(120deg, var(--accent-soft) 0%, var(--bg-soft) 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.principle {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px;
}
.principle-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.principle-label {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ---------- install section ---------- */
.install-section {
  text-align: center;
  padding: 88px 0;
  background:
    radial-gradient(circle at 50% 0%, var(--accent-glow), transparent 60%),
    var(--bg);
}
.install-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 720px;
  margin: 36px auto 0;
}
.install-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.install-card.available { border-color: var(--accent); box-shadow: var(--shadow-glow); }
.install-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--border-strong);
}
.install-card.available:hover { border-color: var(--accent); }
.install-card-icon { font-size: 32px; }
.install-card h3 {
  font-size: 16px;
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}
.install-card p {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin: 0;
}
.install-card .cta { width: 100%; justify-content: center; }
.install-card .cta-disabled { width: 100%; justify-content: center; }
.install-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
}
.badge-available { background: rgba(47, 158, 111, 0.12); color: var(--success); }
.badge-pending { background: var(--bg-tint); color: var(--ink-muted); }

/* ---------- privacy / long-form ---------- */
.prose {
  padding: 64px 0 96px;
}
.prose h1 {
  font-size: 38px;
  margin: 0 0 8px;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.prose .updated { color: var(--ink-muted); font-size: 14px; margin: 0 0 36px; }
.prose h2 {
  font-size: 22px;
  margin: 44px 0 12px;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.prose h3 { font-size: 17px; margin: 26px 0 8px; }
.prose p, .prose li {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code {
  background: var(--bg-tint);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  color: var(--accent);
}
.callout {
  margin: 28px 0;
  padding: 20px 22px;
  background: var(--bg-soft);
  border-left: 4px solid var(--accent-bright);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p { margin: 0; }
.callout p:not(:last-child) { margin-bottom: 8px; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  color: var(--ink-muted);
  font-size: 14px;
  background: var(--bg-soft);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.footer a { color: var(--ink-soft); }
.footer a:hover { color: var(--accent-bright); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-soft); }
.footer-brand img { width: 20px; height: 20px; border-radius: 4px; }

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  .hero { padding: 64px 0 40px; }
  .hero h1 { font-size: 38px; }
  .hero .tagline { font-size: 17px; }
  .hero-mockup { margin-top: 44px; }
  .mockup-content { padding: 22px 22px 26px; }
  .section { padding: 64px 0; }
  .section h2 { font-size: 28px; }
  .nav { display: none; }
  .nav-install { display: inline-flex; }
  .nav { display: flex; }
  .nav a:not(.nav-install) { display: none; }
  .topbar-inner { gap: 12px; }
  .install-cards { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr 1fr; padding: 20px; }
  .prose h1 { font-size: 30px; }
}
