/* ============================================================
   SIGNETPDF LANDING — notary stationery
   Warm paper, ink navy, wax-seal red. Matches the app.
   ============================================================ */

:root {
  --paper: #f4efe3;
  --paper-raise: #faf7ee;
  --paper-deep: #eae3d2;
  --ink: #1c2433;
  --ink-soft: #4a5266;
  --ink-faint: #b8b2a2;
  --seal: #bf3415;
  --seal-deep: #9c2a10;
  --blue-ink: #28439e;
  --line: #d8d0bc;
  --shadow-soft: 0 1px 2px rgba(28, 36, 51, 0.06), 0 8px 24px rgba(28, 36, 51, 0.09);
  --shadow-sheet: 0 2px 6px rgba(28, 36, 51, 0.12), 0 18px 50px rgba(28, 36, 51, 0.18);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Archivo", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --ease-spring: cubic-bezier(0.34, 1.4, 0.4, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ============ TOP BAR ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 32px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.wordmark { display: flex; align-items: center; gap: 9px; }

.wordmark-seal {
  width: 30px;
  height: 30px;
  transform: rotate(-6deg);
  filter: drop-shadow(0 2px 4px rgba(28, 36, 51, 0.22));
}
.wordmark-seal svg { width: 100%; height: 100%; }

.wordmark-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.wordmark-pdf {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--paper);
  background: var(--seal);
  padding: 2px 7px;
  border-radius: 4px;
  vertical-align: 4px;
  margin-left: 2px;
}

.topnav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.topnav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s;
}
.topnav a:hover { color: var(--seal); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s var(--ease-spring), box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }

.btn-seal {
  background: var(--seal);
  border-color: var(--seal);
  color: #fdf8ef;
  box-shadow: 0 2px 10px rgba(191, 52, 21, 0.3);
}
.btn-seal:hover {
  background: var(--seal-deep);
  border-color: var(--seal-deep);
  box-shadow: 0 4px 16px rgba(191, 52, 21, 0.4);
}

.btn-lg { padding: 14px 28px; font-size: 16px; }

.seal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fdf8ef;
  opacity: 0.85;
}

.cta-note {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* ============ HERO ============ */
.hero {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 76px 32px 96px;
}

.hero-copy { flex: 1.1; min-width: 0; }

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--seal);
  margin-bottom: 20px;
}

.headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(46px, 6.4vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

.headline-ink {
  font-style: italic;
  font-weight: 650;
  color: var(--seal);
  position: relative;
  width: fit-content;
  padding-right: 10px;
}

.underline-stroke {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  width: 100%;
  height: 14px;
  color: var(--seal);
  opacity: 0.45;
}
.underline-stroke path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawStroke 0.9s 1.1s ease forwards;
}
@keyframes drawStroke { to { stroke-dashoffset: 0; } }

.hero-sub {
  font-size: 17.5px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 30px;
}

/* ---- hero document illustration ---- */
.hero-art {
  flex: 0.9;
  position: relative;
  min-width: 300px;
  display: grid;
  place-items: center;
  padding: 20px 0;
}

.sheet {
  background: white;
  border-radius: 4px;
  box-shadow: var(--shadow-sheet);
}

.sheet-back {
  position: absolute;
  width: 300px;
  height: 396px;
  transform: rotate(5deg) translate(16px, 8px);
  background: var(--paper-raise);
  opacity: 0.8;
}

.sheet-front {
  position: relative;
  width: 320px;
  height: 420px;
  transform: rotate(-2.5deg);
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.4s var(--ease-spring);
}
.hero-art:hover .sheet-front { transform: rotate(-1deg) translateY(-6px); }

.sheet-line {
  height: 7px;
  border-radius: 4px;
  background: var(--paper-deep);
}
.sheet-line.w95 { width: 95%; }
.sheet-line.w90 { width: 90%; }
.sheet-line.w80 { width: 80%; }
.sheet-line.w70 { width: 70%; }
.sheet-line.w60 { width: 60%; }
.sheet-gap { height: 10px; }

.sheet-sigrow {
  margin-top: auto;
  position: relative;
}

.sheet-sig { width: 180px; height: 54px; display: block; }

