/* ============================================================
   Gibson Veninga — Storefront
   Obsidian / deep slate, warm white type, silver borders.
   Mobile-first. Clean. No neon, no AI-matrix motifs.
   ============================================================ */

:root {
  --obsidian: #0a0a0b;
  --slate-card: #1b1d22;
  --warm-50: #f6f3ec;
  --warm-200: #e4ddcd;
  --warm-400: #b8b0a0;
  --silver: rgba(255, 255, 255, 0.22);
  --silver-strong: rgba(255, 255, 255, 0.40);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--obsidian);
  overflow-x: hidden;
  margin: 0;
  line-height: 1.5;
}

/* ============================================================
   Reset — replaces Tailwind's Preflight base styles.
   Scoped to exactly what this site's markup needs (headings,
   paragraphs, lists, links, form controls, media), not a full
   generic reset.
   ============================================================ */

h1, h2, h3, h4, h5, h6, p, blockquote, dl, dd, hr, figure, pre { margin: 0; }
ol, ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }

button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
}
button, [type="button"], [type="submit"] {
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  background-image: none;
  cursor: pointer;
}
:disabled { cursor: default; }

/* ============================================================
   Utilities — hand-written equivalents for exactly the utility
   classes used in index.html, thankyou.html and privacy.html.
   Replaces the Tailwind Play CDN (no build step; this is the
   single source of truth for these class names going forward).
   ============================================================ */

