/* Liyo legal site — MirrorHue palette from the iOS app */

:root {
  --bg-page: #fcf7fa;
  --bg-card: #ffffff;
  --bg-tint: #fff5fb;
  --rose: #fa5ccd;
  --rose-strong: #e14ebb;
  --rose-pressed: #cc3ea8;
  --rose-soft: #fad0ec;
  --espresso: #4a3f38;
  --mute: #6f655d;
  --section: #5a5048;
  --divider: #ece8ed;
  --tab-bar: #fff8fc;
  --danger: #a04a3c;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow: 0 12px 40px rgba(74, 63, 56, 0.07), 0 2px 8px rgba(225, 78, 187, 0.06);
  --shadow-soft: 0 6px 20px rgba(74, 63, 56, 0.05);
  --max: 960px;
  --prose: 720px;
  --nav-h: 68px;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-ui: "Sora", "Avenir Next", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  color: var(--espresso);
  background: var(--bg-page);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -12%, rgba(250, 92, 205, 0.22), transparent 55%),
    radial-gradient(circle at 92% 18%, rgba(250, 208, 236, 0.55), transparent 36%),
    radial-gradient(circle at 6% 78%, rgba(225, 78, 187, 0.08), transparent 40%),
    radial-gradient(circle at 70% 95%, rgba(255, 245, 251, 0.9), transparent 45%);
}

a {
  color: var(--rose-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover { color: var(--rose-pressed); }

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Nav ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(252, 247, 250, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(236, 232, 237, 0.9);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--espresso);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand:hover { color: var(--rose-strong); }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fb63d1 0%, var(--rose) 48%, var(--rose-strong) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(225, 78, 187, 0.35);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topnav a {
  text-decoration: none;
  color: var(--mute);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}

.topnav a:hover,
.topnav a[aria-current="page"] {
  color: var(--rose-strong);
  background: var(--rose-soft);
}

/* ── Layout ── */
.main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 22px 72px;
}

.page-hero {
  max-width: var(--prose);
  margin: 0 auto 28px;
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--rose-soft);
  color: var(--rose-strong);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 14px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--espresso);
}

.lead {
  margin: 0;
  font-size: 1.08rem;
  color: var(--mute);
  max-width: 34em;
}

.meta {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--section);
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 40px);
  margin: 0 auto 22px;
  max-width: var(--prose);
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.content-card + .content-card {
  animation-delay: 0.14s;
}

.prose h2 {
  margin: 2rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--espresso);
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  margin: 1.35rem 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--espresso);
}

.prose p,
.prose li {
  color: var(--mute);
}

.prose ul {
  padding-left: 1.15em;
  margin: 0.5rem 0 1rem;
}

.prose li { margin: 0.35rem 0; }

.prose strong { color: var(--espresso); font-weight: 600; }

.summary {
  margin: 0 0 1.4rem;
  padding: 14px 16px 14px 18px;
  border-left: 4px solid var(--rose-strong);
  background: var(--bg-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--espresso);
}

.highlight-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--rose-soft), var(--bg-tint));
  border: 1px solid rgba(250, 92, 205, 0.18);
}

.highlight-box-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--rose-strong);
  box-shadow: var(--shadow-soft);
}

.highlight-box-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.highlight-box-body strong {
  font-size: 0.95rem;
  color: var(--espresso);
}

.highlight-box-body p {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--mute);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.contact-tile {
  padding: 18px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-tint);
  border: 1px solid var(--divider);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: var(--rose-soft);
}

.contact-tile h3 {
  margin: 10px 0 6px;
  font-size: 0.95rem;
  color: var(--espresso);
}

.contact-tile p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--mute);
}

.contact-tile__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--rose-soft);
  color: var(--rose-strong);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.faq-item {
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.faq-item[open] {
  border-color: rgba(225, 78, 187, 0.35);
  box-shadow: 0 8px 24px rgba(225, 78, 187, 0.08);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 600;
  color: var(--espresso);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.faq-item summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--rose-strong);
  border-bottom: 2px solid var(--rose-strong);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-top: -4px;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq-item__body {
  padding: 0 18px 16px;
  color: var(--mute);
}

.faq-item__body p { margin: 0 0 0.7rem; }
.faq-item__body p:last-child { margin-bottom: 0; }

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 22px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  color: var(--mute);
  font-size: 0.88rem;
}

.site-footer a {
  text-decoration: none;
  color: var(--mute);
}

.site-footer a:hover { color: var(--rose-strong); }

.footer-links {
  display: flex;
  gap: 16px;
}

/* ── Home landing ── */
.home-hero {
  min-height: calc(100vh - var(--nav-h) - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0 64px;
  max-width: 640px;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-hero .brand-word {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 12vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  background: linear-gradient(120deg, var(--espresso) 10%, var(--rose-strong) 55%, var(--rose) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.5vw, 2rem);
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--espresso);
}

.home-hero .lead {
  margin-bottom: 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(145deg, #fb63d1, var(--rose-strong));
  color: #fff;
  box-shadow: 0 10px 28px rgba(225, 78, 187, 0.35);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 14px 32px rgba(225, 78, 187, 0.42);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--espresso);
  border: 1px solid var(--divider);
}

.btn-ghost:hover {
  color: var(--rose-strong);
  border-color: var(--rose-soft);
  background: var(--bg-tint);
}

.home-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 48px;
  max-width: 720px;
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.home-strip article {
  padding: 18px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--divider);
  backdrop-filter: blur(8px);
}

.home-strip h2 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--espresso);
}

.home-strip p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--mute);
  line-height: 1.5;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .contact-grid,
  .home-strip {
    grid-template-columns: 1fr;
  }

  .topnav a { padding: 8px 10px; font-size: 0.86rem; }

  .home-hero {
    min-height: auto;
    padding-top: 28px;
  }
}

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