/* ==========================================================================
   PM PROVISIONS — Late Night Essentials
   Single-page static site. No build step, no dependencies.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --pink:        #ff4fa3;
  --pink-bright: #ff7ab8;
  --pink-soft:   #ffc3e0;
  --pink-deep:   #b8155f;

  /* Surfaces */
  --ink:    #050306;
  --ink-1:  #0b070d;
  --ink-2:  #120b15;
  --line:   rgba(255, 122, 184, 0.16);
  --line-2: rgba(255, 255, 255, 0.07);

  /* Text */
  --text:   #f2ecf1;
  --muted:  #b5aab3;   /* body copy      — 9.2:1 on the page ground */
  --dim:    #9a909a;   /* micro labels   — 6.7:1 on the page ground */

  /* Type */
  --display: "Playfair Display", "Didot", "Bodoni MT", Georgia, serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Layout */
  --wrap: 1140px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(72px, 10vw, 132px);
  --radius: 16px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; }
p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--pink-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Shared type styles ---------- */
.eyebrow {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 0 0 18px;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(30px, 4.6vw, 50px);
  font-weight: 500;
}

.section-lede {
  color: var(--muted);
  max-width: 56ch;
  margin-top: 18px;
  font-size: clamp(16px, 1.6vw, 18px);
}

.neon {
  text-shadow:
    0 0 6px rgba(255, 79, 163, 0.55),
    0 0 22px rgba(255, 79, 163, 0.30);
}

/* Section separator: a hairline that fades at the edges */
.rule {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 184, 0.4);
  background: var(--btn-bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease,
              background-color 0.25s ease, border-color 0.25s ease;
}
.btn:hover {
  border-color: var(--pink-bright);
  box-shadow: 0 0 0 1px rgba(255, 122, 184, 0.25), 0 8px 34px rgba(255, 79, 163, 0.22);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }

.btn--solid {
  --btn-bg: linear-gradient(180deg, var(--pink-bright), var(--pink-deep));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 30px rgba(255, 79, 163, 0.3);
}
.btn--solid:hover { box-shadow: 0 10px 40px rgba(255, 79, 163, 0.45); }

.btn--sm { padding: 10px 20px; font-size: 11.5px; }

/* ---------- Ambient background glow ---------- */
.glow-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60vw 50vh at 78% -8%,  rgba(255, 79, 163, 0.16), transparent 62%),
    radial-gradient(52vw 44vh at 6%  22%,  rgba(184, 21, 95,  0.14), transparent 60%),
    radial-gradient(70vw 60vh at 50% 108%, rgba(255, 79, 163, 0.10), transparent 60%);
}
/* Fine film grain so the large black fields don't band */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .site-header, .site-footer { position: relative; z-index: 2; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 3, 6, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.site-header[data-stuck="true"] {
  border-bottom-color: var(--line);
  background: rgba(5, 3, 6, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--text); }

.header-cta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

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

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 70px) 0 clamp(56px, 7vw, 88px);
  text-align: center;
  overflow: hidden;
}

.hero-logo {
  width: min(316px, 66vw);
  margin: 0 auto clamp(18px, 2.4vw, 26px);
  filter: drop-shadow(0 0 40px rgba(255, 79, 163, 0.35));
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { filter: drop-shadow(0 0 34px rgba(255, 79, 163, 0.28)); }
  50%      { filter: drop-shadow(0 0 56px rgba(255, 79, 163, 0.5)); }
}
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } }

.hero-tagline {
  font-size: clamp(11px, 2.4vw, 14px);
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--pink-soft);
  margin-bottom: clamp(26px, 3.6vw, 36px);
  padding-left: 0.42em; /* optically re-centre the tracked text */
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(34px, 5.6vw, 62px);
  font-weight: 500;
  max-width: 17ch;
  margin-inline: auto;
}
.hero h1 em { font-style: italic; color: var(--pink-soft); }

