/* ==========================================================
   marketing.css — shared styles for public marketing pages
   (homepage, template detail page). Extracted from index.html
   so template.html and other pages can reuse the same look
   without duplicating the whole <style> block.
   ========================================================== */

<style>
  :root {
    --bg: #ffffff;
    --bg-soft: #f6f5f2;
    --ink: #0f0e0c;
    --ink-muted: #68625a;
    --line: #e7e2d9;
    --accent: #b8892f;
    --accent-soft: #f1e4c8;
    --pill: #111111;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 26px;
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.75rem;
    --space-4: 3rem;
    --space-5: 5.5rem;
    --max-width: 1160px;
    --font-display: "Manrope", "Helvetica Neue", sans-serif;
    --font-body: "Inter", "Helvetica Neue", sans-serif;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }

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

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

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

  .eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: var(--space-2);
  }
  .eyebrow--center { text-align: center; }

  h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; margin: 0; }

  .heading-xl {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    line-height: 1.05;
  }
  .heading-lg {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    line-height: 1.12;
  }
  .heading-sm { font-size: 1.15rem; font-weight: 700; }

  .text-muted { color: var(--ink-muted); }
  .text-center { text-align: center; }

  /* ---- Buttons ---- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.7rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1.5px solid var(--line);
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
  }
  .btn:hover { transform: translateY(-1px); }
  .btn--solid {
    background: var(--pill);
    color: #fff;
    border-color: var(--pill);
  }
  .btn--solid:hover { background: #2a2a2a; }
  .btn--ghost { background: transparent; }
  .btn--ghost:hover { border-color: var(--ink); }
  .btn--sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }

  section { padding: var(--space-5) 0; }
  .section--tight { padding: var(--space-4) 0; }
  .section--soft { background: var(--bg-soft); }

  /* ---- Header ---- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .site-header__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.9rem var(--space-3);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .site-header__mark {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
  }
  .site-header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }
  .site-header__links {
    display: flex;
    gap: var(--space-3);
    font-size: 0.92rem;
    font-weight: 500;
  }
  .site-header__links a { text-decoration: none; color: var(--ink); }
  .site-header__links a:hover { color: var(--accent); }
  .site-header__menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  /* ---- Hero ---- */
  .hero {
    padding: var(--space-5) 0 var(--space-4);
    text-align: center;
  }
  .hero__lede {
    max-width: 620px;
    margin: 0 auto var(--space-3);
    font-size: 1.08rem;
  }
  .hero__ctas {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-bottom: var(--space-2);
  }
  .hero__meta {
    font-size: 0.82rem;
    color: var(--ink-muted);
  }
  .hero__meta span:not(:last-child)::after {
    content: "·";
    margin: 0 0.6em;
  }

  /* ---- Signature: fanned theme-preview cards ---- */
  .theme-fan {
    position: relative;
    height: 340px;
    max-width: 720px;
    margin: var(--space-5) auto 0;
  }
  .mini-card {
    position: absolute;
    top: 20px;
    width: 168px;
    height: 300px;
    border-radius: 20px;
    border: 6px solid #111;
    box-shadow: 0 24px 50px rgba(15, 14, 12, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.2rem 0.8rem;
    transition: transform 260ms ease;
  }
  .mini-card:hover { transform: translateY(-10px) rotate(0deg) !important; z-index: 10; }
  .mini-card__amp { font-size: 0.85rem; opacity: 0.75; margin: 0.3rem 0; }
  .mini-card__name { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }

  /* ---- Template cards ---- */
  .filter-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: var(--space-3) 0 var(--space-4);
  }
  .filter-pill {
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
  }
  .filter-pill.is-active { background: var(--pill); color: #fff; border-color: var(--pill); }

  .template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: var(--space-3);
  }
  .template-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 220ms ease, box-shadow 220ms ease;
  }
  .template-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(15, 14, 12, 0.08); }
  .template-card__preview {
    width: 140px;
    height: 240px;
    border-radius: 18px;
    border: 5px solid #111;
    margin-bottom: var(--space-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.9rem 0.6rem;
    overflow: hidden;
  }
  .template-card__amp { font-size: 0.7rem; opacity: 0.7; margin: 0.25rem 0; }
  .template-card__name-mini { font-size: 0.85rem; font-weight: 600; }
  .template-card h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
  .template-card__tag {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
    background: var(--bg-soft);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    margin: 0.4rem 0 0.8rem;
  }

  /* ---- Feature checklist (two column) ---- */
  .feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    align-items: start;
  }
  .feature-row {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    border-top: 1px solid var(--line);
  }
  .feature-row:first-child { border-top: none; }
  .feature-row__icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
  }
  .feature-row h3 { font-size: 1rem; margin-bottom: 0.2rem; }
  .feature-row p { margin: 0; font-size: 0.9rem; }

  /* ---- Comparison table ---- */
  .compare {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 780px;
    margin: 0 auto;
  }
  .compare table { width: 100%; border-collapse: collapse; }
  .compare th, .compare td {
    padding: 1rem 1.2rem;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid var(--line);
  }
  .compare th { font-family: var(--font-display); font-weight: 700; padding-top: 1.3rem; }
  .compare td:first-child, .compare th:first-child { text-align: left; }
  .compare tr:first-child th { border-top: none; }
  .compare .compare__vow {
    background: var(--pill);
    color: #fff;
  }
  .compare th.compare__vow { border-radius: 0; }

  /* ---- Steps ---- */
  .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }
  .step {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    background: #fff;
  }
  .step__num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.1em;
  }
  .step h3 { margin: 0.6rem 0 0.4rem; font-size: 1.15rem; }

  /* ---- Pricing ---- */
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: var(--space-3);
  }
  .pricing-card {
    border: 1.5px solid var(--line);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    text-align: center;
  }
  .pricing-card--featured {
    border-color: var(--ink);
    box-shadow: 0 20px 45px rgba(15, 14, 12, 0.1);
  }
  .pricing-card__price {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.1rem;
    margin: 0.6rem 0;
  }

  /* ---- FAQ ---- */
  .faq { max-width: 720px; margin: 0 auto; }
  .faq details {
    border-top: 1px solid var(--line);
    padding: 1.1rem 0;
  }
  .faq details:last-child { border-bottom: 1px solid var(--line); }
  .faq summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after {
    content: "+";
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--ink-muted);
    flex-shrink: 0;
    transition: transform 200ms ease;
  }
  .faq details[open] summary::after { content: "\2212"; }
  .faq p {
    margin: 0.8rem 0 0;
    color: var(--ink-muted);
    font-size: 0.92rem;
    max-width: 600px;
  }

  /* ---- Footer ---- */
  .site-footer {
    background: var(--bg-soft);
    padding: var(--space-5) 0 var(--space-3);
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
  }
  .footer-grid h4 {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin: 0 0 0.9rem;
  }
  .footer-grid ul { list-style: none; margin: 0; padding: 0; }
  .footer-grid li { margin-bottom: 0.6rem; }
  .footer-grid a { text-decoration: none; font-size: 0.92rem; }
  .footer-grid a:hover { color: var(--accent); }
  .footer-cta {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    flex-wrap: wrap;
  }
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding-top: var(--space-3);
    border-top: 1px solid var(--line);
    font-size: 0.8rem;
    color: var(--ink-muted);
  }

  @media (max-width: 860px) {
    .feature-split { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .compare th, .compare td { padding: 0.8rem 0.6rem; font-size: 0.8rem; }
  }
  @media (max-width: 640px) {
    .site-header__links { display: none; }
    .site-header__menu-btn { display: flex; }
    .theme-fan { height: 260px; }
    .mini-card { width: 120px; height: 220px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-cta { flex-direction: column; align-items: flex-start; }
  }
