/* ============ MC4 Guide — site styles ============ */
:root {
  --paper: #f8f7f4;
  --card: #ffffff;
  --ink: #1c2431;
  --muted: #5b6675;
  --line: #e5e1d6;
  --amber: #e8a11c;
  --amber-dark: #b47c0a;
  --blue: #1f6feb;
  --green: #25d366;
  --red: #c0392b;
  --red-bg: #fdf1ef;
  --amber-bg: #fff8e8;
  --blue-bg: #eef4fd;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
article { max-width: 78ch; }

/* Setup warning banner */
.setup-banner {
  display: none;
  background: #b3261e;
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 14px;
}
.setup-banner.show { display: block; }

/* Header */
.site-head { background: #fff; border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 14px; padding-bottom: 14px; }
.brand { font-weight: 700; font-size: 18px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.brand .plug { width: 14px; height: 26px; border: 3px solid var(--amber); border-radius: 3px; display: inline-block; }
.brand small { color: var(--muted); font-weight: 400; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 15px; }
.site-nav a { color: var(--ink); padding: 4px 2px; border-bottom: 2px solid transparent; }
.site-nav a:hover { text-decoration: none; border-bottom-color: var(--amber); }
.site-nav a.active { border-bottom-color: var(--amber); }

/* Hero */
.hero { padding: 56px 0 36px; }
.hero h1 { font-size: clamp(28px, 5vw, 42px); line-height: 1.15; margin: 0 0 14px; max-width: 22ch; }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 62ch; margin: 0 0 24px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 8px;
  background: var(--amber); color: #211a05; font-weight: 600; border: 1px solid var(--amber);
}
.btn:hover { background: var(--amber-dark); border-color: var(--amber-dark); color: #fff; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }

/* Sections & cards */
.section { padding: 34px 0; }
.section-title { font-size: 24px; margin: 0 0 6px; }
.section-sub { color: var(--muted); margin: 0 0 20px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 8px;
}
.card h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; flex: 1; }
.card .more { font-weight: 600; font-size: 14px; }
.card:hover { border-color: var(--amber); text-decoration: none; }
.card .tag { color: var(--amber-dark); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.mini { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.mini h4 { margin: 0 0 6px; font-size: 15.5px; }
.mini p { margin: 0; color: var(--muted); font-size: 14px; }

/* Breadcrumb */
.crumb { font-size: 13.5px; color: var(--muted); padding: 14px 0 0; }
.crumb a { color: var(--muted); }

/* Article */
.page-head { padding: 26px 0 8px; }
.page-head h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.2; margin: 6px 0 10px; }
.page-head .lead { color: var(--muted); font-size: 17px; max-width: 64ch; }
article h2 { font-size: 21px; margin: 34px 0 10px; }
article h3 { font-size: 17.5px; margin: 24px 0 8px; }
article p { margin: 10px 0; }
article ul, article ol { padding-left: 22px; }
article li { margin: 5px 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 480px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: #f1efe8; font-size: 13.5px; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:last-child td { border-bottom: none; }

/* Callouts */
.callout { border-left: 4px solid var(--amber); background: var(--amber-bg); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 18px 0; }
.callout.warn { border-color: var(--red); background: var(--red-bg); }
.callout.info { border-color: var(--blue); background: var(--blue-bg); }
.callout p { margin: 6px 0; }
.callout strong:first-child { display: inline-block; margin-bottom: 2px; }

/* Steps */
.step-list { list-style: none; padding: 0; margin: 16px 0; counter-reset: step; }
.step-list li { counter-increment: step; position: relative; padding: 0 0 14px 46px; margin: 0; }
.step-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--amber); color: #211a05; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 10px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { color: var(--muted); margin: 8px 0 2px; }

/* CTA box */
.cta-box { background: #131b2a; color: #fff; border-radius: 14px; padding: 28px; margin: 36px 0 44px; }
.cta-box h2 { color: #fff; margin: 0 0 8px; font-size: 22px; }
.cta-box p { color: #b8c2d4; margin: 0 0 16px; }
.cta-box .btn { background: var(--amber); }
.cta-box .btn.ghost { color: #fff; border-color: #4a5670; }
.cta-box .btn.ghost:hover { background: #fff; color: var(--ink); }

/* Form */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; max-width: 640px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cfcabb; border-radius: 8px;
  font: inherit; background: #fff; color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }
.form-row .hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.form-status { margin-top: 12px; font-size: 14px; display: none; padding: 10px 14px; border-radius: 8px; }
.form-status.ok { display: block; background: #e8f6ec; color: #14532d; border: 1px solid #b7dfc3; }
.form-status.err { display: block; background: var(--red-bg); color: var(--red); border: 1px solid #efc7c2; }
button.btn { cursor: pointer; font: inherit; }
button.btn:disabled { opacity: .6; cursor: not-allowed; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.wa-float.show { display: flex; }
.wa-float:hover { transform: scale(1.06); text-decoration: none; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Footer */
.site-foot { background: #131b2a; color: #b8c2d4; margin-top: 40px; padding: 34px 0 26px; font-size: 14px; }
.site-foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.site-foot h4 { color: #fff; margin: 0 0 8px; font-size: 15px; }
.site-foot a { color: #b8c2d4; }
.site-foot a:hover { color: #fff; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: 6px 0; }
.site-foot .legal { border-top: 1px solid #2a3449; margin-top: 22px; padding-top: 14px; color: #7f8ca3; font-size: 13px; }

@media (max-width: 720px) {
  .site-foot .cols { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 28px; }
  .cta-box { padding: 20px; }
}
