/* PrePPSE landing — Presoft Marketing SOP: light only, Inter, SOP palette */
:root {
  --orange: #F2AA24;
  --brown: #504538;
  --taupe: #B7A99A;
  --green: #00D697;
  --red: #D90000;
  --cream: #F2F1EF;

  --ink: #2F281F;           /* darker brown for headings */
  --text: #504538;
  --muted: #7A6E61;
  --line: #E4DFD8;
  --white: #FFFFFF;
  --orange-soft: #FDF1DA;
  --green-soft: #DDF9EF;
  --green-ink: #00694A;
  --red-soft: #FCE4E4;
  --wa: #25D366;

  --radius: 16px;
  --shadow: 0 10px 30px rgba(80, 69, 56, .10);
  --shadow-lg: 0 24px 60px rgba(80, 69, 56, .16);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; }
svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(900px, 100% - 32px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--ink); box-shadow: 0 8px 20px rgba(242, 170, 36, .35); }
.btn-primary:hover { background: #E89E12; }
.btn-ghost { border-color: var(--brown); color: var(--brown); background: transparent; }
.btn-ghost:hover { background: var(--brown); color: var(--white); }
.btn-sm { padding: 9px 18px; font-size: .9rem; box-shadow: none; }
.btn-wa { background: var(--wa); color: #fff; font-size: 1.15rem; padding: 18px 36px; box-shadow: 0 10px 26px rgba(37, 211, 102, .35); }
.btn-wa svg { width: 28px; height: 28px; stroke: none; }
.btn-wa:hover { background: #1EBE5A; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(80, 69, 56, .08); border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand img { height: 42px; width: auto; }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--brown); }
.main-nav a:hover { color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  font: inherit; font-weight: 700; font-size: .9rem; color: var(--brown);
  background: var(--cream); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; cursor: pointer; min-width: 58px;
}
.lang-toggle:hover { border-color: var(--orange); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 56px 0 40px; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(0, 214, 151, .12), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(242, 170, 36, .14), transparent 60%),
    var(--white);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px 6px 8px; font-size: .85rem; box-shadow: var(--shadow);
}
.kicker b { color: var(--ink); }
.kicker-sub { color: var(--muted); }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; margin: 20px 0 16px; }
.hero h1 .hl { color: var(--orange); }
.lead { font-size: 1.15rem; max-width: 34ch; margin: 0 0 24px; }

.swap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.swap > div { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; font-weight: 600; font-size: .95rem; }
.swap svg { width: 24px; height: 24px; flex: none; }
.swap-old { background: var(--cream); color: var(--muted); text-decoration: line-through; text-decoration-color: var(--red); }
.swap-old svg { color: var(--red); }
.swap-arrow { width: 26px; height: 26px; color: var(--orange); stroke-width: 3; }
.swap-new { background: var(--green-soft); color: var(--green-ink); }
.swap-new svg { color: var(--green-ink); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-photo { margin: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid var(--white); }
.hero-photo img { width: 100%; height: auto; }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--ink); font-weight: 700; font-size: .85rem;
  padding: 9px 14px; border-radius: 12px; box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
.chip svg { width: 18px; height: 18px; color: var(--orange); }
.chip-a { top: -14px; left: 8%; }
.chip-b { bottom: 18%; left: -22px; animation-delay: -1.6s; }
.chip-c { bottom: -14px; right: 8%; animation-delay: -3.2s; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.dot-orange { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); animation: pulse 1.6s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(242, 170, 36, .15); } }

.value-bar {
  list-style: none; margin: 56px 0 0; padding: 18px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  background: var(--brown); border-radius: 18px; color: var(--white);
}
.value-bar li { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 1.05rem; }
.value-bar li + li { border-left: 1px solid rgba(255, 255, 255, .18); }
.value-bar svg { width: 24px; height: 24px; color: var(--orange); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.eyebrow { color: var(--orange); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; margin: 0 0 8px; text-align: center; }
.section h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.015em; text-align: center; margin-bottom: 44px; }

