/* Layout: utility bar + sticky header, ink hero with port illustration, tiled content sections, ledger-style registration, FAQ accordion, CTA band, ink footer */
:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #eaeff3;
  --fg: #13212c;
  --muted: #52616d;
  --line: #d6dde3;
  --ink: #0e2233;
  --ink-2: #14304a;
  --ink-fg: #eaf1f5;
  --ink-muted: #a9bac6;
  --accent: #b84514;
  --accent-fg: #ffffff;
  --accent-on-ink: #f08a54;
  --teal: #1b6f78;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b161e; --surface: #12222f; --surface-2: #17293a; --fg: #e6edf2; --muted: #98a8b4; --line: #243643;
    --ink: #07111a; --ink-2: #0f2234; --accent: #ee7a42; --accent-fg: #1a0c04; --teal: #5cc0c9;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b161e; --surface: #12222f; --surface-2: #17293a; --fg: #e6edf2; --muted: #98a8b4; --line: #243643;
  --ink: #07111a; --ink-2: #0f2234; --accent: #ee7a42; --accent-fg: #1a0c04; --teal: #5cc0c9;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.65; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--teal); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.ico { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Utility bar + header */
.topbar { background: var(--ink); color: var(--ink-muted); font-size: 0.8rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 8px; }
.topbar span { white-space: nowrap; }
.topbar b { color: var(--ink-fg); font-weight: 600; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--fg); min-width: 0; }
.mark { flex: none; width: 38px; height: 38px; border-radius: 8px; background: var(--ink); color: var(--accent-on-ink); display: grid; place-items: center; font: 700 1.15rem var(--font-display); }
.brand-name { display: flex; flex-direction: column; font: 700 1.02rem/1.1 var(--font-display); min-width: 0; }
.brand-name small { font: 500 0.68rem var(--font-body); color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--fg); text-decoration: none; font-weight: 500; font-size: 0.92rem; padding: 8px 11px; border-radius: 8px; }
.nav a:hover { background: var(--bg); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav a.cta { background: var(--accent); color: var(--accent-fg); margin-left: 8px; padding-inline: 16px; }
.nav a.cta:hover { filter: brightness(1.08); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 8px; padding: 8px 12px; font: 600 0.9rem var(--font-body); cursor: pointer; }

/* Views */
.view { display: block; }
.band { padding-block: 72px; }
.band.alt { background: var(--surface-2); }
.band.surface { background: var(--surface); }
.eyebrow { font: 600 0.74rem var(--font-body); letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); max-width: 24ch; }
.sub { color: var(--muted); max-width: 64ch; margin-top: 14px; font-size: 1.04rem; }
.head { margin-bottom: 40px; }

/* Page header (inner pages) */
.page-head { background: var(--ink); color: var(--ink-fg); position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; inset: 0 0 0 auto; width: min(32%, 360px); background: repeating-linear-gradient(90deg, rgba(240,138,84,0.14) 0 3px, transparent 3px 14px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); pointer-events: none; }
.page-head .wrap { position: relative; z-index: 1; padding-block: 56px 52px; }
.page-head .eyebrow { color: var(--accent-on-ink); }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.1rem); max-width: 20ch; }
.page-head p.lead { margin-top: 14px; color: var(--ink-muted); max-width: 60ch; font-size: 1.06rem; }
.crumbs { font-size: 0.82rem; color: var(--ink-muted); margin-bottom: 18px; }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-on-ink); }

/* Hero */
.hero { background: radial-gradient(900px 420px at 85% 0%, var(--ink-2), transparent 70%), var(--ink); color: var(--ink-fg); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; padding-block: 80px 72px; }
.hero .wrap > * { min-width: 0; }
.hero .eyebrow { color: var(--accent-on-ink); }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); max-width: 14ch; }
.hero h1 span { color: var(--accent-on-ink); }
.hero .lead { margin-top: 22px; max-width: 54ch; color: var(--ink-muted); font-size: 1.1rem; }
.hero-art { width: 100%; height: auto; max-height: 360px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 12px 22px; border-radius: 8px; background: var(--accent); color: var(--accent-fg); border: 0; cursor: pointer; font-family: var(--font-body); }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink-fg); box-shadow: inset 0 0 0 1.5px rgba(234,241,245,0.45); }
.btn.ghost:hover { background: rgba(234,241,245,0.08); filter: none; }
.btn.outline { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.outline:hover { box-shadow: inset 0 0 0 1.5px var(--accent); filter: none; }

/* Trust strip */
.trust { background: var(--ink-2); color: var(--ink-fg); }
.trust .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.trust .item { padding: 22px 20px 22px 0; min-width: 0; }
.trust dt { font: 600 0.7rem var(--font-body); letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-muted); }
.trust dd { margin: 5px 0 0; font: 600 1.12rem var(--font-display); }

