/* Jacks Cabino — coming soon. Colour block above, cards below. Written by hand. */

:root {
  --page: #f3f4f9;
  --ink: #12152a;
  --muted: #5f6577;
  --line: #e0e3ee;
  --card: #ffffff;
  --brand: #1c2564;
  --brand-2: #303c96;
  --pop: #cdf05a;
  --action: #3b4bd8;
  --radius: 18px;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--action); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; border-radius: 6px; }

/* dark block */
.blockhead {
  background: linear-gradient(150deg, var(--brand), var(--brand-2));
  color: #fff;
  padding: 22px 0 clamp(48px, 9vw, 84px);
}
.wrap { max-width: 940px; margin: 0 auto; padding: 0 24px; }

.navbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding-bottom: 44px;
}
.logo {
  display: inline-flex; align-items: center; gap: 11px;
  color: #fff; font-weight: 700; letter-spacing: -.01em;
}
.logo:hover { text-decoration: none; }
.logo u {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--pop); color: var(--brand);
  display: grid; place-items: center;
  font-size: .82rem; font-weight: 800; text-decoration: none;
}
.navbar nav { display: flex; gap: 20px; }
.navbar nav a { color: rgba(255, 255, 255, .78); font-size: .88rem; }
.navbar nav a:hover, .navbar nav a.active { color: #fff; }

.chip {
  display: inline-block;
  margin: 0 0 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--pop); color: #26310a;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}

.blockhead h1 {
  margin: 0 0 20px;
  max-width: 16ch;
  font-size: clamp(2.3rem, 6.6vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 800;
}
.blockhead .tagline {
  margin: 0 0 14px;
  color: var(--pop);
  font-size: 1.1rem; font-weight: 600;
}
.blockhead .intro { margin: 0; max-width: 56ch; color: rgba(255, 255, 255, .78); }

/* cards */
.deck {
  max-width: 940px;
  margin: clamp(-42px, -5vw, -32px) auto 0;
  padding: 0 24px 60px;
  display: grid;
  gap: 20px;
  grid-template-columns: 1.15fr .85fr;
  align-items: start;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(18, 21, 42, .07);
  padding: clamp(24px, 3.6vw, 34px);
}
.card h2 {
  margin: 0 0 6px;
  font-size: 1.2rem; font-weight: 750; letter-spacing: -.02em;
}
.card .hint { margin: 0 0 24px; color: var(--muted); font-size: .92rem; }

.field { margin-bottom: 16px; }
.field label {
  display: block; margin-bottom: 7px;
  font-size: .8rem; font-weight: 600; color: #363b52;
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit; font-size: .96rem;
  color: var(--ink);
  background: #f8f9fc;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--action);
  box-shadow: 0 0 0 4px rgba(59, 75, 216, .13);
}
.field .invalid { border-color: #d0453a; box-shadow: 0 0 0 4px rgba(208, 69, 58, .12); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 52px; padding: 0 24px;
  font: inherit; font-size: .97rem; font-weight: 700;
  color: #fff; background: var(--action);
  border: 0; border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(59, 75, 216, .26);
  transition: transform .18s, background .18s, box-shadow .18s;
}
.btn:hover { background: #2f3dc4; transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.status { margin: 14px 0 0; min-height: 1.2em; font-size: .9rem; }
.status.ok { color: #1f7a4d; font-weight: 600; }
.status.err { color: #b83a2f; font-weight: 600; }

.aside { display: grid; gap: 20px; }
.pairs { margin: 0; }
.pairs > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.pairs > div:last-child { border-bottom: 0; }
.pairs dt { color: var(--muted); font-size: .86rem; }
.pairs dd { margin: 0; text-align: right; font-size: .92rem; font-weight: 600; }
.note {
  margin: 0;
  padding: 16px 18px;
  background: #eef0fb;
  border-radius: 12px;
  color: #3a4062; font-size: .88rem;
}

/* footer */
.base { border-top: 1px solid var(--line); background: #fff; }
.base .wrap {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding-top: 24px; padding-bottom: 30px;
  color: var(--muted); font-size: .85rem;
}
.base nav { display: flex; gap: 20px; }
.base a { color: var(--muted); }
.base a:hover { color: var(--ink); }
.base p { margin: 0; }

/* legal */
.legalpage { max-width: 760px; margin: 0 auto; padding: clamp(44px, 8vw, 76px) 24px 60px; }
.legalpage .chip { background: #e6e9fb; color: var(--brand); }
.legalpage h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  font-weight: 800; letter-spacing: -.03em;
}
.stamp {
  display: inline-block; margin: 0 0 30px;
  padding: 5px 13px; border-radius: 999px;
  background: #e9ebf4; color: var(--muted); font-size: .8rem;
}
.panel {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 14px 34px rgba(18, 21, 42, .06);
}
.panel h2 { margin: 32px 0 10px; font-size: 1.12rem; font-weight: 750; letter-spacing: -.015em; }
.panel h2:first-child { margin-top: 0; }
.panel p, .panel li { color: #3d4257; }
.panel ul { padding-left: 20px; }
.panel li { margin-bottom: .5em; }
.doc-actions {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px;
}
.doc-actions .btn { width: auto; min-width: 170px; }
.outline {
  background: #fff; color: var(--action);
  border: 1px solid var(--line); box-shadow: none;
}
.outline:hover { background: #f1f3fd; color: var(--action); }

@media (max-width: 860px) {
  .deck { grid-template-columns: 1fr; margin-top: -30px; }
}
@media (max-width: 560px) {
  .pairs > div { flex-direction: column; gap: 2px; }
  .pairs dd { text-align: left; }
  .base .wrap { flex-direction: column; }
}
