/* InvestiLog landing page. Mobile-first, no external fonts or libraries. */

:root {
  --navy: #0f172a;
  --blue: #1e3a5f;
  --teal-blue: #0b5c8f;
  --teal: #2dd4bf;
  --teal-strong: #0f766e;
  --white: #ffffff;
  --bg: #ffffff;
  --bg-alt: #f1f5f9;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #cbd5e1;
  --border-soft: #e2e8f0;
  --danger: #b91c1c;
  --success: #0f766e;
  --teal-glow: rgba(45, 212, 191, 0.45);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px -10px rgba(15, 23, 42, 0.16), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, 0.28);
  --radius: 12px;
  --radius-lg: 16px;
  --header-h: 64px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--navy);
}

h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--teal-blue);
}

a:hover {
  color: var(--blue);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.narrow {
  max-width: 760px;
}

.center {
  text-align: center;
  margin-top: 2rem;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 0.875rem;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 100;
  background: var(--white);
  color: var(--navy);
  padding: 8px 12px;
  border-radius: 6px;
}

.skip-link:focus {
  top: 8px;
}

/* Honeypot: off-screen, not display:none (see landing-page-context.md) */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Icons: one inline SVG sprite in index.html, referenced with <use>. */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: inline-block;
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
}

.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  color: var(--teal-strong);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.22), rgba(11, 92, 143, 0.1));
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.28);
}

.icon-tile .icon {
  width: 22px;
  height: 22px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn .icon {
  width: 1.1em;
  height: 1.1em;
  margin-right: -4px;
}

.btn-primary {
  background: linear-gradient(135deg, #5eead4 0%, var(--teal) 100%);
  color: var(--navy);
  box-shadow: 0 8px 20px -8px var(--teal-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #99f6e4 0%, #5eead4 100%);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -10px var(--teal-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn-ghost-dark {
  border-color: var(--border);
  background: transparent;
  color: var(--navy);
}

.btn-ghost-dark:hover {
  background: var(--bg-alt);
  color: var(--navy);
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
}

/* Header and nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(15, 23, 42, 0.85);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--white);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile: nav is a dropdown panel */
.site-nav {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  display: none;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px 20px;
  box-shadow: var(--shadow-lg);
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-nav a {
  position: relative;
  display: block;
  padding: 12px 4px;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--teal);
}

.site-nav .btn {
  margin-top: 8px;
  width: 100%;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: block;
    background: none;
    border: 0;
    padding: 0;
    box-shadow: none;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 26px;
  }

  .site-nav a {
    padding: 8px 0;
  }

  /* Underline slides in under desktop nav links */
  .site-nav li:not(:last-child) a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s;
  }

  .site-nav li:not(:last-child) a:hover::after {
    transform: scaleX(1);
  }

  .site-nav .btn {
    margin: 0;
    width: auto;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(11, 92, 143, 0.55), transparent 70%),
    radial-gradient(600px 300px at 0% 100%, rgba(45, 212, 191, 0.1), transparent 70%),
    linear-gradient(160deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 56px 0 64px;
}

/* Faint dot grid, fading out towards the bottom */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}

.hero h1,
.hero .lead {
  color: var(--white);
}

.hero h1 .accent {
  background: linear-gradient(90deg, var(--teal) 0%, #7dd3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.18);
}

.lead {
  font-size: clamp(1.0625rem, 2.4vw, 1.25rem);
  color: #e2e8f0;
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 20px;
}

.hero-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #cbd5e1;
  font-size: 0.9375rem;
  margin: 0;
}

.hero-note .icon {
  color: var(--teal);
  margin-top: 0.2em;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Soft teal glow behind the screens so the dark UI separates from the navy */
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 8% 4%;
  background: radial-gradient(closest-side, rgba(45, 212, 191, 0.3), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}

.hero-visual img {
  position: relative;
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}

@media (min-width: 900px) {
  .hero {
    padding: 88px 0 96px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
  }
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
}

.section-dark {
  position: relative;
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(45, 212, 191, 0.12), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-head {
  max-width: 44em;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal-blue));
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin: 14px 0 0;
}

.section-dark .section-head p {
  color: #cbd5e1;
}

@media (min-width: 900px) {
  .section {
    padding: 88px 0;
  }
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-bottom: 0.4em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.feature-grid .card,
.avail-grid .card {
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature-grid .card:hover,
.avail-grid .card:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: var(--shadow-md);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11, 92, 143, 0.2);
  background: rgba(11, 92, 143, 0.08);
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 600;
}

.feature-grid,
.avail-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .avail-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Pain and solution: two columns on desktop, one on small screens */
.pain-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.pain-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--teal-blue);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.pain-item p {
  margin: 0;
}

