/* Scan Studio — marketing site styles */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-soft: #6e6e73;
  --accent: #0a6cff;
  --accent-press: #0a5cd8;
  --border: #e4e4ea;
  --radius-sm: 14px;
  --radius: 22px;
  --shadow-sm: 0 2px 10px rgba(20, 28, 48, 0.06);
  --shadow: 0 24px 60px -20px rgba(20, 28, 48, 0.28);
  --maxw: 1080px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: .85em 1.5em;
  border-radius: 980px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-press); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(0,0,0,.04);
  color: var(--text);
  padding: .55em 1.1em;
  font-size: .92rem;
}
.btn-ghost:hover { background: rgba(0,0,0,.08); }

/* ---------- Header ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 84px 0 56px;
  background:
    radial-gradient(1200px 480px at 50% -10%, #eaf1ff 0%, rgba(234,241,255,0) 70%),
    linear-gradient(180deg, #fbfcff 0%, #ffffff 60%);
}
.hero .app-icon {
  width: 108px;
  height: 108px;
  border-radius: 24px;
  margin: 0 auto 26px;
  box-shadow: var(--shadow);
}
.display {
  font-size: clamp(2.6rem, 6.2vw, 4.4rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 .15em;
}
.display .grad {
  background: linear-gradient(120deg, #0a6cff 0%, #4aa3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 2em;
  font-weight: 400;
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.appstore-badge img { height: 52px; width: auto; }
.appstore-badge:hover { text-decoration: none; opacity: .85; }

.hero-media {
  margin: 56px auto 0;
  max-width: 560px;
}
.hero-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 .35em;
}
.section-head p { font-size: 1.2rem; color: var(--text-soft); margin: 0; }
.eyebrow {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ---------- Feature cards ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, #eaf1ff, #dbe8ff);
  color: var(--accent);
  margin-bottom: 22px;
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 .5em; }
.card p { color: var(--text-soft); margin: 0 0 1.1em; }
.tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-soft);
  background: rgba(0,0,0,.05);
  padding: .35em .8em;
  border-radius: 980px;
}

/* ---------- Why / prose ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  text-align: center;
  margin: 0 0 1.4rem;
}
.prose h3 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2.4rem 0 .6rem;
}
.prose p { font-size: 1.12rem; color: #3a3a3e; margin: 0 0 1.1rem; }
.prose .feature-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .6rem; }
.prose .feature-list li {
  position: relative;
  padding-left: 1.9rem;
  font-size: 1.1rem;
  color: #3a3a3e;
}
.prose .feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .15em;
  width: 1.25rem; height: 1.25rem;
  background: var(--accent);
  border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / .8rem no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / .8rem no-repeat;
}

/* Document-type checklist grid */
.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem 1.5rem;
}
.checklist li {
  position: relative;
  padding-left: 1.7rem;
  font-size: 1rem;
  color: #3a3a3e;
  line-height: 1.9;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 1.05rem; height: 1.05rem;
  background: #34c759;
  border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / .7rem no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / .7rem no-repeat;
}
.callout {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 1.6rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Final CTA ---------- */
.cta-band { text-align: center; }
.cta-band .app-icon { width: 84px; height: 84px; border-radius: 19px; margin: 0 auto 22px; box-shadow: var(--shadow); }
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.02em; margin: 0 0 .6em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  font-size: .9rem;
  color: var(--text-soft);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--text-soft); }
.footer-links a:hover { color: var(--text); }
.footer-copy { margin: 0; }

/* ---------- Entrance animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); animation: reveal .7s cubic-bezier(.2,.7,.3,1) forwards; }
  .reveal.d1 { animation-delay: .06s; }
  .reveal.d2 { animation-delay: .12s; }
  .reveal.d3 { animation-delay: .18s; }
  .reveal.d4 { animation-delay: .26s; }
  @keyframes reveal { to { opacity: 1; transform: none; } }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .features { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .checklist { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 40px; }
  .hero .app-icon { width: 92px; height: 92px; }
  .checklist { grid-template-columns: 1fr; }
  .brand span { display: none; }
}
