/* Cattail.Nu Mandala Art Creator — marketing site
   Palette: porcelain-lilac ground, royal violet, sapphire, gilt-gold lace accents.
   Tuned to sit beside the app screenshots (periwinkle UI, royal-blue labels). */

:root {
  --ink: #241d3f;
  --ink-soft: #574e7a;

  --porcelain: #f7f5fd;
  --porcelain-deep: #ece8f8;
  --card: #ffffff;

  --royal: #3a2d7d;
  --royal-deep: #201644;
  --royal-bright: #4f41c4;
  --sapphire: #2a3fb8;

  --lilac: #ddd6f4;
  --lilac-soft: #eeeafa;
  --line: #ded7f0;

  --gold: #a8823a;
  --gold-bright: #cba85c;

  --radius: 20px;
  --shadow: 0 18px 40px -22px rgba(36, 22, 68, 0.45);
  --shadow-lift: 0 26px 50px -24px rgba(36, 22, 68, 0.5);
  --maxw: 1160px;

}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  background-color: var(--porcelain);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Lace ground: a faint filigree lattice under two soft violet washes. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(900px 620px at 88% -8%, rgba(79, 65, 196, 0.14), transparent 70%),
    radial-gradient(760px 540px at -6% 12%, rgba(42, 63, 184, 0.1), transparent 70%),
    url("../assets/lace-pattern.svg");
  background-size: auto, auto, 120px 120px;
  opacity: 1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(247, 245, 253, 0.55) 0%, rgba(247, 245, 253, 0.86) 55%, rgba(247, 245, 253, 0.92) 100%);
}

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: 0.005em;
  margin: 0 0 0.45em;
  color: var(--royal-deep);
}

p { margin: 0 0 1em; }

a { color: var(--sapphire); text-underline-offset: 3px; }
a:hover { color: var(--royal); }

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

::selection { background: var(--lilac); color: var(--royal-deep); }

:focus-visible {
  outline: 2px solid var(--royal-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 247, 254, 0.86);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

/* gilt hairline under the header */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 130, 58, 0.55) 22%, rgba(168, 130, 58, 0.55) 78%, transparent);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--royal-deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 2px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--lilac), 0 0 0 3px rgba(255, 255, 255, 0.9), 0 0 0 4px rgba(168, 130, 58, 0.35);
}

.brand small {
  display: block;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 600;
  font-size: 0.68rem;
  color: var(--ink-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.main-nav a:hover {
  background: var(--lilac-soft);
  border-color: var(--lilac);
  color: var(--royal);
}

.main-nav a[aria-current="page"] {
  background: linear-gradient(135deg, var(--royal) 0%, var(--royal-bright) 100%);
  border-color: rgba(168, 130, 58, 0.5);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--royal);
  border-radius: 12px;
  width: 44px;
  height: 40px;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--royal);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span { top: 18px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(249, 247, 254, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav ul { flex-direction: column; padding: 12px 24px 20px; gap: 2px; }
  .main-nav a { display: block; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--royal) 0%, var(--royal-bright) 100%);
  color: #fff;
  border-color: rgba(203, 168, 92, 0.6);
  box-shadow: 0 14px 30px -14px rgba(58, 45, 125, 0.75);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--royal-deep) 0%, var(--royal) 100%);
  box-shadow: 0 18px 34px -14px rgba(58, 45, 125, 0.8);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--lilac);
  color: var(--royal);
}
.btn-ghost:hover {
  background: var(--card);
  border-color: var(--royal-bright);
  color: var(--royal-deep);
}
.btn-ghost[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--royal) 0%, var(--royal-bright) 100%);
  color: #fff;
  border-color: rgba(203, 168, 92, 0.6);
}

