/* Website Factory — shared stylesheet. Mobile-first, no frameworks. */

:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #1c1a17;
  --muted: #6b6257;
  --line: #e7dfd3;
  --accent: #c2410c;          /* factory orange */
  --accent-dark: #9a3412;
  --accent-soft: #ffedd5;
  --dark: #1c1a17;
  --dark-ink: #f5f1ea;
  --radius: 10px;
  --shadow: 4px 4px 0 rgba(28, 26, 23, 0.9);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 2px solid var(--ink);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 20px; max-width: 1080px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 8px;
  background: var(--accent); color: #fff; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 18px;
}
.brand-name { font-weight: 800; letter-spacing: -0.01em; font-size: 1.05rem; }
.brand-name small { display: block; font-weight: 600; font-size: 0.68rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: 2px solid var(--ink); border-radius: 8px;
  padding: 9px 10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); }
.nav-toggle[aria-expanded="true"] { background: var(--accent-soft); }

.site-nav { display: none; border-top: 2px solid var(--ink); background: var(--surface); }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 8px 20px 16px; display: grid; gap: 2px; }
.site-nav a {
  display: block; padding: 10px 4px; text-decoration: none; color: var(--ink);
  font-weight: 600; border-bottom: 1px solid var(--line);
}
.site-nav a:hover { color: var(--accent-dark); }
.site-nav a[aria-current="page"] { color: var(--accent-dark); box-shadow: inset 3px 0 0 var(--accent); padding-left: 10px; }
.nav-cta { margin-top: 10px; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; border-top: 0; }
  .site-nav ul {
    display: flex; align-items: center; gap: 4px;
    padding: 0; max-width: 1080px; margin: 0 auto; padding: 0 20px;
  }
  .site-nav a { border-bottom: 0; padding: 14px 10px; font-size: 0.95rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); padding-left: 10px; }
  .header-inner { padding-bottom: 0; }
  .nav-cta { margin: 0 0 0 8px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; cursor: pointer;
  border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 12px 22px; font-size: 1rem; line-height: 1.2;
  background: var(--accent); color: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { color: #fff; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 rgba(28,26,23,.9); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(28,26,23,.9); }
.btn-secondary { background: var(--surface); color: var(--ink); }
.btn-secondary:hover { color: var(--ink); background: var(--accent-soft); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: var(--shadow); }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 36px; border-bottom: 2px solid var(--ink); background:
  radial-gradient(1200px 300px at 50% -80px, var(--accent-soft), transparent); }
.hero-kicker {
  display: inline-block; font-family: var(--mono); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-dark);
  border: 2px solid var(--accent-dark); border-radius: 999px; padding: 4px 14px; margin-bottom: 16px;
  background: #fff;
}
.hero h1 { font-size: clamp(2rem, 5.4vw, 3.2rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 16px; }
.hero p.lede { font-size: 1.12rem; color: var(--muted); max-width: 640px; margin: 0 0 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 20px; font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section-alt { background: var(--surface); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.section h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -0.015em; margin: 0 0 8px; }
.section .sub { color: var(--muted); max-width: 680px; margin: 0 0 28px; }

/* ---------- Package cards ---------- */
.cards { display: grid; gap: 20px; }
@media (min-width: 860px) { .cards { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.card {
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column;
}
.card.featured { background: var(--dark); color: var(--dark-ink); border-color: var(--ink); }
.card.featured .price, .card.featured h3 { color: #fff; }
.card.featured .card-list li { border-color: rgba(245,241,234,.25); }
.card.featured .card-note { color: #d8d0c2; }
.card-tag {
  align-self: flex-start; font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; background: var(--accent);
  color: #fff; border-radius: 999px; padding: 3px 12px; margin-bottom: 12px;
}
.card h3 { margin: 0 0 4px; font-size: 1.35rem; }
.price { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 2px; }
.price small { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.card.featured .price small { color: #d8d0c2; }
.card-blurb { color: var(--muted); font-size: 0.95rem; margin: 0 0 16px; }
.card.featured .card-blurb { color: #d8d0c2; }
.card-list { list-style: none; margin: 0 0 20px; padding: 0; font-size: 0.95rem; }
.card-list li { padding: 8px 0 8px 26px; border-top: 1px solid var(--line); position: relative; }
.card-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent-dark); font-weight: 800; }
.card.featured .card-list li::before { color: var(--accent); }
.card .btn { margin-top: auto; }
.card-note { font-size: 0.82rem; color: var(--muted); margin-top: 12px; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step {
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 18px; position: relative;
}
.step-num {
  font-family: var(--mono); font-weight: 800; font-size: 0.8rem; color: #fff;
  background: var(--ink); border-radius: 999px; width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.step h3 { margin: 0 0 6px; font-size: 1.02rem; }
.step p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* ---------- SLA table ---------- */
.sla { width: 100%; border-collapse: collapse; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; font-size: 0.95rem; }
.sla th, .sla td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.sla th { background: var(--ink); color: #fff; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.sla tr:last-child td { border-bottom: 0; }
.sla td strong { white-space: nowrap; }

/* ---------- Spec lists (package detail pages) ---------- */
.spec-grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .spec-grid { grid-template-columns: 1fr 1fr; } }
.spec-box { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.spec-box h2 { font-size: 1.25rem; margin: 0 0 12px; }
.spec-box ul { margin: 0; padding: 0; list-style: none; }
.spec-box li { padding: 8px 0 8px 28px; position: relative; border-top: 1px solid var(--line); font-size: 0.96rem; }
.spec-box li:first-child { border-top: 0; }
.spec-box.included li::before { content: "✓"; position: absolute; left: 6px; color: #15803d; font-weight: 800; }
.spec-box.excluded { background: #fff7f5; }
.spec-box.excluded li::before { content: "✕"; position: absolute; left: 6px; color: #b91c1c; font-weight: 800; }
.fineprint { font-size: 0.86rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 16px 18px; }
.faq-list summary { font-weight: 700; cursor: pointer; font-size: 1.02rem; }
.faq-list summary::marker { color: var(--accent-dark); }
.faq-list details p { margin: 10px 0 0; color: var(--ink); }
.faq-list details p + p { margin-top: 8px; }

/* ---------- Forms ---------- */
.form-shell { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field label .req { color: var(--accent-dark); }
.field .hint { font-size: 0.84rem; color: var(--muted); margin: 4px 0 0; }
.field input[type="text"], .field input[type="email"], .field input[type="url"],
.field input[type="tel"], .field select, .field textarea {
  width: 100%; border: 2px solid var(--ink); border-radius: 8px; padding: 11px 12px;
  font: inherit; background: #fff; color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent-dark); }
.field .error-msg { display: none; color: #b91c1c; font-size: 0.86rem; font-weight: 600; margin-top: 6px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b91c1c; }
.field.invalid .error-msg { display: block; }
.check-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.check-row input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent-dark); flex-shrink: 0; }
.radio-cards { display: grid; gap: 10px; }
@media (min-width: 640px) { .radio-cards { grid-template-columns: repeat(3, 1fr); } }
.radio-card { border: 2px solid var(--ink); border-radius: var(--radius); padding: 14px; cursor: pointer; background: #fff; }
.radio-card input { accent-color: var(--accent-dark); }
.radio-card:has(input:checked) { background: var(--accent-soft); border-color: var(--accent-dark); }
.radio-card strong { display: block; }
.radio-card .rc-price { font-weight: 800; color: var(--accent-dark); }

.notice {
  border: 2px solid var(--ink); border-radius: var(--radius); padding: 16px 18px;
  background: #fffbeb; margin-bottom: 20px; font-size: 0.95rem;
}
.notice strong { display: block; margin-bottom: 4px; }
.notice.info { background: #eff6ff; }
.notice.ok { background: #f0fdf4; }
.form-status { margin-top: 18px; }

/* ---------- Tools (guides) ---------- */
.tool { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.tool fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.tool legend { font-weight: 800; font-size: 1.05rem; padding: 0; margin-bottom: 8px; }
.tool-result { display: none; border: 2px dashed var(--accent-dark); border-radius: var(--radius); background: var(--accent-soft); padding: 22px; margin-top: 20px; }
.tool-result.show { display: block; }
.tool-result h3 { margin-top: 0; }
.result-price { font-size: 1.8rem; font-weight: 800; }

/* ---------- Terms ---------- */
.terms h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.terms h2:first-of-type { margin-top: 0; }
.terms p, .terms li { font-size: 0.98rem; }
.terms ul { padding-left: 22px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--dark); color: var(--dark-ink); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 48px 0; text-align: center; }
.cta-band h2 { color: #fff; margin: 0 0 10px; font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
.cta-band p { color: #d8d0c2; max-width: 600px; margin: 0 auto 22px; }
.cta-band .btn { margin: 0 6px 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 2px solid var(--ink); padding: 40px 0 24px; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.94rem; }
.footer-grid a { text-decoration: none; color: var(--ink); }
.footer-grid a:hover { color: var(--accent-dark); text-decoration: underline; }
.footer-brand p { font-size: 0.92rem; color: var(--muted); margin: 8px 0 0; }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 0.85rem; color: var(--muted); }
.powered { font-weight: 600; color: var(--muted); }

/* ---------- Misc ---------- */
.breadcrumb { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.two-col { display: grid; gap: 24px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { padding: 8px 0 8px 28px; position: relative; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist li::before { content: "→"; position: absolute; left: 4px; color: var(--accent-dark); font-weight: 800; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