/* Tiles and grids */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.grid > * { min-width: 0; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.band.surface .tile { background: var(--bg); }
.tile .ib { width: 46px; height: 46px; border-radius: 10px; background: var(--ink); color: var(--accent-on-ink); display: grid; place-items: center; margin-bottom: 6px; }
.tile h3 { font-size: 1.14rem; }
.tile p { color: var(--muted); font-size: 0.96rem; }
.tile ul { margin: 4px 0 0; padding-left: 1.15em; color: var(--muted); font-size: 0.94rem; }
.tile li + li { margin-top: 3px; }
.tile .more { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.tile .more:hover { text-decoration: underline; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split > * { min-width: 0; }
.split p + p { margin-top: 14px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .ico { color: var(--teal); margin-top: 2px; width: 22px; height: 22px; }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 52px; min-width: 0; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; font: 700 1rem var(--font-display); }
.steps li::after { content: ""; position: absolute; top: 19px; left: 50px; right: -10px; height: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.08rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 0.95rem; }

/* CTA band */
.cta-band { background: var(--ink); color: var(--ink-fg); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-block: 52px; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); max-width: 22ch; }
.cta-band p { color: var(--ink-muted); margin-top: 8px; max-width: 52ch; }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.values > div { padding: 28px; border-right: 1px solid var(--line); min-width: 0; }
.values > div:last-child { border-right: 0; }
.values h3 { font-size: 1.1rem; margin-bottom: 8px; }
.values p { color: var(--muted); font-size: 0.96rem; }

/* Ledger */
.ledger { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ledger div { display: grid; grid-template-columns: 240px 1fr; gap: 16px; padding: 16px 26px; border-bottom: 1px solid var(--line); }
.ledger div:last-child { border-bottom: 0; }
.ledger dt { font: 600 0.74rem var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.ledger dd { margin: 0; font-weight: 600; word-break: break-word; font-variant-numeric: tabular-nums; }
.callout { margin-top: 24px; padding: 18px 22px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted); font-size: 0.95rem; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.band.surface .faq details { background: var(--bg); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font: 600 1.02rem var(--font-display); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); flex: none; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 22px 20px; color: var(--muted); }

/* Contact + form */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ib { width: 42px; height: 42px; border-radius: 10px; background: var(--ink); color: var(--accent-on-ink); display: grid; place-items: center; flex: none; }
.contact-list strong { display: block; font: 600 0.74rem var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
address { font-style: normal; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; }
.form h3 { font-size: 1.25rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row2 > * { min-width: 0; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.88rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { background: var(--surface); }
.form .hint { font-size: 0.86rem; color: var(--muted); }
.out { display: none; gap: 10px; }
.out.show { display: grid; }
.out textarea { min-height: 180px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85rem; }
.status { min-height: 1.2em; font-size: 0.88rem; color: var(--teal); font-weight: 600; }
.status.err { color: var(--accent); }

/* Legal */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 1.2em; margin: 10px 0 0; }
.updated { color: var(--ink-muted); font-size: 0.9rem; margin-top: 12px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--ink-muted); font-size: 0.92rem; }
.site-footer .wrap { padding-block: 52px 28px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.foot-grid > * { min-width: 0; }
.site-footer h3 { color: var(--ink-fg); font-size: 0.78rem; letter-spacing: 0.13em; text-transform: uppercase; font-family: var(--font-body); margin-bottom: 14px; }
.site-footer a { color: var(--ink-muted); text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--accent-on-ink); }
.site-footer .brand-line { color: var(--ink-fg); font: 700 1.1rem var(--font-display); margin-bottom: 10px; }
.legal-line { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(234,241,245,0.14); font-size: 0.84rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .steps li::after { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero .wrap { grid-template-columns: 1fr; padding-block: 56px 48px; }
  .hero-art { display: none; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-left, 0px)) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; }
  .nav a.cta { margin: 8px 0 0; text-align: center; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .values { grid-template-columns: 1fr; }
  .values > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .values > div:last-child { border-bottom: 0; }
  .ledger div { grid-template-columns: 1fr; gap: 2px; padding: 14px 18px; }
  .band { padding-block: 52px; }
  .topbar .wrap > span:nth-child(2) { display: none; }
}
@media (max-width: 600px) {
  .g2, .g3, .g4, .steps, .row2, .foot-grid { grid-template-columns: 1fr; }
  .form { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
