/* PaperTriage design system: tokens.css + components/bundle.css (copied from the system), fonts served locally */
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; }
:root, [data-theme="light"] {
  --ground: #f4f6f9; --ambient-sky: #d5e3ff; --ambient-mint: #d6f2e7; --surface: #ffffff; --surface-sunken: #eceff4;
  --glass: rgba(255,255,255,0.62); --glass-solid: rgba(255,255,255,0.94); --glass-edge: rgba(255,255,255,0.85);
  --line: #e2e6ed; --ink: #11141a; --ink-muted: #566072; --ink-disabled: #9aa2b0; --accent: #2a4bd4; --on-accent: #ffffff;
  --accent-soft: #e7ecff; --success: #0b7656; --success-soft: #e1f5ed; --warning: #8f5400; --warning-soft: #fff2d8;
  --danger: #bf3417; --danger-soft: #fde9e4; --scrim: rgba(13,16,21,0.38);
  --shadow-card: 0 1px 2px rgba(17,20,26,0.05), 0 4px 16px rgba(17,20,26,0.04);
  --shadow-glass: 0 12px 40px rgba(17,20,26,0.10), inset 0 1px 0 rgba(255,255,255,0.9);
  --shadow-dialog: 0 24px 64px rgba(17,20,26,0.18);
}
:root {
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; --space-8: 32px;
  --radius-sm: 10px; --radius-md: 16px; --radius-lg: 24px; --radius-xl: 32px; --radius-pill: 999px;
  --blur-glass: 24px; --blur-scrim: 6px;
  --font-sans: "Geist", "Roboto Flex", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Roboto Mono", monospace;
}
body { margin: 0; }
.pt, .pt * { box-sizing: border-box; }
.pt { font-family: var(--font-sans); color: var(--ink); -webkit-font-smoothing: antialiased; }
.pt-ambient { position: relative; background: var(--ground); overflow: hidden; isolation: isolate; }
.pt-ambient::before, .pt-ambient::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(48px); pointer-events: none; }
.pt-ambient::before { width: 320px; height: 260px; top: -90px; right: -80px; background: var(--ambient-sky); }
.pt-ambient::after { width: 300px; height: 240px; bottom: -60px; left: -90px; background: var(--ambient-mint); }
.pt-glass { background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-glass); -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(1.4); backdrop-filter: blur(var(--blur-glass)) saturate(1.4); }
.pt-display { font-size: 30px; line-height: 34px; font-weight: 600; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.pt-title { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.pt-headline { font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.pt-body { font-size: 15px; line-height: 22px; margin: 0; color: var(--ink-muted); }
.pt-small { font-size: 13px; line-height: 18px; margin: 0; color: var(--ink-muted); }
.pt-label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.pt-file { font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-meta { font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.pt-figure { font-family: var(--font-mono); font-size: 28px; line-height: 32px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pt-btn { display: flex; align-items: center; justify-content: center; gap: var(--space-2); width: 100%; min-height: 52px; padding: 0 var(--space-5); border: 0; border-radius: var(--radius-md); font: 600 16px/1 var(--font-sans); letter-spacing: -0.01em; cursor: pointer; text-decoration: none; }
.pt-btn-primary { background: var(--accent); color: var(--on-accent); }
.pt-btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.pt-btn-text { background: none; color: var(--accent); min-height: 44px; }
.pt-btn-help { display: flex; align-items: center; gap: var(--space-1); justify-content: center; font-size: 13px; line-height: 18px; color: var(--ink-muted); margin: 0 0 var(--space-2); }
.pt-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.pt-chip svg { width: 13px; height: 13px; flex: none; }
.pt-chip-accent { background: var(--accent-soft); color: var(--accent); }
.pt-chip-success { background: var(--success-soft); color: var(--success); }
.pt-chip-warning { background: var(--warning-soft); color: var(--warning); }
.pt-chip-neutral { background: var(--surface-sunken); color: var(--ink-muted); }
.pt-step { display: flex; align-items: center; gap: var(--space-3); }
.pt-step-pill { height: 28px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; }
.pt-step-bars { display: flex; gap: 4px; flex: 1; }
.pt-step-bars i { flex: 1; height: 4px; border-radius: var(--radius-pill); background: var(--surface-sunken); }
.pt-step-bars i.on { background: var(--accent); }
.pt-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: var(--space-3); }
.pt-card-hero { border: 2px solid var(--accent); }
.pt-card-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pt-card-row .pt-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-sunken); display: grid; place-items: center; flex: none; color: var(--ink-muted); }
.pt-card-row .grow { flex: 1; min-width: 0; }
.pt-chev { width: 18px; height: 18px; color: var(--ink-muted); flex: none; }
.pt-facts { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.pt-facts li { display: flex; align-items: center; gap: 6px; }
.pt-facts svg { width: 15px; height: 15px; color: var(--success); }
.pt-files { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.pt-filerow { display: flex; align-items: center; gap: var(--space-3); padding: 12px var(--space-4); border-top: 1px solid var(--line); }
.pt-filerow:first-child { border-top: 0; }
.pt-filerow .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pt-filerow.is-skipped .pt-file { color: var(--ink-muted); }
.pt-was { font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-progress { border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.pt-progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.pt-track { height: 8px; border-radius: var(--radius-pill); background: var(--surface-sunken); overflow: hidden; }
.pt-track i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.pt-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent); }
.pt-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.pt-actionbar { border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding: var(--space-4) var(--space-4) var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); border-bottom: 0; }
.pt-banner { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--warning-soft); color: var(--ink); font-size: 13px; line-height: 18px; }
.pt-banner svg { width: 18px; height: 18px; color: var(--warning); flex: none; margin-top: 1px; }
.pt-banner.info { background: var(--accent-soft); }
.pt-banner.info svg { color: var(--accent); }
.pt-scrim { position: absolute; inset: 0; background: var(--scrim); -webkit-backdrop-filter: blur(var(--blur-scrim)); backdrop-filter: blur(var(--blur-scrim)); display: grid; place-items: center; padding: var(--space-6); }
.pt-dialog { width: 100%; max-width: 340px; background: var(--surface); border-radius: var(--radius-xl); padding: var(--space-6) var(--space-5) var(--space-5); box-shadow: var(--shadow-dialog); display: flex; flex-direction: column; gap: var(--space-3); text-align: center; align-items: center; }
.pt-dialog-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--danger-soft); color: var(--danger); }
.pt-dialog-icon svg { width: 26px; height: 26px; }
.pt-dialog .pt-btns { display: flex; flex-direction: column; gap: var(--space-2); width: 100%; margin-top: var(--space-2); }
.pt-dialog-icon.info { background: var(--accent-soft); color: var(--accent); }
.pt-dialog.left { text-align: left; align-items: stretch; max-width: 440px; }
.pt-dialog.left .pt-btns { flex-direction: row; justify-content: flex-end; }
.pt-desk { font-size: 14px; line-height: 20px; }
.pt-desk .pt-display { font-size: 26px; line-height: 32px; }
.pt-desk .pt-body { font-size: 14px; line-height: 20px; }
.pt-btn-sm { width: auto; min-height: 40px; padding: 0 var(--space-4); font-size: 14px; border-radius: 12px; }
.pt-btn svg { width: 18px; height: 18px; flex: none; }
.pt-side { width: 232px; flex: none; display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4) var(--space-3); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; border-left: 0; }
.pt-side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.pt-side .brand i { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); display: block; }
.pt-nav { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 10px; color: var(--ink-muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.pt-nav svg { width: 18px; height: 18px; flex: none; }
.pt-nav.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }
.pt-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.pt-tr { display: grid; align-items: center; gap: var(--space-3); min-height: 48px; padding: 6px var(--space-4); border-top: 1px solid var(--line); }
.pt-tr > * { min-width: 0; }
.pt-th { min-height: 38px; border-top: 0; background: var(--surface-sunken); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); }
.pt-tr.group { background: var(--ground); font-weight: 600; min-height: 40px; }
.pt-tr.is-dup { background: var(--warning-soft); }
.pt-path { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-cb { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--ink-disabled); background: var(--surface); display: grid; place-items: center; color: var(--on-accent); flex: none; }
.pt-cb.on, .pt-cb.mixed { background: var(--accent); border-color: var(--accent); }
.pt-cb svg { width: 13px; height: 13px; }
.pt-input { width: 100%; height: 34px; padding: 0 10px; border-radius: 8px; border: 1.5px solid var(--accent); background: var(--surface); font: 500 13px/1 var(--font-mono); color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.pt-toast { display: flex; align-items: center; gap: var(--space-3); padding: 12px var(--space-4); border-radius: var(--radius-md); font-size: 14px; line-height: 20px; }
.pt-toast svg { width: 20px; height: 20px; color: var(--success); flex: none; }

@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
.dc-if { display: contents; }
.dc-if[hidden] { display: none; }

/* ---- page styles shared by every page ---- */

/* Hallmark · v2.0.0 · home (EN), direction A, Cristal · system: PaperTriage design system (locked) · shape: Stage hero, feature stack · job: download · signature: the 44-second demo over the review screen · imagery: screenshots 4 + demo video (redesigned screens, demo files) · copy: provisional */
/* Hallmark · motion: one reveal (hero), the live rename loop as product state, a billing swap, hover lifts · reduced motion shows the renamed state */
/* Hallmark · type: Bricolage Grotesque for headings (web display), Geist for text, Geist Mono for file names */
/* Hallmark · pre-emit critique: P3 H4 E4 S4 R3 V3 · weakest: R, eleven template blocks folded into nine sections; FAQ answers stay folded so the screen budget holds */
/* Hallmark · waive 81 · ambient-sky and ambient-mint fields behind the glass nav · they are the design system's ground for glass, never a picture slot */
:root { --font-display: "Bricolage Grotesque", var(--font-sans); --web-container: 1200px; --web-hero: clamp(44px, 5.2vw, 76px); --web-section: clamp(32px, 3.4vw, 48px); --web-body: 17px; }
html, body { overflow-x: clip; }
body { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pt-th { text-transform: none; letter-spacing: 0; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .faq-chev { transform: rotate(180deg); }
.faq-chev { transition: transform 200ms ease-out; }
/* Motion: state, not decoration. transform and opacity only. One reveal (the hero). */
@keyframes pt-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.intro > * { animation: pt-rise 700ms cubic-bezier(.16, 1, .3, 1) both; }
.intro > *:nth-child(2) { animation-delay: 90ms; }
.intro > *:nth-child(3) { animation-delay: 180ms; }
.intro > *:nth-child(4) { animation-delay: 260ms; }
.intro-media { animation: pt-rise 900ms 200ms cubic-bezier(.16, 1, .3, 1) both; }
.lift { transition: transform 200ms ease-out, box-shadow 200ms ease-out; }
.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-glass); }
.pt-btn { transition: transform 160ms ease-out, background-color 200ms ease-out; }
.pt-btn:hover { transform: translateY(-1px); }
.pt-btn:active { transform: scale(.98); }
/* Live rename: each row goes waiting, reading, renamed; 11 s loop, rows staggered */
@keyframes rr-old { 0%, 30% { opacity: 1; transform: none; } 36%, 94% { opacity: 0; transform: translateY(-8px); } 100% { opacity: 1; transform: none; } }
@keyframes rr-new { 0%, 34% { opacity: 0; transform: translateY(8px); } 40%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes rr-scan { 0%, 10% { opacity: 0; transform: translateX(-120%); } 13% { opacity: 1; } 31% { opacity: 1; transform: translateX(260%); } 34%, 100% { opacity: 0; transform: translateX(260%); } }
@keyframes rr-wait { 0%, 10% { opacity: 1; } 12%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes rr-read { 0%, 10% { opacity: 0; } 12%, 34% { opacity: 1; } 36%, 100% { opacity: 0; } }
.rr-old { animation: rr-old 11s ease-in-out infinite both; }
.rr-new { animation: rr-new 11s ease-out infinite both; }
.rr-scan { animation: rr-scan 11s ease-in-out infinite both; }
.rr-wait { animation: rr-wait 11s linear infinite both; }
.rr-read { animation: rr-read 11s linear infinite both; }
/* Billing toggle: the price swaps in */
@keyframes swap-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.swap { animation: swap-in 320ms cubic-bezier(.16, 1, .3, 1) both; }
/* Phone: burger menu, live rename on two lines, claims stacked */
.nav-burger { display: none; }
@media (max-width: 900px) {
  .nav-links, .nav-lang { display: none !important; }
  .nav-burger { display: grid; }
}
@media (min-width: 901px) { .mobile-menu { display: none !important; } }
@media (max-width: 640px) {
  .rr-head, .rr-icon, .rr-folder { display: none !important; }
  .rr-row { grid-template-columns: minmax(0, 1fr) 84px !important; min-height: 76px !important; }
  .rr-name { height: 60px !important; }
  .rr-newname { white-space: normal !important; overflow-wrap: break-word; font-size: 13px !important; line-height: 17px !important; }
  .claim-head { display: none !important; }
  .claim-row { grid-template-columns: 1fr !important; gap: 4px !important; }
}
/* Web display type: Bricolage Grotesque for headings; Geist for everything else */
h1, h2, h3 { font-family: var(--font-display); font-optical-sizing: auto; }
h1 { letter-spacing: -0.03em !important; font-weight: 600 !important; }
h2 { letter-spacing: -0.025em !important; font-weight: 600 !important; }
h3 { letter-spacing: -0.01em !important; }
details > summary { font-family: var(--font-display); }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .rr-old, .rr-scan, .rr-wait, .rr-read { opacity: 0 !important; }
  .rr-new { opacity: 1 !important; transform: none !important; }
}

/* Reveal on scroll: added by site.js only when motion is allowed */
.reveal-on .rv { opacity: 0; transform: translateY(28px); transition: opacity 700ms cubic-bezier(.16, 1, .3, 1), transform 700ms cubic-bezier(.16, 1, .3, 1); transition-delay: var(--rv-delay, 0ms); }
.reveal-on .rv.in { opacity: 1; transform: none; }

/* Solutions dropdown in the desktop menu */
.nav-dd { position: relative; display: inline-flex; }
.nav-dd-panel { position: absolute; top: 100%; left: 0; z-index: 20; min-width: 270px; margin-top: 6px; padding: 8px; border-radius: var(--radius-lg); display: none; flex-direction: column; }
.nav-dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.nav-dd:hover .nav-dd-panel, .nav-dd:focus-within .nav-dd-panel { display: flex; }
.nav-dd-panel a { padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; }
.nav-dd-panel a:hover { background: var(--surface-sunken); color: var(--ink); }
