/* AlchoGin marketing site — shared styles */

:root {
  --copper: #c17a3e;
  --copper-light: #e0a86a;
  --amber: #d99a3f;
  --ink: #14110f;
  --ink-soft: #1e1a17;
  --charcoal: #2a2521;
  --parchment: #f6f1e9;
  --parchment-dim: #ded4c2;
  --line: rgba(246, 241, 233, 0.12);
  --max-width: 1120px;
  --radius: 10px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  color: #fff;
}

p { margin: 0 0 1em; color: var(--parchment-dim); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 17, 15, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.brand-word { letter-spacing: 0.01em; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--parchment-dim);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a.active,
.nav-links a:hover { color: #fff; text-decoration: none; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--copper-light), var(--copper));
  color: #1a1310 !important;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(193, 122, 62, 0.25);
}
.nav-cta:hover { text-decoration: none; filter: brightness(1.08); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(ellipse at 20% -10%, rgba(193, 122, 62, 0.25), transparent 55%),
    radial-gradient(ellipse at 90% 10%, rgba(217, 154, 63, 0.15), transparent 50%);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--copper);
  border-radius: 999px;
  color: var(--copper-light);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  max-width: 820px;
  line-height: 1.15;
}

.hero .lede {
  max-width: 640px;
  font-size: 1.15rem;
  color: var(--parchment-dim);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--copper-light), var(--copper));
  color: #1a1310;
}
.btn-primary:hover { filter: brightness(1.08); text-decoration: none; }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--parchment);
}
.btn-ghost:hover { border-color: var(--copper-light); color: #fff; text-decoration: none; }

/* ---------- Sections ---------- */

section { padding: 72px 0; }

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.section-head p { font-size: 1.05rem; }

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  gap: 24px;
}
.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(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(193,122,62,0.25), rgba(217,154,63,0.08));
  border: 1px solid rgba(193,122,62,0.35);
  margin-bottom: 18px;
  font-size: 1.3rem;
}

.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Spirit tabs strip ---------- */

.spirit-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.spirit-chip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  background: var(--charcoal);
  text-align: center;
}

.spirit-chip .glyph { font-size: 1.8rem; margin-bottom: 8px; }
.spirit-chip h4 { margin: 0 0 6px; font-size: 1.05rem; }
.spirit-chip p { font-size: 0.85rem; margin: 0; }

/* ---------- Process steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: stretch;
}

.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  background: var(--ink-soft);
  position: relative;
}

.step .num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--copper);
  color: #1a1310;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.step h4 { font-size: 0.98rem; margin-bottom: 6px; }
.step p { font-size: 0.82rem; margin: 0; }

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats .num {
  font-family: Georgia, serif;
  font-size: 2.2rem;
  color: var(--copper-light);
  font-weight: 700;
}
.stats .label { font-size: 0.9rem; color: var(--parchment-dim); }

/* ---------- Quote ---------- */

.quote {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 0;
}
.quote blockquote {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  color: #fff;
  margin: 0 0 16px;
  font-style: italic;
}
.quote cite { color: var(--copper-light); font-style: normal; font-size: 0.9rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, rgba(193,122,62,0.18), rgba(217,154,63,0.06));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band .btn { margin-top: 20px; }

/* ---------- Pricing ---------- */

.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  background: var(--ink-soft);
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--copper);
  box-shadow: var(--shadow);
  position: relative;
}
.price-card.featured::before {
  content: "Most Flexible";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--copper);
  color: #1a1310;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
.price-card h3 { font-size: 1.3rem; }
.price-card .tagline { color: var(--copper-light); font-size: 0.85rem; margin-bottom: 18px; }
.price-card ul { list-style: none; margin: 0 0 28px; padding: 0; flex: 1; }
.price-card li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
  color: var(--parchment-dim);
}
.price-card li:last-child { border-bottom: none; }

/* ---------- Forms ---------- */

.form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}

.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  color: var(--parchment-dim);
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--parchment);
  font-size: 0.95rem;
  font-family: inherit;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--copper-light);
}
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  text-align: center;
}
.contact-info .card h3 { font-size: 1rem; }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  color: var(--parchment-dim);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--parchment-dim); font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

/* ---------- Page header (non-home pages) ---------- */

.page-header {
  padding: 64px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% -20%, rgba(193,122,62,0.18), transparent 60%);
}
.page-header .eyebrow { margin-bottom: 16px; }
.page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-header p { max-width: 620px; margin: 12px auto 0; font-size: 1.05rem; }

/* ---------- Feature detail rows ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
}
.feature-row:not(:last-child) { border-bottom: 1px solid var(--line); }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-visual {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--charcoal), var(--ink-soft));
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--copper-light);
}

.feature-copy h2 { font-size: 1.6rem; }
.feature-copy ul { padding-left: 20px; color: var(--parchment-dim); }
.feature-copy li { margin-bottom: 8px; }

/* ---------- How It's Made: spirit jump-nav ---------- */

