/* ════════════════════════════════════════════════════════
   HELLFORGE DESIGN SYSTEM — Packmaster Landing Page
   Mobile-first. Does NOT share app.css (overflow:hidden conflict).
   ════════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --bg-base:     #0b0b11;
  --bg-status:   #060609;
  --surf-1:      #0f0f17;
  --surf-2:      #13131c;
  --surf-3:      #1a1a26;

  --border-1:    #1e1a12;
  --border-2:    #2a2218;
  --border-top:  #3a3020;

  --gold:        #c9a84c;
  --gold-dim:    #7a6030;
  --gold-bright: #e8c860;
  --gold-faint:  rgba(201,168,76,0.07);

  --text-1:      #e8d8b4;
  --text-2:      #9a8a6a;
  --text-3:      #5a4a30;

  --score-high:  #5ab85a;
  --score-mid:   #c8b040;

  --grad-bloom:  radial-gradient(ellipse 90% 40% at 50% -5%, rgba(201,168,76,0.09) 0%, transparent 65%);
  --gold-line:   linear-gradient(90deg, transparent, #7a6030, #c9a84c, #7a6030, transparent);

  --font-display: 'Cinzel Decorative', serif;
  --font-label:   'Cinzel', serif;
  --font-body:    'Crimson Text', serif;
  --font-fell:    'IM Fell English', serif;

  --nav-h: 60px;
  --section-pad: 72px 20px;
  --inner-max: 1200px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-base);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); }

/* ════════════════════════════════════════
   SHARED COMPONENTS
   ════════════════════════════════════════ */

/* ── Section inner wrapper ── */
.lp-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Section label (heading row with gold line) ── */
.lp-section-label {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}
.lp-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-line);
}

/* ── Primary CTA button ── */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg-base);
  background: var(--gold);
  border: none;
  padding: 0 32px;
  height: 52px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.lp-btn:hover { background: var(--gold-bright); }
.lp-btn:active { background: var(--gold-dim); }

/* ── Gold divider line ── */
.lp-divider {
  height: 1px;
  background: var(--gold-line);
}

/* ── Placeholder boxes ── */
.lp-ph {
  background: var(--surf-3);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ════════════════════════════════════════
   NAV
   ════════════════════════════════════════ */
.lp-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--bg-status);
  border-bottom: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.lp-nav::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-line);
  opacity: 0.5;
}

.lp-nav-logo {
  height: 28px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

/* Nav CTA — compact on mobile so it doesn't crowd the logo */
.lp-nav .lp-btn {
  height: 36px;
  padding: 0 14px;
  font-size: 10px;
  letter-spacing: 0.12em;
}

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
.lp-hero {
  padding-top: var(--nav-h);
  background: var(--bg-base);
  background-image: var(--grad-bloom);
}

/* Inner wrapper caps width; flex layout lives here */
.lp-hero-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
}

/* Mobile: video stacks above content */
.lp-hero-media {
  width: 100%;
  flex-shrink: 0;
  height: 75svh;
  overflow: hidden;
}

.lp-hero-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.lp-hero-content {
  flex: 1;
  padding: 40px 24px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.lp-hero-headline {
  font-family: var(--font-label);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-1);
  letter-spacing: 0.02em;
}

.lp-hero-body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 480px;
}

/* ════════════════════════════════════════
   THE PROBLEM
   ════════════════════════════════════════ */
.lp-problem {
  background: var(--bg-status);
  padding: 72px 24px;
  position: relative;
}
.lp-problem::before,
.lp-problem::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-line);
}
.lp-problem::before { top: 0; }
.lp-problem::after  { bottom: 0; }

.lp-problem-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.lp-problem-copy {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-2);
}

.lp-problem-copy em {
  font-style: normal;
  color: var(--text-1);
}

/* ════════════════════════════════════════
   HOW IT WORKS
   ════════════════════════════════════════ */
.lp-how {
  background: var(--surf-1);
  padding: var(--section-pad);
}

.lp-steps {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.lp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.lp-step-num {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
}

/* Phone bezel */
.lp-phone {
  position: relative;
  width: min(220px, 60vw);
  aspect-ratio: 9/17;
  border-radius: 4px;
  box-shadow: 0 0 0 6px var(--surf-3), 0 0 0 7px var(--border-2), 0 24px 48px rgba(0,0,0,0.6);
  overflow: hidden;
  flex-shrink: 0;
}
.lp-phone .lp-ph {
  width: 100%;
  height: 100%;
  border: none;
}
.lp-phone img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lp-step-title {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-1);
}

.lp-step-body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 320px;
}

/* ════════════════════════════════════════
   FEATURES
   ════════════════════════════════════════ */
.lp-features {
  background: var(--bg-base);
  padding: var(--section-pad);
}

/* Mobile: 2×2 grid */
.lp-feature-scroll {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lp-feature-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surf-1);
  border: 1px solid var(--border-2);
  padding: 0 0 16px;
  overflow: hidden;
}

.lp-feature-card .lp-ph {
  width: 100%;
}
.lp-feature-card .lp-ph { aspect-ratio: 1/1; }
.lp-feature-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

.lp-feature-title {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-1);
  padding: 0 16px;
}

.lp-feature-body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.65;
  padding: 0 16px;
}

