/* Silamite — marketing site. Vanilla CSS, no build step (ADR 0001). */

:root {
  --ink: #14181f;
  --ink-2: #232a35;
  --muted: #5b6472;
  --line: #e4e8ee;
  --paper: #ffffff;
  --paper-2: #f5f7f9;
  --teal: #0d9488;
  --teal-dark: #0b7a70;
  --teal-soft: #e6f4f2;
  --amber: #b45309;
  --amber-soft: #fdf3e3;
  --green: #15803d;
  --red: #b91c1c;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 24, 31, 0.05), 0 8px 24px rgba(20, 24, 31, 0.07);
  --shadow-lift: 0 2px 4px rgba(20, 24, 31, 0.06), 0 16px 40px rgba(20, 24, 31, 0.13);
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  font-family: var(--font-display);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,0.6); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper-2); }
.btn-lg { padding: 0.85rem 1.7rem; font-size: 1.02rem; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--ink);
  color: #cbd2dc;
  font-size: 0.85rem;
  padding: 0.4rem 0;
}
.topbar-inner { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.topbar a { color: #e7ebf1; }
.topbar-sep { opacity: 0.5; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 16px rgba(20, 24, 31, 0.06);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; padding: 0.8rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { flex: 0 0 auto; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.1; }
.brand-name small { display: block; font-size: 0.68rem; font-weight: 500; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

.site-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.site-nav a { color: var(--ink-2); font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--teal); text-decoration: none; }
.site-nav a.active { color: var(--teal); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 0.7rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(13, 148, 136, 0.22), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(180, 83, 9, 0.14), transparent 55%),
    var(--ink);
  color: #fff;
  padding: 4.5rem 0 4rem;
}
.hero h1 { color: #fff; max-width: 17ch; }
.hero .eyebrow { color: #7fd9cf; }
.hero .lede {
  color: #c4ccd7;
  font-size: 1.12rem;
  max-width: 56ch;
  margin-bottom: 1.6rem;
}
.hero-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  margin-top: 2.6rem;
  overflow: hidden;
}
.stat { background: rgba(20, 24, 31, 0.85); padding: 1rem 1.2rem; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: #7fd9cf; }
.stat .lbl { font-size: 0.82rem; color: #aab3c0; }

/* ---------- Sections ---------- */
.section { padding: 3.8rem 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink); color: #e7ebf1; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 62ch; margin-bottom: 2.2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-dark .section-head p { color: #aab3c0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.3rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

/* steps */
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 999px;
  display: inline-block;
  padding: 0.15rem 0.7rem;
  margin-bottom: 0.7rem;
}

/* ---------- Sample cards (marketing) ---------- */
.sample-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sample-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.sample-thumb {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}
.sample-thumb.teal { background: linear-gradient(135deg, #0e7490, #155e75); }
.sample-thumb.blue { background: linear-gradient(135deg, #12365a, #1d4f80); }
.sample-thumb.cream { background: linear-gradient(135deg, #6b4f3a, #b5622f); }
.sample-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.sample-body .kind { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sample-body h3 { margin: 0; }
.sample-body p { color: var(--muted); font-size: 0.93rem; flex: 1; }
.sample-body .btn { align-self: flex-start; margin-top: 0.5rem; }

/* ---------- Pricing ---------- */
.price-card { text-align: left; position: relative; }
.price-card.featured { border: 2px solid var(--teal); }
.price-card .ribbon {
  position: absolute;
  top: -12px;
  right: 18px;
  background: var(--teal);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
}
.price { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; }
.price span.per { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; }
.price-card li { display: flex; gap: 0.6rem; padding: 0.28rem 0; font-size: 0.95rem; color: var(--ink-2); }
.price-card li svg { flex: 0 0 auto; margin-top: 0.25rem; color: var(--green); }

.bundle-note {
  background: var(--amber-soft);
  border: 1px solid #f0dcb8;
  color: #7c4a08;
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  font-size: 0.93rem;
  margin-top: 1.2rem;
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.9rem 1.1rem;
  list-style: none;
  position: relative;
  padding-right: 2.4rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--teal);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 1.1rem 1rem; color: var(--muted); font-size: 0.95rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.contact-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-card:last-child { border-bottom: none; }
.contact-card .icon-circle { margin-bottom: 0; flex: 0 0 auto; width: 42px; height: 42px; }
.contact-card strong { display: block; margin-bottom: 0.1rem; }

.form-panel h3 { margin-bottom: 0.9rem; }
.form-panel label { display: block; font-weight: 600; font-size: 0.88rem; margin: 0.8rem 0 0.25rem; }
.form-panel .optional { font-weight: 400; color: var(--muted); }
.form-panel input,
.form-panel textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: var(--paper);
}
.form-panel input:focus,
.form-panel textarea:focus { outline: 2px solid var(--teal); border-color: transparent; }
.form-panel textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.7rem; }

.next-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.next-steps li {
  counter-increment: step;
  position: relative;
  padding: 0.5rem 0 0.5rem 2.6rem;
  border-bottom: 1px solid var(--line);
}
.next-steps li:last-child { border-bottom: none; }
.next-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 700;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(13, 148, 136, 0.35), transparent 60%),
    var(--teal-dark);
  color: #fff;
  padding: 3.4rem 0;
}
.cta-band .inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 0.3rem; }
.cta-band p { color: #cde8e4; margin: 0; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: 2.6rem 0;
}
.page-hero .breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.4rem; }
.page-hero h1 { margin-bottom: 0.4rem; }
.page-hero p { color: var(--muted); max-width: 60ch; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aab3c0; padding: 3rem 0 1.5rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 0.7rem; }
.site-footer p { font-size: 0.9rem; max-width: 40ch; }
.site-footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.7rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 0.18rem 0; font-size: 0.9rem; }
.site-footer a { color: #cbd2dc; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  font-size: 0.8rem;
  color: #7d8794;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-actions .btn { display: none; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.8rem 1.5rem; }
  .section { padding: 2.8rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
