/* Shared styles for the pages around the homepage (contact, privacy, terms): ink on paper,
   neo-brutalist cards, one blue accent. Kept in step with public/index.html. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
.page {
  --paper: #FAFAF7; --ink: #141414; --card: #FFFFFF; --grey: #6F6F6A; --rule: #E3E2DD; --agent: #58BAEB;
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --nav: 74px;
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.page a { color: inherit; }
.page :focus-visible { outline: 3px solid var(--agent); outline-offset: 3px; border-radius: 6px; }
.page ::selection { background: color-mix(in srgb, var(--agent) 40%, transparent); color: var(--ink); }

/* brand */
.logo { display: block; line-height: 0; flex: none; }
.logo img { display: block; height: 30px; width: auto; }
.bar { display: inline-block; width: 40px; height: 12px; border-radius: 4px; background: var(--agent); vertical-align: middle; flex: none; }

/* nav: same as the homepage */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-inline: clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 2px solid var(--ink); }
.links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-weight: 600; font-size: 16px; }
.links > a:not(.btn) { text-decoration: none; white-space: nowrap; }
.links > a:not(.btn):hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.links > a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--agent); text-decoration-thickness: 4px; text-underline-offset: 7px; }
@media (max-width: 960px) { .links > .wide { display: none; } }
@media (max-width: 560px) { .nav { gap: 10px; } .links { gap: 14px; font-size: 15px; } .links > .mid { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 14px; border: 3px solid var(--ink); background: var(--ink); color: var(--paper) !important; font: 800 17px var(--body); text-decoration: none; white-space: nowrap; box-shadow: 5px 5px 0 var(--agent); transition: transform .15s, box-shadow .15s; cursor: pointer; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--agent); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.ghost { background: var(--card); color: var(--ink) !important; box-shadow: 5px 5px 0 var(--ink); }
.ghost:hover { box-shadow: 7px 7px 0 var(--ink); }
.nav .btn { height: 44px; padding: 0 18px; font-size: 15px; }
@media (max-width: 560px) { .nav .btn { padding: 0 14px; } .logo img { height: 25px; } }

.main { flex: 1; width: 100%; }

footer.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 26px clamp(16px, 5vw, 72px); border-top: 2px solid var(--ink); font-size: 14px; color: var(--grey); }
.footer .flinks { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* page head shared by every page */
.head { padding: clamp(56px, 8vw, 110px) clamp(16px, 5vw, 72px) clamp(36px, 5vw, 64px); border-bottom: 2px solid var(--ink); }
.headInner { max-width: 1180px; margin: 0 auto; }
.kicker { font: 800 13px var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--grey); display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.h1 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; margin: 0; text-wrap: balance; font-size: clamp(44px, 6vw, 88px); max-width: 18ch; }
.lead { font-size: clamp(18px, 1.45vw, 22px); color: var(--grey); margin: 22px 0 0; max-width: 60ch; }
.lead b { color: var(--ink); font-weight: 600; }

/* legal documents */
.docWrap { display: grid; grid-template-columns: 260px minmax(0, 760px); justify-content: space-between; max-width: calc(1180px + 2 * clamp(16px, 5vw, 72px)); margin: 0 auto; gap: clamp(32px, 6vw, 96px); padding: clamp(40px, 6vw, 80px) clamp(16px, 5vw, 72px) clamp(80px, 10vw, 140px); }
.toc { position: sticky; top: calc(var(--nav) + 32px); align-self: start; background: var(--card); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 8px 8px 0 var(--ink); padding: 18px 18px 14px; }
.toc p { margin: 0 0 10px; font: 800 12px var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--grey); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 6px 8px; border-radius: 8px; text-decoration: none; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.toc a::before { content: counter(toc); min-width: 1.4em; color: var(--grey); font-variant-numeric: tabular-nums; }
.toc a:hover { background: var(--paper); }
@media (max-width: 1000px) { .docWrap { grid-template-columns: minmax(0, 760px); justify-content: start; } .toc { display: none; } }

