/* ==========================================================================
   Draw on Web — support site styles
   Hand-written CSS, no framework. Light theme by default; [data-theme="dark"]
   on <html> flips the design tokens. All colors/spacing live in :root so the
   whole site re-themes from one place.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------- */
:root {
  /* Brand */
  --brand: #ff6b35;
  --brand-600: #f2541c;
  --brand-700: #d8420c;
  --brand-soft: rgba(255, 107, 53, 0.12);

  /* Light surfaces */
  --bg: #ffffff;
  --bg-alt: #fbf8f6;
  --bg-elevated: #ffffff;
  --card: #ffffff;
  --border: #ececec;
  --border-strong: #dcdcdc;

  /* Text */
  --text: #1a1a1f;
  --text-dim: #5a5a66;
  --text-faint: #8a8a96;
  --on-brand: #ffffff;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(17, 17, 26, 0.05), 0 2px 6px rgba(17, 17, 26, 0.04);
  --shadow-md: 0 4px 12px rgba(17, 17, 26, 0.08), 0 10px 30px rgba(17, 17, 26, 0.06);
  --shadow-lg: 0 10px 40px rgba(17, 17, 26, 0.12);
  --ring: 0 0 0 3px rgba(255, 107, 53, 0.35);

  /* Shape */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  /* Layout */
  --maxw: 1120px;
  --nav-h: 64px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

/* Dark theme */
[data-theme="dark"] {
  --bg: #0e0e12;
  --bg-alt: #15151b;
  --bg-elevated: #1a1a22;
  --card: #17171e;
  --border: #26262f;
  --border-strong: #33333f;

  --text: #f3f3f6;
  --text-dim: #b6b6c2;
  --text-faint: #80808e;

  --brand-soft: rgba(255, 107, 53, 0.16);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
}

/* ---- Base ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 750; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 12px;
}

.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--text-dim); font-size: 1.08rem; margin: 0; }

.lead { font-size: 1.15rem; color: var(--text-dim); }

/* ---- Skip link ----------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
}
.skip-link:focus { left: 16px; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 6px 18px rgba(255, 107, 53, 0.35);
}
.btn-primary:hover { background: var(--brand-600); box-shadow: 0 10px 26px rgba(255, 107, 53, 0.45); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-700); }

.btn-lg { padding: 16px 30px; font-size: 1.08rem; }

.btn svg { width: 19px; height: 19px; }

/* ---- Nav ----------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--text-dim);
  font-weight: 550;
  font-size: 0.97rem;
  padding: 8px 14px;
  border-radius: 9px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-links a:hover { color: var(--text); background: var(--brand-soft); text-decoration: none; }
.nav-links a.active { color: var(--brand-700); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.icon-btn:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-700); }
.icon-btn svg { width: 19px; height: 19px; }

/* Theme toggle shows sun or moon depending on current theme */
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .sun { display: none; }

/* "Add to Chrome" CTAs. On desktop the compact button in nav-actions is shown
   and the plain text link inside the dropdown is hidden; on mobile it flips. */
.nav-links .nav-cta { display: none; }
.nav .btn.nav-cta-desktop {
  display: inline-flex;
  padding: 8px 15px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
}

/* Mobile menu toggle (hamburger) */
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    visibility: hidden;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-links a { padding: 13px 14px; font-size: 1.05rem; }
  .menu-toggle { display: inline-grid; }
  .nav .btn.nav-cta-desktop { display: none; }
  .nav-links .nav-cta { display: block; color: var(--brand-700); font-weight: 650; }
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 72px;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 50% -8%, var(--brand-soft), transparent 70%),
    radial-gradient(40% 40% at 85% 20%, rgba(255, 107, 53, 0.08), transparent 70%);
  pointer-events: none;
}
.hero > .container { position: relative; }

/* Staggered entrance for the above-the-fold content (first impression) */
@keyframes dow-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero .pill,
.hero h1,
.hero-sub,
.hero-cta,
.hero-note { animation: dow-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero h1 { animation-delay: 0.06s; }
.hero-sub { animation-delay: 0.12s; }
.hero-cta { animation-delay: 0.18s; }
.hero-note { animation-delay: 0.24s; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-700);
  font-size: 0.86rem;
  font-weight: 650;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  margin-bottom: 22px;
}

.hero h1 { max-width: 15ch; margin-inline: auto; }
.hero .grad { color: var(--brand); }
.hero-sub {
  max-width: 60ch;
  margin: 18px auto 32px;
  font-size: 1.2rem;
  color: var(--text-dim);
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.92rem; color: var(--text-faint); }