/* Pains */
.pains { background: var(--cream); }
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pain-card { background: var(--white); border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow); border-top: 4px solid var(--red); text-align: center; }
.pain-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.pain-icon svg { width: 32px; height: 32px; }
.pain-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.pain-card p { margin: 0; font-size: .93rem; color: var(--muted); }

/* Flow */
.flow { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; counter-reset: s; }
.flow-step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px 20px; text-align: center; }
.flow-step:not(:last-child)::after {
  content: ''; position: absolute; top: 54px; right: -13px; width: 12px; height: 12px;
  border-top: 3px solid var(--orange); border-right: 3px solid var(--orange); transform: rotate(45deg); z-index: 2;
}
.flow-num { position: absolute; top: 10px; left: 12px; font-weight: 800; font-size: .8rem; color: var(--taupe); }
.flow-icon { width: 60px; height: 60px; margin: 6px auto 12px; border-radius: 50%; background: var(--orange-soft); color: #B97800; display: grid; place-items: center; }
.flow-step:last-child .flow-icon { background: var(--green-soft); color: var(--green-ink); }
.flow-icon svg { width: 28px; height: 28px; }
.flow-step h3 { font-size: 1rem; margin-bottom: 6px; }
.flow-step p { font-size: .84rem; margin: 0; color: var(--muted); line-height: 1.5; }

.graph-card { background: var(--cream); border-radius: 20px; padding: 26px 28px 20px; max-width: 860px; margin: 0 auto; }
.graph-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.graph-head h3 { font-size: 1.1rem; }
.illus-tag { font-size: .75rem; font-weight: 700; color: var(--muted); background: var(--white); border: 1px dashed var(--taupe); padding: 3px 10px; border-radius: 999px; }
.graph { width: 100%; height: auto; }
.graph .grid line { stroke: var(--line); stroke-width: 1; }
.line-manual { stroke: var(--taupe); stroke-width: 3; stroke-dasharray: 6 6; }
.line-preppse { stroke: var(--green); stroke-width: 4; }
.area-preppse { fill: rgba(0, 214, 151, .12); stroke: none; }
.axis-labels text { fill: var(--muted); font-size: 12px; font-family: inherit; stroke: none; }
.legend { display: flex; gap: 22px; flex-wrap: wrap; font-size: .88rem; font-weight: 600; margin-top: 6px; }
.legend > span { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 22px; height: 4px; border-radius: 2px; display: inline-block; }
.sw-green { background: var(--green); }
.sw-taupe { background: repeating-linear-gradient(90deg, var(--taupe) 0 6px, transparent 6px 10px); }

/* Video */
.video { background: var(--cream); }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--brown); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: var(--white); font-weight: 700; font-size: 1.1rem;
  background: linear-gradient(rgba(80, 69, 56, .78), rgba(80, 69, 56, .88)), url('images/preppse-factory-hero.webp') center / cover;
}
.video-placeholder svg { width: 72px; height: 72px; color: var(--orange); stroke-width: 1.6; }

/* Features */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feat { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 18px 18px 24px; box-shadow: var(--shadow); }
.feat h3 { font-size: 1.12rem; margin: 18px 4px 6px; }
.feat > p { margin: 0 4px; font-size: .93rem; color: var(--muted); }