.sig-path {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: signIt 1.6s 1.2s cubic-bezier(0.45, 0, 0.3, 1) forwards;
}
@keyframes signIt { to { stroke-dashoffset: 0; } }

.sheet-sigline {
  display: block;
  width: 200px;
  border-bottom: 1.5px solid var(--ink-faint);
  margin-top: -8px;
}

.sheet-seal {
  position: absolute;
  right: 26px;
  bottom: 30px;
  width: 64px;
  height: 64px;
  transform: rotate(8deg);
  filter: drop-shadow(0 3px 8px rgba(191, 52, 21, 0.35));
  animation: stampIn 0.5s 2.6s var(--ease-spring) backwards;
}
.sheet-seal svg { width: 100%; height: 100%; }
@keyframes stampIn {
  0% { transform: rotate(8deg) scale(2); opacity: 0; }
  60% { transform: rotate(8deg) scale(0.94); opacity: 1; }
  100% { transform: rotate(8deg) scale(1); }
}

.sheet-stamp {
  position: absolute;
  top: 20px;
  right: -14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--seal);
  border: 1.5px solid var(--seal);
  border-radius: 3px;
  padding: 4px 10px;
  transform: rotate(7deg);
  opacity: 0.85;
  background: color-mix(in srgb, white 70%, transparent);
}

/* ============ SECTIONS ============ */
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.015em;
  text-align: center;
  margin-bottom: 52px;
}

/* ---- how it works ---- */
.how {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 32px;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.step {
  position: relative;
  padding-top: 18px;
  border-top: 1.5px solid var(--line);
}

.step-num {
  position: absolute;
  top: -11px;
  left: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--seal);
  background: var(--paper);
  padding-right: 10px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p { font-size: 14.5px; color: var(--ink-soft); }

/* ---- features ---- */
.features {
  background: var(--paper-raise);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 80px 32px;
}

.feature-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature {
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 26px 24px;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s, border-color 0.25s;
}
.feature:hover {
  transform: translateY(-4px) rotate(-0.3deg);
  border-color: var(--ink-faint);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--line);
  color: var(--seal);
  font-size: 18px;
  margin-bottom: 16px;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature p { font-size: 14.5px; color: var(--ink-soft); }

/* ---- privacy manifesto ---- */
.privacy {
  background: var(--ink);
  color: var(--paper);
  padding: 96px 32px;
}

.privacy-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.privacy-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e8775c;
  margin-bottom: 18px;
}

.privacy-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 30px;
}

.privacy-text {
  font-size: 16.5px;
  line-height: 1.7;
  color: #c9cdd8;
  margin-bottom: 18px;
}

.privacy-sign {
  margin-top: 26px;
  font-family: "Caveat", cursive;
  font-size: 26px;
  color: #e8775c;
  transform: rotate(-2deg);
}

/* ---- FAQ ---- */
.faq {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 32px;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 18px 4px;
}

.faq-list summary {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--seal);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list details p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---- final CTA ---- */
.install { padding: 40px 32px 100px; }

.install-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--paper-raise);
  border: 1.5px dashed var(--ink-faint);
  border-radius: 8px;
  padding: 56px 40px 40px;
  box-shadow: var(--shadow-soft);
}

.install-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.install-card > p {
  color: var(--ink-soft);
  margin-bottom: 26px;
}

.install-sigline {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 38px;
}

.x-mark {
  font-size: 18px;
  font-weight: 700;
  color: var(--seal);
  line-height: 1;
}

.baseline {
  flex: 1;
  border-bottom: 1.5px solid var(--ink-faint);
}

/* ---- footer ---- */
.site-foot {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 26px 20px 36px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.foot-dot { color: var(--seal); }

/* ============ ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.65s var(--ease-spring) forwards;
  animation-delay: calc(var(--d) * 110ms);
}
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

.scroll-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-spring);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.scroll-reveal.in { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 920px) {
  .hero { flex-direction: column; text-align: center; padding-top: 56px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .headline { align-items: center; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .topnav { display: none; }
}

@media (max-width: 560px) {
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .hero-art { transform: scale(0.85); }
  .topbar { padding: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
