/* Alpine Labs landing page */
:root {
  --alpine-blue: #6495ed;
  --alpine-blue-dark: #4f7dd7;
  --alpine-navy: #0f172a;
  --alpine-slate: #475569;
  --alpine-muted: #64748b;
  --alpine-border: #e5e7eb;
  --alpine-soft: #e3ecff;
  --alpine-card: #ffffff;
  --alpine-bg: #f7f9ff;
  --alpine-shadow: 0 26px 70px rgba(79, 125, 215, 0.16);
  --alpine-radius-lg: 24px;
  --al-section-space: 80px;
  --al-section-gap: 24px;
}

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

body.alpine-landing {
  margin: 0;
  font-family: "Roboto", "Roboto", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  background: #ffffff;
  color: var(--alpine-navy);
  line-height: 1.65;
}

main {
  display: grid;
  gap: var(--al-section-gap);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
}

.al-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.al-section {
  padding: var(--al-section-space) 0;
}

.al-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  row-gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e3ecff;
  color: #254e9a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.al-eyebrow span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.1;
}

.al-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #6293eb;
  display: inline-block;
  flex-shrink: 0;
}

.al-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid var(--alpine-border);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.al-btn:active {
  transform: translateY(1px);
}

.al-btn-primary {
  background: var(--alpine-blue);
  border-color: var(--alpine-blue);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(100, 149, 237, 0.32);
}

.al-btn-primary:hover {
  background: var(--alpine-blue-dark);
  border-color: var(--alpine-blue-dark);
}

.al-btn-outline {
  background: #ffffff;
  color: #1f2937;
}

.al-btn-outline:hover {
  background: #f8fafc;
}

.al-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  color: var(--alpine-muted);
  font-size: 14px;
}

.al-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Header */
.al-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--alpine-border);
  z-index: 40;
}

.al-header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.al-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 19px;
  color: #111827;
}

.al-logo img {
  height: 30px;
  width: auto;
  border-radius: 8px;
}

.al-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: #4b5563;
  font-weight: 500;
}

.al-nav a:hover {
  color: var(--alpine-navy);
}

.al-link-cta {
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--alpine-blue);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(79, 125, 215, 0.32);
  border: 1px solid var(--alpine-blue);
}

.al-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--alpine-border);
  background: #ffffff;
  color: var(--alpine-navy);
  cursor: pointer;
}

.al-menu-toggle svg {
  width: 22px;
  height: 22px;
}

.al-mobile-menu {
  position: absolute;
  top: 64px;
  right: 24px;
  min-width: 190px;
  background: #ffffff;
  border: 1px solid var(--alpine-border);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 45;
}

.al-mobile-menu a {
  font-size: 14px;
  color: var(--alpine-muted);
  padding: 6px 8px;
  border-radius: 8px;
}

.al-mobile-menu a:hover {
  background: #f8fafc;
  color: var(--alpine-navy);
}

.al-mobile-menu.open {
  display: flex;
}

/* Hero */
.al-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #eaf2ff 0%, #ffffff 45%, #f3f7ff 100%);
}

.al-hero::before {
  content: "";
  position: absolute;
  inset: 35% auto -24% 12%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at center, rgba(111, 140, 219, 0.22), transparent 65%);
  filter: blur(48px);
  z-index: 0;
}

.al-hero::after {
  content: "";
  position: absolute;
  inset: 18% -16% auto auto;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle at center, rgba(100, 149, 237, 0.28), transparent 62%);
  filter: blur(10px);
  z-index: 0;
}

.al-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  gap: 56px;
  align-items: center;
  padding: calc(var(--al-section-space) + 8px) 0 calc(var(--al-section-space) + 48px);
}

.al-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 4vw + 12px, 60px);
  line-height: 1.08;
  font-weight: 600;
  color: #0b152b;
  letter-spacing: -0.01em;
}

.al-hero p {
  margin: 10px 0 0;
  font-size: 20px;
  color: #4b5563;
  max-width: 560px;
  line-height: 1.65;
}

