/* Mahaon LLC — corporate one-pager. Swallowtail palette: ink + warm yellow. */
:root {
  --ink: #12161f;
  --ink-2: #2a3140;
  --muted: #5b6475;
  --line: #e3e5ea;
  --paper: #ffffff;
  --paper-2: #f6f5f1;
  --yellow: #f2c230;
  --yellow-soft: #fdf3d2;
  --radius: 14px;
  --max: 1080px;
  font-size: 17px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .12em; font-size: 1rem; }
.brand svg { width: 34px; height: 34px; }
.brand small { font-weight: 500; letter-spacing: .04em; color: var(--muted); font-size: .9rem; }
.nav { display: flex; gap: 22px; align-items: center; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .9rem; }

/* Hero */
.hero { padding: 96px 0 72px; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.eyebrow { display: inline-block; font-weight: 600; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); background: var(--yellow-soft); border-radius: 999px; padding: 6px 14px; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.12; margin: 22px 0 18px; max-width: 18ch; letter-spacing: -.01em; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 56ch; margin: 0 0 32px; }
.btn { display: inline-block; padding: 14px 24px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--ink-2); }
.btn.ghost { border: 1px solid var(--ink); margin-left: 10px; }
.btn.ghost:hover { background: var(--yellow-soft); }

/* Sections */
section { padding: 80px 0; scroll-margin-top: 68px; }
section.alt { background: var(--paper-2); }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.2; margin: 0 0 14px; }
.sub { color: var(--muted); max-width: 62ch; margin: 0 0 40px; font-size: 1.05rem; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin: 12px 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--ink-2); }
.icon { width: 44px; height: 44px; border-radius: 10px; background: var(--yellow-soft); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Product */
.product { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 28px; }
.steps li { position: relative; padding: 0 0 22px 56px; }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--yellow); color: var(--ink); font-weight: 700; display: grid; place-items: center;
}
.steps strong { display: block; }
.data { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.data h3 { margin: 0 0 10px; font-size: 1.1rem; }
.data ul { margin: 0 0 18px; padding-left: 20px; }
.data li { margin-bottom: 6px; }
.data .never li::marker { content: "✕  "; color: #b23a3a; }
.data .uses li::marker { content: "✓  "; color: #2f7a43; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.facts div { padding: 22px 24px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts span { display: block; font-size: .9rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.facts b { font-weight: 600; }

/* Contact */
.contact { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 40px; }
.contact h2 { color: #fff; }
.contact p { color: #c9cfdb; margin: 0; }
.contact a.btn { background: var(--yellow); color: var(--ink); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: .95rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* Legal pages */
.legal { padding: 64px 0 80px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: 2.2rem; margin: 0 0 6px; }
.legal .date { color: var(--muted); margin-bottom: 36px; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.legal address { font-style: normal; }

/* Placeholder marker — remove before going live */
.ph { background: #ffe9a8; border-radius: 4px; padding: 0 4px; }

@media (max-width: 860px) {
  .grid, .product { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .contact { flex-direction: column; align-items: flex-start; }
  .nav a:not(.lang) { display: none; }
  .hero { padding: 64px 0 48px; }
  .btn.ghost { margin: 10px 0 0; }
}
