/* SMarkIQ: warm, friendly, mobile-first styles.
   Change brand colors in :root below. */

:root {
  --bg: #FFF9F2;          /* warm cream page background */
  --bg-alt: #FBEFE3;      /* peach tint for alternating sections */
  --surface: #FFFFFF;
  --text: #2E2620;        /* warm near-black */
  --muted: #5E5248;
  --accent: #B3471D;      /* terracotta */
  --accent-hover: #8F3815;
  --accent-soft: #F7DCCB;
  --sage: #2F6650;        /* secondary green */
  --sage-soft: #DDEBE3;
  --border: #EADBCB;
  --focus: #1F5FBF;
  --error: #A3261B;
  --success: #24613F;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(46, 38, 32, .06), 0 6px 20px rgba(46, 38, 32, .06);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

[id] { scroll-margin-top: 84px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.center { text-align: center; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--text); color: #fff;
  padding: .6em 1em; border-radius: var(--radius-sm);
  z-index: 100; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font: 600 1rem/1.2 var(--font-body);
  padding: .9em 1.4em;
  border: 2px solid var(--accent);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-hover); }
.btn-small { padding: .55em 1.1em; font-size: .95rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 249, 242, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 700 1.3rem/1 var(--font-head);
  color: var(--text); text-decoration: none;
}
.brand:hover { color: var(--text); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px;
  position: relative; transition: transform .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav.open {
  display: block;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.site-nav ul { list-style: none; margin: 0; padding: 8px 16px 16px; }
.site-nav li a:not(.btn) {
  display: block; padding: .75em 0;
  color: var(--text); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.site-nav li a:not(.btn):hover { color: var(--accent); }
.site-nav .btn { margin-top: 12px; }

/* Without JS, show the nav as a simple list */
.no-js .nav-toggle { display: none; }
.no-js .site-nav { display: block; }

/* Hero */
.hero { padding: 56px 0 64px; background:
  radial-gradient(1100px 420px at 85% -10%, var(--accent-soft), transparent 70%),
  radial-gradient(800px 380px at -10% 110%, var(--sage-soft), transparent 70%); }
.hero-inner { max-width: 860px; }
.eyebrow {
  display: inline-block;
  font-weight: 600; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--sage);
  background: var(--sage-soft);
  padding: .35em .85em; border-radius: 999px;
  margin-bottom: 1.2em;
}
.lead { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-intro { color: var(--muted); max-width: 680px; margin-bottom: 2em; }

/* Cards */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 14px;
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.step p { margin: 0; color: var(--muted); }
.step-num {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--sage); color: #fff;
  font: 700 1.1rem/1 var(--font-head);
}

/* Feature list */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.feature-list li { border-left: 4px solid var(--accent); padding-left: 18px; }
.feature-list p { color: var(--muted); margin: 0; }

/* Zite */
.two-col { display: grid; gap: 32px; }
.zite-points {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.zite-points h3:not(:first-child) { margin-top: 1.2em; }
.check-list { list-style: none; margin: 0 0 1em; padding: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: .6em; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: .45em;
  width: 16px; height: 9px;
  border-left: 3px solid var(--sage); border-bottom: 3px solid var(--sage);
  transform: rotate(-45deg);
}

/* Pricing */
.pricing-box {
  display: grid; gap: 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.pricing-box p { color: var(--muted); margin: 0; }

/* FAQ */
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 10px;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 48px 18px 20px; position: relative;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem; line-height: 1; color: var(--accent);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* Form */
.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit; color: var(--text);
  background: var(--bg);
  border: 1.5px solid #8F7A68;
  border-radius: var(--radius-sm);
  padding: .7em .85em;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .92rem; margin: 6px 0 0; }
.hint { font-size: .92rem; color: var(--muted); margin: 6px 0 0; }
.contact-form > .hint { margin: 0 0 18px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 16px 0 0; font-weight: 600; }
.form-status.success { color: var(--success); }
.form-status.error { color: var(--error); }

/* Footer */
.site-footer { background: var(--text); color: #EFE6DC; padding: 36px 0; font-size: .95rem; }
.site-footer a { color: #FFD8C2; }
.site-footer a:hover { color: #fff; }
.footer-inner p { margin: 0 0 .5em; }
.footer-links { list-style: none; padding: 0; margin: 12px 0 0; display: flex; gap: 20px; flex-wrap: wrap; }

/* Simple content pages (privacy, 404, thanks) */
.page { padding: 48px 0 72px; }
.page h2 { font-size: 1.35rem; margin-top: 1.6em; }
.notice {
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 1.5em;
}

/* Tablet */
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
  .pricing-box { grid-template-columns: repeat(3, 1fr); padding: 28px; }
  .contact-form { padding: 32px; }
  .hero { padding: 80px 0 88px; }
  .section { padding: 80px 0; }
}

/* Desktop */
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open {
    display: block; position: static; background: none; border: 0; box-shadow: none;
  }
  .site-nav ul { display: flex; align-items: center; gap: 24px; padding: 0; }
  .site-nav li a:not(.btn) { border: 0; padding: .4em 0; }
  .site-nav .btn { margin-top: 0; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1.1fr 1fr; align-items: start; gap: 48px; }
  .hero { padding: 104px 0 112px; }
}