.al-hero .al-highlight {
  background: linear-gradient(90deg, var(--alpine-blue) 0%, var(--alpine-blue-dark) 100%);
  -webkit-background-clip: text;
  color: transparent;
}

.al-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.al-hero-right {
  position: relative;
  max-width: 540px;
  margin-left: auto;
}

.al-hero-right::before {
  content: "";
  position: absolute;
  inset: -28px -32px -24px -32px;
  background: rgba(100, 149, 237, 0.36);
  filter: blur(96px);
  border-radius: 56px;
  transform: rotate(6deg);
  z-index: 0;
}

.al-records-card {
  background: #ffffff;
  border: 1px solid var(--alpine-soft);
  border-radius: var(--alpine-radius-lg);
  box-shadow: 0 30px 80px rgba(79, 125, 215, 0.18);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.al-records-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #edf2f7;
  background: #f8fafc;
}

.al-records-header h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: var(--alpine-navy);
}

.al-records-search {
  width: 160px;
  border-radius: 14px;
  border: 1px solid var(--alpine-border);
  padding: 9px 12px;
  font-size: 14px;
  outline: none;
}

.al-records-search::placeholder {
  color: #9aa4b5;
}

.al-records-head,
.al-record-row {
  display: grid;
  grid-template-columns: 4fr 3fr 3fr 2.4fr;
  align-items: center;
  gap: 10px;
}

.al-records-head {
  padding: 10px 16px;
  border-bottom: 1px solid #edf2f7;
  font-size: 12px;
  color: var(--alpine-muted);
  background: #ffffff;
}

.al-records-rows {
  max-height: 420px;
  overflow-y: auto;
}

.al-record-row {
  padding: 14px 16px;
  font-size: 15px;
  color: #344054;
  border-bottom: 1px solid #f1f5f9;
  line-height: 1.45;
}

.al-record-row .al-name {
  font-weight: 700;
  color: var(--alpine-navy);
}

.al-record-row:last-child {
  border-bottom: none;
}

.al-stat-card {
  position: absolute;
  bottom: -18px;
  left: -14px;
  transform: none;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  border: 1px solid #edf2f7;
  padding: 14px 16px;
  min-width: 150px;
  max-width: 150px;
  z-index: 3;
}

.al-stat-card .al-stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--alpine-navy);
}

.al-stat-card p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--alpine-muted);
  line-height: 1.35;
}

.al-records-rows::-webkit-scrollbar {
  width: 10px;
}

.al-records-rows::-webkit-scrollbar-track {
  background: #f5f7fb;
  border-radius: 10px;
}

.al-records-rows::-webkit-scrollbar-thumb {
  background: #d2ddf5;
  border-radius: 10px;
  border: 2px solid #f5f7fb;
}

/* Features */
.al-section-light {
  background: linear-gradient(180deg, #ffffff 0%, rgba(234, 242, 255, 0.22) 100%);
}

.al-section h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 2vw + 10px, 36px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.al-section p.lead {
  margin: 0;
  color: var(--alpine-muted);
  font-size: 16px;
  line-height: 1.6;
}

.al-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 44px;
}

@media (min-width: 1024px) {
  .al-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.al-feature-card {
  background: #ffffff;
  border: 1px solid #e7ecf5;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(79, 125, 215, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.al-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(79, 125, 215, 0.12);
  border-color: #dfe7f5;
}

.al-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #e8f0ff;
  color: #3b6cc4;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.al-feature-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.al-feature-card p {
  margin: 0;
  color: var(--alpine-muted);
  font-size: 14px;
}

/* Use cases */
.al-use-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  align-items: center;
}

#use-cases {
  background: linear-gradient(180deg, #ffffff 0%, #f5f7ff 100%);
}

#testimonials {
  background: linear-gradient(180deg, #ffffff 0%, #f5f7ff 100%);
}

