/* GSXN design system
   Navy = trust & officialdom · Agave teal = action, Jalisco · Terracotta = warmth, Mexico · Gold = seals/apostille
   Paper backgrounds evoke certified documents; serif headings give a legal/registry tone. */
:root {
    --navy-950: #071528;
    --navy-900: #0B1F3A;
    --navy-800: #13304F;
    --navy-700: #1D4370;
    --agave-700: #17594F;
    --agave-600: #1F6F64;
    --agave-500: #2A9D8F;
    --agave-50: #E7F3F1;
    --terra-700: #93391F;
    --terra-600: #B4492A;
    --terra-500: #C65D3B;
    --terra-50: #FBEEE8;
    --gold-500: #E0B04B;
    --gold-100: #F8EDD3;
    --paper: #F6F3EC;
    --paper-2: #EFEADF;
    --white: #FFFFFF;
    --ink: #1B2430;
    --ink-2: #3A4656;
    --muted: #5B6676;
    --line: #E4DED2;
    --line-2: #D5CDBD;
    --danger: #B42318;
    --danger-50: #FDECEA;
    --success: #1E7A46;
    --success-50: #E6F4EC;
    --info-50: #EAF1FA;

    --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
    --font-mono: ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 2px rgba(11, 31, 58, .06), 0 6px 20px rgba(11, 31, 58, .06);
    --shadow-lg: 0 20px 50px rgba(7, 21, 40, .35);
    --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--white); }
img, svg { max-width: 100%; vertical-align: middle; }
a { color: var(--agave-600); text-underline-offset: 2px; }
a:hover { color: var(--agave-700); }
h1, h2, h3, .h2, .h3 { font-family: var(--font-serif); color: var(--navy-900); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.01em; }
h2, .h2 { font-size: clamp(1.55rem, 2.8vw, 2.2rem); }
h3, .h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }
code, .mono { font-family: var(--font-mono); font-size: .92em; }
code { background: var(--paper); padding: .1em .35em; border-radius: 4px; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.right { text-align: right; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-wrap; word-break: break-word; }
.inline { display: inline; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold-500); color: var(--navy-900); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .7em 1.25em; border-radius: var(--radius-sm); border: 2px solid transparent; font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-sm { padding: .45em .9em; font-size: .9rem; }
.btn-lg { padding: .85em 1.6em; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--agave-600); color: var(--white); }
.btn-primary:hover { background: var(--agave-700); color: var(--white); }
.btn-accent { background: var(--terra-600); color: var(--white); }
.btn-accent:hover { background: var(--terra-700); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy-900); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--navy-900); color: var(--navy-900); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .5); }
.btn-outline-light:hover { border-color: var(--white); color: var(--white); }
.btn-ghost-light { background: rgba(255, 255, 255, .1); color: var(--white); border-color: rgba(255, 255, 255, .25); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .18); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #8f1c13; color: var(--white); }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--agave-600); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link-button.danger { color: var(--danger); }