/* accent button — gilt */
.btn-clay {
  background: linear-gradient(135deg, #96702c 0%, var(--gold-bright) 100%);
  color: #2a1f06;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 14px 30px -16px rgba(150, 112, 44, 0.85);
}
.btn-clay:hover { background: linear-gradient(135deg, #7f5e23 0%, #bd9a4e 100%); color: #fff; }

.btn[aria-disabled="true"] {
  background: var(--lilac-soft);
  color: var(--ink-soft);
  border-color: var(--lilac);
  box-shadow: none;
  cursor: default;
  transform: none;
}
.btn[aria-disabled="true"]:hover { background: var(--lilac-soft); transform: none; }

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 48px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--royal);
  background: linear-gradient(180deg, #fff 0%, var(--lilac-soft) 100%);
  border: 1px solid var(--lilac);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 1px 0 rgba(168, 130, 58, 0.25);
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.1rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 0.3em;
}

.hero .lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: 30px;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* gilt halo + soft glow behind the rotating mandala */
.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  aspect-ratio: 1;
  pointer-events: none;
}

.hero-art::before {
  width: min(120%, 560px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 38%, rgba(238, 234, 250, 0.6) 62%, transparent 72%);
}

.hero-art::after {
  width: min(124%, 580px);
  background: url("../assets/hero-halo.svg") center / contain no-repeat;
  animation: halo-spin 240s linear infinite;
}

@keyframes halo-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art::after { animation: none; }
}

.hero-mandala {
  position: relative;
  width: 100%;
  max-width: 430px;
  aspect-ratio: 1;
  filter: drop-shadow(0 20px 34px rgba(36, 22, 68, 0.22));
}

.hero-mandala svg { width: 100%; height: 100%; }

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

section { padding: 74px 0; position: relative; }

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

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-bottom: 0.35em;
}

/* filigree rule under section headings */
.section-head h2::after {
  content: "";
  display: block;
  width: 220px;
  max-width: 70%;
  height: 20px;
  margin: 18px auto 0;
  background: url("../assets/flourish.svg") center / contain no-repeat;
  opacity: 0.85;
}

.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

.alt {
  background:
    linear-gradient(180deg, rgba(236, 232, 248, 0.92) 0%, rgba(236, 232, 248, 0.82) 100%),
    url("../assets/lace-pattern.svg");
  background-size: auto, 120px 120px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* lace edging along the top of tinted bands */
.alt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  background: url("../assets/lace-edge.svg") repeat-x top center;
  background-size: auto 22px;
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--lilac);
}

/* gilt hairline across the top of each card */
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1;
  background: linear-gradient(90deg, transparent, var(--gold-bright) 30%, var(--gold-bright) 70%, transparent);
  opacity: 0.75;
}

.feature-card figure { margin: 0; background: var(--porcelain-deep); }

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--line);
}

.feature-card .body { padding: 24px 26px 28px; }

.feature-card h3 { font-size: 1.45rem; }

.feature-card p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 34px 26px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -20px;
  left: 26px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal) 0%, var(--royal-bright) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 0 0 4px var(--card), 0 0 0 5px rgba(168, 130, 58, 0.5);
}

.step h3 { margin-top: 10px; font-size: 1.3rem; }
.step p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

/* ---------- Split / media rows ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: -1; }
}

.split-media img,
.split-media video {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.split h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.split .lede { color: var(--ink-soft); font-size: 1.05rem; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  background: linear-gradient(180deg, #fff 0%, var(--lilac-soft) 100%);
  border: 1px solid var(--lilac);
  color: var(--royal);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 6px 15px;
  border-radius: 999px;
}

/* ---------- Mini demo widget ---------- */

.demo-widget {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

@media (max-width: 760px) {
  .demo-widget { grid-template-columns: 1fr; }
}

.demo-canvas-wrap {
  background:
    radial-gradient(circle at 50% 50%, #fff 55%, rgba(238, 234, 250, 0.9) 100%),
    url("../assets/lace-pattern.svg");
  background-size: auto, 120px 120px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

#demo-canvas { width: 100%; max-width: 340px; aspect-ratio: 1; }

.demo-controls h3 { font-size: 1.5rem; }

.demo-controls label {
  display: block;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--ink-soft);
}

.demo-controls .control {
  margin-bottom: 20px;
}

.demo-controls input[type="range"] {
  width: 100%;
  accent-color: var(--royal-bright);
}

.demo-controls input[type="color"] {
  width: 58px;
  height: 38px;
  padding: 2px;
  border: 1px solid var(--lilac);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  vertical-align: middle;
}

.demo-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ---------- Gallery grid ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px;
}

.gallery-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: zoom-in;
  padding: 0;
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--gold-bright);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  padding: 8px;
}

.gallery-item .cap {
  padding: 12px 16px 15px;
  border-top: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--royal);
}

