/* Shared styles for every page: design tokens, base, nav, buttons, footer.
   Page-specific styles stay inline in each page. */

:root {
  /* dreamy lavender background scale */
  --cream: #f4edff;
  --cream-2: #eae0fa;
  --cream-3: #d9caf2;
  --ink: #2a1b4e;
  --ink-2: #5a4a82;
  --ink-3: #9988bd;
  --line: #e2d2fa;
  /* "rose" tokens repurposed as magical purple — keeps original CSS untouched */
  --rose: #9b5de5; /* action color */
  --rose-deep: #7a3fcf;
  --rose-soft: #e2d2fa;
  --rose-glow: #c8a4f5;
  --sage: #7ae7c7;
  --sage-soft: #dffaf1;
  --plum: #6e4fb8;
  --gold: #ffc857;
  --pink: #ffb7e5;
  --shadow-sm:
    0 1px 2px rgba(122, 63, 207, 0.08), 0 2px 6px rgba(122, 63, 207, 0.06);
  --shadow-md:
    0 2px 4px rgba(122, 63, 207, 0.08),
    0 10px 30px rgba(122, 63, 207, 0.12);
  --shadow-lg:
    0 8px 24px rgba(122, 63, 207, 0.12),
    0 28px 60px rgba(122, 63, 207, 0.18);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: "Nunito", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.serif {
  font-family: "Fredoka", ui-sans-serif, sans-serif;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.mono {
  font-family: "Nunito", ui-monospace, monospace;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
input,
select {
  font: inherit;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
.wrap-sm {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ——— NAV ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, #1b1240 88%, transparent);
  border-bottom: 1px solid color-mix(in oklab, #fff 12%, transparent);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fredoka";
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.brand img.wm {
  height: 34px;
  width: auto;
  display: block;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: conic-gradient(
    from 210deg,
    var(--rose-glow),
    var(--rose),
    var(--gold),
    var(--rose-soft),
    var(--rose-glow)
  );
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    0 1px 3px rgba(120, 60, 30, 0.25);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--cream);
  border-radius: 50%;
}
.brand-mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--rose);
  z-index: 1;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}
.nav-links a {
  text-decoration: none;
  color: inherit;
}
.nav-links a:hover {
  color: #fff;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--rose-soft);
  color: var(--rose-deep);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 0 var(--rose);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in oklab, var(--rose) 60%, transparent);
  }
  70% {
    box-shadow: 0 0 0 8px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 10px;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  background: color-mix(in oklab, var(--ink) 92%, var(--rose));
}
.btn-rose {
  background: linear-gradient(
    180deg,
    #b47bf0,
    var(--rose) 55%,
    var(--rose-deep)
  );
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -3px 0 rgba(0, 0, 0, 0.12),
    0 6px 0 #6a2fbf,
    0 14px 28px rgba(122, 63, 207, 0.4);
  border-radius: 100px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.btn-rose:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -3px 0 rgba(0, 0, 0, 0.12),
    0 5px 0 #6a2fbf,
    0 18px 36px rgba(122, 63, 207, 0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  background: var(--cream-2);
  color: var(--ink);
}
.btn-lg {
  padding: 14px 22px;
  font-size: 15px;
  border-radius: 12px;
}

/* Footer */
footer {
  padding: 60px 0 48px;
  border-top: 1px solid var(--line);
  margin-top: 80px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.foot h5 {
  font-family: "Nunito";
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin: 0 0 14px;
}
.foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.foot a {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}
.foot a:hover {
  color: var(--ink);
}
.foot-lead p {
  font-size: 13.5px;
  color: var(--ink-3);
  margin: 8px 0 16px;
  max-width: 320px;
}
.foot-base {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-3);
  font-family: "Nunito";
}

/* ——— RESPONSIVE (shared) ——— */
@media (max-width: 1100px) {
  .nav-cta .pill {
    display: none;
  }
}
@media (max-width: 980px) {
  .wrap {
    padding: 0 22px;
  }
  .nav-links {
    display: none;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding: 0 18px;
  }
  .nav-inner {
    height: 60px;
  }
  .brand img.wm {
    height: 28px;
  }
  .nav-cta .btn {
    padding: 9px 14px;
    font-size: 13px;
  }
  footer {
    padding: 44px 0 32px;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }
  .foot-lead {
    grid-column: 1 / -1;
  }
  .foot-base {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    align-items: center;
  }
}
@media (max-width: 480px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .nav-cta {
    gap: 8px;
  }
}

/* ——— SUB-PAGES (contact, privacy) ——— */
.page-hero {
  padding: 72px 0 40px;
  text-align: center;
}
.page-hero .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--rose-deep);
  margin-bottom: 14px;
}
.page-hero h1 {
  font-family: "Fredoka", ui-sans-serif, sans-serif;
  font-weight: 600;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.page-hero p {
  color: var(--ink-2);
  font-size: 18px;
  max-width: 620px;
  margin: 0 auto;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.contact-card {
  padding: 26px;
}
.contact-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--rose-soft);
  margin-bottom: 14px;
}
.contact-card h3 {
  font-family: "Fredoka", ui-sans-serif, sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 6px;
}
.contact-card p {
  margin: 0 0 14px;
  color: var(--ink-2);
  font-size: 15px;
}
.contact-card a.mail {
  color: var(--rose-deep);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-card a.mail:hover {
  text-decoration: underline;
}
.contact-form {
  padding: 36px;
  display: grid;
  gap: 18px;
}
.contact-form h2 {
  font-family: "Fredoka", ui-sans-serif, sans-serif;
  font-weight: 600;
  font-size: 26px;
  margin: 0;
}
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--rose-glow);
  outline-offset: 1px;
  border-color: var(--rose);
}
.form-note {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0;
}

/* privacy / legal prose */
.prose-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 92px;
  font-size: 14px;
}
.toc h5 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.toc ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--ink-2);
}
.toc a {
  text-decoration: none;
}
.toc a:hover {
  color: var(--rose-deep);
}
.prose {
  padding: 40px 44px;
}
.prose .updated {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0 0 24px;
}
.prose h2 {
  font-family: "Fredoka", ui-sans-serif, sans-serif;
  font-weight: 600;
  font-size: 24px;
  margin: 40px 0 10px;
  scroll-margin-top: 90px;
}
.prose h2:first-of-type {
  margin-top: 0;
}
.prose h3 {
  font-size: 17px;
  margin: 22px 0 6px;
}
.prose p,
.prose li {
  color: var(--ink-2);
}
.prose ul {
  padding-left: 22px;
}
.prose li {
  margin-bottom: 6px;
}
.prose a {
  color: var(--rose-deep);
  font-weight: 600;
}
.callout {
  background: var(--sage-soft);
  border: 1px solid color-mix(in oklab, var(--sage) 50%, transparent);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 28px;
  color: var(--ink);
  font-size: 15px;
}

@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .prose-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .toc {
    position: static;
  }
}
@media (max-width: 720px) {
  .page-hero {
    padding: 48px 0 28px;
  }
  .page-hero p {
    font-size: 16px;
  }
  .contact-form {
    padding: 24px 20px;
  }
  .contact-form .row {
    grid-template-columns: 1fr;
  }
  .prose {
    padding: 28px 20px;
  }
}

a.brand {
  text-decoration: none;
}