.hero-sub {
  color: var(--muted);
  font-size: clamp(16px, 1.9vw, 19px);
  max-width: 50ch;
  margin: 22px auto 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(28px, 3.4vw, 38px);
}

/* ---------- Trust strip ---------- */
.strip {
  border-block: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.012);
}
.strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 4vw, 52px);
  padding: 22px 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.strip-inner span { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.strip-inner span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 9px var(--pink);
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .strip-inner { font-size: 10.5px; letter-spacing: 0.12em; gap: 12px 20px; }
  .strip-inner span::before { width: 4px; height: 4px; }
}

/* ==========================================================================
   Generic section
   ========================================================================== */
.section { padding-block: var(--section-y); }
.section-head { max-width: 62ch; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .section-lede { margin-inline: auto; }

/* ==========================================================================
   Value props
   ========================================================================== */
.props {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
}
.prop {
  background: var(--ink-1);
  padding: clamp(26px, 3vw, 36px);
  transition: background-color 0.3s ease;
}
.prop:hover { background: var(--ink-2); }
.prop-icon {
  width: 30px; height: 30px;
  color: var(--pink);
  margin-bottom: 18px;
  filter: drop-shadow(0 0 10px rgba(255, 79, 163, 0.45));
}
.prop h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.005em;
  margin-bottom: 9px;
}
.prop p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ==========================================================================
   What we stock
   ========================================================================== */
.stock {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 1.6vw, 18px);
}
@media (min-width: 620px) { .stock { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .stock { grid-template-columns: repeat(3, 1fr); } }

.stock-item {
  display: flex;
  gap: 16px;
  padding: clamp(20px, 2.2vw, 26px);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.014);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.stock-item:hover { border-color: var(--line); background: rgba(255, 79, 163, 0.045); }
.stock-item svg {
  width: 22px; height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--pink);
  filter: drop-shadow(0 0 8px rgba(255, 79, 163, 0.4));
}
.stock-item h3 { font-size: 15.5px; font-weight: 500; margin-bottom: 6px; }
.stock-item p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* The custom-mix band that closes the section. Given its own treatment
   because it is an offer, not another product in the list. */
.stock-custom {
  margin-top: clamp(14px, 1.6vw, 18px);
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 24px);
  padding: clamp(22px, 2.6vw, 30px) clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(120% 180% at 0% 50%, rgba(255, 79, 163, 0.13), transparent 62%),
    rgba(255, 79, 163, 0.03);
}
.stock-custom svg {
  width: 26px; height: 26px;
  flex-shrink: 0;
  color: var(--pink);
  filter: drop-shadow(0 0 12px rgba(255, 79, 163, 0.55));
}
.stock-custom h3 {
  font-family: var(--display);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 500;
  margin-bottom: 7px;
}
.stock-custom p { color: var(--muted); font-size: 15px; max-width: 64ch; }
@media (max-width: 560px) {
  .stock-custom { flex-direction: column; align-items: flex-start; gap: 14px; }
}

.stock-note {
  margin-top: clamp(28px, 3.2vw, 38px);
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  max-width: 60ch;
  margin-inline: auto;
}

/* ==========================================================================
   Machines
   ========================================================================== */
.machines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(22px, 3vw, 34px);
}

.machine {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-1), var(--ink));
  overflow: hidden;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.machine:hover {
  border-color: var(--line);
  transform: translateY(-3px);
  box-shadow: 0 24px 60px -24px rgba(255, 79, 163, 0.35);
}

.machine-art {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(330px, 40vw, 430px);
  padding: 22px 24px;
  background:
    radial-gradient(70% 62% at 50% 46%, rgba(255, 79, 163, 0.13), transparent 72%),
    #060309;
  border-bottom: 1px solid var(--line-2);
}
/* The two units are drawn to a shared scale so the tower reads as the
   bigger machine, rather than both filling the frame identically. */
.machine-art svg { width: auto; }
.art--wall  svg { height: 74%; }
.art--tower svg { height: 96%; }

