/* Transmittal Manager - marketing site */
:root {
  --paper: #f6f4ef;
  --paper-2: #efece4;
  --card: #ffffff;
  --ink: #121212;
  --ink-2: #3d3d3a;
  --muted: #6d6b64;
  --line: #dcd8cd;
  --line-strong: #bdb8aa;
  --blue: #1f4fd8;
  --blue-soft: #e7edfc;
  --grid: rgba(31, 79, 216, 0.07);
  --good: #1d7a47;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18, 18, 18, 0.05), 0 18px 50px -18px rgba(18, 18, 18, 0.28);
  --display: "Archivo", "Segoe UI", Arial, sans-serif;
  --body: "Inter", "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 244, 239, 0.86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; background: #fff; padding: 3px; border: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 26px; font-size: 14.5px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.nav .btn { color: #fff; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; border: 1.5px solid var(--ink);
  background: var(--ink); color: #fff; font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(0,0,0,.5); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: #fff; }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(rgba(31,79,216,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,79,216,.035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.hero-copy { max-width: 780px; margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-soft); border: 1px solid rgba(31,79,216,.18);
  padding: 5px 12px; border-radius: 99px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; line-height: 1.08; margin: 0; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 800; margin: 22px 0 18px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 640px; margin: 0 auto; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 30px 0 12px; }
.fine { font-size: 13.5px; color: var(--muted); margin: 0; }

