/* Scanvelio — Swiss-editorial archival paper, deep ink, precision indigo accent. */
:root {
  --paper: #F6F7FB;
  --card: #FFFFFF;
  --surface: #ECEFF6;
  --ink: #141824;
  --muted: #555E73;
  --line: #DDE2EE;
  --accent: #2D5BFF;
  --accent-dark: #1E40AF;
  --accent-soft: #E9EEFF;
  --highlight: #FFE98A;
  --serif: ui-serif, "New York", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --page: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; line-height: 1.1; margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 22px; padding-bottom: 22px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 24px; text-decoration: none; letter-spacing: -0.01em;
}
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.top nav { display: flex; gap: 26px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }

/* Hero */
.hero {
  text-align: center;
  padding: clamp(28px, 5vw, 60px) 0 clamp(24px, 4vw, 44px);
  background-image:
    linear-gradient(to right, rgba(20, 24, 36, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 24, 36, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-dark);
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
}
.hero h1 { font-size: clamp(44px, 7.6vw, 92px); margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead {
  font-size: clamp(17px, 1.9vw, 21px); color: var(--muted);
  margin: 18px auto 0; max-width: 34em;
}
.soon {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 28px; padding: 12px 24px;
  background: var(--ink); color: #FFFFFF;
  border-radius: 999px; font-size: 15px; font-weight: 500;
}
.soon small { color: rgba(255,255,255,.72); font-size: 15px; font-weight: 400; }

/* Interactive paper-to-searchable showcase */
.showcase {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 4vw, 52px);
  align-items: center; text-align: left;
  max-width: 1020px; margin: clamp(36px, 5vw, 56px) auto 0;
  padding: 0 var(--gutter);
}
.demo-sheet {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; box-shadow: 0 24px 60px -36px rgba(20, 24, 36, .35);
}
.demo-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  background: var(--paper); border: 1px solid var(--line);
  margin-bottom: 18px;
}
.demo-bar label { font-size: 13px; color: var(--muted); font-weight: 600; }
.demo-bar input {
  flex: 1; border: 0; background: transparent; color: var(--ink);
  font: 15px/1.3 var(--sans); outline: none; min-width: 0;
}
.demo-count {
  font: 12px/1 var(--mono); color: var(--accent-dark);
  background: var(--accent-soft); padding: 5px 8px; border-radius: 6px;
  white-space: nowrap;
}
.paper-doc {
  background: #FCFBF7; border: 1px solid #E8E3D5; border-radius: 10px;
  padding: 20px 22px; font-size: 14.5px; line-height: 1.65; color: #272621;
}
.paper-doc .doc-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid #E6E0D0; padding-bottom: 10px; margin-bottom: 12px;
  font-family: var(--serif); font-size: 16px;
}
.paper-doc .doc-head span { font-family: var(--mono); font-size: 11px; color: #7C7565; }
.paper-doc mark {
  background: var(--highlight); color: var(--ink);
  padding: 1px 3px; border-radius: 3px;
}
.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.demo-chips button {
  appearance: none; border: 1px solid var(--line); background: var(--paper);
  color: var(--muted); font: 13px/1 var(--sans); padding: 7px 12px;
  border-radius: 999px; cursor: pointer;
}
.demo-chips button:hover, .demo-chips button[aria-pressed="true"] {
  border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft);
}
.showcase-phone { display: flex; justify-content: center; }

/* Phone frame */
.phone {
  width: 262px; border-radius: 40px; padding: 9px; background: #141824;
  box-shadow: 0 28px 60px -28px rgba(20, 24, 36, .55);
}
.phone img { border-radius: 31px; width: 100%; }

/* Sections */
section.block { padding-top: clamp(64px, 8vw, 108px); }
.block h2 { font-size: clamp(30px, 4vw, 44px); }
.block .sub { color: var(--muted); margin-top: 10px; max-width: 38em; }

/* Steps */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 38px); margin-top: 40px;
}
.step { text-align: center; }
.step .n {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: 50%;
  font-family: var(--serif); font-size: 18px; background: var(--card);
}
.step h3 { font-size: 24px; margin-top: 12px; }
.step p { color: var(--muted); font-size: 15px; margin: 6px auto 0; max-width: 22em; }
.step .shot { margin-top: 24px; display: flex; justify-content: center; }

/* Features */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-top: 34px;
}
.features div {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 22px 24px;
}
.features b { display: block; font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.25; }
.features span { display: block; color: var(--muted); font-size: 14.5px; margin-top: 8px; }

/* Privacy & Pricing band */
.band {
  margin-top: clamp(64px, 8vw, 108px);
  background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(48px, 6vw, 76px) 0;
}
.band-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.band h2 { font-size: clamp(32px, 4.4vw, 48px); }
.band p { font-size: 18px; color: var(--muted); margin-top: 12px; max-width: 34em; }
.plan-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px;
}
.plan-card h3 { font-size: 24px; }
.plan-card ul { margin: 14px 0 0; padding-left: 1.2em; color: var(--muted); font-size: 15px; }
.plan-card li + li { margin-top: 6px; }
.plan-card .note { font-size: 13.5px; color: var(--muted); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

/* FAQ */
.faq { margin-top: 26px; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative;
  font-size: 18px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); padding: 0 0 20px; max-width: 44em; }
.more { display: inline-block; margin-top: 22px; color: var(--accent); font-weight: 500; }

/* Footer */
footer.foot { margin-top: clamp(72px, 9vw, 112px); border-top: 1px solid var(--line); }
footer.foot .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; padding-top: 26px; padding-bottom: 40px; flex-wrap: wrap;
}
footer.foot nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
footer.foot nav a { color: var(--muted); text-decoration: none; }
footer.foot nav a:hover { color: var(--ink); }
footer.foot small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }

/* Text pages: Guide, FAQ, Support, Privacy, Terms */
.doc { max-width: 740px; padding-top: clamp(28px, 5vw, 60px); }
.doc h1 { font-size: clamp(38px, 5.8vw, 60px); }
.doc .lead { color: var(--muted); font-size: 19px; margin-top: 14px; }
.doc h2 { font-size: 27px; margin-top: 44px; }
.doc h3 { font-size: 20px; margin-top: 28px; }
.doc p, .doc ul, .doc ol { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 6px; }
.doc .meta { color: var(--muted); font-size: 15px; margin-top: 12px; }
.doc a { color: var(--accent); }
.doc .faq { margin-top: 32px; }

.guide-steps { list-style: none; padding: 0 !important; counter-reset: s; }
.guide-steps li { counter-increment: s; position: relative; padding-left: 52px; margin-top: 30px !important; }
.guide-steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 1px solid var(--line); border-radius: 50%; background: var(--card);
  font-family: var(--serif); font-size: 17px;
}
.guide-steps h3 { margin-top: 0; }
.guide-steps p { color: var(--muted); margin-top: 6px; }

.mail-list { list-style: none; padding: 0 !important; border-top: 1px solid var(--line); margin-top: 28px !important; }
.mail-list li { border-bottom: 1px solid var(--line); margin: 0 !important; }
.mail-list a {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 18px 0; text-decoration: none; color: var(--ink); font-size: 18px;
}
.mail-list a span { color: var(--muted); font-size: 15px; text-align: right; }

@media (max-width: 900px) {
  .showcase, .steps, .features, .band-grid { grid-template-columns: 1fr; }
  .steps { gap: 52px; }
  .showcase { text-align: left; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top nav { gap: 16px; font-size: 14px; }
  .brand { font-size: 21px; }
  .mail-list a { flex-direction: column; gap: 2px; }
  .mail-list a span { text-align: left; }
}