.machine-body { padding: clamp(26px, 3vw, 34px); display: flex; flex-direction: column; flex: 1; }

.machine-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 12px;
}
.machine h3 {
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 30px);
  margin-bottom: 12px;
}
.machine p { color: var(--muted); font-size: 15.5px; }

.specs {
  list-style: none;
  margin: 26px 0 0;
  margin-top: auto;
  padding: 22px 0 0;
  border-top: 1px solid var(--line-2);
  display: grid;
  gap: 11px;
}
.specs li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 13.5px;
}
.specs dt, .specs .k {
  color: var(--dim);
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-size: 11.5px;
  flex-shrink: 0;
}
.specs .v { color: var(--text); text-align: right; font-weight: 400; }

/* ==========================================================================
   How it works
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(26px, 3.5vw, 44px);
  counter-reset: step;
}
.step { position: relative; padding-top: 30px; border-top: 1px solid var(--line-2); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -1px;
  left: 0;
  padding-top: 30px;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--pink);
  display: none;
}
.step-num {
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--pink);
  margin-bottom: 14px;
}
.step h3 { font-size: 20px; font-weight: 500; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ==========================================================================
   Coverage
   ========================================================================== */
.coverage { text-align: center; }
.areas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px, 1.4vw, 14px);
  margin-top: clamp(34px, 4vw, 46px);
}
.area {
  padding: 12px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--pink-soft);
  background: rgba(255, 79, 163, 0.05);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.area:hover {
  background: rgba(255, 79, 163, 0.12);
  box-shadow: 0 0 26px -6px rgba(255, 79, 163, 0.5);
}
.areas-note { margin-top: 26px; color: var(--muted); font-size: 15px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(38px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-direct { display: grid; gap: 26px; margin-top: 36px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item svg { width: 19px; height: 19px; color: var(--pink); flex-shrink: 0; margin-top: 4px; }
.contact-item .k {
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--dim); display: block; margin-bottom: 4px;
}
.contact-item a, .contact-item .v {
  color: var(--text); text-decoration: none; font-size: 17px;
  border-bottom: 1px solid transparent; transition: border-color 0.2s ease, color 0.2s ease;
}
.contact-item a:hover { color: var(--pink-soft); border-bottom-color: var(--pink); }

/* ---------- Form ---------- */
.form {
  background: var(--ink-1);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 40px);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 9px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px; /* >=16px stops iOS zoom-on-focus */
  font-weight: 400;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 108px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 122, 184, 0.55);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 3px rgba(255, 79, 163, 0.13);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23a1949f' stroke-width='1.5'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  padding-right: 40px;
}
.field select option { background: #120b15; color: var(--text); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* Honeypot — hidden from people, visible to naive bots */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form .btn { width: 100%; margin-top: 6px; }
.form-note { margin-top: 16px; font-size: 13px; color: var(--muted); line-height: 1.55; text-align: center; }

.form-status { margin-top: 16px; font-size: 14.5px; text-align: center; min-height: 1.2em; }
.form-status[data-state="ok"]    { color: var(--pink-soft); }
.form-status[data-state="error"] { color: #ff8f8f; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line-2);
  padding: clamp(44px, 5vw, 62px) 0 clamp(34px, 4vw, 44px);
  background: #030103;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}
.footer-inner img { height: 96px; width: auto; opacity: 0.9; }
.footer-links { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-links a {
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--pink-soft); }

.footer-legal {
  margin-top: clamp(34px, 4vw, 46px);
  padding-top: 26px;
  border-top: 1px solid var(--line-2);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

/* ==========================================================================
   Scroll-reveal (progressive enhancement — content is visible without JS)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); }
  .js .reveal.in {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

/* ==========================================================================
   Machine illustration internals (scoped to the inline SVGs)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .m-screen-glow { animation: screenPulse 5.5s ease-in-out infinite; }
  @keyframes screenPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.9; } }
}