.doc { font-size: 17.5px; line-height: 1.7; }
.doc > section { padding-top: 8px; margin-top: 44px; scroll-margin-top: calc(var(--nav) + 24px); }
.doc > section:first-child { margin-top: 0; }
.doc h2 { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 14px; }
.doc h2::before { content: ""; width: 26px; height: 9px; border-radius: 3px; background: var(--agent); flex: none; }
.doc p { margin: 0 0 14px; color: #33332F; }
.doc ul { margin: 0 0 14px; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.doc li { position: relative; padding-left: 26px; color: #33332F; }
.doc li::before { content: ""; position: absolute; left: 4px; top: .68em; width: 9px; height: 9px; border: 2.5px solid var(--ink); border-radius: 2px; background: var(--card); }
.doc strong { color: var(--ink); font-weight: 700; }
.doc em { font-style: italic; }
.doc a { text-decoration: underline; text-decoration-color: var(--agent); text-decoration-thickness: 3px; text-underline-offset: 4px; font-weight: 600; }
.doc a:hover { background: color-mix(in srgb, var(--agent) 18%, transparent); }
.updated { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 8px 14px; border: 2.5px solid var(--ink); border-radius: 11px; background: var(--card); font: 600 15px var(--body); }

/* contact */
.contactWrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(32px, 5vw, 72px); max-width: calc(1180px + 2 * clamp(16px, 5vw, 72px)); margin: 0 auto; padding: clamp(48px, 6vw, 88px) clamp(16px, 5vw, 72px) clamp(80px, 10vw, 140px); align-items: start; }
@media (max-width: 900px) { .contactWrap { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--card); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 10px 10px 0 var(--ink); padding: clamp(22px, 3vw, 36px); min-width: 0; }
.cardHead { display: flex; align-items: center; gap: 12px; font: 800 14px var(--body); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 24px; }
.cardHead .bar { width: 34px; height: 11px; }

.form { display: grid; gap: 22px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 620px) { .pair { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 8px; min-width: 0; }
.label { font: 800 13px var(--body); letter-spacing: .14em; text-transform: uppercase; }
.label small { font: 500 13px var(--body); letter-spacing: 0; text-transform: none; color: var(--grey); margin-left: 6px; }
.input { width: 100%; min-width: 0; border: 2.5px solid var(--ink); border-radius: 12px; background: var(--paper); padding: 12px 14px; font: 500 17px var(--body); color: var(--ink); outline: none; transition: box-shadow .15s, background .15s; }
.input::placeholder { color: #9B9B95; }
.input:focus { background: var(--card); box-shadow: 4px 4px 0 var(--agent); }
textarea.input { resize: vertical; min-height: 160px; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border: 2.5px solid var(--ink); border-radius: 11px; background: var(--card); font: 600 15.5px var(--body); transition: background .15s, color .15s, box-shadow .15s; }
.chip input:checked + span { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--agent); }
.chip input:focus-visible + span { outline: 3px solid var(--agent); outline-offset: 3px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formFoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 4px; }
.note { font-size: 14.5px; color: var(--grey); margin: 0; }
.error { display: flex; align-items: center; gap: 10px; border: 2.5px solid var(--ink); border-radius: 12px; padding: 10px 14px; background: #FFF3EF; font: 600 15.5px var(--body); margin: 0; }
.error::before { content: "!"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 800 13px var(--body); flex: none; }

.done { text-align: center; padding: clamp(28px, 5vw, 56px) 8px; }
.tick { width: 76px; height: 76px; margin: 0 auto; border-radius: 22px; border: 3px solid var(--ink); background: var(--ink); color: var(--paper); display: grid; place-items: center; box-shadow: 6px 6px 0 var(--agent); animation: pop .45s both cubic-bezier(.2,1.4,.4,1); }
.tick svg { width: 40px; height: 40px; }
.done h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3vw, 42px); letter-spacing: -0.03em; line-height: 1.05; margin: 26px 0 0; }
.done p { color: var(--grey); margin: 12px auto 0; max-width: 40ch; }
.done .btn { margin-top: 28px; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tick { animation: none; } }

.side { display: grid; gap: 28px; }
.sideCard { background: var(--card); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 8px 8px 0 var(--ink); padding: 24px 24px 26px; }
.sideCard h3 { display: flex; align-items: center; gap: 12px; font: 800 20px/1.2 var(--body); margin: 0; }
.sideCard h3 svg { width: 30px; height: 30px; flex: none; }
.sideCard p { color: var(--grey); font-size: 16.5px; margin: 10px 0 0; }
.sideCard .btn { margin-top: 18px; height: 48px; font-size: 16px; }
.mail { display: inline-block; margin-top: 12px; font: 700 19px var(--body); text-decoration: underline; text-decoration-color: var(--agent); text-decoration-thickness: 3px; text-underline-offset: 5px; overflow-wrap: anywhere; }

/* Industries menu (markup generated by scripts/build-pages.py) */
.ind { position: relative; }
.ind > button { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ind > button svg { width: 12px; height: 12px; transition: transform .2s; }
.ind.open > button svg { transform: rotate(180deg); }
.ind-panel { position: absolute; top: calc(100% + 24px); left: 50%; transform: translateX(-50%); width: min(760px, 94vw); display: none; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; padding: 24px; background: #fff; border: 3px solid #141414; border-radius: 20px; box-shadow: 8px 8px 0 #141414; z-index: 60; font-size: 15.5px; line-height: 1.3; text-align: left; }
.ind-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -28px; height: 28px; }
.ind.open .ind-panel { display: grid; }
@media (hover: hover) and (min-width: 561px) { .ind:hover .ind-panel { display: grid; } }
.ind-panel .ip-k { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 800 12px Inter, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #6F6F6A; }
.ind-panel .ip-k .bar { width: 24px; height: 8px; }
.ind-panel a { text-decoration: none; }
.ind-panel .ip-main { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 -12px 6px; border-radius: 10px; font: 800 18px "Space Grotesk", sans-serif; letter-spacing: -0.01em; }
.ind-panel .ip-main:hover, .ind-panel .ip-sub a:hover { background: #FAFAF7; }
.ind-panel .ip-sub { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.ind-panel .ip-sub a { display: block; padding: 7px 12px; margin: 0 -12px; border-radius: 9px; font-weight: 600; }
.ind-panel .ip-soon { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: #6F6F6A; font-weight: 600; }
.ind-panel .ip-soon span { margin-left: 8px; padding: 1px 7px; border: 2px solid #E3E2DD; border-radius: 6px; font: 800 10px Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; vertical-align: 1px; }
