/* DuplaDesk public landing */

:root {
  --landing-bg: #f5f8fc;
  --landing-panel: #ffffff;
  --landing-ink: #07152a;
  --landing-muted: #40516f;
  --landing-soft: #e8f0fb;
  --landing-line: #cdd9e8;
  --landing-blue: #0667cf;
  --landing-blue-hover: #075db9;
  --landing-green: #18a058;
}

body.landing-body {
  min-height: 100vh;
  overflow: auto;
  color: var(--landing-ink);
  background:
    linear-gradient(180deg, #f8fbff 0%, #eef5fc 56%, #f9fbfd 100%),
    var(--landing-bg);
}

.landing-body .btn {
  border-radius: var(--radius-sm);
}

.landing-body .btn-primary {
  background: var(--landing-blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(6, 103, 207, 0.18);
}

.landing-body .btn-primary:hover:not(:disabled) {
  background: var(--landing-blue-hover);
  box-shadow: 0 14px 28px rgba(6, 103, 207, 0.24);
}

.landing-body .btn-ghost {
  color: var(--landing-ink);
  border-color: var(--landing-line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 16px rgba(40, 64, 100, 0.08);
}

.landing-body .btn-ghost:hover:not(:disabled) {
  color: var(--landing-ink);
  background: #fff;
  border-color: #aebfd2;
}

.landing-body .btn.is-disabled,
.landing-body .btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.landing-topbar,
.landing-footer {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.landing-topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  border-bottom: 1px solid var(--landing-line);
}

.landing-brand,
.landing-nav,
.hero-actions,
.landing-pill,
.support-status {
  display: flex;
  align-items: center;
}

.landing-brand {
  gap: var(--space-3);
  color: var(--landing-ink);
}

.landing-brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--landing-line);
  border-radius: var(--radius-sm);
}

.landing-brand-mark img {
  width: 24px;
  height: 24px;
}

.landing-brand strong,
.landing-brand small {
  display: block;
}

.landing-brand strong {
  font-size: var(--text-lg);
  line-height: 1.1;
}

.landing-brand small {
  color: var(--landing-muted);
  font-size: var(--text-xs);
}

.landing-nav {
  gap: var(--space-5);
}

.landing-nav a:not(.btn),
.landing-footer a {
  color: var(--landing-ink);
  font-size: var(--text-sm);
  font-weight: 700;
}

.landing-hero {
  position: relative;
  min-height: 660px;
  display: grid;
  place-items: center;
  padding: var(--space-16) var(--space-6);
  overflow: hidden;
  isolation: isolate;
}

.hero-product-visual {
  position: absolute;
  inset: 72px max(32px, 7vw) auto;
  height: 390px;
  z-index: -1;
  opacity: 0.55;
}

.support-window {
  width: min(720px, 82vw);
  height: 320px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--landing-line);
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 70px rgba(35, 74, 121, 0.16);
  transform: perspective(1200px) rotateX(58deg) translateY(-80px);
  transform-origin: top center;
}

.support-window-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 var(--space-4);
  border-bottom: 1px solid var(--landing-line);
}

.support-window-bar span {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background: #b6c6d8;
}

.support-window-body {
  height: calc(100% - 38px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--space-3);
}

.support-logo {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: var(--landing-soft);
  border-radius: var(--radius-sm);
}

.support-logo img {
  width: 34px;
  height: 34px;
}

.support-id-label,
.download-note,
.section-heading p,
.feature-card p,
.step-card p,
.privacy-strip p {
  color: var(--landing-muted);
}

.support-id-label {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.support-id {
  color: var(--landing-ink);
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: 4px;
  font-weight: 800;
}

.support-status {
  gap: var(--space-2);
  color: var(--landing-muted);
  font-weight: 700;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background: var(--landing-green);
  box-shadow: 0 0 0 4px rgba(24, 160, 88, 0.12);
}

.hero-content {
  width: min(760px, 100%);
  margin-top: 100px;
  text-align: center;
}

.landing-pill {
  width: fit-content;
  gap: var(--space-2);
  margin: 0 auto var(--space-8);
  padding: var(--space-2) var(--space-4);
  color: #2e4b70;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--landing-line);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
}

.landing-pill svg,
.feature-icon svg,
.btn svg {
  width: 16px;
  height: 16px;
}

.hero-content h1 {
  color: var(--landing-blue);
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 0.95;
  margin-bottom: var(--space-3);
  letter-spacing: 0;
}

.hero-lede {
  color: #3c4d66;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-5);
}

.hero-copy {
  color: #334762;
  max-width: 760px;
  margin: 0 auto;
  font-size: var(--text-lg);
}

.hero-actions {
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.download-note {
  min-height: 24px;
  margin-top: var(--space-4);
  font-size: var(--text-sm);
}

.landing-band,
.how-section,
.privacy-strip {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.landing-band {
  padding: var(--space-12) 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

.feature-card,
.step-card,
.privacy-strip {
  background: var(--landing-panel);
  border: 1px solid var(--landing-line);
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 38px rgba(55, 82, 116, 0.06);
}

.feature-card,
.step-card {
  padding: var(--space-6);
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--landing-blue);
  background: var(--landing-soft);
  border-radius: var(--radius-sm);
}

.feature-card h2,
.step-card h3,
.privacy-strip h2 {
  color: var(--landing-ink);
  font-size: var(--text-lg);
  line-height: 1.25;
  margin-bottom: var(--space-2);
}

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

.section-heading {
  text-align: center;
  margin-bottom: var(--space-10);
}

.section-heading h2 {
  color: var(--landing-ink);
  font-size: var(--text-3xl);
  line-height: 1.1;
  margin-bottom: var(--space-2);
}

.steps-grid {
  width: min(900px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin: 0 auto;
}

.step-number {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: #fff;
  background: var(--landing-blue);
  border-radius: var(--radius-full);
  font-weight: 800;
}

.privacy-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-6);
  margin-bottom: var(--space-12);
}

.privacy-strip .feature-icon {
  margin-bottom: var(--space-3);
}

.landing-footer {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  color: var(--landing-muted);
  border-top: 1px solid var(--landing-line);
}

@media (max-width: 920px) {
  .feature-grid,
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .privacy-strip {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .landing-topbar,
  .landing-footer,
  .landing-band,
  .how-section,
  .privacy-strip {
    width: min(100% - 32px, 1240px);
  }

  .landing-topbar,
  .landing-nav,
  .landing-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-topbar {
    padding: var(--space-4) 0;
  }

  .landing-nav {
    width: 100%;
    gap: var(--space-3);
  }

  .landing-nav .btn,
  .hero-actions .btn {
    width: 100%;
  }

  .landing-hero {
    min-height: auto;
    padding: var(--space-12) var(--space-4);
  }

  .hero-product-visual {
    display: none;
  }

  .hero-content {
    margin-top: 0;
  }

  .landing-pill {
    border-radius: var(--radius-sm);
  }

  .feature-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .support-id {
    letter-spacing: 2px;
  }
}
