/* ==========================================================================
   PTSL Tech — Editorial Anti-Slop Design System
   Flat background · Hairline borders · Recycling Green (#176B3A) · No AI slop
   Reference: DESIGN_SYSTEM.md / killaislop.com
   ========================================================================== */

/* 1. Tokens */
:root {
  --bg: #FAFAF8;
  --bg-alt: #F1F0EB;
  --surface: #FFFFFF;
  --ink: #131417;
  --text: #131417;
  --body: #3A3D42;
  --muted: #61666D;
  --muted-2: #8A8F97;
  --line: #E5E4DE;
  --line-strong: #D2D1C9;
  --accent: #176B3A;            /* Recycling Green */
  --accent-dark: #0F4A27;
  --accent-tint: #EDF6EE;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(19, 20, 23, 0.05);
  --shadow-md: 0 2px 10px rgba(19, 20, 23, 0.07);
  --container: 1080px;
  --header-h: 58px;
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
.callout p a, .micro a, .footer-bottom a, .contact-actions .meta a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 3. Utilities */
.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}
.muted { color: var(--muted); }
.micro { font-size: 13px; color: var(--muted); line-height: 1.5; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: #fff;
  padding: 8px 12px; border-radius: 6px;
  z-index: 100; text-decoration: none; font-size: 14px;
}
.skip-link:focus { left: 12px; }