/* -- layout -- */
.flex { display: flex; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.relative { position: relative; }
.order-1 { order: 1; }
.order-2 { order: 2; }

/* -- sizing -- */
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-\[70vh\] { min-height: 70vh; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-6xl { max-width: 72rem; }

/* -- margin / padding -- */
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-9 { margin-top: 2.25rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.pt-4 { padding-top: 1rem; }
.pt-24 { padding-top: 6rem; }
.pt-28 { padding-top: 7rem; }
.pb-14 { padding-bottom: 3.5rem; }
.pb-20 { padding-bottom: 5rem; }
.pl-5 { padding-left: 1.25rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

/* -- gap -- */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-5 { gap: 1.25rem; }
.gap-10 { gap: 2.5rem; }
.gap-x-6 { column-gap: 1.5rem; }
.gap-y-2 { row-gap: 0.5rem; }

/* -- stacked children spacing (space-y-*) --
   Tailwind's real selector excludes [hidden] siblings; simplified
   here to `> * + *` since no space-y container in this site ever
   has a hidden child — verified identical output for current markup. */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-10 > * + * { margin-top: 2.5rem; }

/* -- typography -- */
.font-body { font-family: "Inter", sans-serif; }
.font-display { font-family: "Fraunces", serif; }
.font-semibold { font-weight: 600; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-\[0\.12em\] { letter-spacing: 0.12em; }
.leading-relaxed { line-height: 1.625; }
.leading-\[1\.15\] { line-height: 1.15; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-\[15px\] { font-size: 15px; }
.text-\[2\.15rem\] { font-size: 2.15rem; }

/* -- color -- */
.bg-obsidian { background-color: var(--obsidian); }
.text-warm-50 { color: var(--warm-50); }
.text-warm-200 { color: var(--warm-200); }
.text-warm-400 { color: var(--warm-400); }
.text-warm-400\/60 { color: rgba(184, 176, 160, 0.6); }
.text-warm-400\/70 { color: rgba(184, 176, 160, 0.7); }
.text-silver-300\/80 { color: rgba(217, 217, 220, 0.8); }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-white\/\[0\.06\] { border-color: rgba(255, 255, 255, 0.06); }

/* -- misc -- */
.object-cover { object-fit: cover; }
.object-\[50\%_20\%\] { object-position: 50% 20%; }
.list-disc { list-style-type: disc; }

/* -- responsive: sm (640px) -- */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:col-span-2 { grid-column: span 2 / span 2; }
  .sm\:inline { display: inline; }
  .sm\:gap-4 { gap: 1rem; }
  .sm\:mb-16 { margin-bottom: 4rem; }
  .sm\:pb-20 { padding-bottom: 5rem; }
  .sm\:pb-28 { padding-bottom: 7rem; }
  .sm\:pt-32 { padding-top: 8rem; }
  .sm\:pt-36 { padding-top: 9rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .sm\:w-auto { width: auto; }
  .sm\:text-left { text-align: left; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
  .sm\:leading-\[1\.12\] { line-height: 1.12; }
}

/* -- responsive: lg (1024px) -- */
@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:flex-1 { flex: 1 1 0%; }
  .lg\:gap-16 { gap: 4rem; }
  .lg\:justify-center { justify-content: center; }
  .lg\:justify-start { justify-content: flex-start; }
  .lg\:max-w-sm { max-width: 24rem; }
  .lg\:mx-0 { margin-left: 0; margin-right: 0; }
  .lg\:order-1 { order: 1; }
  .lg\:order-2 { order: 2; }
  .lg\:text-left { text-align: left; }
}

/* ---------- ambient background ---------- */

.ambient-vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(246, 243, 236, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
}

header, main, footer { position: relative; z-index: 1; }

/* ---------- sticky header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--silver);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.6);
}

.mark {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--warm-50), var(--warm-400));
}

/* ---------- mobile sticky CTA ---------- */

.mobile-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--silver);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-sticky-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Reserve space on mobile so the fixed bar never covers page content or the footer */
@media (max-width: 639.98px) {
  body { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
}

/* Desktop: this CTA does not exist — the header CTA covers that role */
@media (min-width: 640px) {
  .mobile-sticky-cta { display: none !important; }
}

/* ---------- eyebrow / labels ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-400);
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--silver-strong);
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--warm-400);
  opacity: 0.6;
  display: inline-block;
}

/* ---------- buttons (thumb-friendly, min 48px tall) ---------- */

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0.9rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.975rem;
  color: #0a0a0b;
  background: linear-gradient(180deg, #ffffff, var(--warm-200));
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.btn-cta:hover { opacity: 0.88; }
.btn-cta:active { transform: scale(0.98); }

.btn-cta-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.05rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.825rem;
  color: #0a0a0b;
  background: var(--warm-50);
  transition: opacity 0.25s ease;
  white-space: nowrap;
}
.btn-cta-sm:hover { opacity: 0.85; }

/* ---------- image frames ---------- */

.img-frame {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--silver);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--slate-card);
  transition: border-color 0.3s ease;
}
.img-frame:hover { border-color: var(--silver-strong); }
.img-frame--hero { aspect-ratio: 1 / 1; }
.img-frame--portrait { aspect-ratio: 3 / 4; }
.img-frame img { display: block; filter: saturate(0.92) contrast(1.02); }
.img-frame__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0) 40%, rgba(10, 10, 11, 0.55) 100%);
  pointer-events: none;
}

@media (min-width: 1024px) {
  .img-frame--hero { aspect-ratio: 4 / 5; }
  .img-frame--portrait { aspect-ratio: 4 / 5; }
}

.hero-video-placeholder {
  border-radius: 20px;
  border: 1px solid var(--silver);
  background: var(--slate-card);
  aspect-ratio: 16 / 9;
}

/* ---------- modular bio block ---------- */

.modular-block {
  border-left: 2px solid var(--silver-strong);
  padding-left: 18px;
  text-align: left;
}

/* ---------- step cards (reputation engine) ---------- */

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--silver);
  background: var(--slate-card);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.step-card:hover { border-color: var(--silver-strong); background: #16171b; }

.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--obsidian);
  background: var(--warm-200);
}

.step-title { color: var(--warm-50); font-weight: 600; font-size: 0.95rem; }
.step-sub { color: var(--warm-400); font-size: 0.85rem; margin-top: 4px; line-height: 1.5; }

.case-block {
  border-radius: 14px;
  border: 1px solid var(--silver);
  background: rgba(255, 255, 255, 0.02);
  padding: 20px;
}

/* ---------- capabilities grid ---------- */

.cap-card {
  border-radius: 16px;
  border: 1px solid var(--silver);
  background: var(--slate-card);
  padding: 26px 22px;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.cap-card:hover {
  border-color: var(--silver-strong);
  background: #16171b;
  transform: translateY(-3px);
}

.cap-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--silver);
  color: var(--warm-200);
}
.cap-icon .icon { width: 20px; height: 20px; }

