/* ---------- Kriva — shared styles for document pages ---------- */
:root {
  --cream: #FAF5EF;
  --cream-deep: #F2E9DC;
  --cream-deeper: #E8DCC9;
  --plum: #3D2C2E;
  --terracotta: #C97B5C;
  --terracotta-deep: #A8593B;
  --sage: #7A8C5C;
  --rose: #E8A48E;
  --rose-soft: #F4D4C5;
  --ink: #2A2024;
  --muted: #8A7A75;
  --line: #E5D9C8;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--terracotta-deep); text-underline-offset: 3px; }
a:hover { color: var(--plum); }

/* ---------- NAV ---------- */
nav.site {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 6vw; max-width: 1280px; margin: 0 auto;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Lora', Georgia, serif; font-size: 26px; font-weight: 700;
  color: var(--plum); letter-spacing: -0.5px; text-decoration: none;
  line-height: 1;
}
.logo svg { display: block; flex-shrink: 0; }
.logo .word { display: inline-block; }
.logo .word em { color: var(--terracotta); font-style: normal; }
.kma-stroke { stroke: var(--terracotta); fill: none; }
.kma-fill { fill: var(--terracotta); }
footer.site .kma-stroke { stroke: var(--rose); }
footer.site .kma-fill { fill: var(--rose); }
.nav-cta {
  background: var(--plum); color: var(--cream); padding: 10px 20px;
  border-radius: 100px; font-size: 14px; font-weight: 500; text-decoration: none;
}
.nav-cta:hover { background: var(--terracotta-deep); color: var(--cream); }

/* ---------- DOCUMENT LAYOUT ---------- */
.doc {
  max-width: 760px; margin: 0 auto; padding: 40px 6vw 100px;
}
.doc .eyebrow {
  display: inline-block; padding: 6px 14px; background: var(--rose-soft);
  color: var(--terracotta-deep); border-radius: 100px; font-size: 12px;
  font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  margin-bottom: 20px;
}
.doc h1 {
  font-family: 'Lora', Georgia, serif; font-weight: 600; font-size: 46px;
  color: var(--plum); margin-bottom: 14px; line-height: 1.1; letter-spacing: -1px;
}
.doc .updated {
  font-size: 13px; color: var(--muted); margin-bottom: 40px;
  padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.doc h2 {
  font-family: 'Lora', Georgia, serif; font-weight: 600; font-size: 26px;
  color: var(--plum); margin-top: 44px; margin-bottom: 14px; line-height: 1.25;
}
.doc h3 {
  font-size: 17px; font-weight: 700; color: var(--plum);
  margin-top: 24px; margin-bottom: 8px;
}
.doc p { margin-bottom: 16px; color: var(--ink); font-size: 16px; }
.doc ul, .doc ol { margin: 14px 0 18px 22px; }
.doc li { margin-bottom: 8px; color: var(--ink); font-size: 16px; }
.doc strong { color: var(--plum); font-weight: 600; }
.doc em { color: var(--terracotta-deep); font-style: italic; }

/* ---------- CALLOUT ---------- */
.callout {
  background: var(--cream-deep); border-left: 3px solid var(--terracotta);
  padding: 20px 24px; border-radius: 0 14px 14px 0; margin: 28px 0;
}
.callout p { margin-bottom: 0; font-size: 15px; }
.callout strong { color: var(--terracotta-deep); }

/* ---------- CARDS ---------- */
.card {
  background: var(--cream-deep); border-radius: 18px;
  padding: 28px; margin-bottom: 16px; border: 1px solid var(--line);
}
.card h2 { margin-top: 0; font-size: 22px; }
.card p:last-child { margin-bottom: 0; }

/* ---------- BUTTONS ---------- */
.btn-primary {
  background: var(--plum); color: var(--cream); padding: 14px 26px;
  border-radius: 100px; font-size: 15px; font-weight: 600;
  text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: var(--terracotta-deep); color: var(--cream); }
.btn-secondary {
  color: var(--plum); padding: 14px 6px; font-size: 15px; font-weight: 500;
  text-decoration: underline; text-underline-offset: 4px;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line); padding: 24px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-family: 'Lora', Georgia, serif; font-size: 20px;
  color: var(--plum); font-weight: 600; margin-bottom: 10px; line-height: 1.3;
}
.faq-a { color: var(--ink); font-size: 16px; line-height: 1.6; }
.faq-a a { color: var(--terracotta-deep); }

/* ---------- ERROR PAGE ---------- */
.error-page {
  min-height: 70vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 60px 6vw;
}
.error-page .num {
  font-family: 'Lora', Georgia, serif; font-size: 120px;
  color: var(--terracotta); line-height: 1; margin-bottom: 0;
  font-weight: 600; letter-spacing: -4px;
}
.error-page h1 {
  font-family: 'Lora', Georgia, serif; font-size: 38px;
  color: var(--plum); margin: 24px 0 14px; max-width: 540px;
  font-weight: 600; line-height: 1.2;
}
.error-page p {
  color: var(--muted); max-width: 480px; margin-bottom: 32px;
  font-size: 16px; line-height: 1.6;
}

/* ---------- FOOTER ---------- */
footer.site {
  background: var(--ink); color: var(--cream); padding: 60px 6vw 40px;
}
footer.site .inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 30px; align-items: flex-start;
}
footer.site .brand { max-width: 380px; }
footer.site .brand .logo { color: var(--cream); }
footer.site .brand .logo .word em { color: var(--rose); }
footer.site .brand .tag {
  font-family: 'Lora', Georgia, serif; font-size: 17px;
  color: rgba(250, 245, 239, 0.75); margin-top: 12px;
  line-height: 1.4; font-style: italic;
}
footer.site .links { display: flex; gap: 36px; flex-wrap: wrap; }
footer.site .links .col h4 {
  font-size: 12px; color: rgba(250, 245, 239, 0.5);
  text-transform: uppercase; letter-spacing: 1.2px; font-weight: 600;
  margin-bottom: 14px;
}
footer.site .links a {
  display: block; color: rgba(250, 245, 239, 0.8); text-decoration: none;
  font-size: 14px; margin-bottom: 8px;
}
footer.site .links a:hover { color: var(--cream); }
.disclaimer-foot {
  max-width: 1280px; margin: 50px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(250, 245, 239, 0.12);
  font-size: 11px; color: rgba(250, 245, 239, 0.55); line-height: 1.6;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px) {
  .doc h1 { font-size: 34px; }
  .doc h2 { font-size: 22px; }
  .doc { padding-top: 20px; }
  .error-page .num { font-size: 88px; }
  .error-page h1 { font-size: 28px; }
  footer.site .links { gap: 24px; }
}


/* PNG-based logo mark (replaces the inline SVG used in 1.0). The image is
   the canonical brand mark exported from the iOS app's asset catalog —
   identical to the in-app LogoMark used at the top of every screen. */
.logo .logo-mark {
  width: 34px; height: 34px;
  display: block; flex-shrink: 0;
  object-fit: contain;
}
