/* LastroPIX — shared product styles */
:root {
  --paper: #f3f1eb;
  --paper-2: #e8e4da;
  --white: #ffffff;
  --ink: #102028;
  --ink-2: #1c303c;
  --muted: #5b6b74;
  --line: #d9d3c7;
  --line-2: #ece8df;
  --teal: #0c5c4c;
  --teal-2: #08463a;
  --teal-soft: #dceee8;
  --ok: #0c5c4c;
  --ok-bg: #e3f2ec;
  --gap: #9a3412;
  --gap-bg: #fde8dc;
  --warn: #8a5a10;
  --warn-bg: #f8efd6;
  --shadow: 0 18px 50px rgba(16, 32, 40, 0.08);
  --shadow-sm: 0 8px 24px rgba(16, 32, 40, 0.06);
  --radius: 18px;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1120px;
  --narrow: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(16, 32, 40, 0.035) 0.7px, transparent 0.7px);
  background-size: 3px 3px;
  z-index: 0;
}
img { max-width: 100%; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; position: relative; z-index: 1; }
.narrow { width: min(100% - 2rem, var(--narrow)); margin-inline: auto; position: relative; z-index: 1; }

.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(243, 241, 235, 0.86);
  border-bottom: 1px solid rgba(16, 32, 40, 0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 0;
}
.nav-links {
  display: flex; align-items: center; gap: 1.25rem;
  font-size: 0.9rem; font-weight: 550; color: var(--ink-2);
}
.nav-links a { color: inherit; text-decoration: none; }
.nav-links a:hover { color: var(--teal); }
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark b { color: var(--teal); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  border: 0; border-radius: 999px;
  padding: 0.88rem 1.3rem;
  font-family: inherit; font-weight: 650; font-size: 0.94rem;
  cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none;
}
.btn-primary {
  background: var(--teal);
  color: #f6fffb;
  box-shadow: 0 10px 24px rgba(12, 92, 76, 0.2);
}
.btn-primary:hover { background: var(--teal-2); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid rgba(16, 32, 40, 0.14);
}
.btn-ghost:hover { background: rgba(255,255,255,0.6); }
.btn-sm { padding: 0.55rem 0.95rem; font-size: 0.86rem; }
.btn-block { width: 100%; }

.kicker {
  color: var(--teal); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 0.85rem;
}
h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.038em;
  font-weight: 600;
  margin-bottom: 1rem;
}
h1 em { font-style: italic; color: var(--teal); font-weight: 500; }
h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4.4vw, 2.4rem);
  letter-spacing: -0.03em; line-height: 1.15;
  font-weight: 600; margin-bottom: 0.75rem;
}
h3 { font-size: 1.05rem; letter-spacing: -0.02em; margin-bottom: 0.3rem; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 42ch; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: 0.82rem; }

section { padding: 4.2rem 0; position: relative; z-index: 1; }
section + section { border-top: 1px solid rgba(16,32,40,0.06); }

.hero { padding: 3.4rem 0 3.6rem; }
.hero-grid {
  display: grid; gap: 2.6rem;
}
.price-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.7rem;
  margin: 1.25rem 0 1.4rem;
}
.price-row strong {
  font-family: var(--serif);
  font-size: 2rem; color: var(--teal); font-weight: 600; letter-spacing: -0.03em;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 0.8rem; }

.product {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.product-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #faf9f6;
  border-bottom: 1px solid var(--line-2);
  font-size: 0.78rem; color: var(--muted);
}
.dots { display: flex; gap: 0.35rem; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #d3cdc2; display: block; }
.product-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; border-bottom: 1px solid var(--line-2);
}
.stat { padding: 1rem 1.05rem; }
.stat + .stat { border-left: 1px solid var(--line-2); }
.stat b {
  display: block; font-family: var(--serif);
  font-size: 1.45rem; letter-spacing: -0.03em; line-height: 1.1;
}
.stat span { font-size: 0.75rem; color: var(--muted); }
.stat.gap b { color: var(--gap); }
.stat.ok b { color: var(--ok); }

table.report {
  width: 100%; border-collapse: collapse; font-size: 0.86rem;
}
table.report th {
  text-align: left; font-weight: 650; font-size: 0.72rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line-2);
  background: #fcfbf8;
}
table.report td {
  padding: 0.68rem 0.9rem;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}
table.report tr:last-child td { border-bottom: 0; }
table.report .num { font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 0.8rem; }
.pill {
  display: inline-flex; align-items: center;
  border-radius: 999px; padding: 0.15rem 0.55rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-gap { background: var(--gap-bg); color: var(--gap); }

.trust {
  display: grid; gap: 0.8rem;
}
.trust article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.05rem 1.15rem;
}
.trust h3 { font-size: 0.95rem; }
.trust p { color: var(--muted); font-size: 0.9rem; }

.steps {
  display: grid; gap: 1rem;
  counter-reset: step;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem 1.3rem 1.35rem 4.6rem;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 1.15rem; top: 1.3rem;
  width: 2.15rem; height: 2.15rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal);
  font-weight: 700; font-size: 0.9rem;
}
.step p { color: var(--muted); font-size: 0.95rem; }