.gallery-grid--preview {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 760px) {
  .gallery-grid--preview { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .gallery-grid--preview { grid-template-columns: 1fr; }
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(24, 17, 50, 0.9);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 200;
}

.lightbox[hidden] { display: none; }

.lightbox figure {
  margin: 0;
  max-width: 560px;
  width: 100%;
  text-align: center;
}

.lightbox img {
  width: 100%;
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 0 0 1px rgba(203, 168, 92, 0.5);
}

.lightbox figcaption {
  color: #fff;
  margin-top: 16px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(203, 168, 92, 0.7);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.16s ease;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(203, 168, 92, 0.7);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.16s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }

.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }

/* ---------- Accordion (FAQ) ---------- */

.accordion {
  max-width: 780px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px 26px;
}

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-item:last-child { border-bottom: none; }

.accordion-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 2px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--royal-deep);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.accordion-item button:hover { color: var(--royal-bright); }

.accordion-item button::after {
  content: "+";
  font-family: "Nunito Sans", sans-serif;
  font-size: 1.3rem;
  line-height: 1;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--lilac);
  color: var(--gold);
  transition: transform 0.22s ease, background 0.22s ease;
}

.accordion-item[data-open="true"] button::after {
  transform: rotate(45deg);
  background: var(--lilac-soft);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: var(--ink-soft);
}

.accordion-panel p { padding: 0 2px 20px; margin: 0; }

/* ---------- Download cards ---------- */

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.download-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 30px;
  text-align: center;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.download-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.download-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  background: url("../assets/lace-edge.svg") repeat-x top center;
  background-size: auto 22px;
  opacity: 0.55;
}

.download-card .glyph {
  width: 58px;
  height: 58px;
  margin: 14px auto 18px;
}

.download-card h3 { font-size: 1.5rem; margin-bottom: 4px; }
.download-card .req { color: var(--ink-soft); font-size: 0.88rem; margin: 10px 0 22px; }

.coming-soon-note {
  background: linear-gradient(180deg, #fff 0%, var(--lilac-soft) 100%);
  border: 1px solid var(--lilac);
  color: var(--ink);
  border-radius: 16px;
  padding: 20px 24px;
  font-size: 0.95rem;
  max-width: 640px;
  margin: 30px auto 0;
  text-align: center;
  box-shadow: var(--shadow);
}

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

.site-footer {
  position: relative;
  background:
    linear-gradient(160deg, var(--royal-deep) 0%, #2c2063 55%, #1c1440 100%);
  color: #ded7f2;
  padding: 62px 0 30px;
  margin-top: 48px;
}

/* lace edging + gilt hairline along the top of the footer */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  background: url("../assets/lace-edge.svg") repeat-x top center;
  background-size: auto 22px;
  opacity: 0.85;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("../assets/lace-pattern.svg");
  background-size: 120px 120px;
  opacity: 0.16;
  mix-blend-mode: screen;
}

.site-footer .container { position: relative; z-index: 1; }

.site-footer a { color: #ded7f2; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 34px;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  padding: 2px;
  box-shadow: 0 0 0 1px rgba(203, 168, 92, 0.6);
}

.footer-grid h4 {
  color: var(--gold-bright);
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { text-decoration: none; opacity: 0.85; transition: opacity 0.15s ease, color 0.15s ease; }
.footer-grid a:hover { opacity: 1; color: #fff; text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(203, 168, 92, 0.28);
  padding-top: 22px;
  font-size: 0.85rem;
  opacity: 0.75;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 68px 0 24px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  font-weight: 600;
}

.page-hero h1::after {
  content: "";
  display: block;
  width: 220px;
  max-width: 70%;
  height: 20px;
  margin: 20px auto 22px;
  background: url("../assets/flourish.svg") center / contain no-repeat;
  opacity: 0.85;
}

.page-hero p { color: var(--ink-soft); font-size: 1.08rem; max-width: 60ch; margin: 0 auto; }

.center-media {
  max-width: 900px;
  margin: 36px auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ---------- Utility ---------- */

.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }
.small-note { font-size: 0.85rem; color: var(--ink-soft); }

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.pill-list span {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--lilac);
  color: var(--royal);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: inset 0 1px 0 #fff;
}
