/* ============================================================
   WoundLinQ Plus - landing page styles
   Design tokens and layout ported from the Figma "Landing v2" frame.
   ============================================================ */

:root {
  /* Colors */
  --bg-primary: #ffffff;
  --bg-inverse: #000000;
  --fg-primary: #000000;
  --fg-secondary: #404040;
  --fg-brand: #76bc21;      /* green  */
  --fg-brand-alt: #0083c1;  /* blue   */
  --border-primary: #e6e7e6;
  --fg-inverse-primary: #ffffff;
  --fg-inverse-secondary: #bfbfbf;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Radii */
  --radius-primary: 8px;
  --radius-sm: 4px;

  --font-sans: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--fg-primary);
  background: var(--bg-primary);
  line-height: 1;
}

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

a {
  color: inherit;
}

/* ===================== Brand wordmark ===================== */
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  flex: none;
}

.brand-mark img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-plus-sup {
  position: absolute;
  top: -2px;
  left: 33px;
  font-size: 12px;
  color: #64748b;
  line-height: 1;
}

.brand-name {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 16px;
  white-space: nowrap;
}

.brand-name-primary {
  font-weight: 400;
  color: var(--fg-secondary);
}

.brand-name-plus {
  font-weight: 500;
  color: var(--fg-brand);
}

/* ===================== Header ===================== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-8);
  background: var(--bg-primary);
}

.divider {
  height: 1px;
  width: 100%;
  background: var(--border-primary);
}

/* ===================== Button ===================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 40px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-primary);
  background: transparent;
  color: var(--fg-primary);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  background: #f6f7f6;
  border-color: #d4d6d4;
}

.button .icon {
  flex: none;
}

/* ===================== Hero ===================== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  min-height: 700px;
  padding: var(--space-8) 0 var(--space-8) var(--space-8);
  background: var(--bg-primary);
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  width: 540px;
  max-width: 540px;
  flex: none;
}

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: var(--fg-brand-alt);
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  color: var(--fg-primary);
}

.hero-desc {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--fg-secondary);
}

.hero-devices {
  display: flex;
  align-items: center;
  flex: none;
}

.device-phones {
  width: 406px;
  height: auto;
  margin-right: -100px;
  position: relative;
  z-index: 2;
}

.device-mac {
  width: 429px;
  height: auto;
  position: relative;
  z-index: 1;
}

/* ===================== Footer ===================== */
.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-8);
  min-height: 300px;
  padding: var(--space-6) var(--space-8);
  background: var(--bg-inverse);
  color: var(--fg-inverse-primary);
}

.footer-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  width: 400px;
  gap: var(--space-5);
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.brand-name--footer .brand-name-primary {
  color: var(--fg-inverse-primary);
}

.footer-byline {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  line-height: 14px;
  color: var(--fg-inverse-secondary);
}

.footer-tagline {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--fg-inverse-secondary);
}

/* UltraGreen wordmark */
.footer-ug-logo {
  display: block;
  width: 200px;
  height: auto;
  flex: none;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  align-self: stretch;
  gap: var(--space-5);
}

.footer-links {
  display: flex;
  gap: var(--space-7);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col-label {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: var(--fg-inverse-secondary);
}

.footer-link {
  font-size: 16px;
  font-weight: 400;
  color: var(--fg-inverse-primary);
  text-decoration: underline;
  text-underline-position: from-font;
  white-space: nowrap;
}

.footer-link:hover {
  color: var(--fg-brand);
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-4);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--fg-inverse-primary);
}

.copyright {
  font-size: 14px;
  color: var(--fg-inverse-secondary);
  white-space: nowrap;
}

/* ===================== Responsive ===================== */
@media (max-width: 960px) {
  .site-header {
    padding: var(--space-3) var(--space-5);
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-7);
    min-height: 0;
    padding: var(--space-7) var(--space-5);
  }

  .hero-copy {
    width: 100%;
    max-width: 640px;
  }

  .hero-devices {
    align-self: center;
    max-width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-7);
    min-height: 0;
  }

  .footer-left {
    width: 100%;
    gap: var(--space-7);
  }

  .footer-right {
    align-items: flex-start;
  }

  .footer-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .hero-title {
    font-size: 32px;
  }

  .device-phones {
    width: 58%;
    margin-right: -14%;
  }

  .device-mac {
    width: 62%;
  }

  .footer-links {
    gap: var(--space-6);
  }
}