/* ════════════════════════════════════════
   THE BUILDER
   ════════════════════════════════════════ */
.lp-builder {
  background: var(--surf-1);
  padding: var(--section-pad);
  position: relative;
}
.lp-builder::before,
.lp-builder::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-line);
}
.lp-builder::before { top: 0; }
.lp-builder::after  { bottom: 0; }

.lp-builder-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lp-builder-inner p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-2);
}

.lp-builder-inner p:last-child {
  color: var(--text-1);
}

/* ════════════════════════════════════════
   FINAL CTA
   ════════════════════════════════════════ */
.lp-final-cta {
  background: var(--bg-base);
  background-image: var(--grad-bloom);
  padding: 96px 24px;
  text-align: center;
}

.lp-final-cta-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.lp-final-cta-body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-2);
}

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.lp-footer {
  background: var(--bg-status);
  border-top: 1px solid var(--border-2);
  padding: 56px 20px 40px;
  position: relative;
}
.lp-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-line);
}

.lp-footer-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.lp-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.lp-footer-logo {
  height: 280px;
  width: auto;
}

.lp-footer-mascot {
  width: 80px;
  height: 80px;
}

.lp-footer-tagline {
  font-family: var(--font-label);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-3);
}

.lp-footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.lp-footer-nav a {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.15s;
}
.lp-footer-nav a:hover { color: var(--gold); }

.lp-footer-copy {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-3);
}

/* ════════════════════════════════════════
   CONTACT MODAL
   ════════════════════════════════════════ */
.lp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,6,9,0.88);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.lp-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.lp-modal {
  background: var(--surf-1);
  border: 1px solid var(--border-2);
  width: 100%;
  max-width: 480px;
  padding: 40px 32px 36px;
  position: relative;
}
.lp-modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gold-line);
}

.lp-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: var(--surf-3);
  border: 1px solid var(--border-2);
  color: var(--text-2);
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s;
  font-family: inherit;
}
.lp-modal-close:hover { color: var(--gold); }

.lp-modal-title {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.lp-form-label {
  display: block;
  font-family: var(--font-label);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 7px;
}

.lp-form-input {
  display: block;
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border-2);
  border-top-color: var(--border-top);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 11px 14px;
  outline: none;
  margin-bottom: 20px;
  transition: border-color 0.15s;
  resize: none;
}
.lp-form-input:focus { border-color: var(--gold-dim); }
.lp-form-input::placeholder { color: var(--text-3); }

textarea.lp-form-input { min-height: 110px; resize: vertical; }

.lp-contact-form .lp-btn { width: 100%; margin-top: 4px; }

/* ════════════════════════════════════════
   LEGAL PAGES (privacy, terms)
   ════════════════════════════════════════ */
.lp-legal {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

.lp-legal-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.lp-legal h1 {
  font-family: var(--font-label);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.lp-legal-date {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 48px;
  display: block;
}

.lp-legal h2 {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-1);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-2);
}

.lp-legal h3 {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-top: 32px;
  margin-bottom: 12px;
}

.lp-legal p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 16px;
}

.lp-legal p b,
.lp-legal p strong {
  color: var(--text-1);
}

.lp-legal ul {
  margin: 0 0 16px 0;
  padding-left: 20px;
}

.lp-legal ul li {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 6px;
}

.lp-legal ul li::marker {
  color: var(--gold-dim);
}

.lp-legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.lp-legal table th {
  font-family: var(--font-label);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dim);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-2);
  background: var(--surf-2);
}

.lp-legal table td {
  font-family: var(--font-body);
  padding: 12px 16px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border-1);
  vertical-align: top;
  line-height: 1.6;
}

.lp-legal table td.yes {
  color: var(--score-high);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.lp-legal table td.no {
  color: var(--text-3);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* ════════════════════════════════════════
   DESKTOP — min-width: 768px
   ════════════════════════════════════════ */
@media (min-width: 768px) {
  :root {
    --section-pad: 96px 40px;
  }

  /* Hero — side by side */
  .lp-hero-inner {
    flex-direction: row;
    align-items: center;
  }

  .lp-hero-media {
    flex: 1;
    min-width: 0;
    aspect-ratio: 1/1;
    max-height: calc(100svh - var(--nav-h));
    max-width: calc(100svh - var(--nav-h));
    overflow: hidden;
  }

  .lp-hero-video {
    transform: none;
    object-position: right center;
  }

  .lp-hero-content {
    flex: 0 0 420px;
    padding: 80px 48px 80px 56px;
    justify-content: center;
    order: -1;
  }


  /* How it works — 3 columns */
  .lp-steps {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }

  .lp-step {
    flex: 1;
    min-width: 0;
  }

  .lp-phone {
    width: min(180px, 100%);
  }

  /* Features — 4×1 row */
  .lp-feature-scroll {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }


  /* Nav CTA — restore full size on desktop */
  .lp-nav .lp-btn {
    height: 44px;
    padding: 0 24px;
    font-size: 11px;
    letter-spacing: 0.15em;
  }
}

@media (min-width: 1024px) {
  .lp-hero-content {
    flex: 0 0 480px;
    padding: 80px 64px 80px 56px;
  }


  .lp-phone {
    width: 200px;
  }

  .lp-nav {
    padding: 0 40px;
  }
}
