/* DrawOnClip — drawonclip.com
   Static marketing/info site. No frameworks, no external fonts, no trackers.
   Mirrors the app's own posture: local, fast, honest. */

:root {
  --paper:      #fbfaf7;
  --surface:    #ffffff;
  --surface-2:  #f4f2ed;
  --ink:        #17171b;
  --ink-soft:   #4a4a55;
  --ink-faint:  #7a7a88;
  --rule:       #e4e1d9;
  --rule-soft:  #eeece6;

  --mark:       #e8442f;   /* annotation red — the markup accent */
  --mark-deep:  #c3341f;
  --highlight:  #ffd83d;   /* highlighter yellow */
  --ok:         #1c8b5a;
  --link:       #2f66d8;

  --shadow-sm: 0 1px 2px rgba(20,20,30,.06), 0 2px 8px rgba(20,20,30,.05);
  --shadow-lg: 0 2px 6px rgba(20,20,30,.07), 0 18px 44px rgba(20,20,30,.10);

  --measure: 68ch;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:     #0e0e11;
    --surface:   #16161b;
    --surface-2: #1d1d24;
    --ink:       #ecebf0;
    --ink-soft:  #b3b2be;
    --ink-faint: #85848f;
    --rule:      #2b2b34;
    --rule-soft: #22222a;

    --mark:      #ff6a52;
    --mark-deep: #ff8a76;
    --link:      #7ea6ff;
    --ok:        #3fbd85;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.4), 0 18px 44px rgba(0,0,0,.5);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.021em; margin: 0 0 .5em; font-weight: 640; }
h1 { font-size: clamp(2.3rem, 6vw, 3.5rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.15rem); letter-spacing: -.026em; }
h3 { font-size: 1.1rem; }
p  { margin: 0 0 1.1em; }

code, kbd, samp { font-family: var(--mono); font-size: .88em; }
code {
  background: var(--surface-2);
  border: 1px solid var(--rule-soft);
  border-radius: 5px;
  padding: .12em .4em;
}
pre {
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  margin: 0 0 1.2em;
}
pre code { background: none; border: 0; padding: 0; font-size: .9em; }

kbd {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: .08em .45em;
  font-size: .84em;
  color: var(--ink);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }
.skip {
  position: absolute; left: -9999px;
  background: var(--surface); color: var(--ink);
  padding: .6rem 1rem; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-in {
  display: flex; align-items: center; gap: 1.4rem;
  padding: .7rem 0; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 660; letter-spacing: -.02em; font-size: 1.06rem;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.brand svg { width: 26px; height: 26px; flex: none; }
.nav a.navlink {
  color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.nav a.navlink:hover, .nav a.navlink[aria-current="page"] { color: var(--ink); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: inherit; font-weight: 560; font-size: .97rem;
  padding: .62rem 1.15rem;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink-faint); }

/* ---------- hero ---------- */

.hero { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.02fr 1.18fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: .3rem .7rem; border-radius: 999px;
  margin-bottom: 1.1rem;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: none; }

.lede { font-size: clamp(1.1rem, 2.1vw, 1.28rem); color: var(--ink-soft); max-width: 34em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.hero-note { margin-top: 1rem; font-size: .88rem; color: var(--ink-faint); }

.shot { filter: drop-shadow(0 22px 44px rgba(20,20,30,.16)); }
@media (prefers-color-scheme: dark) { .shot { filter: drop-shadow(0 22px 44px rgba(0,0,0,.6)); } }

/* ---------- sections ---------- */

section { padding: clamp(2.8rem, 7vw, 4.6rem) 0; }
section + section { border-top: 1px solid var(--rule-soft); }
.section-head { max-width: var(--measure); margin-bottom: 2.4rem; }
.section-head p { color: var(--ink-soft); margin-bottom: 0; }
.kicker {
  font-size: .78rem; font-weight: 680; letter-spacing: .09em; text-transform: uppercase;
  color: var(--mark); margin: 0 0 .6rem;
}

/* ---------- steps ---------- */

.steps { display: grid; gap: 1.1rem; counter-reset: step; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--mark); color: #fff;
  font-size: .92rem; font-weight: 700; font-variant-numeric: tabular-nums;
  margin-bottom: .85rem;
}
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--ink-soft); margin: 0; font-size: .96rem; }

/* ---------- feature cards ---------- */

.cards { display: grid; gap: 1.1rem; }
@media (min-width: 700px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { display: flex; align-items: center; gap: .55rem; margin-bottom: .45rem; }
.card h3 svg { width: 19px; height: 19px; color: var(--mark); flex: none; }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.card p + p { margin-top: .7rem; }

/* ---------- split feature ---------- */

.split { display: grid; gap: clamp(1.8rem, 4vw, 3rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split-body p { color: var(--ink-soft); }
.split-body p:first-of-type { color: var(--ink); font-size: 1.06rem; }

.checks { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .65rem; align-items: flex-start; font-size: .96rem; color: var(--ink-soft); }
.checks li svg { width: 18px; height: 18px; flex: none; margin-top: .22em; color: var(--ok); }

/* ---------- privacy callout ---------- */

.callout {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--mark);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  margin: 1.6rem 0 0;
}
.callout p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.callout strong { color: var(--ink); }

/* ---------- shortcuts ---------- */

.keys { display: grid; gap: 1.1rem; }
@media (min-width: 700px)  { .keys { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .keys { grid-template-columns: repeat(4, 1fr); } }
.keygroup {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.2rem 1.3rem;
}
.keygroup h3 { font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .9rem; }
.keygroup dl { margin: 0; display: grid; gap: .55rem; }
.keygroup .row { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.keygroup dt { font-size: .92rem; color: var(--ink-soft); }
.keygroup dd { margin: 0; flex: none; }

/* ---------- faq ---------- */

.faq { display: grid; gap: .7rem; max-width: var(--measure); }
.faq details {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 11px; padding: .95rem 1.2rem;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; font-weight: 570; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 9px; height: 9px; flex: none;
  border-right: 2px solid var(--ink-faint); border-bottom: 2px solid var(--ink-faint);
  transform: rotate(45deg) translateY(-2px); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq .answer { padding-top: .8rem; color: var(--ink-soft); font-size: .96rem; }
.faq .answer > :last-child { margin-bottom: 0; }

/* ---------- install ---------- */

.install-grid { display: grid; gap: 1.6rem; }
@media (min-width: 860px) { .install-grid { grid-template-columns: 1.25fr 1fr; } }
.reqs { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.reqs li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .65rem 0; border-bottom: 1px solid var(--rule-soft); font-size: .95rem;
}
.reqs li:last-child { border-bottom: 0; }
.reqs span:first-child { color: var(--ink-faint); }
.reqs span:last-child { font-weight: 550; text-align: right; }

.soon {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--surface); border: 1px solid var(--rule);
  border-left: 3px solid var(--mark);
  border-radius: 10px; padding: .7rem 1.1rem;
  font-weight: 570; color: var(--ink);
  margin: 0 0 1.2em;
}
.soon svg { width: 19px; height: 19px; color: var(--mark); flex: none; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--rule);
  padding: 2.6rem 0 3rem;
  color: var(--ink-faint);
  font-size: .9rem;
}
.footer-in { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: flex-start; }
.footer-in nav { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-left: auto; }
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer .tag { max-width: 30em; margin: .4rem 0 0; }
.colophon {
  width: 100%; margin: 1.8rem 0 0; padding-top: 1.4rem;
  border-top: 1px solid var(--rule-soft);
  font-size: .85rem; color: var(--ink-faint);
}

/* ---------- guide page ---------- */

.doc { display: grid; gap: 2.5rem; padding: 2.5rem 0 4rem; align-items: start; }
@media (min-width: 1000px) { .doc { grid-template-columns: 232px minmax(0, 1fr); gap: 3.2rem; } }

.toc { font-size: .93rem; }
@media (min-width: 1000px) { .toc { position: sticky; top: 5rem; max-height: calc(100vh - 7rem); overflow-y: auto; } }
.toc h2 { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: .8rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .05rem; counter-reset: toc; }
.toc a {
  display: block; padding: .3rem .55rem; border-radius: 7px;
  color: var(--ink-soft); text-decoration: none; border-left: 2px solid transparent;
}
.toc a:hover { background: var(--surface-2); color: var(--ink); }

.doc-body { max-width: var(--measure); min-width: 0; }
.doc-body h2 {
  margin-top: 2.6rem; padding-top: 1.6rem;
  border-top: 1px solid var(--rule-soft);
  scroll-margin-top: 5rem;
}
.doc-body > h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-body ul { padding-left: 1.15rem; margin: 0 0 1.1em; }
.doc-body li { margin-bottom: .4em; }
.doc-body strong { color: var(--ink); font-weight: 620; }

.doc-intro {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-bottom: 2.2rem;
}
.doc-intro p:last-child { margin-bottom: 0; }
.doc-intro .src { font-size: .88rem; color: var(--ink-faint); }

/* ---------- misc pages ---------- */

.page { padding: clamp(2.5rem, 7vw, 4rem) 0 4rem; }
.page h1 { margin-bottom: .35em; }
.page .updated { color: var(--ink-faint); font-size: .9rem; margin-bottom: 2.4rem; }
.page h2 { margin-top: 2.4rem; }
.page ul { padding-left: 1.15rem; }
.page li { margin-bottom: .45em; }

.center { text-align: center; }
.stack-lg { padding: 5rem 0; }