#contact {
  background: linear-gradient(180deg, #f6f9ff 0%, #eef3ff 100%);
}

#about {
  background: linear-gradient(180deg, #ffffff 0%, #f5f7ff 100%);
}

.al-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}

.al-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: var(--alpine-slate);
  font-size: 15px;
}

.al-list .al-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e3ecff;
  display: grid;
  place-items: center;
  color: #3b6cc4;
}

.al-illustration {
  background: radial-gradient(circle at 20% 20%, #f1f5ff 0%, #ffffff 48%);
  border: 1px solid var(--alpine-border);
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(79, 125, 215, 0.14);
  overflow: hidden;
  position: relative;
  padding: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.al-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

/* About */
.al-about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  align-items: center;
}

.al-metrics {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.al-metric {
  background: #ffffff;
  border: 1px solid var(--alpine-border);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}

.al-metric .al-number {
  font-size: 24px;
  font-weight: 700;
}

.al-portrait {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid #e7ecf5;
  box-shadow: 0 26px 60px rgba(79, 125, 215, 0.16);
}

.al-portrait-bg {
  position: absolute;
  inset: 0;
  /* Soften or remove the blue overlay */
  background: linear-gradient(135deg, rgba(100,149,237,0.10), rgba(234,242,255,0.35)), url("img/jd_headshot.png");
  background-size: cover;
  background-position: center;
  filter: blur(8px);      /* gentle blur */
  transform: scale(1.05); /* slight zoom */
  opacity: 0.9;           /* let the photo dominate */
}


.al-portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 420px;
  object-fit: contain;
  object-position: center;
}

.al-portrait .al-portrait-overlay {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.64);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 10px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(2px);
  z-index: 3;
}

.al-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #ffffff;
  font-size: 12px;
  line-height: 1.2;
}

.al-link-btn:hover {
  color: #0a66c2;
  background: #f7faff;
  border-color: #0a66c2;
}

.al-muted {
  color: var(--alpine-muted);
  font-size: 13px;
}

/* Testimonials */
.al-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.al-testimonial-card {
  background: #ffffff;
  border: 1px solid var(--alpine-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
  height: 100%;
}

.al-testimonial-card p {
  margin: 0;
  color: var(--alpine-slate);
  font-style: italic;
}

.al-testimonial-card .al-author {
  margin-top: 12px;
  color: var(--alpine-muted);
  font-size: 14px;
  font-weight: 500;
}

/* CTA */
.al-cta {
  position: relative;
  background: linear-gradient(135deg, #f5f8ff 0%, #ffffff 60%, #f2f6ff 100%);
  border: 1px solid var(--alpine-soft);
  border-radius: 28px;
  box-shadow: 0 32px 72px rgba(79, 125, 215, 0.16);
  padding: 28px;
  overflow: hidden;
}

.al-cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.al-cta-copy {
  background: radial-gradient(circle at 20% 20%, rgba(100, 149, 237, 0.08), transparent 48%),
    #ffffff;
  border: 1px solid var(--alpine-soft);
  border-radius: 22px;
  padding: 22px 22px 20px;
  display: grid;
  gap: 12px;
  color: var(--alpine-slate);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.al-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e5edff;
  color: #254e9a;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.01em;
  width: fit-content;
}

.al-cta-copy h3 {
  margin: 0;
  font-size: 22px;
  color: var(--alpine-navy);
}

.al-cta-copy p {
  margin: 0;
}

.al-cta-highlights {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  color: var(--alpine-navy);
  font-weight: 600;
}

.al-cta-highlights div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.al-cta-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.al-cta-meta > div {
  padding: 12px;
  border-radius: 16px;
  background: #f7f9ff;
  border: 1px solid #e7edff;
}

.al-meta-label {
  color: var(--alpine-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.al-meta-value {
  color: var(--alpine-navy);
  font-weight: 600;
  margin-top: 4px;
  font-size: 14px;
}

.al-cta-form {
  background: #ffffff;
  border-radius: 22px;
  padding: 22px;
  border: 1px solid #e8ecf5;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 16px;
}

.al-field {
  display: grid;
  gap: 6px;
}

.al-field label {
  font-weight: 600;
  color: var(--alpine-navy);
  font-size: 14px;
}

.al-field input,
.al-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--alpine-border);
  font: inherit;
  background: #ffffff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.1s ease;
}

.al-field input:focus,
.al-field textarea:focus {
  outline: none;
  border-color: var(--alpine-blue);
  box-shadow: 0 0 0 4px rgba(100, 149, 237, 0.14);
}

.al-field input[aria-invalid="true"],
.al-field textarea[aria-invalid="true"] {
  border-color: #dc2626;
}

.al-required {
  color: #dc2626;
  font-weight: 700;
}

.al-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.al-form-hint {
  margin: 0;
  color: var(--alpine-muted);
  font-size: 13px;
}

.al-form-status {
  margin: 0;
  min-height: 20px;
  font-size: 14px;
  color: var(--alpine-muted);
}

.al-form-status.is-success {
  color: #0f9b4c;
}

.al-form-status.is-error {
  color: #b91c1c;
}

@media (max-width: 720px) {
  .al-cta {
    padding: 20px;
  }

  .al-cta-form {
    padding: 18px;
  }
}

/* Footer */
.al-footer {
  padding: 48px 0;
  border-top: 1px solid var(--alpine-border);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
}

.al-footer .al-logo {
  font-size: 22px;
  color: #111827;
}

.al-footer .al-logo img {
  height: 36px;
}

.al-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.al-footer h4 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--alpine-navy);
}