.example-grid, .split {
  display: grid; gap: 1.1rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 0.45rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

.messy {
  background: #102028;
  color: #d7e0e4;
  border-radius: 18px;
  padding: 1rem;
  font-size: 0.82rem;
  line-height: 1.45;
  min-height: 100%;
}
.messy .head {
  font-size: 0.72rem; color: #8aa0aa; margin-bottom: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700;
}
.wa-line {
  background: #1a333d;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.45rem;
  color: #c5d4d8;
}
.wa-line small { display: block; color: #7f969e; font-size: 0.7rem; }

.clean-list { list-style: none; display: grid; gap: 0.55rem; }
.clean-list li {
  display: flex; justify-content: space-between; gap: 0.8rem;
  padding: 0.7rem 0.8rem;
  background: var(--gap-bg);
  border-radius: 12px;
  font-size: 0.92rem;
}
.clean-list b { color: var(--gap); font-size: 0.72rem; letter-spacing: 0.04em; }

.facts { display: grid; gap: 0.85rem; }
.fact {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem 1.3rem;
}
.fact .n { color: var(--teal); font-size: 0.75rem; font-weight: 700; margin-bottom: 0.35rem; }
.fact p { color: var(--muted); font-size: 0.95rem; }
.source { margin-top: 1.1rem; color: var(--muted); font-size: 0.78rem; max-width: 70ch; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.5rem 0.9rem; border-radius: 999px; font-size: 0.9rem;
}

.nots { list-style: none; display: grid; gap: 0.65rem; }
.nots li {
  border-left: 3px solid var(--teal);
  background: var(--white);
  padding: 1rem 1.15rem;
  border-radius: 0 14px 14px 0;
  color: var(--muted); font-size: 0.95rem;
}
.nots strong { color: var(--ink); }

.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow);
}
.price-card .big {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 8vw, 3.5rem);
  color: var(--teal); letter-spacing: -0.04em; line-height: 1;
}
.price-card .big small {
  font-family: var(--sans); font-size: 1rem; color: var(--muted); font-weight: 500; margin-left: 0.25rem;
}
.price-card ul { list-style: none; margin: 1.2rem 0 1.4rem; display: grid; gap: 0.5rem; }
.price-card li { color: var(--muted); padding-left: 1.35rem; position: relative; font-size: 0.95rem; }
.price-card li::before {
  content: ""; position: absolute; left: 0; top: 0.48rem;
  width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--teal);
}

details.faq {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.55rem;
}
details.faq summary {
  cursor: pointer; font-weight: 650;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--teal); font-weight: 400; font-size: 1.2rem; }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--muted); margin-top: 0.7rem; font-size: 0.95rem; }

footer.site {
  padding: 2.6rem 0 6rem;
  border-top: 1px solid rgba(16,32,40,0.06);
  color: var(--muted); font-size: 0.82rem;
  position: relative; z-index: 1;
}
footer.site .wordmark { display: inline-block; margin-bottom: 0.7rem; }
footer.site p + p { margin-top: 0.4rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 0.9rem 0; }

.sticky {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(243, 241, 235, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(16,32,40,0.08);
}
.sticky .btn { width: 100%; }

/* App */
.app-head { padding: 2rem 0 0.4rem; }
.app-grid { display: grid; gap: 1rem; margin: 1.2rem 0 1.4rem; }
.drop {
  border: 1.5px dashed #c8c0b0;
  background: var(--white);
  border-radius: 18px;
  padding: 1.15rem;
}
.drop.over { border-color: var(--teal); background: #f3faf7; }
.drop h3 { font-size: 0.98rem; }
.drop .hint { color: var(--muted); font-size: 0.86rem; margin: 0.25rem 0 0.8rem; }
.drop input[type="file"] { font-size: 0.86rem; width: 100%; }
textarea.paste {
  width: 100%; min-height: 110px; resize: vertical;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font-family: var(--mono); font-size: 0.8rem;
  background: #fcfbf8; color: var(--ink);
}
.toolbar { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0.4rem 0 1.4rem; }
.note-cap {
  background: var(--warn-bg);
  color: var(--warn);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font-size: 0.86rem;
  margin-bottom: 1rem;
}
.result-empty {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 18px;
  padding: 1.6rem;
  color: var(--muted);
}
.table-wrap { overflow-x: auto; }
.app-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; padding: 0.95rem 1rem 1.1rem; }

/* Checkout */
.check-grid { display: grid; gap: 1.2rem; padding: 2.4rem 0 3rem; }
.stripe-box {
  border: 1px dashed #c8c0b0;
  border-radius: 16px;
  padding: 1.15rem;
  background: #fcfbf8;
  margin: 1rem 0;
}
.stripe-box h3 { margin-bottom: 0.35rem; }
.badge {
  display: inline-block;
  background: var(--warn-bg); color: var(--warn);
  font-size: 0.75rem; font-weight: 700;
  padding: 0.2rem 0.5rem; border-radius: 999px;
  letter-spacing: 0.04em; text-transform: uppercase;
}

.nexts { list-style: none; display: grid; gap: 0.7rem; margin: 1.2rem 0; }
.nexts li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}
.nexts strong { display: block; margin-bottom: 0.2rem; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .sticky { display: block; }
  footer.site { padding-bottom: 6.2rem; }
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.02fr 0.98fr; align-items: center; }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { padding: 1.4rem 1.25rem 1.4rem 1.25rem; }
  .step::before { position: static; margin-bottom: 0.85rem; }
  .example-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .app-grid { grid-template-columns: 1fr 1fr; }
  .check-grid { grid-template-columns: 0.95fr 1.05fr; align-items: start; }
  footer.site { padding-bottom: 2.8rem; }
}
