/* ============================================================
   PlastiPouch — Custom Mylar Packaging
   Palette: matte-film paper, pine ink, silver foil signature
   Type:    Bricolage Grotesque (display) / Instrument Sans (body)
            JetBrains Mono (spec labels)
   ============================================================ */

:root {
  --paper: #f4f4ef;
  --paper-deep: #ecebe3;
  --ink: #12241c;
  --pine: #1c5741;
  --pine-dark: #144232;
  --line: rgba(18, 36, 28, 0.16);
  --line-soft: rgba(18, 36, 28, 0.09);
  --muted: #5a6a61;
  --foil: linear-gradient(115deg, #b9bdc7 0%, #eef0f4 22%, #9fa4b0 45%, #f4f6f9 62%, #b3b8c2 82%, #dfe2e8 100%);
  --radius: 14px;
  --wrap: 1180px;
  --shadow: 0 18px 40px -24px rgba(18, 36, 28, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Instrument Sans", system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Type ---------- */

h1, h2, h3, .display {
  font-family: "Bricolage Grotesque", "Instrument Sans", sans-serif;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--pine);
}

.foil-text {
  color: var(--pine);
}

.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 58ch;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Instrument Sans", sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn-primary {
  background: var(--pine);
  color: #f6f8f4;
}

.btn-primary:hover {
  background: var(--pine-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

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

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

.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 244, 239, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.logo-wordmark {
  height: 34px;
  width: auto;
  display: block;
}

.site-footer .logo-wordmark { height: 30px; }

@media (max-width: 720px) {
  .logo-wordmark { height: 28px; }
}

.logo-mark {
  width: 26px;
  height: 30px;
  border-radius: 4px 4px 7px 7px;
  background: var(--foil);
  border: 1.5px solid var(--ink);
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 3px;
  right: 3px;
  height: 2px;
  background: var(--ink);
  opacity: .75;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  opacity: .82;
  transition: opacity .15s ease;
}

.nav-links a:hover, .nav-links a.active { opacity: 1; }

.nav-links a.active { color: var(--pine); font-weight: 600; }

.nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 18px;
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(42px, 5.4vw, 68px);
  margin-bottom: 22px;
}

.hero .lede { margin-bottom: 34px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 20% 10%, #fdfdfb 0%, transparent 55%),
    var(--foil);
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(18,36,28,.85);
  color: #eef1ec;
  padding: 7px 12px;
  border-radius: 7px;
}

/* Stat strip — spec-sheet style */

.stat-strip {
  margin-top: 64px;
  border-block: 1px dashed var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  padding: 26px 28px;
  border-right: 1px dashed var(--line);
}

.stat:last-child { border-right: none; }

.stat .num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat .label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.footnote {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: .02em;
}

/* ---------- Sections ---------- */

section { padding: 84px 0; }

.section-head { max-width: 640px; margin-bottom: 48px; }

.section-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  margin-bottom: 14px;
}

.section-head.split {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
}

/* ---------- Industries ---------- */

.industries { background: var(--paper-deep); border-block: 1px solid var(--line-soft); }

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.industry {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.industry:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--pine);
}

.industry .icon { font-size: 24px; margin-bottom: 14px; display: block; }

.industry h3 { font-size: 18px; margin-bottom: 6px; }

.industry p { font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Product cards ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-grid.full { grid-template-columns: repeat(2, 1fr); gap: 28px; }

.product-card {
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}

.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.product-media {
  position: relative;
  aspect-ratio: 4 / 3.4;
  background: var(--foil);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-media .fallback {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: rgba(18,36,28,.55);
  text-align: center;
  padding: 0 20px;
}

.product-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }

.product-body .code {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pine);
}

.product-body h3 { font-size: 21px; }

.product-body p { font-size: 15px; color: var(--muted); }

.spec-list {
  margin-top: 6px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
}

.spec-list .row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line-soft);
}

.spec-list .k {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}

.spec-list .v { color: var(--ink); }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 10px; }

.tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--muted);
}

/* ---------- Process ---------- */

.process-steps { display: grid; gap: 0; counter-reset: step; }

.step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 30px;
  padding: 34px 0;
  border-bottom: 1px dashed var(--line);
}

.step:first-child { border-top: 1px dashed var(--line); }

.step-num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: var(--pine);
  opacity: .85;
}

.step h3 { font-size: 22px; margin-bottom: 8px; }

.step p { color: var(--muted); max-width: 62ch; }

