/* Koe Na Win — marketing site
   Palette mirrors the app's own light/dark theme tokens (App.tsx). */

:root {
  --bg: #f5f1e9;
  --surface: #fffdf8;
  --text: #293126;
  --muted: #666d5e;
  --line: #dddccf;
  --gold: #815c25;
  --gold-soft: #a07a3e;
  --action: #344535;
  --on-action: #fffdf5;
  --hero: #eeeadf;
  --shadow: 2px 6px 24px rgba(41, 49, 38, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151714;
    --surface: #22251f;
    --text: #f1f2e9;
    --muted: #afb6a5;
    --line: #373d31;
    --gold: #d6b77e;
    --gold-soft: #c49e63;
    --action: #d2debf;
    --on-action: #20291c;
    --hero: #272c23;
    --shadow: 2px 10px 30px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="dark"] {
  --bg: #151714;
  --surface: #22251f;
  --text: #f1f2e9;
  --muted: #afb6a5;
  --line: #373d31;
  --gold: #d6b77e;
  --gold-soft: #c49e63;
  --action: #d2debf;
  --on-action: #20291c;
  --hero: #272c23;
  --shadow: 2px 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); line-height: 1.12; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.25; }
h3 { font-size: 1.15rem; line-height: 1.4; }

p { margin: 0 0 1em; color: var(--text); }
p.lede { color: var(--muted); font-size: 1.1rem; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.my { font-family: "Noto Sans Myanmar", "Fraunces", serif; }

/* ---------- Burmese pages ---------- */

html[lang="my"] body {
  font-family: "Noto Sans Myanmar", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.9;
}
html[lang="my"] h1,
html[lang="my"] h2,
html[lang="my"] h3,
html[lang="my"] .display {
  font-family: "Noto Sans Myanmar", "Fraunces", serif;
  letter-spacing: 0;
}
html[lang="my"] .eyebrow { letter-spacing: 0.04em; }

.lang-switch {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
}
.lang-switch:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }
.mobile-nav .menu a.lang-switch { border: 1px solid var(--line); margin-top: 2px; text-align: center; }

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

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

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; display: block; }
.brand span {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text);
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--gold); text-decoration: none; }
.nav-links .cta {
  background: var(--action);
  color: var(--on-action);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
}
.nav-links .cta:hover { opacity: 0.9; text-decoration: none; }

.nav-toggle { display: none; }

.mobile-nav { display: none; position: relative; }
.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after { content: "☰"; font-size: 1rem; }
.mobile-nav[open] summary::after { content: "✕"; }
.mobile-nav .menu {
  position: absolute;
  right: 0;
  top: 52px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 180px;
  list-style: none;
  margin: 0;
}
.mobile-nav .menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
}
.mobile-nav .menu a:hover { background: var(--hero); text-decoration: none; }
.mobile-nav .menu a.cta { background: var(--action); color: var(--on-action); text-align: center; margin-top: 4px; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .mobile-nav { display: block; }
}

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

.hero {
  padding: 72px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; text-align: center; }
  .hero-actions, .eyebrow { justify-content: center; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--action);
  color: var(--on-action);
}
.btn-primary:hover { opacity: 0.92; text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }

.hero-art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  background: var(--hero);
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21,23,20,0) 40%, rgba(21,23,20,0.55) 100%);
}
.hero-caption {
  position: absolute;
  left: 20px; right: 20px; bottom: 18px;
  color: #fdfbf5;
  font-size: 0.85rem;
  z-index: 1;
  opacity: 0.92;
}

/* bead divider */

.bead-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 0;
  opacity: 0.8;
}
.bead-row span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.55;
}
.bead-row span:nth-child(4n) { opacity: 0.95; }

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

section { padding: 64px 0; }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin: 0 0 44px; text-align: left; }

.panel {
  background: var(--hero);
  border-radius: var(--radius-lg);
}

/* Feature grid */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
}
.card .icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--hero);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--gold);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Steps / journey */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.step {
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
.step .num {
  font-family: "Fraunces", serif;
  color: var(--gold);
  font-size: 1.6rem;
  margin-bottom: 10px;
  display: block;
}

/* Quote / devotional strip */

.devotional {
  text-align: center;
  padding: 56px 0;
}
.devotional .mark {
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 720px;
  margin: 0 auto 10px;
}
.devotional .mark.my { font-size: 1.5rem; }
.devotional .src { color: var(--muted); font-size: 0.9rem; }

/* CTA band */

.cta-band {
  background: var(--action);
  color: var(--on-action);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
}
.cta-band h2 { color: var(--on-action); }
.cta-band p { color: var(--on-action); opacity: 0.85; }
.cta-band .btn-primary {
  background: var(--on-action);
  color: var(--action);
}
.cta-band .btn-ghost {
  border-color: color-mix(in srgb, var(--on-action) 40%, transparent);
  color: var(--on-action);
}
.cta-band .btn-ghost:hover { border-color: var(--on-action); color: var(--on-action); }

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

footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 36px;
  margin-top: 20px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 24px; height: 24px; }
.footer-brand span { font-family: "Fraunces", serif; font-weight: 600; }
.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
  flex-wrap: wrap;
}
.footer-links a { color: var(--muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--gold); text-decoration: none; }
.footer-note {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 24px;
}

/* ---------- Simple inner pages (support / privacy) ---------- */

.page-head {
  padding: 56px 0 24px;
  text-align: center;
}
.page-head p { color: var(--muted); }

.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose h2 { margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { color: var(--text); padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose .muted { color: var(--muted); font-size: 0.92rem; }

.faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}
.faq summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { color: var(--muted); margin-top: 14px; font-size: 0.95rem; }

.contact-card {
  background: var(--hero);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  max-width: 760px;
  margin: 40px auto 0;
}
.contact-card .email {
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  color: var(--gold);
  display: inline-block;
  margin: 10px 0 4px;
}

.badge-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}
