/* ProdAssist marketing + tester site
   Light, production-forward. Brand first. No purple SaaS defaults. */

:root {
  --ink: #12161d;
  --ink-soft: #3a4454;
  --muted: #667284;
  --paper: #eef2f5;
  --paper-2: #e2e8ee;
  --white: #f7f9fb;
  --teal: #1f7a6e;
  --teal-deep: #155a51;
  --accent: #b83a3a;
  --line: rgba(18, 22, 29, 0.12);
  --shadow: 0 18px 50px rgba(18, 22, 29, 0.08);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --radius: 14px;
  --shell: min(1120px, calc(100% - 2.5rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(31, 122, 110, 0.14), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(184, 58, 58, 0.06), transparent 50%),
    linear-gradient(180deg, var(--white) 0%, var(--paper) 45%, var(--paper-2) 100%);
  background-attachment: fixed;
  line-height: 1.55;
  font-size: 1.05rem;
}

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

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 251, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-elevated {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(20, 23, 28, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 2px solid var(--teal);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 7px var(--teal);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #d6453d;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}

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

.nav-cta {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--ink);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.mobile-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f4f7f9;
}

.hero-visual {
  position: absolute;
  inset: 0;
}

.hero-ph {
  height: 100%;
  min-height: 92vh;
  border-radius: 0;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 14, 20, 0.88) 0%, rgba(10, 14, 20, 0.55) 42%, rgba(10, 14, 20, 0.25) 70%, rgba(10, 14, 20, 0.45) 100%),
    linear-gradient(180deg, rgba(10, 14, 20, 0.2) 0%, rgba(10, 14, 20, 0.75) 100%);
  pointer-events: none;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 5rem 0 3.5rem;
  max-width: 42rem;
  animation: rise 0.9s ease both;
}

.brand-hero {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 1rem;
  color: #fff;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
  color: rgba(244, 247, 249, 0.88);
}

