/* Pheng Shui support site
   Values copied from the app's design system (tokens.css). */

:root {
  --pink: #F0427E;
  --pink-grad: linear-gradient(135deg, #F0427E 0%, #FF7A9C 100%);
  --shadow-pink: 0 14px 30px rgba(240, 66, 126, .34);

  --skin:
    radial-gradient(120% 70% at 80% -5%, #FCE3EC 0%, rgba(252, 227, 236, 0) 55%),
    radial-gradient(110% 60% at 0% 105%, #FBEAD8 0%, rgba(251, 234, 216, 0) 50%),
    #FBF3EF;
  --surface: #FBF3EF;
  --card: #FFFFFF;
  --card-shadow: 0 4px 14px rgba(120, 60, 80, .08);
  --ink: #211D1A;
  --body-muted: #6B6055;
  --label-muted: #8B7F72;
  --hairline: #CFC4B9;
  --divider: rgba(33, 29, 26, .08);

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', system-ui, sans-serif;
  --r-card: 18px;
  --r-button: 17px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --skin:
      radial-gradient(120% 70% at 82% -5%, #3A2233 0%, rgba(58, 34, 51, 0) 55%),
      radial-gradient(110% 60% at 0% 105%, #2A2030 0%, rgba(42, 32, 48, 0) 50%),
      #16121C;
    --surface: #16121C;
    --card: rgba(255, 255, 255, .11);
    --card-shadow: none;
    --ink: #FFFFFF;
    --body-muted: rgba(255, 255, 255, .5);
    --label-muted: rgba(255, 255, 255, .5);
    --hairline: rgba(255, 255, 255, .3);
    --divider: rgba(255, 255, 255, .1);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--surface);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

/* The app's skin: fixed, full viewport, never scrolls with content.
   A fixed pseudo-element is used because background-attachment: fixed
   is unreliable on iOS Safari. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--skin);
  pointer-events: none;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left));
}

a { color: var(--pink); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible, .button:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: max(18px, env(safe-area-inset-top));
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 22%;
  box-shadow: var(--card-shadow), 0 0 0 .5px rgba(120, 60, 80, .12);
}

/* Language picker: segmented control, top right */
.lang {
  display: inline-flex;
  flex: none;
  padding: 3px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--card-shadow);
}
.lang a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--label-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}
.lang a:hover { text-decoration: none; color: var(--ink); }
.lang a[aria-current="page"] {
  background: var(--pink-grad);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(240, 66, 126, .28);
}
.lang a:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 999px; }

/* ---------- Page heading ---------- */

main { padding: 28px 0 8px; }

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--label-muted);
}

h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.lede { margin: 0 0 24px; color: var(--body-muted); font-weight: 500; }

h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.section-label { margin: 28px 4px 10px; }

p { margin: 0 0 12px; }
p:last-child, ul:last-child { margin-bottom: 0; }
.muted { color: var(--body-muted); }
strong { font-weight: 700; }

ul { margin: 0 0 12px; padding-left: 20px; }
li { margin-bottom: 6px; }
li::marker { color: var(--hairline); }

/* ---------- Cards ---------- */

.card {
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: var(--card-shadow);
  padding: 18px 20px;
  margin-bottom: 12px;
}
.card p, .card li { color: var(--body-muted); }
.card strong { color: var(--ink); }

/* ---------- Primary button (one per page) ---------- */

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  padding: 0 20px;
  border-radius: var(--r-button);
  background: var(--pink-grad);
  box-shadow: var(--shadow-pink);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.005em;
}
.button:hover { text-decoration: none; filter: brightness(1.04); }
.button:active { transform: scale(.985); }

.contact-line {
  margin: 14px 0 0;
  text-align: center;
  color: var(--body-muted);
  font-size: 14px;
}

/* ---------- List rows (landing) ---------- */

.rows { display: grid; gap: 10px; }
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 14px 18px;
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: var(--card-shadow);
  color: var(--ink);
}
.row:hover { text-decoration: none; }
.row-text { flex: 1; min-width: 0; }
.row-title { display: block; font-size: 16px; font-weight: 700; }
.row-sub { display: block; font-size: 13px; font-weight: 600; color: var(--label-muted); }

.chevron {
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--hairline);
  border-bottom: 2px solid var(--hairline);
  transform: rotate(-45deg);
  margin-right: 4px;
}

/* ---------- FAQ (details / summary as settings rows) ---------- */

.faq {
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.faq details + details { border-top: 1px solid var(--divider); }
.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { flex: 1; min-width: 0; }
.faq summary .chevron { transform: rotate(45deg); transition: transform .2s ease; margin-top: -4px; }
.faq details[open] summary .chevron { transform: rotate(-135deg); margin-top: 4px; }
.faq .answer { padding: 0 18px 16px; color: var(--body-muted); }
.faq .answer p, .faq .answer li { color: var(--body-muted); }

.path { color: var(--ink); font-weight: 700; white-space: normal; }

/* ---------- Landing ---------- */

.hero { text-align: center; padding: 28px 0 28px; }
.hero img {
  width: 112px;
  height: 112px;
  border-radius: 22%;
  box-shadow: 0 16px 40px rgba(120, 60, 80, .18);
  margin-bottom: 18px;
}
.hero h1 { margin-bottom: 6px; }
.hero p { margin: 0 auto; max-width: 30em; color: var(--body-muted); }

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

.site-footer {
  padding: 28px 0 max(28px, env(safe-area-inset-bottom));
  font-size: 13px;
  font-weight: 600;
  color: var(--label-muted);
  text-align: center;
}
.site-footer a { color: var(--label-muted); font-weight: 600; }
.site-footer .dot { margin: 0 6px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
