/* ==========================================================================
   Remmie — remmie.io
   Brand colours sourced from the canonical app palette
   (Group of Seven inspired). See docs/ for the full palette.

   Art direction:
   - Lawren Harris — geometric mountain forms, cool blues, warm gold accents
   - Franklin Carmichael — layered purple hills, warm reflections, dreamy palette
   ========================================================================== */

:root {
  /* Core brand */
  --color-primary:        #4A7C9E; /* Lake Superior Blue */
  --color-primary-dark:   #3D4270; /* Deep Indigo */
  --color-accent-warm:    #D4A574; /* Golden Amber */
  --color-accent-ochre:   #C8A882; /* Warm Ochre */
  --color-accent-soft:    #9B7DB5; /* Warm Violet */
  --color-accent-mauve:   #8B7B9E; /* Mauve-Purple */
  --color-accent-lavender:#B5A8BE; /* Soft Lavender (from palette) */
  --color-forest:         #2C5F5F; /* Forest Green-Teal */
  --color-cloud:          #5B8BAF; /* Cloud Blue */

  /* Surfaces */
  --color-bg:             #FBF9F6; /* warm off-white */
  --color-bg-soft:        #F3F0F7; /* Soft Lavender */
  --color-surface:        #FFFFFF;

  /* Text */
  --color-text:           #1F2233; /* near-black, slight indigo tint */
  --color-text-muted:     #5B6478;
  --color-text-subtle:    #8EA5B8; /* Slate Mist */

  /* Borders & shadows */
  --color-border:         #E5E1EC;
  --shadow-sm:            0 1px 3px rgba(61, 66, 112, 0.04);
  --shadow-md:            0 4px 16px rgba(61, 66, 112, 0.06);
  --shadow-lg:            0 12px 40px rgba(61, 66, 112, 0.08);

  /* Layout */
  --max-width:            960px;
  --max-width-prose:      640px;
  --radius-sm:            6px;
  --radius-md:            12px;
  --radius-lg:            16px;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease, color 120ms ease;
}
a:hover { border-bottom-color: var(--color-primary); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--color-primary-dark);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 7vw, 4rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.125rem; }