/* Faux browser mock that frames the hero illustration */
.mock {
  margin-top: 56px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.mock-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.mock-bar .dot:nth-child(1) { background: #ff5f57; }
.mock-bar .dot:nth-child(2) { background: #febc2e; }
.mock-bar .dot:nth-child(3) { background: #28c840; }
.mock-bar .url {
  margin-left: 12px;
  flex: 1;
  height: 26px;
  border-radius: 7px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 0.8rem;
  color: var(--text-faint);
  font-family: var(--mono);
}

/* Hero illustration — a pure-SVG "annotated page" scene, theme-aware */
.hero-art { padding: 26px 24px; background: var(--bg-alt); }
.hero-art svg { width: 100%; height: auto; display: block; }
.ink-strong { fill: var(--text); opacity: 0.85; }
.ink-line { fill: var(--border-strong); }
.ink-hi { fill: var(--brand); opacity: 0.22; }
.ink-stroke { fill: none; stroke: var(--brand); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ink-stroke.thin { stroke-width: 3; }
.ink-bar { fill: var(--bg-elevated); stroke: var(--border); stroke-width: 1.5; }
.ink-dot { fill: var(--text-faint); }
.ink-dot.active { fill: var(--brand); }
.ink-color { fill: var(--brand); }

/* ---- Feature grid -------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-dim); margin: 0; font-size: 0.98rem; }

.feature-ico {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-600);
  margin-bottom: 16px;
}
.feature-ico svg { width: 24px; height: 24px; }

/* ---- Steps --------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 26px 22px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.step .num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; font-size: 1.08rem; }
.step p { color: var(--text-dim); margin: 0; font-size: 0.95rem; }

/* ---- Keyboard shortcuts -------------------------------------------------- */
kbd {
  display: inline-block;
  min-width: 26px;
  text-align: center;
  padding: 3px 8px;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 7px;
  box-shadow: var(--shadow-sm);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); background: var(--bg-alt); }
tr:last-child td { border-bottom: none; }
td .t-name { font-weight: 600; }
td .t-note { color: var(--text-dim); }

/* Compact shortcut chips grid (used on homepage) */
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.key-row span { color: var(--text-dim); font-size: 0.95rem; }
.key-row .combo { display: inline-flex; gap: 5px; align-items: center; flex-shrink: 0; }

/* ---- Prose (support / privacy body copy) --------------------------------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 2em; scroll-margin-top: calc(var(--nav-h) + 20px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.5em; color: var(--text-dim); }
.prose li strong, .prose p strong { color: var(--text); }
.prose p { color: var(--text-dim); }

.callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  margin: 0 0 1.4em;
}
.callout svg { width: 22px; height: 22px; color: var(--brand-600); flex-shrink: 0; margin-top: 2px; }
.callout p { margin: 0; color: var(--text); }
.callout.warn { background: rgba(255, 184, 0, 0.12); border-color: rgba(255, 184, 0, 0.4); }
.callout.warn svg { color: #c98a00; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 6px;
  color: var(--brand-700);
}
pre {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text);
}
pre code { background: none; border: none; padding: 0; color: inherit; }

/* ---- FAQ accordion ------------------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item.open { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.03rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.faq-q .chev { flex-shrink: 0; transition: transform 0.25s ease; color: var(--brand-600); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a-inner { padding: 0 20px 18px; color: var(--text-dim); }
.faq-a-inner p { margin: 0; }
.faq-a-inner p + p { margin-top: 0.8em; }

/* ---- Contact / anchor cards --------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { text-align: center; }
.contact-card .feature-ico { margin-inline: auto; }
.contact-card a { font-weight: 650; }

/* ---- CTA band ------------------------------------------------------------ */
.cta-band {
  text-align: center;
  padding: 72px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.9); max-width: 48ch; margin: 0 auto 26px; font-size: 1.1rem; }
.cta-band .btn-primary { background: #fff; color: var(--brand-700); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.cta-band .btn-primary:hover { background: #fff5f0; }

/* ---- Footer -------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 48px 0 32px;
}
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer .brand { margin-bottom: 12px; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--text-dim); font-size: 0.95rem; }
.footer-col a:hover { color: var(--brand-600); }
.footer-about { max-width: 300px; color: var(--text-dim); font-size: 0.95rem; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.social {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-dim);
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}
.social:hover { color: var(--brand-700); border-color: var(--brand); background: var(--brand-soft); transform: translateY(-2px); text-decoration: none; }
.social svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 0.88rem;
}

/* ---- Scroll-reveal animation -------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---- Page header (support / privacy) ------------------------------------ */
.page-header {
  padding: 64px 0 40px;
  text-align: center;
  background:
    radial-gradient(50% 60% at 50% 0%, var(--brand-soft), transparent 70%);
}
.page-header p { color: var(--text-dim); max-width: 60ch; margin: 10px auto 0; font-size: 1.1rem; }
.updated { font-size: 0.9rem; color: var(--text-faint); margin-top: 14px; }
