/* ---------------------------------------------------------------
   partSmart — house style shared with zinger360.com / zingerpm.com.
   Same tokens, same type pairing; the orange accent is replaced by
   partSmart's own blue, sampled from the app logo (#0180DF).
   --------------------------------------------------------------- */

:root {
  --navy-900: #061837;
  --navy-800: #0a2455;
  --navy-700: #082c7f;
  --blue-600: #1656d6;
  --blue-500: #2f7df6;
  --sky-400: #4cc3ff;

  /* Accent — partSmart blue, in the slot Zinger gives to orange. */
  --accent: #0180df;
  --accent-600: #0169b8;
  --accent-soft: #e8f4fd;

  --green-500: #1fab55;
  --red-500: #e5484d;

  --cream: #faf7f2;
  --cream-2: #f2ecdf;
  --white: #ffffff;
  --ink: #1c2434;
  --muted: #5b6474;
  --line: #e6e0d4;
  --line-light: rgba(255, 255, 255, 0.14);

  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", -apple-system, Helvetica, Arial, sans-serif;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shadow-card: 0 10px 34px rgba(8, 44, 127, 0.1);
  --shadow-card-hover: 0 16px 44px rgba(8, 44, 127, 0.16);
  --container: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy-700);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

a { color: var(--blue-600); }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.lede { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* White, not cream: the hero below is cream, and a cream header simply
     merged into it. This also starts the white/cream alternation one section
     earlier, so every band now differs from the one above it. */
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  /* A hairline alone vanishes where the header sits over a white band, so a
     very soft shadow keeps it reading as a bar over both grounds. */
  box-shadow: 0 6px 20px rgba(8, 44, 127, 0.05);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { height: 56px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  color: var(--navy-800);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
}
.nav a:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy-800);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(1, 128, 223, 0.28);
}
.btn-primary:hover { background: var(--accent-600); transform: translateY(-1px); }
.btn-ghost {
  border: 1.5px solid var(--navy-700);
  color: var(--navy-700);
  background: transparent;
}
.btn-ghost:hover { background: var(--navy-700); color: var(--white); }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero .container { display: block; }
.hero-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.hero .hero-copy { max-width: 46rem; }
.hero-mark { display: flex; justify-content: center; }
.hero-mark img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
}
.hero .split-media { margin-top: clamp(2rem, 4vw, 3rem); }

/* ---------- Hero video ---------- */
.hero-video {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
  border: 1px solid var(--line);
  background: var(--navy-900);
  aspect-ratio: 16 / 9;
}
.hero-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Phone ---------- */
.phone {
  border: 10px solid var(--navy-900);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--navy-900);
  max-width: 310px;
  margin-inline: auto;
}
.phone img { display: block; width: 100%; height: auto; }

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-head { max-width: 64ch; margin-bottom: 2.5rem; }
.band-white { background: var(--white); border-block: 1px solid var(--line); }
.band-navy {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: rgba(255, 255, 255, 0.86);
}
.band-navy h2, .band-navy h3 { color: var(--white); }
.band-navy .lede { color: rgba(255, 255, 255, 0.78); }
.band-navy .eyebrow { color: var(--sky-400); }

/* ---------- The three numbers ---------- */
.numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.number-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
}
.number-card .tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.number-card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.status-row { display: flex; gap: 0.5rem; margin-top: 2rem; flex-wrap: wrap; }
.chip {
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid;
}
.chip-min { color: #d13438; border-color: #f3c6c7; background: #fdeeee; }
.chip-low { color: #b26a00; border-color: #f2dcb0; background: #fdf5e6; }
.chip-healthy { color: #137a3d; border-color: #bfe3cc; background: #eaf7ef; }

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.feature .ico {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  display: grid; place-items: center;
  margin-bottom: 0.9rem;
}
.feature .ico svg { width: 21px; height: 21px; stroke: var(--accent); fill: none; stroke-width: 1.9; }
.feature h3 { margin-bottom: 0.35rem; color: var(--navy-800); }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Split rows ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split + .split { margin-top: clamp(3rem, 6vw, 4.5rem); }
.split.reverse .split-media { order: -1; }

.ticks { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.ticks li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.7rem;
  color: var(--muted);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 11px; height: 6px;
  border-left: 2.2px solid var(--accent);
  border-bottom: 2.2px solid var(--accent);
  transform: rotate(-45deg);
}
.band-navy .ticks li { color: rgba(255, 255, 255, 0.8); }
.band-navy .ticks li::before { border-color: var(--sky-400); }

/* ---------- Screens strip ---------- */
.screens {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  align-items: start;
}
.screen-item { text-align: center; }
.screen-item .phone { max-width: 100%; border-width: 8px; border-radius: 26px; }
.screen-item figcaption {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-800);
}

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta .btn { margin-top: 0.6rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.68);
  padding: 2.8rem 0 2.2rem;
  font-size: 0.9rem;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.2rem 2rem;
  align-items: center;
}
.site-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-tagline {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
}
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-social { display: flex; gap: 0.7rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  display: grid; place-items: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.footer-social a:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.35); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line-light);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-legal a { color: var(--sky-400); }