.al-footer a {
  color: var(--alpine-muted);
  font-size: 14px;
}

.al-footer a:hover {
  color: var(--alpine-navy);
}

.al-footer button {
  padding: 0;
  border: none;
  background: none;
  color: var(--alpine-muted);
  font-size: 14px;
  cursor: pointer;
}

.al-footer button:hover {
  color: var(--alpine-navy);
}

/* Privacy modal */
.al-privacy-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
}

.al-privacy-modal.open {
  display: flex;
}

.al-privacy-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.al-privacy-dialog {
  position: relative;
  width: min(1100px, 92vw);
  height: 82vh;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--alpine-border);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.al-privacy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--alpine-border);
  background: #f8fafc;
}

.al-privacy-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.al-privacy-frame {
  flex: 1;
  border: none;
}

/* Responsive tweaks */
@media (min-width: 1024px) and (max-width: 1279px) {
  :root {
    --al-section-space: 96px;
    --al-section-gap: 28px;
  }
}

@media (max-width: 1024px) {
  .al-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 44px;
    padding: calc(var(--al-section-space) - 8px) 0 calc(var(--al-section-space) + 32px);
  }

  .al-hero-right {
    order: 2;
    align-self: stretch;
    max-width: 100%;
    width: 100%;
    margin: 0;
  }

  .al-stat-card {
    left: 12px;
  }

}

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

  .al-menu-toggle {
    display: inline-flex;
  }

  .al-illustration {
    min-width: auto;
    max-width: 100%;
    padding: 8px;
  }
}

@media (min-width: 1200px) {
  .al-illustration {
    max-width: 720px;
  }
}

@media (min-width: 1280px) {
  :root {
    --al-section-space: 104px;
    --al-section-gap: 32px;
  }

  .al-hero-grid {
    gap: 64px;
  }
}

@media (max-width: 640px) {
  :root {
    --al-section-space: 68px;
    --al-section-gap: 20px;
  }

  .al-use-cases,
  .al-about,
  .al-cta-grid {
    grid-template-columns: 1fr;
  }

  .al-hero h1 {
    font-size: 36px;
  }

  .al-records-head,
  .al-record-row {
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  }

  .al-records-search {
    width: 140px;
  }

  .al-privacy-dialog {
    height: 78vh;
  }

}