.lede {
  margin: 0 0 1.5rem;
  color: rgba(244, 247, 249, 0.78);
  font-size: 1.1rem;
  max-width: 34rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn.btn-on-dark {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn.btn-on-dark:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.btn-icon {
  display: block;
  flex-shrink: 0;
}

.btn-icon-invert {
  filter: brightness(0) invert(1);
}

.platform-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

a.pill:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  text-decoration: none;
}
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.pill img {
  flex-shrink: 0;
}

/* Trust strip */
.trust-strip {
  background: var(--ink);
  color: #e8eef3;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trust-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.trust-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.trust-item img {
  margin-top: 0.15rem;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.trust-item span {
  display: block;
  color: rgba(232, 238, 243, 0.65);
  font-size: 0.9rem;
}

.stock-banner {
  margin: 1.25rem auto 0;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: rgba(31, 122, 110, 0.1);
  border: 1px solid rgba(31, 122, 110, 0.22);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.stock-banner code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.86em;
  background: rgba(18, 22, 29, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* Mosaic band */
.section-mosaic {
  padding: 0 0 5.5rem;
}

.mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  min-height: 280px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.mosaic-a {
  margin: 0;
  min-height: 280px;
  overflow: hidden;
}

.mosaic-a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
  transform: scale(1.02);
}

.mosaic-copy {
  display: grid;
  align-content: center;
  gap: 0.5rem;
  padding: 2rem 2.2rem;
  background:
    linear-gradient(160deg, #163a36 0%, #0f1c22 100%);
  color: #eef5f3;
}

.mosaic-copy .eyebrow {
  color: #7dcdc0;
}

.mosaic-line {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.card-top {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.platform-badge {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.35rem;
  border-radius: 12px;
  background: rgba(31, 122, 110, 0.08);
  border: 1px solid var(--line);
}

.footer-platforms {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-platforms span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--teal);
  color: #f7fffd;
}

.btn-primary:hover {
  background: var(--teal-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-block {
  width: 100%;
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: rgba(247, 249, 251, 0.8);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.6rem;
}

.eyebrow-icon {
  display: block;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.1;
}

.section-lede {
  margin: 0;
  color: var(--ink-soft);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: start;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split.reverse .media-frame {
  order: 2;
}

.split.reverse .copy-block {
  order: 1;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.feature-list li {
  display: grid;
  gap: 0.25rem;
}

.feature-list strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.feature-list span {
  color: var(--ink-soft);
}

.media-frame figcaption {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.mt {
  margin-top: 1.5rem;
}

/* Placeholders */
.media-ph {
  display: grid;
  place-content: center;
  gap: 0.35rem;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(31, 122, 110, 0.08), transparent 40%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 10px,
      rgba(20, 23, 28, 0.03) 10px,
      rgba(20, 23, 28, 0.03) 11px
    ),
    #ddd7cb;
  border: 1px dashed rgba(20, 23, 28, 0.22);
  border-radius: var(--radius);
  color: var(--ink-soft);
  padding: 1.5rem;
  min-height: 220px;
}

.media-ph.tall {
  /* Legacy class — treat as landscape (app is landscape-only for marketing). */
  min-height: 280px;
  aspect-ratio: 16 / 9;
}

.media-ph.wide,
.media-ph.landscape {
  min-height: 280px;
  aspect-ratio: 16 / 9;
}

.media-ph.square {
  aspect-ratio: 1;
  min-height: 0;
}

.media-ph .ph-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

.media-ph .ph-hint {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 22rem;
  margin-inline: auto;
}

.media-ph.has-media {
  padding: 0;
  border-style: solid;
  border-color: var(--line);
  overflow: hidden;
  background: #111;
  position: relative;
  box-shadow: var(--shadow);
  display: grid;
  grid-template: 1fr / 1fr;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.media-ph.has-media::after {
  content: "Stock preview";
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 14, 20, 0.55);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.hero-ph.has-media::after {
  display: none;
}

.media-ph.has-media.is-product::after {
  display: none;
}

.media-ph.has-media img,
.media-ph.has-media video {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  display: block;
}

/*
 * Product captures (Huawei UI screenshots ≈ 2700×1228 / ~2.2:1) must keep
 * their own ratio. Forced 16:9 + object-fit:cover crops the sides badly.
 * Hero stays full-bleed cover. Stock placeholders can still use cover.
 */
.media-ph.has-media.is-product:not(.hero-ph),
.media-ph.native,
.media-ph.native.has-media,
.deep-media .media-ph,
.deep-media .media-ph.has-media {
  aspect-ratio: auto !important;
  min-height: 0;
  height: auto;
  display: block;
}

.media-ph.has-media.is-product:not(.hero-ph) img,
.media-ph.has-media.is-product:not(.hero-ph) video,
.media-ph.native.has-media img,
.media-ph.native.has-media video,
.deep-media .media-ph.has-media img,
.deep-media .media-ph.has-media video {
  position: static;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: unset;
  display: block;
}

.hero-ph.has-media {
  display: block;
  min-height: 100%;
  height: 100%;
}

.hero-ph.has-media img,
.hero-ph.has-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow);
}

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.02em;
}

.steps h3 {
  font-family: var(--font-display);
  margin: 0.5rem 0 0.4rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Testers */
.section-testers {
  background:
    linear-gradient(180deg, rgba(31, 122, 110, 0.06), transparent 30%),
    var(--paper);
}

.download-grid,
.enroll-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  align-items: start;
}

.enroll-rules {
  background: rgba(31, 122, 110, 0.06);
  border: 1px solid rgba(31, 122, 110, 0.18);
  border-radius: calc(var(--radius) - 2px);
  padding: 1rem 1.1rem;
}

.enroll-rules h4 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.enroll-rules ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.enroll-rules li + li {
  margin-top: 0.45rem;
}

.enroll-form {
  display: grid;
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field-label {
  font-weight: 700;
  font-size: 0.92rem;
}

.field input[type="email"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

.field input[type="email"]:focus {
  outline: 2px solid rgba(31, 122, 110, 0.35);
  border-color: var(--teal);
}

.field-hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.92rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.check input {
  margin-top: 0.2rem;
  accent-color: var(--teal);
}

.honey {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
  pointer-events: none;
}

.enroll-form.is-sending .btn {
  opacity: 0.7;
  pointer-events: none;
}

.enroll-form.is-done .btn {
  display: none;
}

#enroll-status.is-success {
  color: var(--teal-deep);
  font-weight: 600;
}

#enroll-status.is-error {
  color: var(--accent);
  font-weight: 600;
}

.download-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.85rem;
  overflow: hidden;
  min-width: 0;
}

.download-card .media-ph {
  width: 100%;
  max-width: 100%;
  min-height: 180px;
}

.download-kind {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.download-card h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.download-card > p {
  margin: 0;
  color: var(--ink-soft);
}

.meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.meta code,
.section-lede code,
.tester-notes code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.86em;
  background: rgba(20, 23, 28, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.tester-notes {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}

.tester-notes h3 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
}

.tester-notes ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.tester-notes li + li {
  margin-top: 0.35rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  background: #e4eaef;
}

.footer-inner {
  display: grid;
  gap: 1rem;
}

.footer-tag,
.footer-copy {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Motion */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

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

  .nav-toggle {
    display: flex;
  }

  .mobile-nav:not([hidden]) {
    display: flex;
  }

  .split,
  .split.reverse,
  .steps,
  .download-grid,
  .enroll-layout,
  .trust-inner,
  .mosaic {
    grid-template-columns: 1fr;
  }

  .mosaic-a img {
    min-height: 200px;
  }

  .media-ph.tall,
  .media-ph.wide,
  .media-ph.landscape {
    max-height: none;
    min-height: 200px;
  }

  .hero-copy {
    padding-bottom: 3rem;
  }
}

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

  .hero-copy,
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