/* ---------- Inner pages (contact, legal, privacy) ---------- */
.page { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.page .container { max-width: 820px; }
.page h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.page h3 { font-size: 1.05rem; margin-top: 1.4rem; color: var(--navy-800); }
.page p, .page li { color: var(--muted); }
.page ul { padding-left: 1.2rem; }
.page .meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 2rem; }
.page table { width: 100%; border-collapse: collapse; font-size: 0.93rem; margin: 1rem 0 1.6rem; }
.page th, .page td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.page th { color: var(--navy-800); font-weight: 600; }
.page address { font-style: normal; color: var(--muted); line-height: 1.7; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
}
.contact-card + .contact-card { margin-top: 1.2rem; }
.contact-card h3 { margin-top: 0; }
.form { display: grid; gap: 1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: 0.35rem; font-size: 0.9rem; font-weight: 600; color: var(--navy-800); }
.form input, .form select, .form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form textarea { min-height: 130px; resize: vertical; }
.form .fine { font-size: 0.82rem; color: var(--muted); }

@media (max-width: 780px) {
  .site-footer .container { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  /* Below 16px, Safari on iPhone zooms the whole page the moment a field is
     tapped, and the visitor has to pinch back out to carry on typing. */
  .form input, .form select, .form textarea { font-size: 16px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-head, .split { grid-template-columns: 1fr; }
  /* Centred over the video it now sits above, rather than hugging the left. */
  .hero-mark { justify-content: center; }
  .hero-mark img { max-width: 220px; }

  /* The demo button takes the full pill size on a wide header; beside a logo
     and a menu toggle on a phone it only needs to be tappable. */
  .site-header .btn {
    padding: 0.6rem 1.05rem;
    font-size: 0.88rem;
    box-shadow: 0 5px 14px rgba(1, 128, 223, 0.24);
  }
  .split.reverse .split-media { order: 0; }
  .features, .numbers { grid-template-columns: repeat(2, 1fr); }
  .screens { grid-template-columns: repeat(2, 1fr); }

  /* The menu folds behind the toggle rather than disappearing. */
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 0.4rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(8, 44, 127, 0.1);
  }
  .site-header.nav-open .nav { display: flex; }
  .nav a {
    padding: 0.95rem clamp(1.25rem, 5vw, 2rem);
    font-size: 1rem;
    font-weight: 600;
  }
  .nav a + a { border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .features, .numbers, .screens { grid-template-columns: 1fr; }
  .brand img { height: 44px; }
  .site-header .btn { padding: 0.55rem 0.9rem; font-size: 0.84rem; }
  .site-header .container { gap: 0.6rem; }
}

/* ---------- Available on ---------- */
.platforms {
  margin-top: clamp(2.2rem, 5vw, 3.2rem);
  padding-top: clamp(1.6rem, 4vw, 2.2rem);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 3vw, 2.4rem);
}
.platforms-label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.platform-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.2rem, 4vw, 2.6rem);
}
.platform {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--navy-800);
}
.platform svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex: none;
}

/* ---------- Hold the film until it is asked for ---------- */
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: rgba(6, 24, 55, 0.34);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}
.video-play svg {
  width: clamp(48px, 13vw, 66px);
  height: clamp(48px, 13vw, 66px);
  fill: var(--white);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}
.video-play:hover { background: rgba(6, 24, 55, 0.42); }
.video-play[hidden] { display: none; }

/* ---------- Cookie notice ----------
   Same floating card as zingerpm.com, in partSmart's own accent. */
.cookie-notice {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  max-width: 520px;
  margin: 0 auto;
  padding: 22px 24px;
  background: var(--navy-800);
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transform: translateY(calc(100% + 24px));
  transition: transform 0.28s ease;
}
.cookie-notice.is-in { transform: translateY(0); }
.cookie-text {
  margin: 0 0 14px;
  font-size: 0.86rem;
  line-height: 1.55;
}
.cookie-notice a { color: var(--sky-400); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn {
  padding: 0.55rem 1.05rem;
  font-size: 0.86rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.btn-ghost-light {
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  color: var(--white);
  background: transparent;
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); }

/* On a phone these are thumb targets, and a mis-tap here picks the wrong
   privacy answer. Full 44px, equal width: declining should be no harder than
   accepting. */
@media (max-width: 560px) {
  .cookie-actions { gap: 12px; }
  .cookie-actions .btn { padding: 0.8rem 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-notice { transition: none; }
}
