/* Carmela — design tokens v2 (tech-refined).
   Identical to the React Native app design tokens (src/constants/colors.ts)
   + the Claude Design handoff bundle. */

:root {
  /* Bordeaux family */
  --bordeaux:        #4E1518;
  --bordeaux-deep:   #2A0A0C;
  --bordeaux-light:  #6B2326;
  --bordeaux-wine:   #3A0F12;
  --ink:             #14060A;

  /* Gold family */
  --gold:            #C9A961;
  --gold-light:      #DEC282;
  --gold-deep:       #8E7235;

  /* Cream / paper */
  --cream:           #F5EFE2;
  --cream-deep:      #E8DCC4;
  --cream-mute:      rgba(245,239,226,0.62);
  --cream-faint:     rgba(245,239,226,0.38);
  --cream-ghost:     rgba(245,239,226,0.18);

  /* Warm accents */
  --terracotta:      #A0522D;
  --candle:          #FFE4A1;

  /* Borders / surfaces */
  --hairline-gold:   rgba(201,169,97,0.28);
  --hairline-cream:  rgba(245,239,226,0.10);
  --hairline-strong: rgba(245,239,226,0.18);
  --surface:         rgba(20,6,10,0.55);
  --surface-strong:  rgba(20,6,10,0.78);

  /* Type — native system stacks */
  --serif:  ui-serif, "New York", "Apple Garamond", "Cormorant Garamond", Georgia, serif;
  --sans:   -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
            "Segoe UI Variable", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono:   ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

@font-face {
  font-family: "Cormorant";
  font-style: italic;
  font-weight: 500;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/cormorant-garamond@latest/latin-500-italic.woff2")
    format("woff2");
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: radial-gradient(
    ellipse at top,
    var(--bordeaux-light) 0%,
    var(--bordeaux) 35%,
    var(--bordeaux-deep) 100%
  );
  color: var(--cream);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.serif {
  font-family: "Cormorant", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.18s;
}

a:hover {
  opacity: 0.75;
}

/* layout */
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.wrap-wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(20, 6, 10, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 0.5px solid var(--hairline-gold);
}

.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: "Cormorant", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--cream);
}

.brand-mark {
  color: var(--gold);
  margin-right: 6px;
}

.topnav {
  display: flex;
  gap: 22px;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.topnav a {
  color: var(--cream-mute);
}

.topnav a:hover {
  color: var(--cream);
  opacity: 1;
}

/* hero */
.hero {
  text-align: center;
  padding: 96px 24px 56px;
  max-width: 760px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: "Cormorant", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.08;
  color: var(--cream);
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--cream-mute);
  max-width: 540px;
  margin: 0 auto 36px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--gold);
  color: var(--bordeaux-deep);
  font-weight: 500;
  font-size: 15px;
  border-radius: 12px;
  letter-spacing: -0.16px;
  transition: transform 0.12s, opacity 0.18s;
}

.btn:hover {
  transform: scale(0.985);
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 0.5px solid var(--gold);
  margin-left: 12px;
}

/* bubble (Carmela voice quote) */
.bubble {
  background: var(--cream);
  color: var(--bordeaux-deep);
  padding: 22px 28px;
  border-radius: 22px;
  font-family: "Cormorant", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 21px;
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  line-height: 1.4;
}

/* sections */
section {
  padding: 64px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.section-title {
  font-family: "Cormorant", Georgia, serif;
  font-style: italic;
  font-size: 36px;
  text-align: center;
  margin-bottom: 14px;
}

.section-sub {
  text-align: center;
  color: var(--cream-mute);
  font-size: 15px;
  margin-bottom: 48px;
}

/* feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
}

.feature {
  background: var(--surface);
  border: 0.5px solid var(--hairline-gold);
  border-radius: 18px;
  padding: 24px;
}

.feature-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.feature h3 {
  font-family: "Cormorant", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--cream);
  margin-bottom: 10px;
}

.feature p {
  color: var(--cream-mute);
  font-size: 14.5px;
  line-height: 1.55;
}

/* legal pages */
.legal h1 {
  font-family: "Cormorant", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 42px;
  color: var(--cream);
  margin-bottom: 8px;
}

.legal .updated {
  font-size: 12px;
  color: var(--cream-faint);
  letter-spacing: 0.4px;
  margin-bottom: 36px;
}

.legal h2 {
  font-family: "Cormorant", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  color: var(--cream);
  margin-top: 36px;
  margin-bottom: 14px;
}

.legal h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gold-light);
  margin-top: 22px;
  margin-bottom: 8px;
  letter-spacing: -0.16px;
}

.legal p,
.legal li {
  font-size: 15px;
  color: var(--cream);
  line-height: 1.65;
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal li {
  margin-bottom: 6px;
}

.legal strong {
  color: var(--cream);
  font-weight: 600;
}

.legal a {
  border-bottom: 0.5px solid var(--hairline-gold);
  padding-bottom: 1px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 26px;
  font-size: 14px;
}

.legal th,
.legal td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 0.5px solid var(--hairline-cream);
  vertical-align: top;
}

.legal th {
  color: var(--gold);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.legal td {
  color: var(--cream-mute);
}

/* support / FAQ */
.faq {
  margin-top: 24px;
}

.faq details {
  background: var(--surface);
  border: 0.5px solid var(--hairline-gold);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  color: var(--cream);
  list-style: none;
  position: relative;
  padding-right: 24px;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--gold);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.18s;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin-top: 12px;
  color: var(--cream-mute);
  font-size: 14.5px;
}

/* footer */
footer {
  border-top: 0.5px solid var(--hairline-gold);
  padding: 36px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--cream-faint);
  letter-spacing: 0.3px;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

footer .footer-links a {
  color: var(--cream-mute);
}

/* mobile tweaks */
@media (max-width: 600px) {
  .topnav {
    gap: 14px;
    font-size: 12px;
  }

  .hero {
    padding: 64px 20px 40px;
  }

  .btn-ghost {
    margin-left: 0;
    margin-top: 12px;
  }

  .section-title {
    font-size: 28px;
  }

  .legal h1 {
    font-size: 32px;
  }
}
