/* Flowist marketing site — the app's own SANCTUARY register, ported to the
   web: deep night stage, violet aurora, gold accent, capsule chrome, rounded
   + serif-italic type. Deliberately one theme (the night is the brand). */

:root {
  --night-1: #221d3f;
  --night-2: #2e2756;
  --night-3: #181428;

  --text: #f2eee3;
  --text-70: rgba(242, 238, 227, 0.72);
  --text-55: rgba(242, 238, 227, 0.55);
  --text-40: rgba(242, 238, 227, 0.4);

  --gold: #ecc49e;
  --gold-deep: #d9a877;
  --ink-on-gold: #1c2135;
  --violet: #bbaee0;
  --sky: #a5c6e4;
  --sage: #b7cbad;

  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --hairline: rgba(255, 255, 255, 0.1);
  --hairline-soft: rgba(255, 255, 255, 0.07);

  --rounded: ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --serif: ui-serif, Georgia, "Times New Roman", serif;

  --container: 1120px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--rounded);
  color: var(--text);
  background: linear-gradient(
    180deg,
    var(--night-1) 0%,
    var(--night-2) 42%,
    var(--night-3) 100%
  );
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Aurora — the same soft glows Meadow/Bloom Book use, recreated in CSS */
.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 620px 620px at 88% -4%,
      rgba(123, 111, 163, 0.32) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 560px 560px at 3% 58%,
      rgba(74, 78, 124, 0.26) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 480px 480px at 95% 85%,
      rgba(236, 196, 158, 0.08) 0%,
      transparent 70%
    );
}

.motes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image: radial-gradient(
      2px 2px at 12% 22%,
      rgba(255, 255, 255, 0.5),
      transparent 60%
    ),
    radial-gradient(1.5px 1.5px at 78% 14%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(2px 2px at 32% 68%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 62% 78%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 90% 52%, rgba(255, 255, 255, 0.3), transparent 60%),
    radial-gradient(2px 2px at 8% 88%, rgba(255, 255, 255, 0.3), transparent 60%);
  background-repeat: no-repeat;
  animation: drift 26s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-18px);
  }
}

main,
header.site-header,
footer.site-footer {
  position: relative;
  z-index: 1;
}

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

/* ---------- Type ---------- */

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

p {
  margin: 0;
  line-height: 1.6;
}

.eyebrow {
  font-family: var(--rounded);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 14px;
}

.latin {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-70);
}

.lede {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-70);
  max-width: 46ch;
}

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

.site-header {
  padding: 22px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--rounded);
  font-weight: 800;
  font-size: 19px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.wordmark .mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-70);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  background: var(--glass);
  color: var(--text);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--rounded);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-radius: 999px;
  padding: 15px 26px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--text);
  color: var(--ink-on-gold);
}

.btn-ghost {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--hairline);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-70);
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 8px 14px;
}

.pill svg {
  width: 13px;
  height: 13px;
  flex: none;
}

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

.hero {
  position: relative;
  padding: 56px 0 88px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(40px, 5.4vw, 62px);
  line-height: 1.04;
  margin-bottom: 22px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 9 / 12;
  box-shadow: 0 40px 90px rgba(8, 6, 20, 0.55);
  border: 1px solid var(--hairline);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-media .ring {
  position: absolute;
  left: 50%;
  top: 39%;
  width: 46%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.2);
}

.hero-media .ring::after {
  content: "";
  position: absolute;
  inset: -14%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.hero-media .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 24px 22px;
  background: linear-gradient(0deg, rgba(20, 16, 40, 0.88), transparent);
  font-family: var(--rounded);
  font-weight: 700;
  font-size: 15px;
}

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

section {
  padding: 84px 0;
}

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

.section-head h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-70);
  font-size: 17px;
}

.section-head.left {
  margin: 0 0 48px;
  text-align: left;
}

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

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 26px 22px;
}

.feature-card .num {
  font-family: var(--rounded);
  font-weight: 800;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}

.feature-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-strong);
  margin-bottom: 16px;
}

.feature-card .icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--text);
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-55);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---------- Screenshot gallery ---------- */

.gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--hairline) transparent;
}

.gallery::-webkit-scrollbar {
  height: 6px;
}
.gallery::-webkit-scrollbar-thumb {
  background: var(--hairline);
  border-radius: 999px;
}

.gallery figure {
  flex: none;
  width: min(66vw, 260px);
  margin: 0;
  scroll-snap-align: start;
}

.gallery img {
  width: 100%;
  display: block;
  border-radius: 22px;
  border: 1px solid var(--hairline);
  box-shadow: 0 24px 50px rgba(8, 6, 20, 0.5);
}

.gallery figcaption {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-55);
  text-align: center;
}

/* ---------- Privacy / promise band ---------- */

.promise {
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 52px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.promise-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.promise-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-70);
  font-size: 15px;
}

.promise-list svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  stroke: var(--sage);
}

.promise .badge {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 28%,
    rgba(187, 174, 224, 0.5),
    rgba(46, 39, 86, 0.4) 70%
  );
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
}

.promise .badge svg {
  width: 64px;
  height: 64px;
  stroke: var(--text);
}

/* ---------- Final CTA ---------- */

.cta-band {
  text-align: center;
  padding: 96px 0 60px;
}

.cta-band h2 {
  font-size: clamp(32px, 4.2vw, 48px);
  margin-bottom: 18px;
}

.cta-band .lede {
  margin: 0 auto 34px;
  text-align: center;
}

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

.site-footer {
  border-top: 1px solid var(--hairline-soft);
  padding: 40px 0 56px;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-55);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  color: var(--text-40);
  font-size: 13.5px;
}

/* ---------- Legal / prose pages ---------- */

.legal-hero {
  padding: 64px 0 20px;
}

.legal-hero h1 {
  font-size: clamp(34px, 4.6vw, 48px);
  margin-bottom: 10px;
}

.legal-hero .updated {
  color: var(--text-40);
  font-size: 14px;
  font-weight: 600;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 100px;
}

.prose h2 {
  font-size: 22px;
  margin: 46px 0 14px;
  padding-top: 4px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--text-70);
  font-size: 16px;
  line-height: 1.75;
}

.prose p {
  margin: 0 0 16px;
}

.prose ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--text);
}

.prose a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(236, 196, 158, 0.4);
  text-underline-offset: 3px;
}

.prose .callout {
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 24px 0;
}

.prose .callout p:last-child {
  margin-bottom: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
  font-size: 14.5px;
}

.prose th,
.prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--text-70);
}

.prose th {
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- FAQ (support page) ---------- */

.faq {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq details {
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 4px 22px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-family: var(--rounded);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--text-55);
  transition: transform 0.2s ease;
  flex: none;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .answer {
  padding: 0 0 20px;
  color: var(--text-70);
  font-size: 15px;
  line-height: 1.65;
}

.contact-card {
  max-width: 780px;
  margin: 40px auto 0;
  background: var(--glass);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 30px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.contact-card p {
  color: var(--text-55);
  font-size: 14.5px;
}

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

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-media {
    max-width: 360px;
    margin: 0 auto;
    aspect-ratio: 9 / 13;
  }
  .features {
    grid-template-columns: 1fr 1fr;
  }
  .promise {
    grid-template-columns: 1fr;
    padding: 34px 26px;
    text-align: left;
  }
  .promise .badge {
    display: none;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }
  section {
    padding: 60px 0;
  }
  .promise {
    padding: 28px 20px;
  }
  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
