@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url('/assets/fonts/instrument-sans-latin-wght-normal.woff2') format('woff2-variations'), url('/assets/fonts/instrument-sans-latin-wght-normal.woff2') format('woff2');
}

:root {
  --night: #05030a;
  --ink: #f4f0fb;
  --muted: rgba(244, 240, 251, 0.62);
  --soft: rgba(244, 240, 251, 0.42);
  --line: rgba(244, 240, 251, 0.12);
  --line-violet: rgba(208, 154, 255, 0.18);
  --violet: #b858ff;
  --violet-hi: #d09aff;
  --cta: #8a3ff0;
  --cta-hover: #9b55ff;
  --attention: #ff6b66;
  --tile-violet: #7f4a88;
  --tile-red: #d62222;
  --tile-blue: #005691;
  --tile-wa: rgba(255, 255, 255, 0.12);
  --p1: #9a73c6;
  --p2: #de5656;
  --p3: #5d9cc8;
  --radius: 14px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(70% 45% at 85% -5%, rgba(184, 88, 255, 0.20), rgba(184, 88, 255, 0) 70%),
    radial-gradient(50% 35% at 0% 100%, rgba(74, 38, 106, 0.35), rgba(74, 38, 106, 0) 70%),
    var(--night);
  color: var(--ink);
  font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* a faint map grid falling away behind the page, the portal's ground plane */
.sky {
  position: fixed;
  left: -30%;
  right: -30%;
  top: 0;
  height: 62vh;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(184, 88, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 88, 255, 0.13) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(520px) rotateX(62deg);
  transform-origin: 50% 0%;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0) 92%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0) 92%);
  opacity: 0.55;
}

a { color: var(--violet-hi); text-underline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.page {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 18px max(32px, env(safe-area-inset-bottom));
  display: grid;
  gap: 26px;
}

/* intro */
.lockup {
  display: block;
  width: 260px;
  height: auto;
  margin: 4px 0 30px;
}

h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lead {
  margin: 14px 0 0;
  max-width: 30ch;
  font-size: 17px;
  color: var(--muted);
}

/* contact rows, as on the SecaTeq contact card */
.talk h2 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 8px 8px;
  margin: 0 -8px;
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 160ms ease;
}
.row:focus-visible { background: rgba(255, 255, 255, 0.04); }
@media (hover: hover) { .row:hover { background: rgba(255, 255, 255, 0.04); } }
.row:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 2px; }

.tile {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
}
.tile img { display: block; width: 30px; height: 30px; }
.tile-wa img { width: 28px; height: 28px; }
.tile-violet { background: var(--tile-violet); }
.tile-red { background: var(--tile-red); }
.tile-blue { background: var(--tile-blue); }
.tile-wa { background: var(--tile-wa); }

.row-text { display: grid; line-height: 1.15; }
.row-label { font-size: 13px; color: var(--soft); }
.row-value { font-size: 20px; font-weight: 700; letter-spacing: -0.005em; font-variant-numeric: tabular-nums; }

.talk-wide, .foot-wide { display: none; }
.nowrap { white-space: nowrap; }

/* the form card */
.card {
  position: relative;
  border-radius: 22px;
  padding: 22px 18px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--line-violet);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

fieldset { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
legend, label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; padding: 0; }
.opt { font-weight: 400; color: var(--soft); margin-left: 4px; }
.hint { margin: 8px 0 0; font-size: 13px; color: var(--soft); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  min-height: 44px;
  padding: 9px 15px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}
.chip::before {
  content: '';
  width: 0;
  height: 10px;
  border-right: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(45deg) translateY(-2px);
  transition: width 160ms ease;
}
.chip[aria-pressed='true'] {
  border-color: var(--violet);
  background: rgba(184, 88, 255, 0.16);
}
.chip[aria-pressed='true']::before { width: 5px; border-color: var(--violet-hi); }
@media (hover: hover) { .chip:hover { border-color: rgba(208, 154, 255, 0.45); } }
.chip:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 2px; }

.field { margin: 0 0 18px; }

input[type='text'], input[type='tel'], input[type='email'], textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: rgba(5, 3, 10, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  height: 52px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
textarea { height: auto; min-height: 112px; padding: 13px 14px; resize: vertical; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: rgba(244, 240, 251, 0.30); }
input:focus, textarea:focus { outline: none; border-color: var(--violet-hi); box-shadow: 0 0 0 3px rgba(184, 88, 255, 0.24); }
input[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: var(--attention); }

.err { margin: 7px 0 0; font-size: 14px; color: var(--attention); }

/* segmented choice for the reply channel */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 14px; background: rgba(5, 3, 10, 0.55); border: 1px solid var(--line); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  margin: 0;
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.seg input:checked + label { background: rgba(184, 88, 255, 0.20); color: #fff; box-shadow: inset 0 0 0 1px rgba(208, 154, 255, 0.5); }
.seg input:focus-visible + label { outline: 2px solid var(--violet-hi); outline-offset: 1px; }

.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.turnstile { margin: 4px 0 16px; min-height: 0; }

.send {
  appearance: none;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #9a52ff, var(--cta));
  box-shadow: 0 10px 30px rgba(138, 63, 240, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 160ms ease, filter 160ms ease;
}
@media (hover: hover) { .send:hover { filter: brightness(1.08); box-shadow: 0 14px 36px rgba(138, 63, 240, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18); } }
.send:active { transform: translateY(1px); }
.send:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 3px; }
.send[disabled] { cursor: progress; filter: saturate(0.6) brightness(0.9); }

.status { min-height: 0; margin: 12px 0 0; font-size: 15px; color: var(--muted); }
.status.is-error { color: var(--attention); }
.status:empty { margin: 0; }

.privacy { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: var(--soft); }

/* sent */
.done { padding: 18px 6px 10px; outline: none; }
.done-mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(89, 184, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(89, 184, 255, 0.45); margin-bottom: 18px; }
.done-mark svg { width: 28px; height: 28px; fill: none; stroke: #59b8ff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.done-title { margin: 0 0 8px; font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -0.015em; }
.done-text { margin: 0; font-size: 17px; color: var(--muted); max-width: 34ch; }
.done-soon { margin: 18px 0 0; font-size: 15px; color: var(--soft); }

/* footer */
.foot { padding-top: 6px; }
/* the social row and the real three-colour PPP lockup on one line, as on the contact card standard */
.brandline { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; }
.social a { display: block; padding: 2px; border-radius: 6px; opacity: 0.92; }
.social a:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 2px; }
@media (hover: hover) { .social a:hover { opacity: 1; } }
.social img { display: block; width: 22px; height: 22px; }
.ppp-img { display: block; width: 210px; height: auto; }
.legal { margin: 6px 0 0; font-size: 12.5px; color: var(--soft); }

/* desktop: intro and contact rows on the left, the form on the right */
@media (min-width: 960px) {
  .page {
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    column-gap: 72px;
    row-gap: 0;
    padding-top: 64px;
    align-items: start;
  }
  .intro { position: sticky; top: 56px; padding-top: 10px; }
  .lockup { width: 340px; margin-bottom: 52px; }
  h1 { font-size: 60px; }
  .lead { font-size: 19px; margin-top: 18px; }
  .talk-wide { display: block; margin-top: 48px; }
  .foot-wide { display: block; padding-top: 44px; }
  .talk-narrow, .foot-narrow { display: none; }
  .card { padding: 30px 30px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
