/* DocScan AI landing: espresso desk, cream contract paper, orange scanner, red/orange/yellow risk marks. */
:root {
  --desk: #1E130D; --desk2: #2A1B13; --ink: #FBF3E9; --dim: rgba(251,243,233,.7);
  --paper: #FFF7EC; --paper-ink: #2B221C; --orange: #F26A1B; --amber: #FF8A3D;
  --high: #E5484D; --med: #F59E0B; --low: #EAB308;
  --display: "Fraunces", Georgia, serif; --body: "Inter", system-ui, -apple-system, sans-serif; --legal: "IBM Plex Serif", Georgia, serif;
  --ease: cubic-bezier(.2,.8,.2,1); --pop: cubic-bezier(.34,1.56,.64,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--desk); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image: radial-gradient(ellipse at 80% -10%, rgba(242,106,27,.18), transparent 55%), radial-gradient(ellipse at -10% 60%, rgba(229,72,77,.08), transparent 50%); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.kicker { font: 600 13.5px var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--amber); margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.05; font-weight: 800; }
h3 { font-size: 22px; font-weight: 600; }
.lede { color: var(--dim); font-size: clamp(17px, 1.5vw, 19px); max-width: 34em; margin: 22px 0 0; }
.small { color: var(--dim); font-size: 14px; }
.center { text-align: center; }
.center-block { margin-left: auto; margin-right: auto; text-align: center; }
section { position: relative; padding: clamp(80px, 11vw, 140px) max(20px, 6vw); }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* bar */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 14px max(20px, 4vw); transition: background .3s, box-shadow .3s; }
.bar.solid { background: rgba(30,19,13,.85); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.07); }
.brand { display: flex; align-items: center; gap: 10px; font: 600 20px var(--display); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.bar nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.bar nav a { text-decoration: none; color: var(--dim); transition: color .2s; }
.bar nav a:hover { color: var(--ink); }
.cta { text-decoration: none; font-weight: 600; font-size: 15px; padding: 9px 18px; border-radius: 999px; background: var(--orange); color: #1E130D; white-space: nowrap; }
@media (max-width: 820px) { .bar nav { display: none; } .cta { margin-left: auto; } }

.store { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #000; text-decoration: none; padding: 11px 22px 11px 18px; border-radius: 14px; transition: transform .25s var(--pop), box-shadow .25s; }
.store:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(242,106,27,.4); }
.store svg { width: 26px; height: 26px; fill: currentColor; }
.store span { display: flex; flex-direction: column; font: 600 20px/1.05 var(--body); }
.store small { font-size: 11px; font-weight: 500; }
.note { color: var(--dim); font-size: 14px; }

/* hero */
.hero { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 50px; padding-top: 120px; }
.hero h1 { font-size: clamp(46px, 6.4vw, 90px); line-height: .98; font-weight: 800; letter-spacing: -.035em; }
.hero h1 em { font-style: italic; font-weight: 600; color: var(--amber); }
.actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 34px; }
.stage { position: relative; height: min(620px, 80svh); }
.doc { position: absolute; left: 0; top: 50%; width: min(380px, 66%); transform: translateY(-50%) rotate(-3deg); background: var(--paper); color: var(--paper-ink); font: 400 13.5px/1.6 var(--legal); padding: 34px 32px 28px; border-radius: 4px; box-shadow: 0 50px 90px rgba(0,0,0,.5), 0 2px 0 rgba(0,0,0,.08); }
.doc .doc-title, .paper .doc-title { font: 600 14px var(--legal); letter-spacing: .12em; text-align: center; margin: 0 0 16px; }
.doc p { margin: 0 0 10px; }
.m { background: none; color: inherit; padding: 0 1px; border-radius: 2px; background-repeat: no-repeat; background-size: 0% 100%; transition: background-size .7s var(--ease); }
.m.high { background-image: linear-gradient(rgba(229,72,77,.28), rgba(229,72,77,.28)); }
.m.med { background-image: linear-gradient(rgba(245,158,11,.32), rgba(245,158,11,.32)); }
.m.low { background-image: linear-gradient(rgba(234,179,8,.3), rgba(234,179,8,.3)); }
.m.on { background-size: 100% 100%; }
.sig { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 18px; border-top: 1px solid rgba(0,0,0,.25); padding-top: 6px; font: 12px var(--body); color: #6b5a4c; }
.stamp { font: 700 15px var(--body); font-style: normal; letter-spacing: .12em; color: #C9412F; border: 2.5px solid #C9412F; border-radius: 6px; padding: 3px 10px; transform: rotate(-10deg) scale(1.6); opacity: 0; transition: opacity .25s, transform .35s var(--pop); }
.stamp.on { opacity: .85; transform: rotate(-10deg) scale(1); }
.corner { position: absolute; width: 34px; height: 34px; border: 3px solid var(--orange); opacity: 0; transition: all .6s var(--ease); }
.corner.tl { left: -26px; top: -26px; border-right: 0; border-bottom: 0; } .corner.tr { right: -26px; top: -26px; border-left: 0; border-bottom: 0; }
.corner.bl { left: -26px; bottom: -26px; border-right: 0; border-top: 0; } .corner.br { right: -26px; bottom: -26px; border-left: 0; border-top: 0; }
.doc.locked .corner { opacity: 1; } .doc.locked .tl { left: -12px; top: -12px; } .doc.locked .tr { right: -12px; top: -12px; } .doc.locked .bl { left: -12px; bottom: -12px; } .doc.locked .br { right: -12px; bottom: -12px; }
.beam { position: absolute; left: -14px; right: -14px; top: 0; height: 3px; background: var(--orange); box-shadow: 0 0 16px 4px rgba(242,106,27,.65); opacity: 0; }
.flags { list-style: none; margin: 0; padding: 0; position: absolute; z-index: 3; right: 0; top: 50%; transform: translateY(-50%); width: min(250px, 46%); display: grid; gap: 12px; }
.flags li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #fff; color: #1c1c1e; font-size: 14.5px; box-shadow: 0 18px 40px rgba(0,0,0,.4); opacity: 0; transform: translateX(30px) scale(.96); transition: opacity .45s var(--ease), transform .55s var(--pop); }
.flags li.on { opacity: 1; transform: none; }
.flags i { width: 9px; height: 9px; border-radius: 50%; }
.flags span { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; }
.flags .high i { background: var(--high); } .flags .high span { color: var(--high); background: rgba(229,72,77,.13); }
.flags .med i { background: var(--med); } .flags .med span { color: #C27803; background: rgba(245,158,11,.15); }
.flags .low i { background: var(--low); } .flags .low span { color: #A58000; background: rgba(234,179,8,.16); }

/* how */
.how { text-align: center; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 60px auto 0; text-align: left; }
.cards article { padding: 28px 24px; border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.09); }
.cards article:nth-child(2) { transition-delay: .1s; } .cards article:nth-child(3) { transition-delay: .2s; } .cards article:nth-child(4) { transition-delay: .3s; }
.cards p { color: var(--dim); font-size: 15.5px; margin: 8px 0 0; }
.ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.ico svg { width: 24px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ico.sum { background: #3B82F6; } .ico.risk { background: var(--high); } .ico.field { background: var(--orange); } .ico.chat { background: #22A06B; }
.t-high { color: #FF7B7F; } .t-med { color: #FBBF24; } .t-low { color: #FDE047; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* try */
.try-head { max-width: 760px; margin: 0 auto; text-align: center; }
.try-head .lede { margin-left: auto; margin-right: auto; }
.try-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 30px; max-width: 1120px; margin: 54px auto 0; align-items: start; }
.paper { background: var(--paper); color: var(--paper-ink); border-radius: 6px; padding: 30px 34px; font: 400 16px/1.75 var(--legal); box-shadow: 0 40px 80px rgba(0,0,0,.45); }
.paper p { margin: 0 0 12px; }
.filters { display: flex; gap: 8px; margin: -6px 0 22px; flex-wrap: wrap; font-family: var(--body); }
.filters button { font: 600 14px var(--body); border: 1px solid rgba(0,0,0,.15); background: #fff; color: #3a2f27; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.filters button.on { background: #2B221C; color: #fff; border-color: #2B221C; }
.clause { padding: 1px 2px; cursor: pointer; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background .3s, opacity .3s, box-shadow .2s; }
.clause.high { background: rgba(229,72,77,.22); } .clause.med { background: rgba(245,158,11,.26); } .clause.low { background: rgba(234,179,8,.26); }
.clause:hover, .clause.sel { box-shadow: 0 0 0 2px currentColor; }
.clause.sel.high { box-shadow: 0 0 0 2px var(--high); } .clause.sel.med { box-shadow: 0 0 0 2px var(--med); } .clause.sel.low { box-shadow: 0 0 0 2px var(--low); }
.clause.dim { background: transparent; opacity: .45; cursor: default; }
.explain { position: sticky; top: 100px; background: #fff; color: #1c1c1e; border-radius: 22px; padding: 26px; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.explain h3 { font-family: var(--body); font-weight: 700; font-size: 22px; letter-spacing: -.01em; margin-top: 10px; }
.sev { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 99px; }
.sev.high { color: var(--high); background: rgba(229,72,77,.12); } .sev.med { color: #C27803; background: rgba(245,158,11,.14); } .sev.low { color: #A58000; background: rgba(234,179,8,.16); }
.explain blockquote { margin: 14px 0; padding: 10px 14px; border-left: 3px solid #ddd; color: #6b6b70; font: italic 15px/1.55 var(--legal); }
.explain p { margin: 0; font-size: 16px; }
.explain .ask { margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: #F2F2F7; font-size: 15px; }
.explain .ask small { display: block; color: #8e8e93; font-size: 12px; }
.explain.swap { animation: swap .4s var(--ease); }
@keyframes swap { from { opacity: .3; transform: translateY(8px); } }
@media (max-width: 860px) { .try-body { grid-template-columns: 1fr; } .explain { position: static; } .paper { padding: 24px 20px; font-size: 15px; } }

/* tour */
.tour { padding: 0 max(20px, 6vw); height: 420vh; }
.tour-pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(30px, 6vw, 90px); max-width: 1180px; margin: 0 auto; }
.tour-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; }
.tour-list li { grid-area: 1/1; opacity: 0; transform: translateY(26px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.tour-list li.on { opacity: 1; transform: none; pointer-events: auto; }
.tour-list li.past { transform: translateY(-26px); }
.tour-list h3 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.05; font-weight: 800; }
.tour-list p { color: var(--dim); font-size: clamp(17px, 1.6vw, 20px); max-width: 26em; margin: 16px 0 0; }
.tour-dots { display: flex; gap: 8px; margin-top: 34px; }
.tour-dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.22); transition: width .35s var(--ease), background .35s; }
.tour-dots i.on { width: 30px; background: var(--orange); }
.phone { border-radius: 44px; padding: 9px; background: #0b0806; box-shadow: 0 0 0 1.5px rgba(255,255,255,.14) inset, 0 40px 90px rgba(0,0,0,.55), 0 0 60px rgba(242,106,27,.18); }
.tour-phone { position: relative; width: min(330px, 34vw, calc((100svh - 120px) * .46)); }
.tour-phone img { position: absolute; inset: 9px; width: calc(100% - 18px); border-radius: 35px; aspect-ratio: 600/1304; object-fit: cover; background: #f2f2f7; opacity: 0; transform: scale(.94) translateY(20px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.tour-phone img:first-child { position: relative; inset: auto; width: 100%; }
.tour-phone img.on { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .tour { height: auto; padding: 60px 20px; }
  .tour-pin { position: static; height: auto; grid-template-columns: 1fr; }
  .tour-list li, .tour-list li.past { grid-area: auto; opacity: 1; transform: none; margin-bottom: 18px; }
  .tour-list h3 { font-size: 24px; } .tour-list p { font-size: 16px; margin-top: 4px; }
  .tour-dots { display: none; }
  .tour-phone { width: 100%; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 0 20px; background: none; box-shadow: none; border-radius: 0; }
  .tour-phone img, .tour-phone img:first-child { position: static; inset: auto; flex: none; width: 72%; opacity: 1; transform: none; scroll-snap-align: center; border-radius: 28px; box-shadow: 0 0 0 7px #0b0806, 0 20px 50px rgba(0,0,0,.5); margin: 8px; }
}

/* anything */
.anything { text-align: center; }
.types { list-style: none; padding: 0; margin: 50px auto 0; max-width: 980px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.types li { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 18px; background: rgba(255,247,236,.06); border: 1px solid rgba(255,247,236,.1); text-align: left; font-weight: 500; }
.types span { font-size: 26px; }
@media (max-width: 800px) { .types { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .types { grid-template-columns: 1fr; } }
.langs { overflow: hidden; margin: 56px calc(-1 * max(20px, 6vw)) 14px; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track { display: flex; gap: 14px; width: max-content; animation: marquee 40s linear infinite; }
.track span { font: 600 22px var(--display); padding: 10px 22px; border-radius: 999px; border: 1px solid rgba(242,106,27,.35); color: var(--ink); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* vault */
.vault { text-align: center; }
.lock { width: 74px; height: 74px; margin: 0 auto 26px; display: grid; place-items: center; border-radius: 24px; background: var(--orange); box-shadow: 0 20px 50px rgba(242,106,27,.35); }
.lock svg { width: 38px; fill: none; stroke: #1E130D; stroke-width: 3.5; stroke-linecap: round; }
.promises { list-style: none; padding: 0; margin: 50px auto 0; max-width: 1000px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.promises li { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 22px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); }
.promises b { font: 600 20px var(--display); }
.promises span { color: var(--dim); font-size: 15.5px; }
@media (max-width: 820px) { .promises { grid-template-columns: 1fr; } }

.pricing { text-align: center; padding-top: 40px; }

/* faq */
.faq h2 { text-align: center; }
.qa { max-width: 820px; margin: 50px auto 0; }
.qa details { border-bottom: 1px solid rgba(255,255,255,.12); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 600 20px var(--display); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 400 30px/1 var(--body); color: var(--amber); transition: transform .3s var(--pop); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa p { color: var(--dim); margin: -6px 0 22px; }

.end { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; background: radial-gradient(ellipse at 50% 100%, rgba(242,106,27,.22), transparent 60%); }
.end img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 20px 50px rgba(242,106,27,.35); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 26px max(20px, 4vw) 36px; border-top: 1px solid rgba(255,255,255,.1); color: var(--dim); font-size: 14px; }
.foot nav { display: flex; gap: 20px; }
.foot small { width: 100%; opacity: .75; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; min-height: auto; }
  .stage { height: 560px; max-width: 560px; width: 100%; margin: 0 auto; }
  .doc { width: 74%; left: 0; font-size: 12px; padding: 24px 20px 20px; }
  .flags { width: 52%; top: auto; bottom: 0; transform: none; }
}
@media (max-width: 440px) { .stage { height: 520px; } .doc { width: 86%; font-size: 11px; } .flags { width: 64%; } .flags li { font-size: 13px; padding: 9px 11px; } }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .beam { display: none; }
  html { scroll-behavior: auto; }
}
