/* MindAligned shared styles */
/* Brand palette and typography. Apply to every page. */

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

:root {
  --bg: #0e0e10;
  --bg-elev: #141417;
  --fg: #e8e6e1;
  --fg-soft: #c8c5be;
  --muted: #8a8780;
  --muted-soft: #6a6862;
  --accent: #c9b88a;
  --accent-soft: rgba(201, 184, 138, 0.18);
  --field-bg: #1a1a1d;
  --field-border: rgba(232, 230, 225, 0.12);
  --field-border-hover: rgba(232, 230, 225, 0.28);
  --rule: rgba(232, 230, 225, 0.08);
  --maxw: 64rem;
  --maxw-narrow: 40rem;
  --shadow-soft: 0 1px 0 rgba(232, 230, 225, 0.04);
}

html, body { height: 100%; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--muted-soft); text-underline-offset: 3px; transition: color 0.2s ease, text-decoration-color 0.2s ease; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ---- Header / Nav ---- */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgba(14, 14, 16, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--fg);
}

.brand-link:hover { color: var(--fg); }

.brand-mark { width: 22px; height: 22px; flex-shrink: 0; }

.brand-word {
  font-family: ui-serif, Georgia, "Iowan Old Style", Baskerville, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-word .dot { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--fg);
}

@media (max-width: 640px) {
  .nav-links { gap: 1rem; font-size: 0.85rem; }
  .nav-links .nav-secondary { display: none; }
}

/* ---- Layout ---- */

main {
  flex: 1;
  width: 100%;
}

.wrap, .wrap-narrow {
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.wrap { max-width: var(--maxw); }
.wrap-narrow { max-width: var(--maxw-narrow); }

.section + .section { border-top: 1px solid var(--rule); }

/* ---- Typography ---- */

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.h-display {
  font-family: ui-serif, Georgia, "Iowan Old Style", Baskerville, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.h1 {
  font-family: ui-serif, Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.h2 {
  font-family: ui-serif, Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.h3 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  color: var(--fg);
}

.lede {
  font-family: ui-serif, Georgia, serif;
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  color: var(--fg-soft);
  line-height: 1.55;
  max-width: 36rem;
  margin-bottom: 2rem;
}

.body-text, p {
  font-size: 1rem;
  color: var(--fg-soft);
  margin-bottom: 1rem;
  max-width: 38rem;
}

.body-text.wide, p.wide { max-width: 50rem; }

ul, ol {
  margin: 0 0 1rem 1.5rem;
  color: var(--fg-soft);
}
li { margin-bottom: 0.4rem; }
li::marker { color: var(--muted); }

strong { color: var(--fg); font-weight: 600; }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

hr.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

/* ---- Buttons + CTA ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.1s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover { opacity: 0.92; color: var(--bg); }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--field-border);
}
.btn-ghost:hover { border-color: var(--field-border-hover); color: var(--fg); }

/* ---- Form ---- */

form.capture {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 26rem;
  margin: 0 0 1.5rem;
}

@media (min-width: 540px) {
  form.capture { flex-direction: row; }
}

form.capture input[type="email"] {
  flex: 1;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
}
form.capture input[type="email"]::placeholder { color: var(--muted); }
form.capture input[type="email"]:hover,
form.capture input[type="email"]:focus { border-color: var(--field-border-hover); }

.form-message {
  min-height: 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.form-message.success { color: var(--accent); }
.form-message.error { color: #d97a7a; }

/* ---- Card / Panel ---- */

.panel {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.75rem;
}

.price {
  font-family: ui-serif, Georgia, serif;
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--fg);
  line-height: 1;
}
.price .currency { font-size: 1.1rem; color: var(--muted); vertical-align: top; margin-right: 0.15rem; }
.price-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }

/* ---- Grid for features / pillars ---- */

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--bg);
  padding: 2.5rem 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .site-footer .wrap {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.site-footer .legal-block { line-height: 1.65; }
.site-footer .legal-block strong { color: var(--fg-soft); font-weight: 600; }
.site-footer .legal-block a { color: var(--muted); text-decoration-color: transparent; }
.site-footer .legal-block a:hover { color: var(--fg); text-decoration-color: var(--muted); }

.site-footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.85rem;
}
.site-footer .footer-nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer .footer-nav a:hover { color: var(--fg); }

.site-footer .copy-line {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.78rem;
  color: var(--muted-soft);
}

/* ---- Status pill / hero polish ---- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--field-border);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.pulse {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

.hero-mark {
  width: 56px;
  height: 56px;
  margin-bottom: 2rem;
}

.fade-in {
  animation: fadeIn 0.9s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Cookie banner ---- */

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 38rem;
  margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--field-border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: var(--fg-soft);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  z-index: 100;
}

.cookie-banner[hidden] { display: none; }

.cookie-banner p { margin: 0; flex: 1 1 16rem; }

.cookie-banner .cookie-actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-banner button {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--field-border);
  background: transparent;
  color: var(--fg);
  transition: opacity 0.2s ease, background 0.2s ease;
}
.cookie-banner button:hover { background: var(--field-bg); }
.cookie-banner button.accept {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.cookie-banner button.accept:hover { opacity: 0.92; background: var(--accent); }

/* ---- Util ---- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 2rem; }
.hidden { display: none !important; }

/* ---- Landing page hero image stripe ---- */

.page-hero-img {
  position: relative;
  width: 100%;
  height: 52vh;
  min-height: 260px;
  max-height: 500px;
  overflow: hidden;
}

.page-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14, 14, 16, 0.25) 0%,
    rgba(14, 14, 16, 0.55) 60%,
    rgba(14, 14, 16, 0.92) 100%
  );
}

/* ---- Print ---- */
@media print {
  .site-header, .site-footer, .cookie-banner { display: none; }
  body { background: #fff; color: #000; }
  .panel { border: 1px solid #ddd; background: #fff; }
}