p { margin: 0 0 1em; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-prose {
  max-width: var(--max-width-prose);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Header — floats over the hero gradient
   ========================================================================== */
.site-header {
  padding: 1.25rem 0;
  background: transparent;
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  letter-spacing: -0.02em;
}
.brand:hover { border-bottom-color: transparent; }
.site-nav a {
  margin-left: 1.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.site-nav a:hover { color: var(--color-primary-dark); }

/* ==========================================================================
   Hero — Carmichael sky with Harris mountain silhouettes
   ========================================================================== */
.hero {
  position: relative;
  padding: 9rem 0 14rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background:
    /* Carmichael golden warmth — late-day light on right */
    radial-gradient(ellipse at 85% 25%, rgba(212, 165, 116, 0.16) 0%, transparent 50%),
    /* Carmichael mauve-lavender wash — purple hills on left */
    radial-gradient(ellipse at 10% 65%, rgba(155, 125, 181, 0.14) 0%, transparent 45%),
    /* Soft cloud-blue haze through the center */
    radial-gradient(ellipse at 50% 35%, rgba(91, 139, 175, 0.06) 0%, transparent 35%),
    /* Base sky gradient — warm off-white to lavender */
    linear-gradient(175deg,
      var(--color-bg) 0%,
      #F7F4FA 25%,
      #F0ECF5 50%,
      #EBE6F0 75%,
      var(--color-bg-soft) 100%);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  text-align: center;
  z-index: 2;
  max-width: 580px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: var(--color-primary-dark);
}

.hero .lede {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

/* Mountain range — five layered ridges, Harris-style geometric peaks */
.mountain-range {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  line-height: 0;
  pointer-events: none;
}
.mountain-range svg {
  width: 100%;
  height: auto;
  min-height: 180px;
  max-height: 320px;
}

/* ==========================================================================
   Buttons & badges
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  background: var(--color-primary-dark);
  color: var(--color-surface);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.015em;
  border: 1px solid var(--color-primary-dark);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover {
  background: #4A5090;
  border-color: #4A5090;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-bottom-color: #4A5090;
}
.btn-ghost {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-border);
}
.btn-ghost:hover {
  background: var(--color-surface);
  color: var(--color-primary-dark);
  border-color: var(--color-accent-mauve);
}

.coming-soon-badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-ochre);
  background: rgba(200, 168, 130, 0.1);
  border: 1px solid rgba(200, 168, 130, 0.25);
  border-radius: 999px;
  margin-bottom: 2rem;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: 5rem 0;
}
.section h2 {
  text-align: center;
  margin-bottom: 0.5em;
}

/* ---------- Philosophy statement — the mission line ---------- */
.section-philosophy {
  padding: 4.5rem 0;
  background: var(--color-bg);
}

.philosophy-statement {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.philosophy-statement p {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.65;
  color: var(--color-primary-dark);
  letter-spacing: -0.01em;
  margin: 0;
}

/* ---------- Values section ---------- */
.section-values {
  padding: 2rem 0 5.5rem;
  background: var(--color-bg);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.value-card {
  padding: 1.75rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid transparent;
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Card accent colours — exact app palette colours */
.value-card[data-accent="reminisce"] { border-top-color: #9B7DB5; } /* Warm Violet — reminisceMemory */
.value-card[data-accent="remember"]  { border-top-color: #4A7C9E; } /* Lake Superior Blue — rememberMemory */
.value-card[data-accent="reflect"]   { border-top-color: #2C5F5F; } /* Forest Green-Teal — reflectMemory */

/* App-style pill badges — matching the app screenshot exactly */
.card-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.badge-reminisce {
  background: rgba(155, 125, 181, 0.15);
  color: #9B7DB5; /* Warm Violet */
}
.badge-remember {
  background: rgba(74, 124, 158, 0.15);
  color: #4A7C9E; /* Lake Superior Blue */
}
.badge-reflect {
  background: rgba(44, 95, 95, 0.12);
  color: #2C5F5F; /* Forest Green-Teal */
}

.value-card h3 {
  color: var(--color-primary-dark);
  margin-bottom: 0.5em;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}
.value-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0;
}

/* ---------- CTA section ---------- */
.section-cta {
  padding: 5rem 0 6rem;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(181, 168, 190, 0.08) 0%, transparent 50%),
    var(--color-bg-soft);
}

.section-cta .closing-text {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto;
}

/* ==========================================================================
   Prose pages (privacy / support / terms)
   ========================================================================== */
.page-header {
  padding: 6rem 0 2.5rem;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(181, 168, 190, 0.1) 0%, transparent 50%),
    var(--color-bg-soft);
  text-align: center;
}
.page-header h1 { margin-bottom: 0.25em; }
.page-header .last-updated {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.prose {
  padding: 3rem 0 5rem;
}
.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
}
.prose h3 {
  font-size: 1.1rem;
  margin-top: 1.75rem;
  color: var(--color-text);
}
.prose ul, .prose ol {
  margin: 0 0 1em 1.25em;
  padding: 0;
}
.prose li {
  margin-bottom: 0.4em;
}
.prose .placeholder {
  background: rgba(212, 165, 116, 0.08);
  border-left: 3px solid var(--color-accent-warm);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.prose .placeholder strong {
  color: var(--color-primary-dark);
}

/* ==========================================================================
   Footer — Harris deep indigo ground
   ========================================================================== */
.site-footer {
  padding: 2.5rem 0 3rem;
  background: linear-gradient(180deg, #3D4270 0%, #2E3258 100%);
  color: var(--color-bg-soft);
  font-size: 0.85rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(243, 240, 247, 0.8);
}
.footer-links a {
  color: rgba(243, 240, 247, 0.6);
  margin-left: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  border-bottom-color: transparent;
}
.footer-links a:first-child { margin-left: 0; }
.footer-links a:hover {
  color: var(--color-accent-warm);
  border-bottom-color: var(--color-accent-warm);
}
.site-footer .copy {
  color: rgba(243, 240, 247, 0.35);
  font-size: 0.75rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 600px) {
  .site-header .container {
    flex-direction: column;
    gap: 0.75rem;
  }
  .site-nav a {
    margin: 0 0.75rem;
  }
  .site-nav a:first-child { margin-left: 0; }

  .hero {
    padding: 7rem 0 12rem;
    min-height: 75vh;
  }
  .hero h1 br { display: none; }

  .mountain-range svg {
    min-height: 130px;
  }

  .section-philosophy { padding: 3rem 0; }

  .section { padding: 3rem 0; }
  .section-values { padding: 1rem 0 3.5rem; }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .footer-links a {
    margin: 0 0.6rem;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .hero { padding: 8rem 0 13rem; }

  .value-grid {
    grid-template-columns: 1fr 1fr;
  }
  .value-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
