/* Duo Dev — page styles. Tokens and component primitives come from industry.b6074a73.css;
   this file only lays out the landing page. Colors reference the Industry ramps. */

:root {
  --pad-x: clamp(20px, 5vw, 64px);
  --pad-y: clamp(44px, 6vw, 72px);
  --divider-dark: rgba(242, 242, 243, .3);
  --corner-dark: rgba(242, 242, 243, .6);
}

html {
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-accent-700); }
a:hover { color: var(--color-accent-800); }

.kicker {
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent-700);
}

/* — primary CTA (the one solid object) — */
.cta {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: var(--color-accent);
  color: var(--color-bg);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.2;
}
.cta:hover { background: var(--color-accent-600); color: var(--color-bg); }
.cta:active { background: var(--color-accent-700); color: var(--color-bg); }
.cta--sm { font-size: 15px; padding: 9px 16px; }
.cta--md { font-size: 17px; padding: 12px 22px; }
.cta--lg { font-size: 18px; padding: 14px 26px; }

/* — header — */
.header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--pad-x);
  border-bottom: 1px solid var(--color-divider);
  position: sticky;
  top: 0;
  background: var(--color-bg);
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand:hover { color: inherit; }
.brand-mark {
  width: 26px;
  height: 26px;
  border: 1px solid var(--color-text);
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 13px;
}
.brand-name {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 20px;
  letter-spacing: .02em;
}
.menu {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2.4vw, 32px);
  font-size: 14px;
  color: var(--color-neutral-700);
}
.menu a { text-decoration: none; color: inherit; }
.menu a:hover { color: var(--color-accent-700); }

/* Desktop: the panel is transparent to layout, so brand / menu / CTA stay
   three flex items of .header. The toggle only exists below 860px. */
.menu-panel { display: contents; }
.menu-check {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.menu-btn { display: none; }

/* — mobile menu (< 860px): CSS-only state via the checkbox; menu.js just closes it — */
@media (max-width: 859.98px) {
  .header { flex-wrap: nowrap; }

  .menu-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-text);
    cursor: pointer;
  }
  .menu-check:focus-visible + .menu-btn {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
  }
  .menu-bars,
  .menu-bars::before,
  .menu-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--color-text);
  }
  .menu-bars { position: relative; }
  .menu-bars::before,
  .menu-bars::after { content: ""; position: absolute; left: 0; }
  .menu-bars::before { top: -6px; }
  .menu-bars::after { top: 6px; }
  .menu-check:checked + .menu-btn .menu-bars { background: transparent; }
  .menu-check:checked + .menu-btn .menu-bars::before { top: 0; transform: rotate(45deg); }
  .menu-check:checked + .menu-btn .menu-bars::after { top: 0; transform: rotate(-45deg); }
  @media (prefers-reduced-motion: no-preference) {
    .menu-bars, .menu-bars::before, .menu-bars::after {
      transition: top .2s, transform .2s, background-color .2s;
    }
  }

  .menu-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100dvh - 100%);
    overflow-y: auto;
    padding: 8px var(--pad-x) 24px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-divider);
  }
  .menu-check:checked ~ .menu-panel { display: block; }

  .menu {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    font-size: 18px;
    color: var(--color-text);
    counter-reset: menu-item;
  }
  .menu a {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 48px;
    border-bottom: 1px solid var(--color-divider);
  }
  .menu a::before {
    counter-increment: menu-item;
    content: counter(menu-item, decimal-leading-zero);
    font-family: var(--font-heading);
    font-weight: var(--font-heading-weight);
    font-size: 14px;
    letter-spacing: .08em;
    min-width: 22px;
    color: var(--color-accent-700);
  }
  .menu-panel .cta {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 24px;
    font-size: 17px;
  }
}