.mock { background: var(--cream); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); font-size: .8rem; height: 232px; display: flex; flex-direction: column; }
.mock-bar { display: flex; align-items: center; gap: 5px; padding: 8px 12px; background: var(--white); border-bottom: 1px solid var(--line); }
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.mock-bar span { margin-left: 8px; font-weight: 700; color: var(--brown); font-size: .78rem; }
.mock-body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.m-head { display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
.pill { font-size: .7rem; font-weight: 800; padding: 2px 9px; border-radius: 999px; }
.pill-orange { background: var(--orange); color: var(--ink); }
.pill-green { background: var(--green); color: #00382A; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checks li { display: flex; align-items: center; gap: 8px; background: var(--white); padding: 6px 10px; border-radius: 8px; font-weight: 600; }
.checks .ok { width: 16px; height: 16px; border-radius: 50%; background: var(--green); position: relative; flex: none; }
.checks .ok::after { content: ''; position: absolute; left: 5px; top: 2.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.m-btn { margin-top: auto; text-align: center; background: var(--orange); color: var(--ink); font-weight: 800; padding: 7px; border-radius: 8px; }

.m-table { width: 100%; border-collapse: separate; border-spacing: 0 4px; }
.m-table th { text-align: left; color: var(--muted); font-weight: 700; padding: 0 8px; font-size: .74rem; }
.m-table td { background: var(--white); padding: 7px 8px; font-weight: 600; }
.m-table td:first-child { border-radius: 8px 0 0 8px; }
.m-table td:last-child { border-radius: 0 8px 8px 0; }
.m-table tr.short td { background: var(--red-soft); }
.t-ok { color: var(--green-ink); }
.t-bad { color: var(--red); font-weight: 800; }
.m-alert { margin-top: auto; display: flex; align-items: center; gap: 8px; background: var(--orange-soft); color: #8A5A00; font-weight: 700; padding: 7px 10px; border-radius: 8px; }
.m-alert svg { width: 18px; height: 18px; flex: none; }

.gantt { gap: 10px; }
.g-row { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 8px; }
.g-row > span { font-weight: 700; color: var(--brown); font-size: .72rem; }
.g-track { position: relative; height: 24px; background: var(--white); border-radius: 6px; }
.g { position: absolute; top: 4px; bottom: 4px; border-radius: 4px; }
.c1 { background: var(--orange); }
.c2 { background: var(--green); }
.c3 { background: var(--brown); }
.c4 { background: var(--taupe); }
.g-axis { display: flex; justify-content: space-between; padding-left: 66px; color: var(--muted); font-size: .68rem; margin-top: auto; }

.floor { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { background: var(--white); border-radius: 8px; padding: 8px; border-left: 4px solid; display: flex; flex-direction: column; }
.tile b { color: var(--ink); font-size: .74rem; }
.tile span { font-size: .7rem; font-weight: 700; }
.tile.run { border-color: var(--green); } .tile.run span { color: var(--green-ink); }
.tile.stop { border-color: var(--red); } .tile.stop span { color: var(--red); }
.tile.idle { border-color: var(--taupe); } .tile.idle span { color: var(--muted); }
.terminal { grid-column: span 1; background: var(--brown); color: var(--white); border-radius: 8px; padding: 6px 8px; font-size: .66rem; font-weight: 600; display: flex; flex-direction: column; gap: 4px; }
.t-btns { display: flex; gap: 4px; }
.t-btns b { flex: 1; text-align: center; border-radius: 5px; padding: 3px 0; font-size: .64rem; }
.t-start { background: var(--green); color: #00382A; }
.t-finish { background: var(--orange); color: var(--ink); }
.floor .tile:nth-child(4), .floor .tile:nth-child(5), .floor .terminal { min-height: 64px; }

.qc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qc-box { border-radius: 10px; padding: 14px; text-align: center; background: var(--white); }
.qc-box b { display: block; font-size: 1.8rem; line-height: 1.1; }
.qc-box span { font-weight: 700; }
.qc-box.good { border: 2px solid var(--green); } .qc-box.good b, .qc-box.good span { color: var(--green-ink); }
.qc-box.bad { border: 2px solid var(--red); } .qc-box.bad b, .qc-box.bad span { color: var(--red); }
.m-rework { margin-top: auto; display: flex; align-items: center; gap: 8px; background: var(--white); border: 1px dashed var(--orange); padding: 9px 10px; border-radius: 8px; font-weight: 700; color: var(--brown); }
.m-rework svg { width: 18px; height: 18px; color: var(--orange); flex: none; }

.cost-row { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 8px; font-weight: 700; color: var(--brown); }
.stack { display: flex; height: 26px; background: var(--white); border-radius: 6px; overflow: hidden; }
.stack b { height: 100%; }
.s1 { background: var(--orange); } .s2 { background: var(--brown); } .s3 { background: var(--green); } .s4 { background: var(--taupe); }
.cost-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; font-weight: 600; font-size: .74rem; }
.cost-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.cost-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.illus-note { margin: auto 0 0; font-size: .7rem; color: var(--muted); text-align: right; }

/* AI band */
.ai-band { margin-top: 36px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; background: var(--brown); color: var(--white); border-radius: 24px; padding: 36px; }
.ai-copy h3 { color: var(--white); font-size: 1.5rem; margin: 12px 0 10px; }
.ai-copy p { color: #E9E3DB; margin: 0; }
.chat { background: #FFFDF9; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 12px; color: var(--text); font-size: .92rem; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; }
.msg.me { align-self: flex-end; background: var(--orange); color: var(--ink); font-weight: 600; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--cream); border-bottom-left-radius: 4px; display: flex; flex-direction: column; gap: 8px; }
.lookups { display: flex; gap: 6px; }
.lookups i { font-style: normal; font-size: .7rem; font-weight: 700; background: var(--white); border: 1px solid var(--line); padding: 1px 8px; border-radius: 999px; color: var(--muted); }
.confirm-card { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-weight: 600; font-size: .85rem; }
.confirm-card b { background: var(--green); color: #00382A; padding: 4px 12px; border-radius: 8px; font-size: .8rem; }

/* Roles */
.role-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.role-grid li { background: var(--cream); border-radius: var(--radius); padding: 24px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.role-grid svg { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--white); color: var(--orange); box-sizing: content-box; margin-bottom: 6px; }
.role-grid b { color: var(--ink); font-size: .98rem; }
.role-grid span { font-size: .82rem; color: var(--muted); }

/* Contact */
.contact { background: linear-gradient(180deg, var(--white), var(--cream)); }
.contact-card { max-width: 760px; margin: 0 auto; text-align: center; background: var(--white); border-radius: 28px; padding: 52px 32px; box-shadow: var(--shadow-lg); border-top: 6px solid var(--orange); }
.contact-mark { margin: 0 auto 18px; border-radius: 14px; }
.contact-card h2 { margin-bottom: 12px; }
.contact-card p { font-size: 1.1rem; margin: 0 0 28px; }

/* Footer */
.site-footer { background: var(--brown); color: #E9E3DB; padding: 32px 0; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-inner img { height: 38px; width: auto; background: var(--white); padding: 6px 10px; border-radius: 10px; box-sizing: content-box; }
.footer-inner p { margin: 0; font-size: .88rem; }

/* WhatsApp bubble */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 34px; height: 34px; stroke: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .chip, .dot-orange { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow-step:nth-child(3)::after { display: none; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .role-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .lead { max-width: none; }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-band { grid-template-columns: 1fr; padding: 28px 22px; }
  .value-bar { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .value-bar li:nth-child(3) { border-left: 0; }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .brand img { height: 34px; }
  .header-actions .btn-sm { display: none; }
  .hero { padding-top: 36px; }
  .chip-b { left: -6px; }
  .chip { font-size: .75rem; padding: 7px 10px; }
  .feat-grid { grid-template-columns: 1fr; }
  .pain-grid { gap: 12px; }
  .pain-card { padding: 20px 12px; }
  .pain-icon { width: 52px; height: 52px; }
  .pain-card h3 { font-size: .95rem; }
  .pain-card p { font-size: .85rem; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-step::after { display: none; }
  .role-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-ctas .btn { flex: 1 1 100%; }
  .btn-wa { width: 100%; padding: 16px 20px; }
  .contact-card { padding: 40px 20px; }
}