/* Top bar & header */
.topbar { background: var(--navy-950); color: rgba(255, 255, 255, .75); font-size: .8rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.topbar a:hover { color: var(--gold-500); }
.topbar-links { display: flex; gap: 18px; white-space: nowrap; }
.lang-switch { font-weight: 600; }
.site-header { background: var(--navy-900); color: var(--white); position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--terra-600); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.brand:hover { color: var(--white); }
.brand-text { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 700; letter-spacing: .12em; line-height: 1; display: flex; flex-direction: column; }
.brand-text small { font-family: var(--font-sans); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-500); font-weight: 600; margin-top: 4px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { color: rgba(255, 255, 255, .88); text-decoration: none; padding: 8px 12px; border-radius: var(--radius-sm); font-size: .95rem; font-weight: 500; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, .08); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold-500); }
.nav-sep { width: 1px; height: 22px; background: rgba(255, 255, 255, .2); margin: 0 6px; }
.site-nav .btn { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle > span:first-child, .nav-toggle > span:first-child::before, .nav-toggle > span:first-child::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--white); content: ""; }
.nav-toggle > span:first-child { top: 21px; }
.nav-toggle > span:first-child::before { top: -7px; left: 0; }
.nav-toggle > span:first-child::after { top: 7px; left: 0; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(42, 157, 143, .28), transparent 60%), radial-gradient(800px 400px at -10% 110%, rgba(198, 93, 59, .22), transparent 60%), var(--navy-900); color: rgba(255, 255, 255, .88); padding: 72px 0 84px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: var(--white); }
.lead { font-size: 1.18rem; line-height: 1.6; color: rgba(255, 255, 255, .82); max-width: 640px; }
.lead-dark { font-size: 1.1rem; color: var(--ink-2); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--agave-600); margin-bottom: .8em; }
.eyebrow-gold, .hero .eyebrow { color: var(--gold-500); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-actions.center { justify-content: center; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .92rem; }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust .icon { color: var(--agave-500); width: 20px; height: 20px; }

.doc-card { background: var(--paper); color: var(--ink); border-radius: 14px; padding: 26px 26px 30px; box-shadow: var(--shadow-lg); position: relative; transform: rotate(1.2deg); border: 1px solid #fff; }
.doc-card::before { content: ""; position: absolute; inset: 10px; border: 1px dashed var(--line-2); border-radius: 8px; pointer-events: none; }
.doc-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.doc-ref { font-family: var(--font-mono); font-weight: 700; color: var(--navy-900); }
.doc-title { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: var(--navy-900); margin-bottom: 4px; }
.mini-steps { list-style: none; margin: 18px 0 0; padding: 0; }
.mini-steps li { position: relative; padding: 6px 0 6px 30px; color: var(--muted); font-size: .95rem; }
.mini-steps li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--white); }
.mini-steps li:not(:last-child)::after { content: ""; position: absolute; left: 10px; top: 25px; width: 2px; height: 18px; background: var(--line-2); }
.mini-steps li.done { color: var(--ink); }
.mini-steps li.done::before { background: var(--agave-600); border-color: var(--agave-600); }
.mini-steps li.current { color: var(--navy-900); font-weight: 700; }
.mini-steps li.current::before { border-color: var(--terra-600); box-shadow: 0 0 0 4px var(--terra-50); }
.seal { position: absolute; right: 22px; bottom: 22px; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, var(--gold-500) 0 52%, #c9952f 53% 56%, var(--gold-500) 57%); color: var(--navy-900); font-family: var(--font-serif); font-weight: 700; letter-spacing: .15em; transform: rotate(-14deg); box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.seal::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1.5px dashed rgba(11, 31, 58, .45); }
.seal-inline { position: relative; right: auto; bottom: auto; margin: 0 auto 20px; width: 72px; height: 72px; font-size: .8rem; }

/* Sections */
.section { padding: 72px 0; }
.section-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.band-navy { background: var(--navy-900); color: rgba(255, 255, 255, .85); }
.band-navy h2 { color: var(--white); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split-wide { grid-template-columns: 1.6fr 1fr; gap: 32px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.audience-strip { background: var(--paper); border-bottom: 1px solid var(--line); padding: 22px 0; }
.audience-strip .container { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.strip-label { margin: 0; text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--muted); }
.audience-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; flex: 1; }
.audience-list li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy-800); font-size: .95rem; }
.audience-list .icon { color: var(--terra-600); }

/* Cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 24px; }
.grid > .card { margin-bottom: 0; }
.card-paper { background: var(--paper); box-shadow: none; }
.card-dashed { border-style: dashed; border-width: 2px; box-shadow: none; background: var(--paper); }
.card-note { background: var(--agave-50); border-color: #c8e3de; box-shadow: none; }
.card-note .icon { color: var(--agave-600); }
.card-success { padding: 48px 32px; border-top: 4px solid var(--agave-600); }
.card-danger { border-color: #f1c4bf; background: #fffafa; box-shadow: none; }
.card-sticky { position: sticky; top: 96px; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.service-card { display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.service-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(11, 31, 58, .06), 0 14px 32px rgba(11, 31, 58, .1); }
.service-card h3 a { color: var(--navy-900); text-decoration: none; }
.service-card h3 a:hover { color: var(--agave-600); }
.service-card > p:not(.muted) { color: var(--ink-2); font-size: .95rem; }
.service-card .service-meta { margin-top: auto; }
.service-card .service-meta + .card-actions { margin-top: 0; }
.service-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--terra-50); color: var(--terra-600); margin-bottom: 16px; }
.service-icon .icon { width: 26px; height: 26px; }
.service-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: .88rem; border-top: 1px solid var(--line); padding-top: 12px; }
.service-meta .price { font-weight: 700; color: var(--navy-900); }
.service-meta .sla { color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.service-meta .icon, .sla .icon { width: 16px; height: 16px; }
.price-lg { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 700; color: var(--navy-900); margin-bottom: .3em; }
.aside-trust { list-style: none; padding: 0; margin: 20px 0 0; font-size: .9rem; color: var(--ink-2); }
.aside-trust li { padding: 6px 0 6px 26px; position: relative; border-top: 1px solid var(--line); }
.aside-trust li::before { content: "✓"; position: absolute; left: 4px; color: var(--agave-600); font-weight: 700; }
.icon-lg { width: 44px; height: 44px; color: var(--line-2); }

/* Lists */
.steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 44px; right: -25px; width: 26px; border-top: 2px dashed var(--line-2); }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy-900); color: var(--gold-500); font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; margin-bottom: 14px; flex-shrink: 0; }
.steps p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.feature-list li { display: flex; gap: 16px; }
.feature-list h3 { margin-bottom: .25em; font-size: 1.08rem; }
.feature-list p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.band-navy .feature-list p { color: rgba(255, 255, 255, .75); }
.feature-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--agave-50); color: var(--agave-600); }
.checklist, .bullets { padding: 0; margin: 0 0 1em; list-style: none; }
.checklist li, .bullets li { position: relative; padding: 5px 0 5px 28px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 9px; width: 18px; height: 18px; border-radius: 50%; background: var(--agave-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F6F64' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.bullets li::before { content: ""; position: absolute; left: 6px; top: 15px; width: 7px; height: 7px; border-radius: 2px; background: var(--terra-500); transform: rotate(45deg); }
.process { list-style: none; padding: 0; margin: 0 0 32px; }
.process li { display: flex; gap: 20px; padding: 0 0 28px; position: relative; }
.process li:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--line); }
.process h2 { margin-bottom: .3em; }
.process p { color: var(--ink-2); margin: 0; }
.addons { margin-top: 32px; background: var(--paper); box-shadow: none; }
.addon-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 32px; }
.addon-list li { display: flex; flex-direction: column; }
.addon-list span { color: var(--muted); font-size: .9rem; }

.code-block { background: var(--navy-950); color: #d7e3f4; border: 1px solid var(--navy-700); border-radius: var(--radius); padding: 24px; overflow-x: auto; font-family: var(--font-mono); font-size: .88rem; line-height: 1.65; margin: 0; }
.code-block .c { color: var(--gold-500); }

.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; color: var(--navy-900); list-style: none; position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; color: var(--terra-600); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-bottom: 8px; }