/* — hero — */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: clamp(32px, 4vw, 48px);
  padding: clamp(44px, 6vw, 80px) var(--pad-x) clamp(40px, 5vw, 72px);
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero .kicker { margin-bottom: 20px; }
.hero-title {
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero-lead {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.5;
  color: var(--color-neutral-700);
  max-width: 480px;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.link-arrow {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 17px;
  color: var(--color-accent-700);
  text-decoration: none;
  padding: 12px 14px;
}
.hero-figure {
  margin: 0;
  min-width: 0;
  aspect-ratio: 16 / 10;
  background: var(--color-surface);
}
.hero-figure img,
.product-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  display: block;
}

/* — differentiators strip — */
.diff {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.diff-item {
  padding: 20px clamp(20px, 3vw, 40px);
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.diff-item:first-child { padding-inline: var(--pad-x); }
.diff-item:not(:last-child) { border-right: 1px solid var(--color-divider); }
.diff-n {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 28px;
}
.diff-text { font-size: 14px; color: var(--color-neutral-700); }

/* — sections — */
.section { padding: var(--pad-y) var(--pad-x); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 36px;
}
.section-title {
  font-size: clamp(30px, 4vw, 40px);
  margin: 0;
  line-height: 1.05;
}
.section-note { font-size: 14px; color: var(--color-neutral-700); }

/* — services — */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service {
  padding: 28px 24px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-kicker {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent-700);
}
.service-title { font-size: 26px; margin: 0; }
.service-body {
  margin: 0;
  font-size: 15px;
  color: var(--color-neutral-700);
  line-height: 1.5;
}
.service-cta {
  padding: 28px 24px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  background: var(--color-accent);
  color: var(--color-bg);
  text-decoration: none;
}
.service-cta:hover { background: var(--color-accent-600); color: var(--color-bg); }
.service-cta:active { background: var(--color-accent-700); color: var(--color-bg); }
.service-cta-kicker {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.service-cta-title {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 26px;
  line-height: 1.1;
}

/* — products (dark field) — */
.products {
  background: var(--color-accent-900);
  color: var(--color-bg);
}
.products-head {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 40px;
}
.products-head > div { min-width: 0; }
.products .kicker { color: var(--color-accent-400); margin-bottom: 14px; }
.products-title {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  margin: 0;
}
.products-lead {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-accent-300);
  margin: 0;
  max-width: 380px;
  text-wrap: pretty;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  align-items: stretch;
}
.product {
  border-color: var(--divider-dark);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.product > .corner,
.product .blueprint > .corner { color: var(--corner-dark); }
.product-body { padding: 28px 30px 22px; }
.product-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.product-title { font-size: 34px; margin: 0; }
.badge {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent-400);
  border: 1px solid rgba(148, 188, 227, .6);
  padding: 3px 9px;
}
.product-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-accent-300);
  margin: 0 0 20px;
  text-wrap: pretty;
}
.product-cta {
  display: inline-flex;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 16px;
  padding: 11px 20px;
  line-height: 1.2;
}
.product-cta--light {
  background: var(--color-bg);
  color: var(--color-accent-900);
}
.product-cta--light:hover { background: var(--color-accent-200); color: var(--color-accent-900); }
.product-cta--light:active { background: var(--color-accent-300); color: var(--color-accent-900); }
.product-cta--outline {
  color: var(--color-bg);
  border-color: rgba(242, 242, 243, .5);
}
.product-cta--outline:hover { background: rgba(242, 242, 243, .1); color: var(--color-bg); }
.product-cta--outline:active { background: rgba(242, 242, 243, .18); color: var(--color-bg); }
.product-figure {
  margin: 0;
  border-top: 1px solid var(--divider-dark);
  background: var(--color-accent-800);
  flex: 1;
  min-height: 220px;
  overflow: hidden;
}
.product-shots {
  border-top: 1px solid var(--divider-dark);
  background: var(--color-accent-800);
  flex: 1;
  min-height: 220px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 26px 30px 0;
  align-items: end;
}
.product-shots img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--divider-dark);
}

/* Desktop: the phone screenshots are tall, and they set the height of both
   cards. Cap them so a card stays well under one screen. */
@media (min-width: 760px) {
  .product-shots {
    grid-template-columns: repeat(2, auto);
    justify-content: center;
  }
  .product-shots img {
    width: auto;
    height: clamp(300px, 28vw, 380px);
  }
}

/* — process — */
.process .section-title { margin-bottom: 36px; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  border-top: 1px solid var(--color-divider);
  padding-top: 24px;
}
.step { min-width: 0; }
.step-n {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 48px;
  color: var(--color-accent);
  line-height: 1;
}
.step-title { font-size: 22px; margin: 14px 0 6px; }
.step-body {
  margin: 0;
  font-size: 14px;
  color: var(--color-neutral-700);
  line-height: 1.5;
}

/* — footer / contact — */
.footer {
  border-top: 1px solid var(--color-divider);
  padding: clamp(40px, 5vw, 56px) var(--pad-x);
}
.footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: center;
}
.footer-cta > div { min-width: 0; }
.footer-title {
  font-size: clamp(30px, 4vw, 40px);
  margin: 0 0 8px;
  line-height: 1.05;
}
.footer-lead { margin: 0; font-size: 16px; color: var(--color-neutral-700); }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-neutral-700);
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-divider);
}
.footer-meta a { color: inherit; text-decoration: none; }
.footer-meta a:hover { color: var(--color-accent-700); text-decoration: underline; }