/* 4. Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em;
  text-decoration: none; border-radius: var(--radius-sm);
  padding: 10px 16px; border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  line-height: 1.2; cursor: pointer;
  font-family: inherit;
}
.btn:active { transform: none; box-shadow: var(--shadow-sm); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-whatsapp { background: #E8F5EE; color: #176B42; border-color: #BFE2CC; }
.btn-whatsapp:hover { background: #DDF0E5; border-color: #A9D5B9; color: #176B42; }

.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--muted-2); background: #fff; color: var(--ink); }
.btn-lg { padding: 12px 20px; font-size: 15px; }

/* 5. Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250, 250, 248, 0.96);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: var(--header-h); padding-block: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--accent); color: #fff; border-radius: 8px;
  font-weight: 750; font-size: 12.5px; letter-spacing: 0.06em; line-height: 1;
}
.brand-mark-image { background: transparent; border-radius: 0; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 700; font-size: 15.5px; letter-spacing: -0.02em; color: var(--ink); }
.brand-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.nav {
  display: flex; align-items: center; gap: 22px;
  margin-left: auto; font-size: 14px;
}
.nav a { text-decoration: none; color: var(--body); border-bottom: 1px solid transparent; padding-bottom: 1px; }
.nav a:hover { color: var(--ink); border-color: var(--accent); }
.header-cta { margin-left: 4px; }

.nav-toggle {
  display: none; width: 38px; height: 38px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; margin-left: auto; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; gap: 6px;
  padding: 12px 16px 16px; border-top: 1px solid var(--line); background: var(--bg);
}
.mobile-nav a { text-decoration: none; padding: 13px 4px; color: var(--body); font-size: 15.5px; }
.mobile-nav a:not(.btn):hover { color: var(--ink); }
.mobile-nav a.btn { margin-top: 6px; color: #fff; padding: 10px 16px; text-align: center; }
.mobile-nav.open { display: flex; }

/* 6. Hero */
.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: 40px; align-items: stretch;
}
.meta {
  font-size: 13px; color: var(--muted); letter-spacing: 0.01em;
}
.hero h1 {
  margin-top: 14px;
  font-size: clamp(34px, 4.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 750;
  max-width: 18ch;
  color: var(--ink);
}
.lead {
  margin-top: 16px;
  font-size: 17px; line-height: 1.55;
  color: var(--body); max-width: 50ch;
}
.hero-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

.trust {
  margin-top: 24px;
  display: flex; flex-wrap: wrap; gap: 8px 0;
  font-size: 13.5px; color: var(--body); font-weight: 500;
  list-style: none; padding: 0;
}
.trust li { display: inline; }
.trust li + li::before { content: "·"; margin: 0 10px; color: var(--muted-2); }

/* Hero side */
.hero-side {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.device-illustration {
  margin: -20px -18px 18px;
  padding: 16px 16px 8px;
  background: var(--accent-tint);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-height: 150px;
}
.device-illustration svg { display: block; width: 100%; height: auto; }
.illustration-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.illustration-accent { stroke: var(--accent); }
.illustration-fill { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.illustration-accent-fill { fill: var(--accent); }

.hero-side h2 { font-size: 14px; font-weight: 650; color: var(--ink); }
.hero-side > p { margin-top: 6px; font-size: 13.5px; line-height: 1.55; color: var(--body); }
.checklist {
  margin-top: 14px; list-style: none; padding: 14px 0 0; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 9px;
  font-size: 13.5px; color: var(--body);
}
.checklist li { display: flex; gap: 10px; }
.checklist li svg { flex: 0 0 auto; margin-top: 2px; color: var(--accent); }
.side-foot {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted); line-height: 1.55;
}

/* 7. Stock preview */
.stock-preview { padding: 42px 0 48px; border-bottom: 1px solid var(--line); background: #fff; }
.stock-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.stock-head h2 { margin-top: 7px; font-size: clamp(22px, 3vw, 28px); line-height: 1.12; letter-spacing: -0.03em; color: var(--ink); }
.text-link { color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.text-link:hover { color: var(--accent-dark); }

.stock-grid { margin-top: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stock-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); box-shadow: var(--shadow-sm); }
.stock-art { height: 164px; display: grid; place-items: center; background: var(--accent-tint); border-bottom: 1px solid var(--line); }
.stock-art svg { display: block; width: 100%; height: 100%; }
.art-screen, .art-phone, .art-console { fill: #fff; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.art-screen-inner { fill: #F7F9FB; stroke: var(--accent); stroke-width: 2; }
.art-base { fill: var(--ink); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.art-detail { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.art-detail-accent { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.art-accent-dot { fill: var(--accent); }

.stock-card-body { padding: 15px 16px 16px; }
.stock-type { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.stock-card h3 { margin-top: 4px; font-size: 16px; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }
.stock-card-body > p:not(.stock-type) { margin-top: 7px; color: var(--body); font-size: 13.5px; line-height: 1.5; }
.stock-card-body a { display: inline-block; margin-top: 13px; color: var(--accent); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.stock-card-body a:hover { color: var(--accent-dark); }

/* 8. Sections */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head { max-width: 660px; }
.section-head h2 {
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; color: var(--ink);
}
.section-lead { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--body); }
.rule { margin-top: 18px; height: 1px; background: var(--line); border: 0; }

/* 9. Cards */
.cards {
  margin-top: 26px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px;
}
@media (min-width: 1100px) {
  .cards:has(> :nth-child(5)) { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1099px) and (min-width: 730px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards:has(> :nth-child(4)) { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px 16px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.card-head { display: flex; align-items: center; gap: 10px; }
.card-head svg { flex: 0 0 auto; color: var(--accent); }
.card h3 { font-size: 15px; letter-spacing: -0.015em; font-weight: 650; color: var(--ink); }
.card p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--body); }
.card-meta {
  margin-top: auto; padding-top: 12px; margin-top: 12px;
  font-size: 12.5px; color: var(--muted); line-height: 1.5;
  border-top: 1px solid var(--line);
}
.callout {
  margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; flex-wrap: wrap; box-shadow: var(--shadow-sm);
}
.callout p { font-size: 14px; color: var(--body); max-width: 60ch; line-height: 1.55; }
.card, .step, .standard-item, .contact-card, .hero-side, .callout, .side-box, .side-note {
  min-width: 0; max-width: 100%;
}

/* 10. Steps */
.steps {
  margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  list-style: none; padding: 0;
}
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow-sm); }
.step h3 { font-size: 15px; font-weight: 650; letter-spacing: -0.015em; color: var(--ink); }
.step p { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--body); }

/* 11. Brands */
.brands {
  padding: 18px 0; border-bottom: 1px solid var(--line);
  background: #fff;
}
.brands-label { font-size: 12.5px; color: var(--muted); }
.brands-row {
  margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 10px;
  font-size: 14px; color: var(--ink); font-weight: 600; letter-spacing: -0.01em;
}
.brands-row .sep { color: var(--muted-2); font-weight: 400; }

/* 11b. Trust bar */
.trust-bar {
  padding: 14px 0; border-bottom: 1px solid var(--line);
  background: #fff;
}
.trust-bar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.trust-bar-main { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: baseline; font-size: 13.5px; line-height: 1.5; color: var(--body); }
.trust-bar-label { font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); font-weight: 650; margin-right: 4px; }
.trust-bar-items { display: inline-flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.trust-bar-items .sep { color: var(--muted-2); }
.trust-bar-note { font-size: 12.5px; color: var(--muted); }

/* 12. Standards */
.standards { background: #fff; }
.standards .section-head { max-width: 600px; }
.standards-grid { margin-top: 25px; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.standard-item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 18px 22px 18px 0; border-bottom: 1px solid var(--line); }
.standard-item:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
.standard-mark { color: var(--accent); font-size: 12px; font-weight: 700; padding-top: 2px; }
.standard-icon {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--accent-tint); border: 1px solid var(--line); border-radius: 8px;
  color: var(--accent); flex: 0 0 36px;
}
.standard-item h3 { color: var(--ink); font-size: 15px; font-weight: 650; letter-spacing: -.015em; }
.standard-item p { margin-top: 4px; color: var(--body); font-size: 13.5px; line-height: 1.5; max-width: 44ch; }

/* 13. Contact */
.section-contact { background: var(--bg-alt); border-top: 1px solid var(--line); }
.contact-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px;
  align-items: stretch;
}
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.contact-card h2 {
  font-size: 24px; letter-spacing: -0.03em; line-height: 1.12; font-weight: 700; color: var(--ink);
}
.contact-card h3 {
  font-size: 16px; letter-spacing: -0.02em; line-height: 1.2; font-weight: 700; color: var(--ink);
}
.contact-lead { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--body); }
.contact-actions { margin-top: 18px; }
.contact-actions .meta { margin-top: 10px; font-size: 13.5px; }
.contact-actions .meta a { font-weight: 500; }
.contact-list {
  margin-top: 18px; margin-bottom: 18px; list-style: none; padding: 16px 0 0; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--body);
}
.contact-list li { display: flex; gap: 10px; }
.contact-list li::before { content: "—"; color: var(--accent); flex: 0 0 auto; font-weight: 600; }
.contact-side { display: flex; flex-direction: column; gap: 14px; }
.side-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; box-shadow: var(--shadow-sm);
}
.side-box h3 { font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.side-box ul { margin-top: 10px; list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--body); }
.side-box-push { margin-top: auto; }
.form-submit { width: 100%; margin-top: auto; }
.side-note {
  border-left: 2px solid var(--accent);
  padding: 12px 16px; background: #fff; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13.5px; line-height: 1.6; color: var(--body);
}

/* 13b. Contact form */
.contact-form-card { padding-top: 22px; display: flex; flex-direction: column; }
.contact-form { margin-top: 16px; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--body); }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.field > span em { font-weight: 400; color: var(--muted); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 14px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 10px 12px; line-height: 1.45; height: 42px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field textarea { height: auto; resize: vertical; min-height: 96px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7078' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.field select:invalid { color: var(--muted-2); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 3px rgba(23,107,58,0.12);
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-status { min-height: 20px; font-size: 13.5px; line-height: 1.5; }
.form-status.ok { color: #176B42; }
.form-status.err { color: #9B2C2C; }
.sustainability { background: #fff; }
.sustainability .standards-grid { border-top: 1px solid var(--line); }

/* 14. Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 30px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 0.9fr 0.9fr 0.7fr; gap: 24px; }
.footer-brand .brand-mark { width: 28px; height: 28px; font-size: 11px; border-radius: 6px; }
.footer-tagline { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 34ch; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.footer-col ul { margin-top: 9px; list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--body); }
.footer-col a { text-decoration: none; color: var(--body); border-bottom: 1px solid transparent; }
.footer-col a:hover { color: var(--accent); border-color: var(--accent); }
.footer-legal {
  margin-top: 22px; padding: 14px 0 0; border-top: 1px solid var(--line);
}
.footer-legal h4 { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.footer-legal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.footer-legal ul { margin-top: 8px; list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.footer-legal a { color: var(--accent); text-decoration: none; }
.footer-legal a:hover { color: var(--accent-dark); }
.footer-bottom {
  margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted);
}

/* 15. Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .stock-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 40px 0 28px; }
  .hero h1 { font-size: 35px; }
  .stock-head { align-items: start; flex-direction: column; gap: 10px; }
  .stock-grid { grid-template-columns: 1fr; }
  .stock-art { height: 150px; }
  .cards { grid-template-columns: 1fr; }
  .cards:has(> :nth-child(5)) { grid-template-columns: 1fr; }
  .standards-grid { grid-template-columns: 1fr; }
  .standard-item, .standard-item:nth-child(even) { padding: 16px 0; border-left: 0; }
  .field-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal-grid { grid-template-columns: 1fr; gap: 12px; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