.pain-label,
.solution-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pain-label {
  color: var(--danger);
}

.pain-label .icon,
.solution-label .icon {
  width: 16px;
  height: 16px;
}

.pain-text {
  color: var(--text-muted);
}

.solution-label {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  color: var(--teal-strong);
}

.solution-text {
  font-weight: 600;
  color: var(--navy);
}

@media (min-width: 900px) {
  .pain-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }

  .pain-item {
    padding: 28px;
  }
}

/* Structure */
.structure {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.structure li {
  position: relative;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.structure p {
  margin: 0;
  color: var(--text-muted);
}

@media (min-width: 760px) {
  .structure {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Chevron between steps, sitting in the grid gap */
  .structure li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -13px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--teal);
    border-right: 2px solid var(--teal);
    transform: translateY(-50%) rotate(45deg);
  }
}

/* Screenshots */
.shots {
  display: grid;
  gap: 28px 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.shot {
  margin: 0;
  text-align: center;
}

.shot figcaption {
  margin-top: 12px;
  color: #e2e8f0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.shot img,
.shot-placeholder {
  display: block;
  width: 100%;
  border-radius: 20px;
}

.shot img {
  box-shadow: var(--shadow-lg);
}

.shot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 0.9375rem;
  text-align: center;
  padding: 12px;
}

.shot-placeholder .icon {
  width: 28px;
  height: 28px;
  color: var(--teal);
}

.shot-phone .shot-placeholder,
.shot-phone img {
  aspect-ratio: 9 / 19;
}

.shot-wide {
  grid-column: 1 / -1;
}

.shot-wide .shot-placeholder,
.shot-wide img {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
}

@media (min-width: 760px) {
  .shots {
    grid-template-columns: repeat(4, 1fr);
  }

  .shot-wide {
    max-width: 760px;
    width: 100%;
    justify-self: center;
  }
}

/* FAQ */
.faq details {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.faq details[open] {
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: var(--shadow-md);
}

.faq summary {
  position: relative;
  padding: 16px 52px 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* Chevron that rotates when the answer is open */
.faq summary::after {
  content: '';
  position: absolute;
  right: 22px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--teal-blue);
  border-bottom: 2px solid var(--teal-blue);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text-muted);
}

/* Contact and forms */
.contact-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
  }
}

.contact-intro h2 {
  margin-bottom: 0.5em;
}

.contact-intro .icon {
  color: var(--teal-strong);
  margin-right: 2px;
}

.form {
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.form h3 {
  font-size: 1.25rem;
  margin-bottom: 1em;
}

.field {
  margin-bottom: 16px;
  flex: 1;
  min-width: 0;
}

.field-row {
  display: flex;
  flex-direction: column;
}

@media (min-width: 560px) {
  .field-row {
    flex-direction: row;
    gap: 16px;
  }
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
}

.optional {
  font-weight: 400;
  color: var(--text-muted);
}

input[type='text'],
input[type='email'],
input[type='tel'],
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: 1px solid #94a3b8;
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type='text']:hover,
input[type='email']:hover,
input[type='tel']:hover,
textarea:hover {
  border-color: #64748b;
}

textarea {
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 0;
  border-color: var(--teal-blue);
}

.is-invalid {
  border-color: var(--danger) !important;
}

.form-status {
  min-height: 1.5em;
  margin: 0 0 12px;
  font-weight: 600;
}

.form-status.is-error {
  color: var(--danger);
}

.form-status.is-success {
  color: var(--success);
}

/* Modal */
.modal {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--white);
  color: var(--text);
  overflow: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.modal::backdrop {
  background: rgba(2, 6, 23, 0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal-inner {
  position: relative;
  padding: 28px;
}

.modal h2 {
  font-size: 1.5rem;
  padding-right: 40px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--bg-alt);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

body.modal-open {
  overflow: hidden;
}

/* Footer */
.site-footer {
  position: relative;
  background: var(--navy);
  color: #cbd5e1;
  padding: 48px 0 32px;
}

/* Gradient hairline across the top edge */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.5), transparent);
}

.site-footer a {
  color: #e2e8f0;
}

.site-footer a:hover {
  color: var(--teal);
}

.footer-inner {
  display: grid;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-name {
  margin: 0;
  color: var(--white);
  font-weight: 700;
}

.footer-sub,
.footer-copy {
  margin: 0;
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a {
  display: inline-block;
  padding: 8px 0;
}

@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer-copy {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
