:root {
  --text: #0f1e35;
  --text-dim: #57626f;
  --text-dimmer: #8996a3;
  --bg: #ffffff;
  --bg-alt: #f5f8f9;
  --card: #ffffff;
  --border: #e3e9ec;
  --accent: #14b8a6;
  --accent-dark: #0f9488;
  --accent-soft: #e6f7f4;
  --navy: #0f1e35;
  --navy-2: #172a47;
  --ok: #059669;
  --warn: #d97706;
  --bad: #dc2626;
  --accent2: #10b981;
  --grad: linear-gradient(135deg, #14b8a6, #10b981);
  --grad-btn: linear-gradient(135deg, #0f9488, #059669);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 30, 53, 0.08);
  --shadow-sm: 0 2px 12px rgba(15, 30, 53, 0.05);
  --shadow-md: 0 12px 28px rgba(15, 30, 53, 0.14);
  --font-head: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; max-width: 700px; }
.center h2 { margin-left: auto; margin-right: auto; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
pre { background: #0f1e35; color: #d9f5f0; padding: 1rem 1.2rem; border-radius: 10px; overflow-x: auto; line-height: 1.5; }
code.inline { background: var(--bg-alt); padding: 0.1em 0.4em; border-radius: 6px; }

.container { width: min(1120px, calc(100% - 2.5rem)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 2.5rem)); margin: 0 auto; }
section { padding: clamp(72px, 9vw, 112px) 0; }
.mt-2 { margin-top: 2rem; }
section.alt { background: var(--bg-alt); }
section.dark { background: var(--navy); color: #e6edf5; }
section.dark h2, section.dark h3 { color: #fff; }
section.dark p { color: #c7d2de; }
.kicker { font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 0.8rem; }
section.dark .kicker { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--text-dim); max-width: 60ch; }
section.dark .lead { color: #c7d2de; }
.muted { color: var(--text-dim); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* announcement */
.announce { background: var(--navy); color: #e6edf5; font-size: 0.92rem; padding: 0.55rem 0; text-align: center; }
.announce strong { color: #fff; }
.announce a { color: var(--accent); font-weight: 600; margin-left: 0.5rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); transition: box-shadow 0.3s ease; }
.site-header.scrolled { box-shadow: 0 2px 16px rgba(15, 30, 53, 0.06); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { height: 32px; width: auto; }
.brand .tag { font-family: var(--font-body); font-weight: 500; font-size: 0.72rem; color: var(--text-dimmer); letter-spacing: 0.06em; text-transform: uppercase; border-left: 1px solid var(--border); padding-left: 0.6rem; }
nav.main { display: flex; align-items: center; gap: 1.6rem; }
nav.main a { color: var(--text-dim); font-weight: 600; font-size: 0.92rem; transition: color 0.2s; white-space: nowrap; }
nav.main a:hover { color: var(--accent-dark); text-decoration: none; }
nav.main a.active { color: var(--text); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 0.7rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 0.4rem 0.6rem; font: inherit; cursor: pointer; }
@media (max-width: 900px) {
  nav.main { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.25rem; border-bottom: 1px solid var(--border); gap: 0.9rem; }
  nav.main.open { display: flex; }
  .nav-toggle { display: inline-block; }
  .nav-actions .btn.ghost { display: none; }
  .brand .tag { display: none; }
  .brand img { height: 28px; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.7rem 1.25rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem; border: 1px solid transparent; cursor: pointer; font-family: var(--font-body); transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.15s, color 0.15s, border-color 0.15s; line-height: 1.2; text-align: center; max-width: 100%; }
.nav-actions .btn { white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn.primary { background: var(--grad-btn); color: #fff; box-shadow: 0 6px 18px rgba(20, 184, 166, 0.28); }
.btn.primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(20, 184, 166, 0.4); }
.btn.ghost { background: rgba(255, 255, 255, 0.85); color: var(--text); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-dark); background: #fff; }
.btn.soft { background: rgba(20, 184, 166, 0.12); color: var(--accent-dark); border-color: rgba(20, 184, 166, 0.2); }
.btn.soft:hover { background: rgba(20, 184, 166, 0.2); }
.btn.dark { background: var(--navy); color: #fff; }
.btn.dark:hover { background: var(--navy-2); }
.btn.light { background: #fff; color: var(--navy); }
.btn.lg { padding: 0.95rem 1.7rem; font-size: 1.05rem; }
.btn.sm { padding: 0.45rem 0.8rem; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* hero */
.hero { padding: 5rem 0 4rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 1rem; }
.hero .lead { font-size: 1.2rem; }

/* task mock in hero */
.queue { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 18px; padding: 1.1rem; box-shadow: var(--shadow); }
.queue .qhead { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--text-dim); padding: 0 0.3rem 0.7rem; }
.qcard { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 0.85rem 1rem; margin-bottom: 0.6rem; display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 1rem; align-items: center; }
.qcard .t { font-weight: 600; font-size: 0.95rem; }
.qcard .m { font-size: 0.8rem; color: var(--text-dim); grid-column: 1; }
.qcard .pay { font-family: var(--font-head); font-weight: 700; color: var(--accent-dark); grid-row: span 2; }
.chip { display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); margin-right: 0.35rem; }
.chip.navy { background: #e8edf5; color: var(--navy); }
.chip.warn { background: #fef3e2; color: #9a5b00; }
.chip.ok { background: #e3f6ee; color: #086e4b; }
.chip.bad { background: #fde8e8; color: #9b1c1c; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3rem; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.3rem; background: #fff; }
.stat .n { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat .l { font-size: 0.85rem; color: var(--text-dim); margin-top: 0.4rem; }

/* cards + grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; position: relative; box-shadow: var(--shadow-sm); transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(15, 30, 53, 0.12); border-color: rgba(20, 184, 166, 0.4); }
.card h3 { margin-top: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card.soft { background: var(--bg-alt); border-color: transparent; }
section.dark .card { background: var(--navy-2); border-color: #26395a; color: #dbe4ef; }
section.dark .card h3 { color: #fff; }
.icon { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
section.dark .icon { background: rgba(20, 184, 166, 0.18); color: var(--accent); }

/* steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 0.2rem 0.9rem; align-items: start; }
.steps li::before { content: counter(step); grid-column: 1; grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--grad-btn); color: #fff; box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3); font-family: var(--font-head); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.steps li strong { display: block; grid-column: 2; padding-top: 0.3rem; }
.steps li span { grid-column: 2; color: var(--text-dim); font-size: 0.95rem; }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-family: var(--font-head); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.table-wrap table { min-width: 620px; }
td.yes { color: var(--ok); font-weight: 600; }
td.no { color: var(--bad); font-weight: 600; }

/* forms */
form.stack { display: grid; gap: 1rem; }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--border); border-radius: 10px; font: inherit; color: var(--text); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.help { font-size: 0.85rem; color: var(--text-dim); margin-top: 0.3rem; }
.notice { border-radius: 10px; padding: 0.8rem 1rem; font-size: 0.95rem; border: 1px solid var(--border); background: var(--bg-alt); }
.notice.ok { background: #e3f6ee; border-color: #b6e6d0; color: #065f46; }
.notice.bad { background: #fde8e8; border-color: #f5bcbc; color: #7f1d1d; }
.notice.warn { background: #fef3e2; border-color: #f7d9a8; color: #7c4a03; }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.role-switch label { border: 1px solid var(--border); border-radius: 12px; padding: 0.9rem 1rem; cursor: pointer; font-weight: 500; display: grid; gap: 0.2rem; }
.role-switch label strong { font-family: var(--font-head); }
.role-switch input { margin-right: 0.4rem; }
.role-switch label.selected { border-color: var(--accent); background: var(--accent-soft); }

/* auth pages */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 3rem 0; background: var(--bg-alt); }
.auth-wrap .form-card { width: min(520px, calc(100% - 2rem)); }

/* faq */
.faq details { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--font-head); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--accent-dark); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0.6rem 0 0; color: var(--text-dim); }

/* dashboard */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.status-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin: 1rem 0 0; }
@media (max-width: 720px) { .status-track { grid-template-columns: repeat(2, 1fr); } }
.status-step { border: 1px solid var(--border); border-radius: 12px; padding: 0.8rem 0.9rem; font-size: 0.9rem; background: #fff; }
.status-step .s { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dimmer); }
.status-step.done { border-color: #b6e6d0; background: #f0fbf6; }
.status-step.done .s { color: var(--ok); }
.status-step.now { border-color: var(--accent); }
.status-step.now .s { color: var(--accent-dark); }
.task-card { display: grid; gap: 0.5rem; }
.task-card .meta { font-size: 0.85rem; color: var(--text-dim); display: flex; gap: 0.8rem; flex-wrap: wrap; }
.task-card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 0.4rem; }
.task-gallery .task-card { grid-template-rows: auto auto auto 1fr auto auto; padding: 1.1rem; }
.task-gallery .task-card .foot { align-self: end; }
.task-gallery .task-card h3 { font-size: 1.05rem; }
.task-gallery .task-card .meta { font-size: 0.8rem; gap: 0.15rem 0.6rem; }
.task-thumb { aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: #fff; margin-bottom: 0.35rem; }
.task-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center top; }
.task-card:hover .task-thumb img { transform: scale(1.02); }
.task-thumb img { transition: transform 0.4s ease; }
.progress { height: 6px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); }

/* task runner */
.task-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .task-layout { grid-template-columns: 1fr; } }
.doc-frame { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1rem; box-shadow: var(--shadow); }
.doc-frame svg { width: 100%; height: auto; display: block; }
.answer-panel { position: sticky; top: 88px; }
.instructions { list-style: disc; padding-left: 1.2rem; color: var(--text-dim); font-size: 0.95rem; }
.item-block { border: 1px solid var(--border); border-radius: 12px; padding: 1rem; margin-bottom: 0.9rem; background: #fff; }
.item-block .q { font-weight: 600; margin-bottom: 0.5rem; }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choices label { border: 1px solid var(--border); border-radius: 999px; padding: 0.35rem 0.8rem; font-weight: 500; font-size: 0.9rem; cursor: pointer; margin: 0; }
.choices label.selected { background: var(--navy); color: #fff; border-color: var(--navy); }
.choices input { display: none; }
.choices.multi label { border-radius: 10px; }
.choices.multi label:not(.selected)::before { content: "\25CB"; margin-right: 0.4rem; color: var(--text-dimmer); }
.choices.multi label.selected::before { content: "\2713"; margin-right: 0.4rem; }
.bbox-svg { cursor: crosshair; touch-action: none; user-select: none; -webkit-user-select: none; }
.bbox-targets { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; align-items: center; }
.bbox-chip { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 0.35rem 0.9rem; font: inherit; font-weight: 600; font-size: 0.9rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.45rem; color: var(--text); }
.bbox-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.bbox-chip.active { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15, 30, 53, 0.12); }
.bbox-chip.done::after { content: "\2713"; color: var(--accent-dark); margin-left: 0.1rem; }
.rec { display: grid; gap: 0.2rem; font-size: 0.92rem; background: var(--bg-alt); border-radius: 10px; padding: 0.7rem 0.9rem; }
.rec b { font-family: var(--font-head); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 0.6rem; }
@media (max-width: 620px) { .pair { grid-template-columns: 1fr; } }
.result-list { list-style: none; padding: 0; margin: 0.8rem 0 0; display: grid; gap: 0.4rem; }
.result-list li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; border-bottom: 1px dashed var(--border); padding-bottom: 0.3rem; }
.score { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--navy); }
.handwriting { font-family: 'Caveat', 'Bradley Hand', 'Segoe Script', cursive; }
.lineitem-row { display: grid; grid-template-columns: 1fr 120px; gap: 0.6rem; margin-bottom: 0.5rem; }

/* footer */
.site-footer { background: var(--navy); color: #b8c4d3; padding: 3.5rem 0 2rem; margin-top: 0; font-size: 0.92rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.8rem; }
.site-footer a { color: #d5dee9; display: block; margin-bottom: 0.45rem; }
.site-footer .legal { border-top: 1px solid #26395a; margin-top: 2.5rem; padding-top: 1.25rem; font-size: 0.82rem; color: #8ea0b7; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer .brand { color: #fff; }
.site-footer .brand img { filter: brightness(0) invert(1); }

/* misc */
.pill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.pill-list li { border: 1px solid var(--border); border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.92rem; background: #fff; }
.partner-card .loc { color: var(--text-dim); font-size: 0.9rem; }
.partner-card dl { margin: 0.8rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.8rem; font-size: 0.88rem; }
.partner-card dt { color: var(--text-dimmer); }
.partner-card dd { margin: 0; }
.callout { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 1rem 1.2rem; border-radius: 0 12px 12px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.toast { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 0.7rem 1.1rem; border-radius: 10px; font-size: 0.92rem; box-shadow: var(--shadow); z-index: 100; }
.hidden { display: none !important; }
.legal-text h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal-text p, .legal-text li { color: var(--text-dim); }

/* requester console */
.tabs { display: flex; gap: 0.4rem; border-bottom: 1px solid var(--border); margin: 1rem 0 1.5rem; }
.tab { background: none; border: none; border-bottom: 3px solid transparent; padding: 0.6rem 0.9rem; font: inherit; font-weight: 600; color: var(--text-dim); cursor: pointer; }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.wizard-steps { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 1.5rem; }
.step-pill { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid var(--border); border-radius: 999px; padding: 0.35rem 0.9rem 0.35rem 0.4rem; font-size: 0.9rem; color: var(--text-dim); }
.step-pill span { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-alt); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; }
.step-pill.now { border-color: var(--accent); color: var(--text); }
.step-pill.now span { background: var(--accent); color: #062b27; }
.step-pill.done span { background: var(--navy); color: #fff; }
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
@media (max-width: 900px) { .type-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .type-grid { grid-template-columns: 1fr; } }
.type-card { text-align: left; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1rem; font: inherit; cursor: pointer; display: grid; gap: 0.25rem; }
.type-card strong { font-family: var(--font-head); }
.type-card span { color: var(--text-dim); font-size: 0.9rem; }
.type-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.code-area { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; min-height: 340px; }
.preview-frame { width: 100%; min-height: 360px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.qual-row { display: grid; grid-template-columns: 1.4fr 1.2fr 1.4fr 1.4fr auto; gap: 0.5rem; margin-bottom: 0.5rem; align-items: center; }
@media (max-width: 900px) { .qual-row { grid-template-columns: 1fr 1fr; } }
dl.summary { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; margin: 0.8rem 0 0; font-size: 0.93rem; }
dl.summary dt { color: var(--text-dimmer); }
dl.summary dd { margin: 0; }

/* language switcher */
.lang-switch { display: inline-flex; align-items: center; gap: 0.35rem; border: 1px solid var(--accent); border-radius: 999px; padding: 0.3rem 0.6rem 0.3rem 0.7rem; background: var(--accent-soft); color: var(--accent-dark); margin: 0; font-weight: 600; }
.lang-switch svg { flex: none; }
.lang-select { border: none; background: transparent; font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--accent-dark); max-width: 9.5rem; cursor: pointer; padding: 0.1rem 0; }
.lang-select:focus { outline: none; }
@media (max-width: 900px) { .lang-select { max-width: 6.5rem; font-size: 0.82rem; } .lang-switch { padding: 0.25rem 0.45rem 0.25rem 0.55rem; } }

/* grid children may shrink below their content on narrow screens (long translated labels) */
.hero-grid > *, .two-col > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .split > *, .stats > * { min-width: 0; }
.card, .queue, .stat, .partner-card dd, .status-step { overflow-wrap: anywhere; }

/* hero globe (same widget as the A2Z migration page) */
.hero-visual { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1; margin: 0 auto; }
@media (max-width: 900px) { .hero-visual { max-width: 420px; } }
.globe-viz { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.globe-viz:active { cursor: grabbing; }
.globe-face-anchor { position: relative; pointer-events: none; }
.globe-face { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; box-shadow: 0 6px 18px rgba(15, 30, 53, 0.25); opacity: 0; animation: globe-face-fade 4.5s ease-in-out infinite; }
.globe-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes globe-face-fade {
  0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  15%, 75% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  90% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}
@media (prefers-reduced-motion: reduce) { .globe-face { animation: none; opacity: 1; } }

/* ===== home page redesign: video hero, motion, counters, comparison ===== */
.btn[disabled]:hover { transform: none; }
section.dark .card:hover { border-color: rgba(20, 184, 166, 0.5); }

/* reveal on scroll and staggered headline, gated on html.js so a script failure never hides content */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal.in-view { opacity: 1; transform: translateY(0); }
html.js .stagger-line { display: inline-block; opacity: 0; transform: translateY(14px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
html.js .stagger-line.is-in { opacity: 1; transform: translateY(0); }
.stagger-accent { color: var(--accent-dark); }

/* video hero, scoped to .hero-cinema so the plain .hero on other pages is untouched */
.hero-cinema { position: relative; min-height: min(92vh, 900px); padding: 64px 0 72px; overflow: hidden; background: var(--bg); display: flex; align-items: center; }
.hero-bg-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.hero-cinema::after { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.08) 55%), linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, rgba(245, 248, 249, 0.6) 100%), radial-gradient(circle at 15% 20%, rgba(20, 184, 166, 0.16), transparent 45%), radial-gradient(circle at 90% 10%, rgba(16, 185, 129, 0.12), transparent 40%); }
.hero-cinema .hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 50px; align-items: center; }
.hero-left { position: relative; z-index: 2; min-width: 0; max-width: 560px; display: flex; flex-direction: column; gap: 18px; }
.hero-content { background: rgba(255, 255, 255, 0.58); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border-radius: 25px; padding: 30px 36px; border: 1.5px solid rgba(20, 184, 166, 0.55); box-shadow: 0 16px 34px rgba(15, 30, 53, 0.2), 0 0 16px rgba(20, 184, 166, 0.22); animation: hero-card-glow 4.5s ease-in-out infinite; }
@keyframes hero-card-glow {
  0%, 100% { box-shadow: 0 16px 34px rgba(15, 30, 53, 0.2), 0 0 16px rgba(20, 184, 166, 0.22); }
  50% { box-shadow: 0 18px 38px rgba(15, 30, 53, 0.22), 0 0 22px rgba(20, 184, 166, 0.32); }
}
.hero-cinema .kicker { margin-bottom: 0.6rem; }
.hero-cinema h1 { font-size: clamp(30px, 3.7vw, 44px); line-height: 1.1; margin-bottom: 14px; text-shadow: 0 1px 16px rgba(255, 255, 255, 0.6), 0 1px 3px rgba(255, 255, 255, 0.5); }
.hero-cinema .hero-sub { font-size: 15.5px; max-width: 560px; margin-bottom: 0; color: var(--text); }
.hero-ctas { margin-top: 0; }
.hero-urgency { display: inline-flex; align-items: center; gap: 5px; background: rgba(245, 158, 11, 0.14); color: #92400e; border: 1px solid rgba(245, 158, 11, 0.4); font-size: 11.5px; font-weight: 700; padding: 6px 13px; border-radius: 999px; margin-bottom: 14px; transition: transform 0.2s ease, background 0.2s ease; }
.hero-urgency:hover { background: rgba(245, 158, 11, 0.22); transform: translateY(-1px); text-decoration: none; }
.trust-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trust-row li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text); background: rgba(255, 255, 255, 0.84); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(20, 184, 166, 0.35); border-radius: 999px; padding: 6px 12px 6px 7px; box-shadow: 0 4px 14px rgba(15, 30, 53, 0.12); }
.trust-row li::before { content: '\2713'; width: 18px; height: 18px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
/* globe over the video: a navy vignette disc so the marble texture reads against bright footage */
.hero-cinema .hero-visual { position: relative; z-index: 1; width: 100%; max-width: 560px; aspect-ratio: 1 / 1; margin: 0 auto; }
.hero-cinema .hero-visual::before { content: ''; position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(15, 30, 53, 0.78) 0%, rgba(15, 30, 53, 0.55) 42%, rgba(15, 30, 53, 0) 70%); z-index: 0; pointer-events: none; }
.hero-cinema .globe-viz { z-index: 1; }
.hero-blob { position: absolute; border-radius: 42% 58% 65% 35% / 45% 45% 55% 55%; background: var(--grad); opacity: 0.16; z-index: 0; animation: blob-float 9s ease-in-out infinite; }
.hero-blob-1 { width: 198px; height: 198px; top: -32px; left: -36px; animation-duration: 10s; }
.hero-blob-2 { width: 153px; height: 153px; bottom: -22px; right: -27px; opacity: 0.12; animation-duration: 8s; animation-direction: reverse; }
@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); border-radius: 42% 58% 65% 35% / 45% 45% 55% 55%; }
  33% { transform: translate(12px, -14px) scale(1.06); border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%; }
  66% { transform: translate(-10px, 10px) scale(0.97); border-radius: 45% 55% 55% 45% / 40% 45% 55% 60%; }
}

/* why-cards: breathing glow, pinging icon tile, check list */
.card.glow { overflow: hidden; }
.card.glow::before { content: ''; position: absolute; top: -60px; right: -60px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(20, 184, 166, 0.16), transparent 70%); opacity: 0; animation: card-glow 5s ease-in-out infinite; pointer-events: none; }
.card.glow:nth-child(2)::before { animation-delay: 1.2s; }
.card.glow:nth-child(3)::before { animation-delay: 2.4s; }
@keyframes card-glow { 0%, 100% { opacity: 0.25; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.15); } }
.card.glow .icon { position: relative; z-index: 1; }
.card.glow .icon::after { content: ''; position: absolute; inset: 0; border-radius: 12px; border: 1.5px solid var(--accent); opacity: 0; animation: icon-ping-square 4s ease-out infinite; }
.card.glow:nth-child(2) .icon::after { animation-delay: 1.3s; }
.card.glow:nth-child(3) .icon::after { animation-delay: 2.6s; }
@keyframes icon-ping-square { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.35); opacity: 0; } }
.check-list { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.check-list li { font-size: 14px; color: var(--text-dim); padding-left: 22px; position: relative; }
.check-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--accent-dark); font-weight: 700; }
.card .btn.sm { align-self: flex-start; }

/* USP block */
.usp-grid { margin-top: 2.5rem; }
.card.usp { display: flex; flex-direction: column; border-radius: 18px; padding: 1.6rem 1.5rem; overflow: hidden; }
.card.usp::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); opacity: 0; transition: opacity 0.3s ease; }
.card.usp:hover::after { opacity: 1; }
.usp-figure { display: block; font-family: var(--font-head); font-weight: 700; font-size: 2rem; line-height: 1; letter-spacing: -0.02em; background: var(--grad-btn); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 0.9rem; }
.card.usp h3 { font-size: 1.1rem; margin: 0 0 0.4rem; }
.card.usp p { font-size: 0.95rem; color: var(--text-dim); margin: 0; }
.usp-close { margin-top: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; background: var(--navy); border-radius: 18px; padding: 1.4rem 1.8rem; box-shadow: var(--shadow-md); }
.usp-close p { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: #fff; }

/* video band with frosted stat cards */
.scale-band { position: relative; overflow: hidden; background: var(--navy); text-align: center; }
.scale-band-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.scale-band::after { content: ''; position: absolute; inset: 0; z-index: 0; background: rgba(15, 30, 53, 0.45); }
.scale-band .container { position: relative; z-index: 1; }
.scale-band .kicker { color: var(--accent); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4); }
.scale-band h2 { color: #fff; margin-left: auto; margin-right: auto; text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.4); }
.scale-band .lead { color: rgba(255, 255, 255, 0.88); margin-left: auto; margin-right: auto; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
.scale-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; text-align: left; }
.scale-stat { padding: 24px 28px; background: rgba(15, 30, 53, 0.5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius); box-shadow: 0 16px 34px rgba(15, 30, 53, 0.25); min-width: 0; }
.scale-stat .stat-num { display: block; font-family: var(--font-head); font-size: 40px; font-weight: 700; line-height: 1; color: var(--accent); }
.scale-stat p { margin: 8px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.86); }

/* comparison table: sticky first column, A2Z column tinted, scrolls sideways on phones */
.compare-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); margin-top: 2rem; }
.compare-scroll { border: 0; border-radius: 0; }
table.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 1080px; }
.compare-table th, .compare-table td { padding: 13px 13px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare-table th { font-size: 11px; color: var(--text-dimmer); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; background: var(--bg-alt); }
.compare-table td:first-child, .compare-table th:first-child { color: var(--text); font-weight: 600; width: 180px; min-width: 150px; position: sticky; left: 0; background: #fff; z-index: 1; box-shadow: 1px 0 0 var(--border); }
.compare-table th:first-child { background: var(--bg-alt); color: var(--text-dimmer); }
.compare-table td.us, .compare-table th.us { color: var(--accent-dark); font-weight: 700; background: rgba(20, 184, 166, 0.07); }
.compare-table td.them { color: var(--text-dim); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-note { font-size: 13px; color: var(--text-dimmer); margin: 14px 0 0; }

/* tag pill on the dark grid */
.case-tag { display: inline-block; margin-top: 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; color: var(--accent-dark); background: rgba(20, 184, 166, 0.1); padding: 5px 12px; border-radius: 999px; }
section.dark .case-tag { color: var(--accent); background: rgba(20, 184, 166, 0.16); }

/* final CTA card on white */
.cta-inner { text-align: center; padding: 60px 32px; border-radius: 24px; border: 1px solid rgba(20, 184, 166, 0.35); background: linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(16, 185, 129, 0.06)), #fff; box-shadow: var(--shadow-sm); }
.cta-inner h2, .cta-inner .lead { margin-left: auto; margin-right: auto; }
.cta-inner .btn-row { justify-content: center; }

@media (max-width: 1000px) {
  .hero-cinema .hero-grid { grid-template-columns: 1fr; }
  .hero-cinema .hero-visual { max-width: 420px; }
  .hero-left { max-width: 640px; }
  .scale-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero-cinema { padding: 40px 0 56px; }
  .hero-content { padding: 22px 20px; border-radius: 20px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-cinema .hero-visual { max-width: 320px; }
  .scale-grid { grid-template-columns: 1fr; }
  .scale-stat { padding: 20px 22px; }
  .compare-table th, .compare-table td { padding: 11px 14px; font-size: 13px; }
  .compare-table td:first-child, .compare-table th:first-child { width: 140px; min-width: 130px; }
  .usp-close { padding: 1.2rem 1.3rem; }
  .cta-inner { padding: 40px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .stagger-line { opacity: 1; transform: none; transition: none; }
  .hero-content, .hero-blob, .card.glow::before, .card.glow .icon::after { animation: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* translated pages: longer labels, CJK line breaking */
h1, h2, h3 { text-wrap: balance; }
html:not([lang="en"]) .brand .tag { display: none; }
@media (max-width: 1180px) { nav.main { gap: 1.1rem; } }
html[lang="ja"] { word-break: auto-phrase; line-break: strict; }
html[lang="ja"] .hero-cinema h1 { font-size: clamp(26px, 2.9vw, 36px); }

/* worker migration form */
.migration-card { max-width: 760px; margin: 0 auto; }
.optional-divider { display: flex; align-items: center; gap: 0.8rem; color: var(--text-dimmer); font-size: 0.85rem; }
.optional-divider::before, .optional-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
label.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; font-size: 0.92rem; cursor: pointer; }
label.consent input { margin-top: 0.25rem; flex: none; }

/* tab bars scroll inside themselves on narrow screens */
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { white-space: nowrap; flex: none; }

/* admin lists: keep each value on one line and scroll sideways inside the card */
table.nowrap th, table.nowrap td { white-space: nowrap; }

/* worker migration hero: copy on the left, the rotating globe in a dark card on the right */
.migration-hero { padding: 56px 0 48px; }
.identity-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 1.4rem 0 0.4rem; }
.identity-badge { display: inline-flex; align-items: center; padding: 10px 16px; border: 1.5px solid var(--border); border-radius: 14px; background: #fff; }
.identity-badge img { display: block; height: 22px; width: auto; }
.identity-arrow { font-size: 1.2rem; color: var(--text-dimmer); }
.migration-globe { border-radius: 24px; overflow: hidden; background: radial-gradient(circle at 50% 50%, #0f2a3a, #0a1622 70%); box-shadow: var(--shadow-md); }
@media (max-width: 900px) { .migration-globe { max-width: 380px; } }
@media (max-width: 480px) { .identity-row { gap: 8px; } .identity-badge { padding: 8px 12px; } .identity-badge img { height: 18px; } }

/* dev environment banner (site.js shows it on dev.a2zboard.com only) */
.env-banner { background: #fff4d6; color: #7a4b00; text-align: center; font-size: 0.82rem; font-weight: 600; padding: 0.35rem 1rem; border-bottom: 1px solid #f1d38a; }