.hero-visual { position: relative; margin: 56px auto 0; max-width: 1080px; }
.frame {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow); overflow: hidden;
}
.frame-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fbfaf7; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9d5ca; }
.frame-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.frame img, .paper img, .float-doc img { width: 100%; height: auto; }
.frame img { cursor: zoom-in; }
.float-doc {
  position: absolute; width: 27%; right: -3%; bottom: -8%;
  transform: rotate(3deg); border-radius: 6px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); border: 1px solid var(--line);
  background: #fff;
}
.float-doc img { cursor: zoom-in; }
.float-tag {
  position: absolute; left: -2%; bottom: 14%;
  background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 16px;
  font-size: 13.5px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center;
}
.float-tag strong { font-family: var(--mono); font-size: 13px; display: block; }
.float-tag svg { width: 22px; height: 22px; color: #7ee2a8; flex: none; }

/* ---------- stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 90px; }
.stats div { padding: 26px 22px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats strong { display: block; font-family: var(--display); font-size: clamp(20px, 2.2vw, 28px); white-space: nowrap; letter-spacing: -0.02em; }
.stats span { color: var(--muted); font-size: 14px; }

/* ---------- sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 110px 0; }
.section.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sheet-tag { font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sheet-tag b { color: var(--blue); font-weight: 600; }
.sheet-tag::after { content: ""; height: 1px; width: 48px; background: var(--line-strong); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .sheet-tag { justify-content: center; }
.section-head.center .sheet-tag::after { display: none; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 800; }
.section-head p { color: var(--ink-2); font-size: 18px; margin: 16px 0 0; }

/* feature rows */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 120px; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .feature-copy { order: 2; }
.icon-badge { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: #fff; margin-bottom: 20px; }
.icon-badge svg { width: 22px; height: 22px; }
.feature h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 750; }
.feature p { color: var(--ink-2); margin: 14px 0 20px; font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.checks li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; }
.checks svg { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 2px; }

/* documents */
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; align-items: start; }
.doc { margin: 0; }
.doc .paper {
  background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  box-shadow: 0 2px 0 #e7e3d9, 0 4px 0 #f3f0e9, 0 24px 40px -24px rgba(0,0,0,.35);
  transition: transform .2s;
}
.doc:nth-child(1) .paper { transform: rotate(-1.5deg); }
.doc:nth-child(3) .paper { transform: rotate(1.5deg); }
.doc .paper:hover { transform: rotate(0) translateY(-6px); }
.doc img { cursor: zoom-in; }
.doc figcaption { margin-top: 24px; }
.doc figcaption strong { display: block; font-family: var(--display); font-size: 19px; }
.doc figcaption span { color: var(--muted); font-size: 14.5px; }
.formats { display: flex; gap: 6px; margin-top: 8px; }
.formats b { font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 5px; border: 1px solid var(--line-strong); color: var(--ink-2); background: #fff; }

/* workflow */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 12%; right: 12%; height: 0; border-top: 1.5px dashed var(--line-strong); }
.step { text-align: center; padding: 0 18px; position: relative; }
.step .num { width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); display: grid; place-items: center; }
.section.alt .step .num { background: var(--paper-2); }
.step .num svg { width: 22px; height: 22px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
.step small { font-family: var(--mono); color: var(--blue); font-size: 12px; display: block; margin-bottom: 6px; }

/* benefits grid */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.tile svg { width: 24px; height: 24px; color: var(--blue); }
.tile h3 { font-size: 18px; margin: 16px 0 6px; letter-spacing: -0.01em; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 40px; }
.chips span { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; font-size: 14px; font-weight: 500; color: var(--ink-2); }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.plan.featured { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.plan.featured .per, .plan.featured li { color: #d9d7d0; }
.plan.featured .btn { background: #fff; color: var(--ink); border-color: #fff; }
.plan .tag { position: absolute; top: 18px; right: 18px; margin: 0; padding: 3px 10px; border-radius: 99px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 600; }
.plan h3 { font-size: 19px; }
.plan .price { font-family: var(--display); font-size: 52px; font-weight: 800; letter-spacing: -0.03em; margin: 16px 0 0; line-height: 1; }
.plan .per { color: var(--muted); font-size: 14px; margin: 8px 0 22px; }
.plan ul { list-style: none; margin: 0 0 28px; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; flex: 1; font-size: 15px; }
.plan.featured ul { border-top-color: #333; }
.plan li { display: flex; gap: 10px; color: var(--ink-2); }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--blue); }
.plan.featured li svg { color: #8fb0ff; }
.guarantee { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 30px; color: var(--ink-2); font-size: 15px; text-align: center; }
.guarantee svg { width: 22px; height: 22px; color: var(--good); flex: none; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 4px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--muted); font-size: 20px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; color: var(--ink-2); }

/* final cta */
.cta { background: var(--ink); color: #fff; border-radius: 24px; padding: 72px 40px; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 32px 32px; }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; }
.cta p { color: #c9c7bf; font-size: 18px; margin: 16px auto 30px; max-width: 560px; }
.cta .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta .btn.ghost { background: transparent; color: #fff; border-color: #6b6b6b; }

/* footer */
.site-footer { padding: 56px 0 40px; margin-top: 110px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-inner nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--ink); }

/* legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 16px 20px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; }
.legal h2 { font-size: 21px; margin-top: 36px; }
.legal p { color: var(--ink-2); }
.legal .fine { margin-top: 10px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12,12,12,.86); display: none; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 92vh; width: auto; max-width: 96vw; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5); background: #fff; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; border-bottom: 0; }
  .menu-toggle { display: block; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-copy { order: 0; }
  .feature + .feature { margin-top: 80px; }
  .docs, .grid3, .pricing { grid-template-columns: 1fr; }
  .docs { max-width: 420px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .float-tag { display: none; }
  .section { padding: 80px 0; }
}
@media (max-width: 560px) {
  .hero { padding-top: 40px; }
  .eyebrow { font-size: 11px; letter-spacing: .02em; }
  .stats strong { white-space: normal; }
  .float-doc { width: 36%; right: -2%; bottom: -12%; }
  .steps { grid-template-columns: 1fr; }
  .stats div { padding: 18px 14px; }
  .stats strong { font-size: 24px; }
  .cta { padding: 52px 22px; border-radius: 18px; }
  .plan { padding: 24px; }
}
