/* Self-hosted fonts (variable, latin + latin-ext subsets) */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/instrument-sans-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  /* page */
  --bg: #faf8f5;
  --bg-header: rgba(250, 248, 245, 0.85);
  --surface: #fffdfa;
  --surface-hover: #f0eae0;
  --footer: #f5f1e9;

  /* ink */
  --ink: #1b1a17;
  --on-ink: #fff;
  --text: #322f2a;
  --text-2: #504c45;
  --text-3: #3c3934;
  --muted: #6f695f;
  --faint: #c9c2b6;

  /* lines */
  --border: #e8e2d8;
  --border-2: #ddd6c9;
  --border-hover: #c9c1b3;

  /* tinted washes */
  --wash-blue: #e7eff5;
  --wash-blue-2: #f4f9fc;
  --wash-warm: #f4efe6;
  --wash-warm-2: #f2ede4;
  --selection: #cfe4f1;

  /* brand */
  --brand: #066aa3;
  --brand-fill: #066aa3;
  --on-brand: #fff;
  --link: #05537f;
  --link-hover: #044f7a;

  /* data-sovereignty panel */
  --panel-bg: #fbfdfe;
  --panel-tint: #d7e4ec;
  --panel-text: #3f4a52;
  --panel-text-2: #5b6670;

  /* dark feature band (dark in both themes) */
  --band-bg: #171613;
  --band-cell: #1d1c18;
  --band-cell-2: #2b2924;
  --band-text: #f5f2ec;
  --band-text-2: #b3aea3;
  --band-muted: #98938a;
  --accent-green: #8fbf9f;

  --shadow: 0 12px 28px rgba(27, 26, 23, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --bg: #16130f;
    --bg-header: rgba(22, 19, 15, 0.85);
    --surface: #1e1a14;
    --surface-hover: #292319;
    --footer: #120f0b;

    --ink: #f0eadf;
    --on-ink: #16130f;
    --text: #d8d1c3;
    --text-2: #b0a898;
    --text-3: #b0a898;
    --muted: #968e7d;
    --faint: #665e4d;

    --border: #322d24;
    --border-2: #3f382c;
    --border-hover: #4f4737;

    --wash-blue: #1b2733;
    --wash-blue-2: #20262e;
    --wash-warm: #251f16;
    --wash-warm-2: #221e17;
    --selection: #2b4a66;

    --brand: #56aadd;
    --brand-fill: #0e6ca4;
    --on-brand: #fff;
    --link: #6cb8e6;
    --link-hover: #8ecdf2;

    --panel-bg: #1a222b;
    --panel-tint: #24313d;
    --panel-text: #c0cdd8;
    --panel-text-2: #97a6b2;

    /* one step lighter than --bg so the band still reads as an object */
    --band-bg: #211d17;
    --band-cell: #292418;
    --band-cell-2: #363028;

    --shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  }
}

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Instrument Sans", "Helvetica Neue", Helvetica, sans-serif; -webkit-font-smoothing: antialiased; text-wrap: pretty; }
* { box-sizing: border-box; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--ink); }
input, textarea, select, button { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: var(--selection); }

@keyframes swTickR { from { transform: translateX(0); } to { transform: translateX(364.8px); } }
@keyframes swTickL { from { transform: translateX(0); } to { transform: translateX(-364.8px); } }
@media (prefers-reduced-motion: reduce) { [data-sw-code] text { animation: none !important; } }

[data-hdr] { padding: 12px 32px; column-gap: 24px; row-gap: 6px; }
@media (max-width: 999px) {
  [data-hdr] { flex-wrap: wrap; padding-bottom: 6px; }
  [data-nav] { order: 2; width: 100%; margin-left: 0 !important; justify-content: flex-start !important; overflow-x: auto; padding-bottom: 4px; }
}
@media (max-width: 760px) {
  [data-hdr] { padding-left: 20px; padding-right: 20px; }
  [data-band] { padding: 28px !important; }
}

/* nav */
.nav-link, .nav-company > button { padding: 8px 13px; border-radius: 8px; font-size: 14.5px; font-weight: 500; white-space: nowrap; flex-shrink: 0; color: var(--text-2); background: transparent; }
.nav-link:hover, .nav-company > button:hover { background: var(--surface-hover); color: var(--ink); }
.nav-link[aria-current="page"], .nav-company[data-active="true"] > button { background: var(--wash-blue); color: var(--brand); }
.nav-company { position: relative; flex-shrink: 0; }
.nav-company > button { display: flex; align-items: baseline; gap: 7px; border: 0; font-family: inherit; cursor: pointer; }
.nav-menu { position: absolute; top: 100%; right: 0; padding-top: 6px; min-width: 168px; z-index: 60; display: none; }
.nav-company:hover .nav-menu, .nav-company:focus-within .nav-menu, .nav-company[data-open="true"] .nav-menu { display: block; }
.nav-menu-inner { background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.nav-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; white-space: nowrap; color: var(--text-2); }
.nav-menu a:hover { background: var(--surface-hover); color: var(--brand); }
.nav-menu a[aria-current="page"] { background: var(--wash-blue); color: var(--brand); }
.nav-cta { margin-left: 10px; white-space: nowrap; padding: 9px 18px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 14.5px; font-weight: 500; flex-shrink: 0; }
.nav-cta:hover { background: var(--brand-fill); color: var(--on-brand); }

/* buttons */
.btn-primary { padding: 14px 26px; border-radius: 999px; background: var(--brand-fill); color: var(--on-brand); font-size: 16px; font-weight: 500; }
.btn-primary:hover { background: var(--ink); color: var(--on-ink); }
.btn-outline { padding: 14px 26px; border-radius: 999px; border: 1px solid var(--border-2); color: var(--ink); font-size: 16px; font-weight: 500; }
.btn-outline:hover { background: var(--surface-hover); border-color: var(--border-hover); }
.btn-light { padding: 14px 26px; border-radius: 999px; background: #faf8f5; color: #171613; font-size: 16px; font-weight: 500; justify-self: start; }
.btn-light:hover { background: var(--brand-fill); color: var(--on-brand); }
.btn-plan { margin-top: 24px; text-align: center; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--border-2); color: var(--ink); font-size: 15px; font-weight: 500; }
.btn-plan:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn-send { padding: 13px 26px; border: none; border-radius: 999px; background: var(--brand-fill); color: var(--on-brand); font-size: 16px; font-weight: 500; cursor: pointer; }
.btn-send:hover { background: var(--ink); color: var(--on-ink); }

/* cards & rows */
.svc-card { background: var(--surface); padding: 30px 28px 26px; display: flex; flex-direction: column; gap: 12px; min-height: 250px; color: var(--ink); }
.svc-card:hover { background: var(--wash-blue-2); }
.post-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; border-bottom: 1px solid var(--border); color: var(--ink); }
.post-row:hover { background: var(--wash-warm); }
.social-icon { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--border-2); border-radius: 999px; color: var(--muted); }
.social-icon:hover { color: var(--brand); border-color: var(--brand); }
.legal-link { font-size: 16px; color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-link:hover { color: var(--link-hover); }
.footer-link { font-size: 15px; color: var(--text-3); }
.footer-link:hover { color: var(--brand); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); }

/* Mobile: anchor the Company dropdown to the sticky header, not the nav item.
   The nav strip is a horizontal scroll container below 1000px, which clips any
   absolutely-positioned descendant anchored inside it. Must come after the
   .nav-company/.nav-menu rules above to win the cascade. */
@media (max-width: 999px) {
  .nav-company { position: static; }
  .nav-menu { right: 20px; padding-top: 0; }
}
