/* Aigen PackTrack public site (server-rendered). Tokens from LOOKBIBLE: cream canvas,
   slate primary, Manrope, 0.875rem radius. Mobile-first; fits 360–393 px without overflow. */
@font-face { font-family: Manrope; font-weight: 400; font-display: swap; src: url(/site/fonts/manrope-400.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url(/site/fonts/manrope-600.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 700; font-display: swap; src: url(/site/fonts/manrope-700.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 800; font-display: swap; src: url(/site/fonts/manrope-800.woff2) format("woff2"); }

:root {
  --bg: #f5f4f0; --fg: #21201c; --card: #ffffff; --primary: #53536a; --primary-fg: #f8f6f1;
  --muted: #6e6a5e; --border: #e6e3db; --accent: #edebe3; --radius: 0.875rem; --warn: #8a6d2f; --warn-soft: #f5eeda;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--fg); line-height: 1.6; font-size: 16px; overflow-wrap: anywhere; }
a { color: var(--primary); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
main:focus { outline: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 18px; border-radius: var(--radius); border: 1px solid var(--primary);
  background: var(--primary); color: var(--primary-fg); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-outline { background: transparent; color: var(--primary); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #8c86c9; outline-offset: 2px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); text-decoration: underline; cursor: pointer; text-align: left; }

.site-header { background: rgba(245, 244, 240, 0.95); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--fg); text-decoration: none; }
.site-nav { order: 3; width: 100%; display: flex; gap: 4px 14px; overflow-x: auto; font-size: 15px; scrollbar-width: none; }
.site-nav a { color: var(--fg); text-decoration: none; padding: 6px 0; white-space: nowrap; }
.site-nav a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-actions .lang, .header-actions .signin { font-size: 14px; white-space: nowrap; }
.header-actions .btn { min-height: 40px; padding: 8px 14px; }
@media (min-width: 900px) { .site-nav { order: 0; width: auto; } }

.hero { padding: 48px 0 32px; background-image: radial-gradient(ellipse 60% 45% at 8% 0%, rgb(160 146 214 / .22), transparent 70%), radial-gradient(ellipse 55% 40% at 95% 0%, rgb(140 200 214 / .2), transparent 70%); }
.hero h1 { font-size: clamp(30px, 6vw, 48px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 800; }
.hero p.lead { font-size: 18px; max-width: 680px; margin: 0 0 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14px; }
.checks li::before { content: "✓ "; color: var(--primary); font-weight: 700; }

section.band { padding: 36px 0; }
section.band h2 { font-size: clamp(22px, 4vw, 30px); line-height: 1.2; margin: 0 0 10px; }
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0 0 8px; }
.source { font-size: 13px; color: var(--muted); margin-top: 8px; }
.step-num { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--primary-fg); align-items: center; justify-content: center; font-weight: 800; margin-bottom: 6px; }
.deadline { background: var(--warn-soft); border: 1px solid #e6d7ae; border-radius: var(--radius); padding: 18px; }
.deadline strong.big { font-size: 26px; display: block; }
.price { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.price small { font-size: 16px; font-weight: 600; color: var(--muted); }
.plan ul, .card ul { padding-left: 20px; margin: 8px 0 12px; }
.status-note { font-size: 14px; color: var(--muted); }

details.faq { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 10px; }
details.faq summary { font-weight: 700; cursor: pointer; }
details.faq p { margin: 8px 0 0; }

article.prose, .prose { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 18px; margin: 24px 0; }
.prose h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.15; margin: 0 0 8px; }
.prose h2 { font-size: 21px; margin: 26px 0 8px; }
.prose h3 { font-size: 17px; margin: 18px 0 6px; }
.prose p, .prose li { max-width: 70ch; }
.prose .meta { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.prose ol.sources { font-size: 14px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 6px 8px; text-align: left; vertical-align: top; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; margin: 18px 0 0; }
.legal-nav a[aria-current="page"] { font-weight: 700; color: var(--fg); }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.post-list a.title { font-weight: 700; font-size: 18px; text-decoration: none; color: var(--fg); }
.post-list a.title:hover { text-decoration: underline; }
dl.glossary dt { font-weight: 700; margin-top: 14px; }
dl.glossary dd { margin: 4px 0 0; }
.table-wrap { overflow-x: auto; }
table.data { border-collapse: collapse; width: 100%; font-size: 14px; background: var(--card); }
table.data th, table.data td { border-bottom: 1px solid var(--border); padding: 8px; text-align: left; white-space: nowrap; }
table.data td.num, table.data th.num { text-align: right; }
.badge { display: inline-block; border-radius: 999px; padding: 2px 10px; background: var(--accent); font-size: 13px; font-weight: 700; }

.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 28px 0 90px; font-size: 14px; }
.footer-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }
.footer-grid nav { display: flex; flex-direction: column; gap: 4px; }
.footer-grid h2 { font-size: 14px; margin: 0 0 4px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; margin: 0 0 6px; }
.footer-legal { color: var(--muted); margin-top: 18px; }
.footer-legal p { margin: 2px 0; }

.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--border); box-shadow: 0 -4px 16px rgb(16 18 20 / .08); z-index: 40; padding: 12px 0; }
.cookie-banner[hidden] { display: none; }
.cookie-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.cookie-row p { margin: 0; max-width: 640px; font-size: 14px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .btn { min-width: 110px; }
.cookie-dialog { border: 1px solid var(--border); border-radius: var(--radius); max-width: min(480px, calc(100vw - 32px)); padding: 18px; }
.cookie-dialog h2 { margin-top: 0; font-size: 18px; }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 16px; }

/* PK-29: replaces an inline style attribute (no 'unsafe-inline' in style-src). */
.section-gap { margin-top: 28px; }

/* Supplier form (QA R9-W4-03): a plain task page with the app's form styling. */
.supplier-page { padding: 28px 0 40px; }
.supplier-page h1 { font-size: 26px; line-height: 1.25; margin: 0 0 12px; }
.supplier-page blockquote { margin: 12px 0; padding: 10px 14px; background: var(--accent); border-radius: var(--radius); }
.supplier-form { display: grid; gap: 14px; margin-top: 16px; }
.supplier-form label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.supplier-form input, .supplier-form select { font: inherit; font-weight: 400; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--fg); width: 100%; }
.supplier-form input:focus-visible, .supplier-form select:focus-visible { outline: 3px solid #8c86c9; outline-offset: 1px; }
.supplier-item { display: grid; gap: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 14px 16px; margin: 0; }
.supplier-item legend { font-weight: 700; padding: 0 6px; }
@media (min-width: 640px) { .supplier-item { grid-template-columns: 1fr 1fr; } .supplier-item legend { grid-column: 1 / -1; } }
.supplier-form .btn { justify-self: start; }
body.bare .header-actions .lang[aria-current] { font-weight: 700; text-decoration: none; color: var(--fg); }

/* Signed-in help page: a clear way back to the app (QA R10-06 / R12). */
.app-return { padding-top: 16px; }
