/* Full Moon Flow - Design System & Stylesheet */
:root {
  --bg-base: #FDF8F5;
  --bg-surface: #FFFFFF;
  --bg-accent-soft: rgba(2, 60, 105, 0.04);
  --bg-tag-positive: rgba(2, 60, 105, 0.08);
  --bg-tag-neutral: rgba(2, 60, 105, 0.04);
  
  --primary: #023c69;
  --primary-hover: #035290;
  --primary-light: rgba(2, 60, 105, 0.75);
  
  --text-main: #023c69;
  --text-muted: #3a6285;
  --text-light: #6486a0;
  
  --border-subtle: rgba(2, 60, 105, 0.12);
  --border-strong: rgba(2, 60, 105, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(2, 60, 105, 0.04);
  --shadow-md: 0 8px 24px rgba(2, 60, 105, 0.06);
  --shadow-lg: 0 16px 40px rgba(2, 60, 105, 0.08);
  
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --max-width: 920px;
  --transition: all 0.2s ease-in-out;
}

/* Global Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-stack);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-main);
}

p.lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 400;
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
  text-decoration-thickness: 2px;
}

/* Layout Containers */
.site-header {
  width: 100%;
  background-color: var(--bg-base);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

/* Brand Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.brand-icon {
  width: 32px;
  height: 32px;
  fill: currentColor;
  flex-shrink: 0;
}

.brand:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
  background-color: var(--bg-accent-soft);
  text-decoration: none;
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
  background-color: var(--bg-tag-positive);
}

/* Main Content Wrapper */
.main-content {
  flex: 1;
  padding: 3rem 0;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 1.5rem 3.5rem;
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 3rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-tag-positive);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.hero h1 {
  max-width: 720px;
  margin: 0 auto 1.25rem;
}

.hero p.lead {
  max-width: 680px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #FFFFFF;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background-color: var(--bg-accent-soft);
  text-decoration: none;
}

/* Sections & Cards */
.section {
  margin-bottom: 3.5rem;
}

.section-header {
  margin-bottom: 1.75rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

.card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card-icon {
  width: 36px;
  height: 36px;
  background-color: var(--bg-tag-positive);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Lists with Icons */
.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.feature-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.feature-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--bg-tag-positive);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.feature-item-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.feature-item-icon.negative {
  background-color: rgba(2, 60, 105, 0.05);
  color: var(--text-light);
}

.feature-item-content h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.feature-item-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Highlight Box / Banner */
.highlight-box {
  background-color: var(--bg-surface);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

.highlight-box h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

/* Page Headers (FAQ, Support, Privacy) */
.page-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Policy Content Formatting */
.policy-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.policy-meta {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 500;
}

.policy-section {
  margin-bottom: 2rem;
}

.policy-section:last-child {
  margin-bottom: 0;
}

.policy-section h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.policy-section p {
  color: var(--text-main);
  line-height: 1.7;
}

.summary-box {
  background-color: var(--bg-accent-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  border: 1px solid var(--border-subtle);
}

.summary-box h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.summary-box p {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0;
  color: var(--primary);
}

/* FAQ Accordion / Details */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--border-strong);
}

details.faq-item summary {
  padding: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

details.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--primary);
  font-weight: 400;
  transition: transform 0.2s ease;
}

details.faq-item[open] summary::after {
  content: "\2212";
}

details.faq-item summary:hover {
  background-color: var(--bg-accent-soft);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid transparent;
}

details.faq-item[open] .faq-answer {
  border-top-color: var(--border-subtle);
  padding-top: 1.25rem;
}

/* Support Page Layout */
.support-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  max-width: 680px;
  margin: 0 auto;
}

.support-icon {
  width: 64px;
  height: 64px;
  background-color: var(--bg-tag-positive);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.support-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.email-box {
  background-color: var(--bg-accent-soft);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.email-box a {
  color: var(--primary);
  text-decoration: none;
}

.email-box a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background-color: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Responsive Styles */
@media (max-width: 640px) {
  h1 {
    font-size: 1.9rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  .header-inner {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }
  
  .nav-menu {
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .nav-link {
    font-size: 0.88rem;
    padding: 0.35rem 0.5rem;
  }
  
  .hero {
    padding: 2rem 1.25rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .policy-card {
    padding: 1.5rem;
  }
  
  .support-card {
    padding: 2rem 1.25rem;
  }
  
  .email-box {
    width: 100%;
    word-break: break-all;
    font-size: 0.95rem;
  }
}