.cta-band { background: linear-gradient(120deg, var(--agave-700), var(--navy-900) 70%); color: rgba(255, 255, 255, .85); padding: 56px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.page-head { background: var(--navy-900); color: rgba(255, 255, 255, .85); padding: 56px 0 52px; background-image: radial-gradient(900px 300px at 100% 0, rgba(42, 157, 143, .25), transparent 60%); }
.page-head h1 { color: var(--white); margin-bottom: .3em; }
.page-head .lead { margin: 0; }
.page-head-sm { padding: 36px 0 0; }
.breadcrumbs ol { list-style: none; margin: 0 0 1.1em; padding: 0; display: flex; flex-wrap: wrap; gap: .35em; font-size: .85rem; color: rgba(255, 255, 255, .65); }
.breadcrumbs li + li::before { content: "/"; margin-right: .35em; color: rgba(255, 255, 255, .35); }
.breadcrumbs a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.breadcrumbs a:hover, .breadcrumbs a:focus-visible { color: var(--white); text-decoration: underline; }
.breadcrumbs [aria-current] { color: rgba(255, 255, 255, .65); }
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.account-head h1 { font-size: 1.9rem; }

/* Tabs */
.tabs { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.tabs a, .tabs .link-button { color: rgba(255, 255, 255, .8); text-decoration: none; padding: 10px 16px; border-radius: 8px 8px 0 0; font-weight: 600; font-size: .95rem; }
.tabs a[aria-current="page"] { background: var(--white); color: var(--navy-900); }
.tabs a:hover { color: var(--white); }
.tabs a[aria-current="page"]:hover { color: var(--navy-900); }
.tabs-dark a { color: var(--ink-2); border-radius: var(--radius-sm); }
.tabs-dark a:hover { color: var(--navy-900); background: var(--paper); }
.tabs-dark a[aria-current="page"] { background: var(--navy-900); color: var(--white); }
.tabs-dark a[aria-current="page"]:hover { color: var(--white); }

/* Forms */
.form fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.form legend { font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; color: var(--navy-900); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.legend-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--terra-50); color: var(--terra-600); font-size: .9rem; font-family: var(--font-sans); }
.form label:not(.check):not(.choice):not(.file-drop):not(.fb-type) { display: block; font-weight: 600; font-size: .92rem; color: var(--ink-2); margin-bottom: 14px; }
.form input:not([type=checkbox]):not([type=radio]):not([type=file]), .form select, .form textarea, .filters input, .filters select { display: block; width: 100%; margin-top: 6px; padding: .65em .8em; font: inherit; font-weight: 400; color: var(--ink); background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form select:focus, .form textarea:focus, .filters input:focus, .filters select:focus { outline: none; border-color: var(--agave-600); box-shadow: 0 0 0 3px rgba(31, 111, 100, .15); }
.form input:disabled { background: var(--paper); color: var(--muted); }
.form textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; align-items: end; }
.form-row-3 { grid-template-columns: repeat(3, 1fr); }
.form-narrow { max-width: 460px; margin: 0 auto; }
.field-error { color: var(--danger); font-size: .87rem; margin: -8px 0 12px; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-size: .95rem; cursor: pointer; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--agave-600); flex-shrink: 0; }
.checks { margin-top: 6px; }
.checks .label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink-2); margin-bottom: 8px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice-body { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 14px 44px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--white); height: 100%; transition: border-color .15s, background .15s; }
.choice-body::before { content: ""; position: absolute; left: 16px; top: 17px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--white); }
.choice-body strong { color: var(--navy-900); font-size: .95rem; line-height: 1.35; }
.choice:hover .choice-body { border-color: var(--agave-500); }
.choice input:checked + .choice-body { border-color: var(--agave-600); background: var(--agave-50); }
.choice input:checked + .choice-body::before { border-color: var(--agave-600); background: var(--agave-600); box-shadow: inset 0 0 0 3px var(--white); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.file-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; border: 2px dashed var(--line-2); border-radius: var(--radius); background: var(--paper); text-align: center; cursor: pointer; position: relative; font-weight: 600; color: var(--navy-800); margin-bottom: 10px; transition: border-color .15s, background .15s; }
.file-drop:hover, .file-drop.dragging { border-color: var(--agave-600); background: var(--agave-50); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-drop-sm { padding: 14px; }
.file-list { list-style: none; padding: 0; margin: 6px 0 0; font-weight: 400; font-size: .87rem; color: var(--ink-2); }
.form button[type=submit]:not(.link-button) { margin-top: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; padding: 16px 20px; }
.filters label { font-size: .85rem; font-weight: 600; color: var(--ink-2); flex: 1; min-width: 160px; }
.filters .btn { margin-bottom: 1px; }

/* Alerts, badges, tags */
.flash-wrap { padding-top: 20px; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; border-left: 4px solid; font-size: .95rem; }
.alert-success { background: var(--success-50); border-color: var(--success); color: #134d2d; }
.alert-error { background: var(--danger-50); border-color: var(--danger); color: #7a1a12; }
.alert-info { background: var(--info-50); border-color: var(--navy-700); color: var(--navy-800); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; background: var(--paper-2); color: var(--ink-2); font-family: var(--font-sans); vertical-align: middle; }
.badge-intake { background: var(--info-50); color: var(--navy-700); }
.badge-review, .badge-quoted { background: var(--gold-100); color: #7a5410; }
.badge-obtain, .badge-apostille, .badge-translate, .badge-qa { background: var(--agave-50); color: var(--agave-700); }
.badge-delivered, .badge-closed { background: var(--success-50); color: var(--success); }
.badge-on_hold { background: var(--terra-50); color: var(--terra-700); }
.badge-cancelled { background: var(--danger-50); color: var(--danger); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: .75rem; font-weight: 600; background: var(--paper-2); color: var(--ink-2); vertical-align: middle; }
.tag-deliverable, .tag-user-active { background: var(--success-50); color: var(--success); }
.tag-internal, .tag-user-suspended { background: var(--danger-50); color: var(--danger); }
.tag-user-pending { background: var(--gold-100); color: #7a5410; }
.tag-role-admin { background: var(--navy-900); color: var(--white); }
.tag-role-staff { background: var(--agave-50); color: var(--agave-700); }

/* Orders */
.ref-display { font-family: var(--font-mono); font-size: 1.9rem; font-weight: 700; color: var(--navy-900); letter-spacing: .06em; margin: .2em 0; }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.progress { list-style: none; margin: 8px 0 12px; padding: 0; display: flex; }
.progress li { flex: 1; position: relative; text-align: center; font-size: .78rem; color: var(--muted); padding-top: 26px; min-width: 0; }
.progress li::before { content: ""; position: absolute; top: 8px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.progress li:first-child::before { display: none; }
.progress .dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 19px; height: 19px; border-radius: 50%; background: var(--white); border: 3px solid var(--line-2); z-index: 1; }
.progress li.done::before, .progress li.current::before { background: var(--agave-600); }
.progress li.done .dot { background: var(--agave-600); border-color: var(--agave-600); }
.progress li.current .dot { border-color: var(--terra-600); box-shadow: 0 0 0 4px var(--terra-50); }
.progress li.current { color: var(--navy-900); font-weight: 700; }
.progress li.done { color: var(--ink-2); }
.progress .label { display: block; padding: 0 2px; line-height: 1.25; overflow-wrap: anywhere; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 14px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--agave-600); border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--agave-600); }
.timeline li.internal::before { background: var(--terra-600); box-shadow: 0 0 0 1px var(--terra-600); }
.timeline li.internal { background: linear-gradient(90deg, var(--terra-50), transparent 70%); border-radius: 6px; padding-top: 4px; }
.timeline-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.timeline time { font-size: .85rem; color: var(--muted); }
.timeline p { margin: 0; color: var(--ink-2); font-size: .95rem; white-space: pre-wrap; }
.dl { margin: 0; }
.dl dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.dl dd { margin: 0 0 12px; }
.dl-2 { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; }
.dl-2 dd { margin: 0; overflow-wrap: anywhere; }
.file-rows { list-style: none; padding: 0; margin: 0 0 12px; }
.file-rows li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.file-rows a { font-weight: 600; overflow-wrap: anywhere; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.toolbar h2 { margin: 0; }
.empty { text-align: center; padding: 48px 24px; }
.mini-process { padding-left: 20px; margin: 0; }
.mini-process li { margin-bottom: 8px; color: var(--ink-2); }
.mini-process li::marker { color: var(--terra-600); font-weight: 700; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.contact-list .icon { color: var(--terra-600); flex-shrink: 0; }
.error-code { font-family: var(--font-serif); font-size: 5rem; font-weight: 700; color: var(--line-2); margin: 0; line-height: 1; }
.auth-section { background: var(--paper); min-height: 60vh; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose p { color: var(--ink-2); }

/* Tables */
.table-wrap { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: 12px 16px; border-bottom: 2px solid var(--line); background: var(--paper); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:hover { background: #fcfbf8; }
.table tr:last-child td { border-bottom: 0; }
.table-compact td, .table-compact th { padding: 8px 10px; }
.card > .table-compact { margin: 0 -10px; width: calc(100% + 20px); }
.row-active { background: var(--agave-50) !important; }

/* Footer */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .7); padding: 56px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-footer h3 { font-family: var(--font-sans); color: var(--gold-500); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-about { margin-top: 16px; max-width: 380px; }
.footer-legal { padding-top: 20px; font-size: .84rem; }
.footer-legal p { margin-bottom: 6px; }
.disclaimer { font-size: .84rem; color: var(--muted); border-left: 3px solid var(--gold-500); padding-left: 12px; }
.site-footer .disclaimer { color: rgba(255, 255, 255, .6); }

/* Admin */
body.admin { background: var(--paper); }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--navy-900); color: rgba(255, 255, 255, .8); padding: 22px 14px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 3px solid var(--terra-600); }
.admin-sidebar .brand-text { font-size: 1.25rem; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); color: rgba(255, 255, 255, .82); text-decoration: none; font-weight: 500; font-size: .95rem; }
.admin-nav a:hover { background: rgba(255, 255, 255, .07); color: var(--white); }
.admin-nav a[aria-current="page"] { background: rgba(255, 255, 255, .12); color: var(--white); box-shadow: inset 3px 0 0 var(--gold-500); }
.admin-nav .icon { width: 18px; height: 18px; opacity: .8; }
.admin-nav .count { margin-left: auto; background: var(--terra-600); color: var(--white); border-radius: 999px; font-size: .72rem; padding: 1px 8px; font-weight: 700; }
.admin-nav-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold-500); padding: 16px 12px 6px; font-weight: 700; }
.admin-user { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.admin-user strong { color: var(--white); }
.admin-user .muted { color: rgba(255, 255, 255, .55); }
.admin-user-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: .85rem; }
.admin-user-links a, .admin-user-links .link-button { color: rgba(255, 255, 255, .8); }
.admin-main { padding: 28px 32px 48px; min-width: 0; }
.env-banner { background: var(--gold-100); color: #6b4a0e; border: 1px solid #ecd9a6; border-radius: var(--radius-sm); padding: 8px 14px; font-size: .86rem; margin-bottom: 20px; }
.admin-main .flash-wrap { padding: 0; max-width: none; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-head h1 { font-size: 1.8rem; margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-head p { margin: 4px 0 0; }
.admin-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.admin-cols-mail { grid-template-columns: minmax(280px, 1fr) minmax(0, 1.6fr); }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 24px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; text-decoration: none; color: var(--ink-2); font-size: .88rem; box-shadow: var(--shadow); }
a.stat:hover { border-color: var(--agave-500); color: var(--ink-2); }
.stat-num { font-family: var(--font-serif); font-size: 2.1rem; font-weight: 700; color: var(--navy-900); line-height: 1.1; }
.stat-accent { border-top: 3px solid var(--terra-600); }
.pipeline { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.pipe { display: flex; flex-direction: column; padding: 12px; border-radius: var(--radius-sm); background: var(--paper); text-decoration: none; color: var(--ink-2); border: 1px solid var(--line); }
.pipe:hover { border-color: var(--agave-500); color: var(--ink-2); }
.pipe-num { font-size: 1.5rem; font-weight: 700; color: var(--navy-900); font-family: var(--font-serif); }
.pipe-label { font-size: .78rem; }
.pipe-cancelled .pipe-num { color: var(--danger); }
.pipe-on_hold .pipe-num { color: var(--terra-600); }
.activity { list-style: none; padding: 0; margin: 0; }
.activity li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.activity li:last-child { border-bottom: 0; }
.activity p { margin: 4px 0 0; color: var(--ink-2); }
.pager { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 8px 0 24px; font-size: .92rem; }
.message-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.message-done { opacity: .7; box-shadow: none; }
.message-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mail-body { font-family: var(--font-mono); font-size: .88rem; background: var(--paper); padding: 16px; border-radius: var(--radius-sm); }
.form-inline-upload { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }
.form-inline-upload .form-row { align-items: center; }

/* Visitor statistics */
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.chart-legend { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.chart-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-left: 6px; }
.chart-key-views, .chart-views { background: #b9ddd7; fill: #b9ddd7; }
.chart-key-visitors, .chart-visitors { background: var(--agave-600); fill: var(--agave-600); }
.chart { display: block; width: 100%; height: 180px; border-bottom: 1px solid var(--line); }
.chart-hit { fill: transparent; }
.chart g:hover .chart-hit { fill: var(--paper); }
.chart-axis { display: flex; justify-content: space-between; margin-top: 6px; }
.visit-grid { margin-bottom: 24px; }
.visit-top td:first-child { width: 100%; overflow-wrap: anywhere; }
.visit-top meter { display: block; width: 100%; height: 6px; margin-top: 4px; }
.visit-top .num, .table .num { text-align: right; white-space: nowrap; }
.card-title-pad { padding: 18px 20px 0; }

/* Staff feedback widget */
.fb { position: fixed; right: 20px; bottom: 20px; z-index: 9000; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-size: .92rem; }
.fb-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px; background: var(--terra-600); color: var(--white); font: inherit; font-weight: 700; cursor: pointer; box-shadow: var(--shadow-lg); }
.fb-toggle:hover { background: var(--terra-700); }
.fb-toggle:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.fb-toggle .icon { width: 18px; height: 18px; }
.fb-panel { order: -1; width: min(360px, calc(100vw - 40px)); max-height: calc(100vh - 100px); overflow-y: auto; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--terra-600); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-lg); color: var(--ink); }
.fb-panel[hidden], .fb-hover[hidden] { display: none; }
.fb-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--navy-900); font-family: var(--font-serif); font-size: 1.05rem; }
.fb-close { border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.fb-close:hover { color: var(--ink); }
.fb-types { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.fb-type { flex: 1; cursor: pointer; position: relative; }
.fb-type input { position: absolute; opacity: 0; }
.fb-type span { display: block; text-align: center; padding: 6px 8px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); font-size: .82rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.fb-type input:checked + span { border-color: var(--agave-600); background: var(--agave-50); color: var(--agave-700); }
.fb-type input:focus-visible + span { outline: 3px solid var(--gold-500); outline-offset: 1px; }
.fb-element { background: var(--paper); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 14px; }
.fb-label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.fb-element-preview { margin: 4px 0 8px; overflow-wrap: anywhere; }
.fb-element-preview.fb-has-element { font-family: var(--font-mono); color: var(--navy-800); }
.fb-element-actions { display: flex; align-items: center; gap: 12px; }
.fb-pick { display: inline-flex; align-items: center; gap: 6px; }
.fb-pick .icon { width: 16px; height: 16px; }
.fb-hint { margin: 10px 0 0; }
.fb-hover { position: fixed; z-index: 8999; pointer-events: none; outline: 2px solid var(--terra-600); background: rgba(198, 93, 59, .12); border-radius: 2px; transition: all .05s; }
.fb-tip { position: fixed; z-index: 9001; top: 12px; left: 50%; transform: translateX(-50%); pointer-events: none; background: var(--navy-900); color: var(--white); padding: 8px 16px; border-radius: 999px; font-size: .88rem; font-weight: 600; box-shadow: var(--shadow-lg); }
body.fb-picking, body.fb-picking * { cursor: crosshair !important; }
.fb-selected, .fb-target { outline: 3px dashed var(--terra-600) !important; outline-offset: 3px; }
.fb-target { animation: fb-pulse 1.2s ease-in-out 3; }
@keyframes fb-pulse { 50% { outline-color: var(--gold-500); } }
.fb-code { font-family: var(--font-mono); font-size: .85rem; background: var(--paper); padding: 2px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.badge-fb-open { background: var(--info-50); color: var(--navy-700); }
.badge-fb-in_progress { background: var(--gold-100); color: #7a5410; }
.badge-fb-completed { background: var(--success-50); color: var(--success); }
.badge-fb-rejected { background: var(--paper-2); color: var(--muted); }
.tag-fb-bug, .tag-prio-high { background: var(--danger-50); color: var(--danger); }
.tag-fb-change { background: var(--agave-50); color: var(--agave-700); }
.tag-fb-suggestion { background: var(--info-50); color: var(--navy-700); }
.tag-prio-low { background: var(--paper-2); color: var(--muted); }

/* Responsive */
@media (max-width: 1080px) {
    .steps { grid-template-columns: repeat(2, 1fr); }
    .steps li::after { display: none; }
    .stats { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-900); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 3px solid var(--terra-600); }
    .site-nav.open { display: flex; }
    .site-nav a:not(.btn) { padding: 12px; }
    .nav-sep { width: auto; height: 1px; margin: 8px 0; }
    .site-nav .btn { margin: 8px 0 0; }
    .hero-grid, .split, .split-wide, .admin-cols, .admin-cols-mail { grid-template-columns: 1fr; }
    .hero-visual { max-width: 440px; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .card-sticky { position: static; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; border-right: 0; border-bottom: 3px solid var(--terra-600); }
    .admin-nav { flex-direction: row; flex-wrap: wrap; }
    .admin-nav-label { display: none; }
}
@media (max-width: 640px) {
    .section { padding: 48px 0; }
    .hero { padding: 48px 0 56px; }
    .topbar-inner > span:first-child { display: none; }
    .topbar-inner { justify-content: flex-end; }
    .grid-2, .grid-3, .steps, .choice-grid, .form-row, .form-row-3, .addon-list, .footer-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .progress { flex-wrap: wrap; row-gap: 12px; }
    .progress li { flex: 0 0 25%; }
    .progress li::before { display: none; }
    .dl-2 { grid-template-columns: 1fr; gap: 2px; }
    .dl-2 dd { margin-bottom: 10px; }
    .admin-main { padding: 20px 16px; }
    .order-head { flex-direction: column; }
}
@media print {
    .topbar, .site-header, .site-footer, .cta-band, .admin-sidebar, .fb { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}