.cap-title { margin-top: 18px; font-weight: 600; color: var(--warm-50); font-size: 1rem; }
.cap-sub { margin-top: 8px; color: var(--warm-400); font-size: 0.875rem; line-height: 1.55; }

/* ---------- reputation engine phone mockup ---------- */

.phone-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}

.phone-tab {
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--silver);
  background: transparent;
  color: var(--warm-400);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.phone-tab:hover { border-color: var(--silver-strong); color: var(--warm-200); }
.phone-tab--active {
  background: var(--warm-50);
  color: var(--obsidian);
  border-color: var(--warm-50);
}

.phone-mock {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 40px;
  background: linear-gradient(180deg, #17181c, #0a0a0b);
  border: 1px solid var(--silver);
  padding: 18px 14px 22px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
}

.phone-mock__notch {
  width: 88px;
  height: 18px;
  background: #0a0a0b;
  border-radius: 0 0 12px 12px;
  margin: 0 auto 12px;
}

.phone-mock__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--silver);
}

.phone-mock__avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--obsidian);
  background: linear-gradient(180deg, #ffffff, var(--warm-200));
}

.phone-mock__name { color: var(--warm-50); font-weight: 600; font-size: 0.85rem; }
.phone-mock__status { color: var(--warm-400); font-size: 0.7rem; margin-top: 1px; }

.phone-mock__thread {
  padding: 16px 4px 2px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.phone-thread-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bubble {
  max-width: 84%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.8rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.bubble.is-visible { opacity: 1; transform: translateY(0); }

.bubble--out {
  align-self: flex-end;
  background: var(--warm-200);
  color: var(--obsidian);
  font-weight: 500;
  border-bottom-right-radius: 4px;
}
.bubble--in {
  align-self: flex-start;
  background: #1c1d21;
  color: var(--warm-50);
  border: 1px solid var(--silver);
  border-bottom-left-radius: 4px;
}
.bubble-link {
  color: var(--obsidian);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- FAQ accordion ---------- */

.faq-item {
  border-radius: 14px;
  border: 1px solid var(--silver);
  background: var(--slate-card);
  padding: 0 20px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.faq-item:hover { border-color: var(--silver-strong); }
.faq-item[open] { background: #16171b; }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--warm-50);
  cursor: pointer;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }

.faq-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--warm-400);
  transition: transform 0.3s ease;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  color: var(--warm-400);
  font-size: 0.875rem;
  line-height: 1.6;
  padding-bottom: 18px;
  padding-right: 34px;
}

/* ---------- lead form ---------- */

.form-card {
  border-radius: 20px;
  border: 1px solid var(--silver);
  background: var(--slate-card);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

@media (min-width: 640px) {
  .form-card { padding: 2.25rem; }
}

.field { display: flex; flex-direction: column; gap: 7px; text-align: left; }
.field label { font-size: 0.8rem; font-weight: 600; color: var(--warm-200); }

/* Honeypot — off-screen, not display:none, so bots that check visibility still fill it in */
.honeypot-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field input,
.field select {
  min-height: 50px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--silver);
  border-radius: 10px;
  padding: 0 1rem;
  color: var(--warm-50);
  font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8b0a0' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 18px;
  padding-right: 2.5rem;
}
.field select:invalid { color: var(--warm-400); }

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--silver-strong);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}
.field input::placeholder { color: rgba(184, 176, 160, 0.5); }

.consent-text {
  font-size: 0.7rem;
  line-height: 1.5;
  color: rgba(184, 176, 160, 0.6);
}

.footer-link {
  color: inherit;
  transition: color 0.25s ease;
}
.footer-link:hover { color: var(--warm-200); }

.form-success {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--warm-50);
  border: 1px solid var(--silver-strong);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.85rem 1rem;
  border-radius: 10px;
}

.form-error {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #e8b4ae;
  border: 1px solid rgba(232, 180, 174, 0.35);
  background: rgba(232, 180, 174, 0.06);
  padding: 0.85rem 1rem;
  border-radius: 10px;
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- misc ---------- */

.hidden { display: none !important; }
