/* Paperlane website — no build step. Brand tokens mirror the app (static/css/app.css). */
:root {
  --ink: #121514;
  --ink-2: #1b1f1d;
  --ink-3: #262b28;
  --ink-line: rgba(255, 255, 255, .09);
  --ink-text: #f3f1ec;
  --ink-muted: #a9aca6;
  --paper: #f7f5f0;
  --paper-2: #efebe3;
  --white: #ffffff;
  --line: #e3ded4;
  --text: #2c2a26;
  --muted: #6b665d;
  --heading: #181613;
  --accent: #e4572e;
  --accent-deep: #c8461b;
  --accent-soft: #fcede6;
  --green: #1f9d55;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(18, 21, 20, .06), 0 8px 24px rgba(18, 21, 20, .07);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .55), 0 12px 30px -10px rgba(0, 0, 0, .35);
  --wrap: 1180px;
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--heading); line-height: 1.12; letter-spacing: -.025em; margin: 0; }
p { margin: 0; }
code, kbd, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--white); color: var(--ink);
  padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 20px;
  border-radius: 999px; font-weight: 700; font-size: 15.5px; text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -8px rgba(228, 87, 46, .65); }
.btn-accent:hover { background: #ec6439; }
.btn-ghost-dark { color: var(--ink-text); border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); }
.btn-ghost-dark:hover { border-color: rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .08); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { color: var(--heading); border-color: var(--line); background: var(--white); }
.btn-ghost:hover { border-color: #cfc8bb; }
.count { font-family: var(--mono); font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .22); }
.count:empty { display: none; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background .25s ease, border-color .25s ease, backdrop-filter .25s; border-bottom: 1px solid transparent; }
.nav.is-stuck { background: rgba(18, 21, 20, .78); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-color: var(--ink-line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { color: var(--ink-muted); text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 12px; border-radius: 8px; transition: color .15s; }
.nav-links a:hover { color: #fff; }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--ink-line);
  background: transparent; color: #fff; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }

/* ---------- hero ---------- */
.dark { background: var(--ink); color: var(--ink-text); }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.hero-zone { position: relative; isolation: isolate; overflow: hidden; margin-top: -68px; padding-top: 68px; }
.hero-zone::before { /* warm glow */
  content: ""; position: absolute; inset: -20% -10% auto; height: 900px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 380px at 50% 18%, rgba(228, 87, 46, .30), transparent 70%),
    radial-gradient(500px 300px at 85% 0%, rgba(228, 87, 46, .14), transparent 70%);
}
.hero-zone::after { /* dotted canvas, like the builder */
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 75%); -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
}
.hero { text-align: center; padding: 84px 0 56px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px;
  border: 1px solid var(--ink-line); background: rgba(255, 255, 255, .04); color: var(--ink-muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.pill b { background: var(--accent); color: #fff; font-size: 12px; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; }
.pill:hover { color: #fff; border-color: rgba(255, 255, 255, .2); }
.hero h1 { font-size: clamp(40px, 6.6vw, 78px); font-weight: 800; letter-spacing: -.04em; margin: 26px auto 0; max-width: 15ch; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #ff8a5c, var(--accent) 55%, #f2a07f);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(17px, 1.9vw, 20.5px); color: var(--ink-muted); max-width: 640px; margin: 22px auto 0; line-height: 1.55; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.cmd { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 8px 8px 8px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--ink-line); font-family: var(--mono); font-size: 13.5px; color: #d8d6d0; max-width: 100%; }
.cmd span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd span::before { content: "$ "; color: var(--accent); }
.copy { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--ink-line); background: rgba(255, 255, 255, .06);
  color: #e9e7e1; border-radius: 8px; height: 30px; padding: 0 10px; font: 600 12.5px var(--sans); cursor: pointer; transition: background .15s; }
.copy:hover { background: rgba(255, 255, 255, .12); }
.copy svg { width: 14px; height: 14px; }
.copy.done { color: #7ee2a4; }

.stage { position: relative; margin: 8px auto 0; padding-bottom: 96px; }
.frame { border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid rgba(255, 255, 255, .14); box-shadow: var(--shadow-lg); }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #f2f0eb; border-bottom: 1px solid #e3ded4; }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #dcd6cb; }
.frame-bar i:nth-child(1) { background: #f26b5b; } .frame-bar i:nth-child(2) { background: #f5bf4f; } .frame-bar i:nth-child(3) { background: #5cc76a; }
.frame-bar u { text-decoration: none; margin: 0 auto; font: 500 12px var(--mono); color: #8b857a; background: #fff; border: 1px solid #e3ded4; border-radius: 6px; padding: 3px 14px; transform: translateX(-26px); }
.phone { position: absolute; right: -18px; bottom: 30px; width: 23%; min-width: 150px; border-radius: 30px; padding: 7px;
  background: #0b0d0c; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .12) inset; }
.phone img { border-radius: 24px; aspect-ratio: 1000 / 1540; object-fit: cover; object-position: top; }
.float-chip { position: absolute; left: -22px; top: 34%; display: flex; gap: 12px; align-items: center; padding: 12px 16px 12px 12px;
  background: rgba(255, 255, 255, .96); color: var(--text); border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 14px; max-width: 290px; }
.float-chip .ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #e6f6ec; color: var(--green); }
.float-chip .ic svg { width: 20px; height: 20px; }
.float-chip b { display: block; color: var(--heading); font-size: 14.5px; }
.float-chip small { color: var(--muted); font-size: 12.5px; }

/* ---------- facts strip ---------- */
.facts { border-top: 1px solid var(--ink-line); }
.facts ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.facts li { display: flex; flex-direction: column; gap: 2px; }
.facts b { color: #fff; font-size: 15.5px; }
.facts span { color: var(--ink-muted); font-size: 14px; }

/* ---------- sections ---------- */
section { scroll-margin-top: 72px; }
.sec { padding: 120px 0; }
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); }
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.dark .kicker { color: #ff8a5c; }
.sec-head h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; margin-top: 14px; }
.sec-head p { font-size: 19px; color: var(--muted); margin-top: 18px; }
.dark .sec-head p { color: var(--ink-muted); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card-copy { padding: 30px 30px 0; }
.card h3 { font-size: 22px; font-weight: 800; }
.card p { color: var(--muted); margin-top: 8px; font-size: 16px; }
.card .shot { margin: 26px 0 0 30px; border-radius: 12px 0 0 0; border: 1px solid var(--line); border-right: 0; border-bottom: 0;
  overflow: hidden; flex: 1; min-height: 0; background: #faf9f6; }
.card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.c-7 { grid-column: span 7; } .c-5 { grid-column: span 5; } .c-6 { grid-column: span 6; } .c-4 { grid-column: span 4; } .c-8 { grid-column: span 8; }
.tall { min-height: 470px; }

.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; margin-top: 20px; }
.mini { background: var(--white); padding: 26px 26px 28px; }
.mini .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); margin-bottom: 16px; }
.mini .ic svg { width: 21px; height: 21px; }
.mini h3 { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.mini p { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* AI split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.ticks li::before { content: ""; width: 24px; height: 24px; margin-top: 2px; border-radius: 8px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8461b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ticks b { display: block; color: var(--heading); font-size: 17px; }
.ticks span { color: var(--muted); font-size: 15.5px; }
.ai-visual { position: relative; }
.ai-visual .frame { max-width: 440px; margin-left: auto; border-color: var(--line); box-shadow: 0 40px 80px -30px rgba(18, 21, 20, .35); }
.terminal { position: absolute; left: 0; bottom: 36px; width: min(372px, 82%); white-space: nowrap; overflow: hidden; background: var(--ink); color: #dcdad4; border-radius: 14px;
  padding: 16px 18px; font: 13px/1.7 var(--mono); box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .08); }
.terminal .dim { color: #7d817b; } .terminal .ok { color: #7ee2a4; } .terminal .acc { color: #ff8a5c; }

/* trust (dark) */
.trust { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ink-line); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--ink-line); }
.trust-list div { background: var(--ink-2); padding: 24px; }
.trust-list h3 { font-size: 16.5px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.trust-list h3 svg { width: 19px; height: 19px; color: #ff8a5c; flex: none; }
.trust-list p { color: var(--ink-muted); font-size: 14.5px; margin-top: 8px; line-height: 1.55; }
.trust-shot { position: sticky; top: 96px; }
.trust-shot .frame { border-color: rgba(255, 255, 255, .12); }
.callout { margin-top: 20px; display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: rgba(228, 87, 46, .1);
  border: 1px solid rgba(228, 87, 46, .28); color: #f1d9cf; font-size: 15px; }
.callout svg { width: 22px; height: 22px; flex: none; color: #ff8a5c; margin-top: 1px; }
.callout b { color: #fff; }

/* quick start */
.qs { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.tabs { background: var(--ink); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(18, 21, 20, .45); border: 1px solid #000; }
.tablist { display: flex; gap: 4px; padding: 10px 10px 0; border-bottom: 1px solid var(--ink-line); overflow-x: auto; }
.tab { appearance: none; border: 0; background: transparent; color: var(--ink-muted); font: 700 14px var(--sans); padding: 10px 14px 12px;
  border-radius: 9px 9px 0 0; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab[aria-selected="true"] { color: #fff; border-bottom-color: var(--accent); }
.tab:hover { color: #fff; }
.panel { position: relative; padding: 22px 22px 24px; }
.panel[hidden] { display: none; }
.panel pre { margin: 0; color: #dcdad4; font-size: 13.5px; line-height: 1.85; overflow-x: auto; white-space: pre; }
.panel pre .c { color: #7d817b; }
.panel pre .p { color: var(--accent); user-select: none; }
.panel .copy { position: absolute; top: 16px; right: 16px; }
.panel-note { margin-top: 14px; color: var(--ink-muted); font: 13px/1.6 var(--sans); }
.panel-note a { color: #ffb08f; }
.qs-points { display: grid; gap: 14px; margin-top: 28px; }
.qs-points div { display: flex; gap: 14px; align-items: baseline; }
.qs-points b { font-family: var(--mono); color: var(--accent-deep); font-size: 14px; }
.qs-points span { color: var(--muted); }
.qs-points strong { color: var(--heading); }

/* stack row */
.stack { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.stack span { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 14px; font-weight: 600; color: var(--heading); }

/* CTA */
.cta { position: relative; overflow: hidden; isolation: isolate; text-align: center; border-radius: 28px; padding: 88px 24px; margin: 0 0 96px; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(520px 300px at 50% 0%, rgba(228, 87, 46, .38), transparent 70%), var(--ink); }
.cta h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; max-width: 17ch; margin: 0 auto; }
.cta p { color: var(--ink-muted); max-width: 560px; margin: 18px auto 0; font-size: 18.5px; }
.cta .hero-actions { margin-top: 32px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 54px 0 40px; color: var(--muted); font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot .brand { color: var(--heading); }
.foot p { margin-top: 12px; max-width: 320px; }
.foot h4 { margin: 0 0 12px; color: var(--heading); font-size: 14px; letter-spacing: .02em; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--heading); text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; }

/* reveal (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .btn:hover { transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .facts ul { grid-template-columns: repeat(3, 1fr); }
  .split, .trust, .qs { grid-template-columns: 1fr; gap: 44px; }
  .trust-shot { position: static; }
  .ai-visual .frame { margin: 0 auto; }
  .c-7, .c-5, .c-6, .c-4, .c-8 { grid-column: span 12; }
  .tall { min-height: 420px; }
  .mini-grid { grid-template-columns: 1fr 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .nav.open { background: var(--ink); }
  .nav.open .nav-in { flex-wrap: wrap; height: auto; padding: 13px 0 18px; }
  .nav.open .brand { height: 42px; }
  .nav.open .menu-btn { margin-left: auto; }
  .nav.open .nav-links { display: flex; flex-direction: column; width: 100%; margin: 6px 0 0; order: 3; }
  .nav.open .nav-links a { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--ink-line); border-radius: 0; }
  .nav.open .nav-cta { display: flex; width: 100%; order: 4; margin: 14px 0 0; }
  .nav.open .nav-cta .btn { flex: 1; min-height: 46px; }
  .hero { padding: 56px 0 40px; }
  .stage { padding-bottom: 64px; }
  .float-chip { display: none; }
  .phone { right: -6px; bottom: 20px; width: 30%; min-width: 0; border-radius: 20px; padding: 4px; }
  .phone img { border-radius: 16px; }
  .frame-bar u { display: none; }
  .sec { padding: 84px 0; }
  .sec-head { margin-bottom: 40px; }
  .card-copy { padding: 24px 22px 0; }
  .card .shot { margin: 22px 0 0 22px; }
  .tall { min-height: 340px; }
  .mini-grid { grid-template-columns: 1fr; }
  .trust-list { grid-template-columns: 1fr; }
  .cta { padding: 64px 20px; border-radius: 22px; margin-bottom: 64px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li:last-child { grid-column: span 2; }
  .hero-actions .btn { flex: 1 1 100%; }
  .cmd { width: 100%; }
  .terminal { position: static; width: 100%; margin-top: 16px; }
  .foot { grid-template-columns: 1fr; }
}

/* utilities used by the page and 404 (kept out of style="" so the CSP needs no 'unsafe-inline') */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sec.flush { padding-top: 0; }
.h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; margin-top: 14px; }
.sub { font-size: 19px; color: var(--muted); margin-top: 18px; }
.page-404 { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.page-404 img { margin: 0 auto 24px; }
.page-404 h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; }
.hero h1 em { white-space: nowrap; }
@media print { .js .reveal { opacity: 1; transform: none; } .nav, .phone, .float-chip { display: none; } }
.pill b { white-space: nowrap; }
@media (max-width: 560px) { .pill { font-size: 13px; text-align: left; } }
