/*
 * Kinship's pages, in the app's default theme: Warm Minimal, light.
 * Tokens mirror ThemePalette.warmMinimalLight in the app. Every class is
 * prefixed `k-` so nothing in the site-wide styles.css can reach it.
 */
:root {
  --k-bg: #F7F4EF;
  --k-surface: #FFFFFF;
  --k-border: #E4DDD3;
  --k-text: #292824;
  --k-muted: #625C54;
  --k-accent: #A65F43;
  --k-accent-soft: #F3E4DC;
  /* Text on --k-accent-soft: the accent itself is 3.9:1 there, below WCAG AA;
     this darker shade is 5.45:1. */
  --k-accent-text: #8A4A33;
  --k-link: #96563F;
  --k-radius: 22px;
}

body.k-page {
  margin: 0;
  background: var(--k-bg);
  color: var(--k-text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.k-page * { box-sizing: border-box; }
.k-page a { color: var(--k-link); }
.k-wrap { max-width: 980px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.k-muted { color: var(--k-muted); }

/* Bar */
.k-bar { display: flex; align-items: center; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.k-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; font-weight: 700; font-size: 19px; color: var(--k-text) !important; text-decoration: none; }
.k-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--k-accent); color: #fff; font-size: 18px; }
.k-langs { display: flex; gap: 4px; }
.k-langs a { padding: 6px 12px; border-radius: 999px; color: var(--k-muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.k-langs a[aria-current] { background: var(--k-accent-soft); color: var(--k-accent-text); }

/* Hero */
.k-hero { text-align: center; padding: 36px 0 20px; }
.k-hero-icon { display: block; margin: 0 auto; width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 18px 40px rgba(41, 40, 36, .14); }
.k-hero h1 { font-size: clamp(40px, 8vw, 60px); line-height: 1.05; margin: 22px 0 10px; letter-spacing: -0.02em; }
.k-tagline { font-size: clamp(18px, 3vw, 22px); color: var(--k-muted); max-width: 560px; margin: 0 auto 18px; }
.k-pill { display: inline-block; margin: 0; padding: 8px 16px; border-radius: 18px; background: var(--k-accent-soft); color: var(--k-accent-text); font-weight: 600; font-size: 14px; }

/* Blocks */
.k-block { margin: 44px 0; }
.k-block h2 { font-size: 26px; margin: 0 0 18px; letter-spacing: -0.01em; }
.k-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.k-card { background: var(--k-surface); border: 1px solid var(--k-border); border-radius: var(--k-radius); padding: 20px; }
.k-emoji { font-size: 26px; }
.k-card h3 { font-size: 17px; margin: 10px 0 6px; }
.k-card p { margin: 0; color: var(--k-muted); font-size: 15px; }

.k-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.k-steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--k-surface); border: 1px solid var(--k-border); border-radius: var(--k-radius); padding: 18px; }
.k-step-n { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--k-accent); color: #fff; font-weight: 700; }
.k-steps h3 { margin: 2px 0 4px; font-size: 16px; }
.k-steps p { margin: 0; color: var(--k-muted); font-size: 15px; }

.k-note { background: var(--k-surface); border: 1px solid var(--k-border); border-radius: var(--k-radius); padding: 24px; }
.k-note p { margin: 0 0 8px; }

/* Help */
.k-doc { background: var(--k-surface); border: 1px solid var(--k-border); border-radius: var(--k-radius); padding: 26px 22px; max-width: 760px; margin-left: auto; margin-right: auto; }
.k-doc h1 { margin: 0 0 14px; font-size: 30px; }
.k-faq { border-top: 1px solid var(--k-border); padding: 14px 0; }
.k-faq summary { cursor: pointer; font-weight: 600; font-size: 17px; }
.k-faq p { margin: 8px 0 0; color: var(--k-muted); }

/* Footer */
.k-foot { padding-top: 26px; padding-bottom: 48px; border-top: 1px solid var(--k-border); text-align: center; font-size: 14px; color: var(--k-muted); }
.k-foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 10px; font-weight: 600; }
.k-foot-links a { display: inline-block; min-height: 24px; padding-block: 3px; }
.k-foot p { margin: 6px 0; }


/* ---------- Support page ----------
   The page App Store Connect links as the Support URL. One centred column, the
   contact card first and set apart, then the questions. Everything else reuses
   the blocks above — .k-doc, .k-faq, .k-steps, .k-note. */

.k-help { max-width: 760px; margin-left: auto; margin-right: auto; }

.k-help-hero { margin: 32px 0 24px; }
.k-help-hero h1 { margin: 0 0 10px; font-size: 34px; letter-spacing: -0.02em; }
/* The tagline is centred under the app's hero on the main page; here it sits
   under a left-aligned heading and has to follow it. */
.k-help-hero .k-tagline { margin: 0; max-width: 60ch; text-align: left; }

.k-help-contact {
  background: var(--k-surface);
  border: 1px solid var(--k-border);
  border-top: 4px solid var(--k-accent);
  border-radius: var(--k-radius);
  padding: 26px 24px;
}
.k-help-contact h2 { margin: 0 0 8px; font-size: 24px; }
.k-help-contact > p { margin: 0 0 14px; color: var(--k-muted); }

.k-help-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 4px 0 20px !important; }

/* Qualified with .k-page a: the section's link colour is set on .k-page a,
   which outranks a bare .k-button and left the label brown on brown. */
.k-page a.k-button,
.k-button {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--k-accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 0;
}
.k-page a.k-button:hover { color: #fff; filter: brightness(0.94); }

.k-dl { display: grid; gap: 10px 24px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 0; }
.k-dl dt { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--k-muted); }
.k-dl dd { margin: 3px 0 0; font-weight: 600; }

.k-list { margin: 0 0 14px; padding-left: 20px; }
.k-list li { margin: 0 0 6px; }

.k-warn {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--k-accent-soft);
  color: var(--k-accent-text);
  font-weight: 600;
}

.k-topic { margin: 26px 0 4px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--k-accent); }
.k-doc h2 { margin: 0 0 4px; font-size: 26px; }

.k-help-note { margin-top: 14px; }

.k-links { display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; }

@media (max-width: 560px) {
  .k-help-hero h1 { font-size: 28px; }
  .k-button { width: 100%; text-align: center; }
}


/* "Cookie settings" in the footer, styled as one of the links beside it. */
.consent-reset { display: inline; margin: 0; }
.consent-reset__button { min-height: 24px; padding: 3px 0; border: 0; background: none; color: var(--k-link); font: inherit; font-weight: 600; cursor: pointer; }
.consent-reset__button:hover { text-decoration: underline; }
.consent-reset__button:focus-visible { outline: 2px solid var(--k-link); outline-offset: 2px; }
