/*
 * holystic.ai — marketing site styles.
 *
 * Aligned with the app's visual system (source of truth:
 * mobile/lib/app/theme.dart; mirrored by packages/webapp/src/styles.css
 * and packages/extension/src/popup/popup.css). The marketing site uses
 * the inter_denominational default accent (sage / slate-green) since it
 * doesn't know the visitor's tradition.
 *
 *   - Warm off-white background (#FBF7F4) — quiet, contemplative
 *   - Near-black ink (#1A1A1A), soft secondary (#555555)
 *   - Hairline borders (#E6E2D9)
 *   - Sage accent (#5C7560) — matches the new botanical-h logo
 *   - Cormorant Garamond for display + serif headings + the brand wordmark
 *   - Inter for body + UI chrome
 *   - Generous whitespace; max-width column for readability
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@400;500;600&display=swap');

:root {
  --background: #FBF7F4;
  --surface: #FFFFFF;
  --ink: #1A1A1A;
  --ink-soft: #555555;
  --hairline: #E6E2D9;
  --accent: #5C7560;
  --accent-soft: rgba(92, 117, 96, 0.08);
  --max-prose: 640px;
  --max-section: 720px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(92, 117, 96, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}

a:hover {
  text-decoration-color: var(--accent);
}

/* --- Layout shell --- */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.prose {
  max-width: var(--max-prose);
}

main {
  flex: 1;
  padding: 32px 0 80px;
}

/* --- Header --- */

.site-header {
  padding: 28px 0 8px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* Brand wordmark in the header. Serif lowercase to match the logo's
   serif botanical h — the two read as a single lockup. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.2px;
  line-height: 1;
}

.brand:hover {
  text-decoration: none;
  color: var(--ink);
}

/* Inline brand-mark beside the wordmark in the header. Uses the 48px
   logo export at its native size so the botanical detail stays crisp. */
.brand-mark {
  width: 40px;
  height: 40px;
  background-image: url('/assets/holystic-logo-48.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.site-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 15px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

/* --- Footer --- */

.site-footer {
  border-top: 0.5px solid var(--hairline);
  padding: 28px 0 48px;
  color: var(--ink-soft);
  font-size: 13px;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer .legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* --- Hero --- */

.hero {
  padding: 56px 0 32px;
}

/* Home-page logo lockup. The brand image (botanical h) sits to the
   right of the tagline on wide screens, stacks above it on mobile. */
.hero-lockup {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.hero-lockup__image {
  width: 220px;
  height: auto;
  display: block;
  /* No drop-shadow: the filter follows the PNG's rectangular bounds
     and would draw a soft square around the whole image since the
     cream inside the logo matches the page background. The botanical
     mark stands on its own without lift. */
}

@media (max-width: 720px) {
  .hero-lockup {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-lockup__image {
    width: 160px;
    margin-bottom: 8px;
  }
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.hero .lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: var(--max-prose);
  margin: 0 0 28px;
}

/* --- Typography for content pages --- */

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

main h1 {
  font-size: 40px;
  letter-spacing: -0.4px;
  margin-bottom: 24px;
}

h2 {
  font-size: 26px;
  margin-top: 44px;
  margin-bottom: 12px;
}

/* Global h3: sans, smaller weight than the serif h2 so the hierarchy
   reads as a clear step down. Note: .three-up h3 intentionally uses
   the serif treatment as a card-subheading flourish — codified, not
   accidental. Don't "unify" them. */
h3 {
  font-size: 20px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  margin-top: 32px;
  margin-bottom: 8px;
  color: var(--ink);
}

p {
  margin: 0 0 16px;
  max-width: var(--max-prose);
}

ul, ol {
  margin: 0 0 16px;
  padding-left: 22px;
  max-width: var(--max-prose);
}

li {
  margin-bottom: 6px;
}

ul.tight, ol.tight {
  margin-bottom: 8px;
}

strong { font-weight: 600; }

.muted {
  color: var(--ink-soft);
  font-size: 15px;
}

/* --- Three-up section --- */

.three-up {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin: 48px 0 24px;
}

/* Deliberately serif (vs the global sans h3) — card subheadings as
   editorial flourish. See the comment above the global h3 rule. */
.three-up h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 8px;
}

.three-up p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* --- Buttons --- */

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.2px;
}

.button:hover {
  text-decoration: none;
  filter: brightness(0.92);
}

.button.outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(92, 117, 96, 0.4);
}

.button.outline:hover {
  background: var(--accent-soft);
  color: var(--accent);
  filter: none;
}

/* --- Section dividers --- */

hr {
  border: 0;
  border-top: 0.5px solid var(--hairline);
  margin: 48px 0;
}

/* --- Inline citations / definitions --- */

dfn {
  font-style: normal;
  border-bottom: 1px dotted var(--accent);
  color: var(--accent);
  cursor: help;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 8px;
}

/* --- Coming-soon banner --- */

.banner {
  background: var(--accent-soft);
  border: 0.5px solid rgba(92, 117, 96, 0.25);
  border-radius: 6px;
  padding: 16px 20px;
  margin: 32px 0;
  font-size: 15px;
  color: var(--ink);
  max-width: var(--max-prose);
}

/* --- Responsive --- */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 36px 0 20px; }
  main { padding: 16px 0 56px; }
  h2 { margin-top: 32px; }
  .site-header { padding: 20px 0 8px; }
  .brand { font-size: 24px; }
  .brand-mark { width: 36px; height: 36px; }
}
