/* ============================================================
   DocMind — minimal hairline UI, with life.
   Tri-color only: white background, near-black text, dark-blue accent.
   No shadows on content. Everything divided by 1px hairlines.
   Motion: pill nav, scroll reveals, hover + color transitions.
   ============================================================ */

:root {
  --bg: #ffffff;
  --ink: #0a0a0b;        /* text only */
  --muted: #6b7280;      /* secondary text */
  --blue: #163b73;       /* dark blue accent */
  --blue-ink: #102c57;
  --blue-wash: #f3f6fc;  /* faintest blue, used only for hover surfaces */
  --line: #e6e7eb;       /* hairline */
  --line-strong: #d7d9df;
  --maxw: 1080px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  font-synthesis: none;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 { letter-spacing: -0.03em; line-height: 1.08; font-weight: 700; }

section[id] { scroll-margin-top: 96px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 11px 18px;
  background: var(--bg); color: var(--ink);
  cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .15s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--solid { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--solid:hover { background: var(--blue-ink); border-color: var(--blue-ink); }
.btn--solid:hover svg { transform: translateY(2px); }
.btn--ghost { background: var(--bg); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { padding: 8px 15px; font-size: 14px; }
.btn--lg { padding: 14px 24px; font-size: 16px; }

/* ---------- Pill Nav ---------- */
.nav {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 60;
  display: flex; justify-content: center; pointer-events: none;
}
.nav__inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 7px 7px 16px;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled .nav__inner {
  box-shadow: 0 8px 30px rgba(10,10,11,.08);
  border-color: var(--line-strong);
  background: rgba(255,255,255,0.85);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; }
.brand__logo {
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--ink); border-radius: 9px; color: var(--blue);
  transition: transform .25s var(--ease);
}
.brand:hover .brand__logo { transform: rotate(-6deg); }
.brand__logo svg { width: 17px; height: 17px; }
.brand__name { font-size: 16px; }
.nav__links { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav__links a:not(.btn) {
  position: relative; font-size: 14px; color: var(--muted);
  padding: 8px 14px; border-radius: 999px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__links a:not(.btn):hover { color: var(--ink); background: var(--blue-wash); }
.nav__links a.active { color: var(--blue); font-weight: 600; }
.nav__links .btn { margin-left: 6px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero__inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px;
  align-items: center; padding: 132px 24px 92px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--blue);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 5px 12px; margin-bottom: 22px;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: blink 2.4s var(--ease) infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.hero h1 { font-size: clamp(38px, 6vw, 60px); font-weight: 800; }
.hero h1 .accent { color: var(--blue); }
.lede { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 30em; }
.lede strong { color: var(--ink); font-weight: 600; }
.hero__cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero__badges { list-style: none; display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.hero__badges li { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero__badges .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }

/* ---------- Phone mockup ---------- */
.hero__art { display: flex; justify-content: center; }
.device {
  width: 290px; border: 1px solid var(--ink); border-radius: 30px;
  background: var(--bg); padding: 10px;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.device__screen { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.m-row { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.m-greet small { color: var(--muted); font-size: 12px; }
.m-greet strong { display: block; font-size: 20px; font-weight: 800; }
.m-search {
  display: flex; align-items: center; gap: 8px; color: var(--muted);
  font-size: 13px; padding: 11px 14px; border-bottom: 1px solid var(--line);
}
.m-search svg { width: 15px; height: 15px; }
.m-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 16px 8px; }
.m-quick { display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1px solid var(--line); }
.m-quick > div { padding: 12px 0; display: grid; place-items: center; gap: 6px; border-left: 1px solid var(--line); }
.m-quick > div:first-child { border-left: 0; }
.m-ic { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--blue); transition: background .25s var(--ease), border-color .25s var(--ease); }
.m-ic svg { width: 14px; height: 14px; }
.m-quick > div:hover .m-ic { background: var(--blue-wash); border-color: var(--blue); }
.m-quick span { font-size: 9px; color: var(--muted); }
.m-doc { display: flex; align-items: center; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--line); transition: background .2s var(--ease); }
.m-doc:hover { background: var(--blue-wash); }
.m-doc .m-ic { width: 30px; height: 30px; }
.m-doc b { font-size: 12.5px; font-weight: 600; display: block; }
.m-doc small { font-size: 10.5px; color: var(--muted); }
.m-nav { display: grid; grid-template-columns: repeat(5,1fr); padding: 10px 0 12px; align-items: center; }
.m-nav > div { display: grid; place-items: center; color: var(--muted); }
.m-nav > div svg { width: 18px; height: 18px; }
.m-nav .on { color: var(--blue); }
.m-nav .fab { background: var(--blue); color: #fff; width: 36px; height: 36px; border-radius: 50%; place-self: center; position: relative; }
.m-nav .fab svg { width: 18px; height: 18px; }
.m-nav .fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--blue); animation: ring 2.6s var(--ease) infinite;
}
@keyframes ring { 0% { transform: scale(1); opacity: .5; } 70%,100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding: 84px 0; border-bottom: 1px solid var(--line); }
.section__head { max-width: 640px; margin-bottom: 44px; }
.section__head .eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); display: block; margin-bottom: 14px;
}
.section__head h2 { font-size: clamp(28px, 4vw, 38px); }
.section__head p { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* ---------- Feature grid (hairline cells) ---------- */
.grid--features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.feature { background: var(--bg); padding: 28px 26px; transition: background .25s var(--ease); }
.feature:hover { background: var(--blue-wash); }
.feature__icon {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 11px; color: var(--blue); margin-bottom: 18px;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.feature:hover .feature__icon { border-color: var(--blue); background: #fff; transform: translateY(-2px); }
.feature__icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; transition: color .2s var(--ease); }
.feature:hover h3 { color: var(--blue); }
.feature h3 .tag {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--blue); border: 1px solid var(--line-strong); border-radius: 5px; padding: 2px 6px;
}
.feature p { margin-top: 10px; color: var(--muted); font-size: 14.5px; }

/* ---------- Formats strip ---------- */
.formats { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.formats span {
  flex: 1 1 auto; text-align: center; min-width: 90px;
  padding: 18px 14px; font-weight: 600; font-size: 14px;
  border-left: 1px solid var(--line); transition: background .2s var(--ease), color .2s var(--ease);
}
.formats span:first-child { border-left: 0; }
.formats span:hover { background: var(--blue-wash); color: var(--blue); }
.formats b { color: var(--blue); }

/* ---------- Privacy split ---------- */
.privacy { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.privacy h2 { font-size: clamp(26px, 4vw, 34px); margin-top: 16px; }
.privacy p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.checklist { list-style: none; margin-top: 22px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.checklist li { padding: 14px 0 14px 30px; position: relative; border-bottom: 1px solid var(--line); font-size: 15px; transition: padding-left .2s var(--ease); }
.checklist li:hover { padding-left: 36px; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 18px; width: 14px; height: 8px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg);
}
.privacy__art { display: grid; place-items: center; }
.lock {
  width: 100%; max-width: 320px; aspect-ratio: 1; border: 1px solid var(--line);
  border-radius: 18px; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--blue);
  transition: border-color .3s var(--ease);
}
.lock:hover { border-color: var(--blue); }
.lock svg { width: 56px; height: 56px; }
.lock strong { color: var(--ink); font-size: 18px; }
.lock span { color: var(--muted); font-size: 14px; }

/* ---------- Download ---------- */
.download .inner {
  border: 1px solid var(--ink); border-radius: 18px; padding: 52px 40px; text-align: center;
}
.download h2 { font-size: clamp(28px, 4vw, 38px); }
.download p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.download__cta { margin-top: 28px; display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }
.download__meta { color: var(--muted); font-size: 14px; }
.steps { margin-top: 36px; display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-align: left; }
.steps div { background: var(--bg); padding: 22px; transition: background .2s var(--ease); }
.steps div:hover { background: var(--blue-wash); }
.steps b { color: var(--blue); font-size: 13px; }
.steps p { margin-top: 8px; color: var(--ink); font-size: 14.5px; }

/* ---------- Platform ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pcard { background: var(--bg); padding: 28px 26px; transition: background .25s var(--ease); }
.pcard:hover { background: var(--blue-wash); }
.pcard .status { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }
.pcard .status.soon { color: var(--muted); }
.pcard h3 { margin-top: 12px; font-size: 19px; transition: color .2s var(--ease); }
.pcard:hover h3 { color: var(--blue); }
.pcard p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 2px; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; transition: color .2s var(--ease); }
.faq summary:hover { color: var(--blue); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-weight: 600; font-size: 22px; transition: transform .25s var(--ease); }
.faq details[open] summary::after { content: "+"; transform: rotate(45deg); }
.faq p { padding: 0 2px 20px; color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.footer { padding: 52px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand p { margin-top: 14px; color: var(--muted); font-size: 14px; }
.footer__cols { display: flex; gap: 60px; }
.footer__cols h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.footer__cols a { display: block; font-size: 14.5px; color: var(--ink); padding: 4px 0; transition: color .2s var(--ease), padding-left .2s var(--ease); }
.footer__cols a:hover { color: var(--blue); padding-left: 4px; }
.footer__bar { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; padding: 120px 24px 64px; }
  .hero__art { order: -1; }
  .grid--features, .platform-grid, .steps { grid-template-columns: 1fr; }
  .privacy { grid-template-columns: 1fr; }
  .nav__links a:not(.btn) { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