.step .note {
  margin-top: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--pine);
  letter-spacing: .04em;
}

/* Mini process (homepage teaser) */

.process-mini {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.mini-step {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  background: #fbfbf8;
}

.mini-step .n {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--pine);
  display: block;
  margin-bottom: 10px;
}

.mini-step h3 { font-size: 16px; margin-bottom: 6px; }

.mini-step p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* Terms strip */

.terms-strip {
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  color: #e8ece7;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.term {
  padding: 24px 24px;
  border-right: 1px solid rgba(232, 236, 231, .14);
}

.term:last-child { border-right: none; }

.term .k {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .6;
  display: block;
  margin-bottom: 6px;
}

.term .v { font-weight: 600; font-size: 15.5px; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 16px; }

.contact-info p { color: var(--muted); margin-bottom: 26px; max-width: 46ch; }

.contact-points { list-style: none; display: grid; gap: 14px; }

.contact-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
}

.contact-points .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pine);
  margin-top: 7px;
  flex-shrink: 0;
}

.form-card {
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 7px; }

.field label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  font-family: "Instrument Sans", sans-serif;
  font-size: 15.5px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--pine);
  outline-offset: 1px;
  border-color: var(--pine);
}

.field textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
}

/* ---------- FAQ ---------- */

.faq { background: var(--paper-deep); border-top: 1px solid var(--line-soft); }

.faq-list { max-width: 820px; }

.faq-item {
  border-bottom: 1px dashed var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 18px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .plus {
  font-family: "JetBrains Mono", monospace;
  color: var(--pine);
  font-size: 18px;
  transition: transform .2s ease;
  flex-shrink: 0;
}

.faq-item[open] summary .plus { transform: rotate(45deg); }

.faq-item .answer {
  padding: 0 0 24px;
  color: var(--muted);
  max-width: 68ch;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  color: #eef1ec;
  border-radius: var(--radius);
  padding: 60px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -6%;
  width: 320px;
  height: 180%;
  background: var(--foil);
  opacity: .16;
  transform: rotate(18deg);
  pointer-events: none;
}

.cta-band h2 { font-size: clamp(26px, 3vw, 38px); max-width: 22ch; }

.cta-band .btn-primary { background: #f4f4ef; color: var(--ink); }

.cta-band .btn-primary:hover { background: #ffffff; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 48px 0 36px;
  background: var(--paper);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-grid .logo { margin-bottom: 10px; }

.footer-grid p { font-size: 14px; color: var(--muted); max-width: 34ch; }

.footer-links { display: flex; gap: 60px; }

.footer-links h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 500;
}

.footer-links ul { list-style: none; display: grid; gap: 9px; }

.footer-links a {
  text-decoration: none;
  font-size: 14.5px;
  opacity: .8;
}

.footer-links a:hover { opacity: 1; color: var(--pine); }

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px dashed var(--line-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero { padding: 80px 0 30px; }

.page-hero h1 { font-size: clamp(36px, 4.6vw, 56px); margin-bottom: 16px; max-width: 18ch; }

/* ---------- Legal pages ---------- */

.legal { max-width: 780px; }

.legal .updated {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
}

.legal-section {
  padding: 30px 0;
  border-top: 1px dashed var(--line);
}

.legal-section h2 {
  font-size: 22px;
  margin-bottom: 12px;
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.legal-section h2 .idx {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--pine);
}

.legal-section p { color: #3c4a43; margin-bottom: 12px; }

.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul { margin: 0 0 12px 20px; color: #3c4a43; }

.legal-section li { margin-bottom: 6px; }

.legal-callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--pine);
  border-radius: 8px;
  background: #fbfbf8;
  padding: 16px 18px;
  font-size: 14.5px;
  color: #3c4a43;
  margin: 14px 0;
}

/* ---------- Reveal animation ---------- */

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

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn, .product-card, .industry { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 480px; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .product-grid.full { grid-template-columns: repeat(2, 1fr); }
  .process-mini { grid-template-columns: repeat(2, 1fr); }
  .terms-strip { grid-template-columns: repeat(2, 1fr); }
  .term { border-bottom: 1px solid rgba(232,236,231,.14); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px dashed var(--line); }
  .stat:last-child { border-bottom: none; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; font-size: 17px; }
  .nav-cta { margin: 12px 0 0; }
  .nav-toggle { display: block; }
  .product-grid, .product-grid.full { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .step-num { font-size: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 28px; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0 48px; }
}