.spirit-jumpnav {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.spirit-jumpnav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--parchment);
  font-size: 0.9rem;
  font-weight: 600;
}
.spirit-jumpnav a:hover {
  border-color: var(--copper-light);
  color: #fff;
  text-decoration: none;
}

/* ---------- How It's Made: per-spirit section ---------- */

.craft-section {
  padding: 72px 0;
  scroll-margin-top: 90px;
}
.craft-section:not(:last-of-type) { border-bottom: 1px solid var(--line); }
.craft-section:nth-of-type(even) {
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
}

.craft-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.craft-header .glyph-badge {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(193,122,62,0.28), rgba(217,154,63,0.08));
  border: 1px solid rgba(193,122,62,0.35);
}
.craft-header h2 { margin-bottom: 4px; font-size: 1.9rem; }
.craft-header .craft-tagline { color: var(--copper-light); font-size: 0.95rem; margin: 0; }

.craft-at-a-glance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}
.craft-at-a-glance .fact {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--ink-soft);
}
.craft-at-a-glance .fact .k {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--parchment-dim);
  margin-bottom: 4px;
}
.craft-at-a-glance .fact .v {
  font-family: Georgia, serif;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}

.craft-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: craftstep;
}
.craft-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  position: relative;
  padding-bottom: 32px;
}
.craft-step:last-child { padding-bottom: 0; }
.craft-step::before {
  /* connecting line */
  content: "";
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.craft-step:last-child::before { display: none; }

.craft-step .num {
  counter-increment: craftstep;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--copper-light), var(--copper));
  color: #1a1310;
  font-family: Georgia, serif;
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  z-index: 1;
}
.craft-step .num::before { content: counter(craftstep); }

.craft-step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.craft-step p { margin-bottom: 0; font-size: 0.95rem; }

.craft-callout {
  margin-top: 40px;
  border: 1px dashed var(--copper);
  border-radius: var(--radius);
  padding: 20px 24px;
  background: rgba(193, 122, 62, 0.08);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.craft-callout .glyph { font-size: 1.4rem; flex: none; }
.craft-callout p { margin-bottom: 0; font-size: 0.92rem; color: var(--parchment-dim); }
.craft-callout strong { color: #fff; }

/* ---------- Data tables (Modules, Platform) ---------- */

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  font-size: 0.92rem;
}
.data-table th {
  background: var(--ink-soft);
  color: #fff;
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 2px solid var(--copper);
}
.data-table td {
  padding: 14px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--parchment-dim);
}
.data-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.data-table td strong { color: #fff; }

/* ---------- Flow chain (module form pipelines) ---------- */

.flow-chain {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.flow-chain .fstep {
  background: var(--ink-soft);
  border: 1px solid var(--copper);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 16px;
  border-radius: 8px;
}
.flow-chain .farrow { color: var(--copper-light); font-weight: 700; font-size: 1.1rem; }

/* ---------- Worked example callout ---------- */

.example-callout {
  border: 1.5px dashed var(--copper);
  border-radius: var(--radius);
  padding: 24px 28px;
  background: rgba(193, 122, 62, 0.06);
  margin-bottom: 32px;
}
.example-callout .ribbon {
  display: inline-block;
  background: var(--ink);
  border: 1px solid var(--copper);
  color: var(--copper-light);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.example-callout p { margin-bottom: 0; font-size: 0.95rem; }
.example-callout .mono {
  font-family: "Courier New", monospace;
  background: rgba(255,255,255,0.06);
  padding: 2px 7px;
  border-radius: 4px;
  color: #fff;
  font-size: 0.88rem;
}
.example-callout .result { color: var(--copper-light); font-weight: 700; }

/* ---------- Module section wrapper (mirrors craft-section) ---------- */

.module-section {
  padding: 72px 0;
  scroll-margin-top: 90px;
}
.module-section:not(:last-of-type) { border-bottom: 1px solid var(--line); }
.module-section:nth-of-type(even) {
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 48px;
}
.faq-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq-item .q {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 700;
}
.faq-item .q::before { content: "Q. "; color: var(--copper-light); }
.faq-item .a { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Roles table wrapper ---------- */

.role-table-wrap { margin-bottom: 32px; }

/* ---------- Map embed ---------- */

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 320px;
  filter: grayscale(0.15) contrast(1.05);
}
.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
}

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

.footer-address {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--parchment-dim);
  line-height: 1.6;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .spirit-strip { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(1, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; direction: ltr; }
  .contact-info { grid-template-columns: 1fr; }
  .form-two { grid-template-columns: 1fr; }
  .craft-at-a-glance { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .data-table { font-size: 0.85rem; }
  .data-table th, .data-table td { padding: 10px 12px; }
}

@media (max-width: 520px) {
  .craft-step { grid-template-columns: 40px 1fr; gap: 14px; }
  .craft-step .num { width: 40px; height: 40px; font-size: 1rem; }
  .craft-step::before { left: 19px; top: 40px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
}
