/* Connecta Group - page de links + materiais (visual compartilhado) */
:root {
  --black: #04060c;
  --black-2: #080c16;
  --navy-950: #050d1f;
  --navy-900: #081a3d;
  --navy-800: #0b2f63;
  --blue-700: #144c99;
  --blue-600: #1f63bd;
  --blue-300: #9fc1f2;
  --blue-100: #e7efff;
  --paper: #f5f7fb;
  --white: #ffffff;
  --ink: #0e1729;
  --muted: #5d6a82;
  --line: #dce5f2;
  --red: #c44d45;
  --green: #25d366;
  --display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --body: "Inter", "Segoe UI", Arial, sans-serif;
  --pill: 999px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--body);
  color: var(--white);
  background: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
button { font: inherit; }

/* ---------- Fundo: aurora azul + marca em marca d'água + grão */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 38%, rgba(159, 193, 242, .07) 50%, transparent 62%),
    radial-gradient(1000px 720px at 10% -22%, rgba(61, 128, 232, .5), transparent 58%),
    radial-gradient(640px 520px at 104% 8%, rgba(31, 99, 189, .34), transparent 60%),
    radial-gradient(520px 420px at 50% 42%, rgba(20, 76, 153, .16), transparent 70%),
    radial-gradient(900px 620px at 50% 112%, rgba(11, 47, 99, .5), transparent 60%),
    linear-gradient(180deg, #0b1e46 0%, #08163a 24%, #061029 50%, #04091a 76%, var(--black) 100%);
}
.bg::before {
  content: "";
  position: absolute;
  top: -6vh;
  right: -34vw;
  width: 118vw;
  max-width: 760px;
  aspect-ratio: 1;
  background: url("/static/logo-marca-branca.png") center / contain no-repeat;
  opacity: .045;
  transform: rotate(-8deg);
  mask-image: linear-gradient(200deg, rgba(0,0,0,1), transparent 70%);
  -webkit-mask-image: linear-gradient(200deg, rgba(0,0,0,1), transparent 70%);
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
  mix-blend-mode: overlay;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: calc(40px + env(safe-area-inset-top)) 20px calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

/* ---------- Marca */
.brand {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
}
.mark {
  position: relative;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.mark::before {
  content: "";
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 99, 189, .55), rgba(31, 99, 189, .12) 45%, transparent 70%);
  filter: blur(6px);
}
.mark img {
  position: relative;
  width: 104px;
  height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 10px 26px rgba(31, 99, 189, .45));
}
.brand h1 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.brand h1 span { font-weight: 500; color: var(--blue-300); }
.brand .tag {
  color: rgba(159, 193, 242, .85);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.brand .lead {
  max-width: 34ch;
  margin-top: 2px;
  color: rgba(255,255,255,.72);
  font-size: 15px;
}

/* Marca compacta (páginas internas) */
.brand-sm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand-sm .who {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand-sm .who img { width: 30px; height: 30px; object-fit: contain; }
.brand-sm .who b { font-weight: 700; }
.brand-sm .who span { color: var(--blue-300); font-weight: 500; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px 0 8px;
  border: 1px solid rgba(159,193,242,.18);
  border-radius: var(--pill);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.78);
  font-size: 12.5px;
  font-weight: 500;
}
.back svg { width: 16px; height: 16px; }

/* ---------- Botões de link */
.links {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}
.link {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 44px 1fr 22px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 84px;
  padding: 18px 18px 18px 20px;
  border: 1px solid rgba(159, 193, 242, .18);
  border-radius: 24px;
  background:
    radial-gradient(220px 120px at 0% 50%, rgba(61,128,232,.22), transparent 70%),
    linear-gradient(120deg, rgba(31,99,189,.3) 0%, rgba(11,47,99,.36) 45%, rgba(4,6,12,.55) 100%);
  box-shadow: 0 14px 34px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.09);
  color: var(--white);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.link::after {
  content: "";
  position: absolute;
  inset: -2px auto -2px -55%;
  width: 42%;
  z-index: -1;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
  opacity: 0;
  transition: left .5s var(--ease), opacity .2s var(--ease);
}
.link:hover, .link:focus-visible {
  background: linear-gradient(180deg, rgba(31,99,189,.18), rgba(31,99,189,.08));
  border-color: rgba(159,193,242,.45);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(31,99,189,.2);
  outline: none;
}
.link:hover::after { left: 115%; opacity: 1; }
.link:active { transform: translateY(0) scale(.99); }

.ico {
  width: 44px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #c9dcfa;
  filter: drop-shadow(0 6px 14px rgba(61,128,232,.5));
}
.ico svg { width: 30px; height: 30px; }
.txt { display: grid; gap: 4px; min-width: 0; }
.txt b {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.txt small {
  color: rgba(255,255,255,.66);
  font-size: 13.5px;
  line-height: 1.35;
}
.chev { color: rgba(159,193,242,.6); }
.chev svg { width: 22px; height: 22px; }

footer {
  margin-top: auto;
  padding-top: 40px;
  text-align: center;
  color: rgba(255,255,255,.42);
  font-size: 12px;
}
footer b { color: rgba(255,255,255,.62); font-weight: 600; }

/* ---------- Cartão claro (formulário / materiais) */
.card {
  margin-top: 22px;
  padding: 24px 20px;
  border-radius: 26px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
}
.card .kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-700);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.card h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--navy-950);
}
.card .sub { margin-top: 8px; color: var(--muted); font-size: 14px; }

form { display: grid; gap: 14px; margin-top: 20px; }
.field { display: grid; gap: 6px; }
.field label { color: var(--navy-950); font-size: 12px; font-weight: 600; }
.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px; /* evita zoom automático no iOS */
  outline: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input:focus { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(31, 99, 189, .13); }
.field input:user-invalid { border-color: var(--red); }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choices label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.choices input { position: absolute; opacity: 0; width: 0; height: 0; }
.choices label:has(input:checked) {
  border-color: var(--blue-600);
  background: var(--blue-100);
  color: var(--blue-700);
  font-weight: 600;
}
.choices label:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(31, 99, 189, .13); }
.field-other { display: none; }
.field-other.is-visible { display: grid; }

.btn {
  position: relative;
  isolation: isolate;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 0 22px;
  border: 0;
  border-radius: var(--pill);
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600) 54%, #4d8ee8);
  box-shadow: 0 16px 38px rgba(20, 76, 153, .32);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), opacity .18s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,0) 45%);
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }
.btn svg { width: 18px; height: 18px; }
.form-note { color: var(--muted); font-size: 11.5px; text-align: center; }
.form-err {
  display: none;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(196, 77, 69, .1);
  color: var(--red);
  font-size: 13px;
}
.form-err.is-visible { display: block; }

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