/* ── KinCasts site layer — loads after the kit's app.css ───────────────────
 *
 * The look Bennett asked for: "like an Apple site". System font, large tight
 * headlines, near-black text on white and pale grey bands, a frosted
 * navigation bar, pill buttons, generous space. Kit files are left alone so
 * a kit sync does not fight this file.
 * ───────────────────────────────────────────────────────────────────────── */

:root {
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --band: #f5f5f7;
  --bs-body-font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: #fff;
  --bs-secondary-color: var(--ink-soft);
  --bs-border-color: #d2d2d7;
}

body {
  font-size: 1.0625rem;            /* 17px, the size Apple sets body copy in */
  line-height: 1.47;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .h1, .h2, .h3, .h4, .display-5 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -.022em;
  line-height: 1.1;
}
.fw-bold { font-weight: 600 !important; }
.lead { font-size: 1.3125rem; font-weight: 400; line-height: 1.38; color: var(--ink-soft); letter-spacing: .011em; }

a { text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navigation: thin, frosted, small type ────────────────────────────── */
.navbar {
  --bs-navbar-padding-y: .35rem;
  background: rgba(255, 255, 255, .72) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08) !important;
}
.navbar-brand { font-size: 1.05rem; font-weight: 600; color: var(--ink); gap: .5rem; }
.navbar-brand:hover { text-decoration: none; }
.navbar-brand img { width: 28px; height: 28px; border-radius: 22.5%; }
.navbar-brand .brand-tagline { display: none; }
.navbar-nav .nav-link { font-size: .8125rem; color: var(--ink); opacity: .8; padding-left: .9rem; padding-right: .9rem; }
.navbar-nav .nav-link:hover { opacity: 1; text-decoration: none; }
.navbar-nav .nav-link.active { color: var(--ink) !important; opacity: 1; font-weight: 600; }

/* ── Buttons: pills, and a plain "Learn more ›" style link ────────────── */
.btn { font-size: 1.0625rem; font-weight: 400; border-radius: 980px; padding: .55rem 1.35rem; }
.btn:hover { text-decoration: none; }
/* Cerulean paints primary buttons with a light-blue gradient and a text shadow. */
.btn-primary, .btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-image: none; text-shadow: none; filter: none;
}
.btn-primary { background-color: var(--accent); border-color: var(--accent); }
.btn-lg { font-size: 1.0625rem; padding: .7rem 1.6rem; }
.link-more { font-size: 1.3125rem; }
.link-more::after { content: " \203A"; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero-kincast { padding: 5.5rem 0 4.5rem; text-align: center; }
.hero-kincast .hero-icon {
  width: 132px; height: 132px; border-radius: 22.5%;
  box-shadow: 0 18px 40px -14px rgba(var(--accent-rgb), .55);
  margin-bottom: 2rem;
}
.hero-kincast h1 { font-size: clamp(3rem, 8vw, 5rem); font-weight: 700; letter-spacing: -.03em; margin-bottom: .35rem; }
.hero-kincast .hero-sub { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 500; letter-spacing: -.01em; color: var(--ink); margin-bottom: 1rem; }
.hero-kincast .lead { max-width: 34rem; margin: 0 auto 1.75rem; }
.hero-kincast .hero-links { display: flex; flex-wrap: wrap; gap: 1.75rem; justify-content: center; }

/* ── Bands and tiles ──────────────────────────────────────────────────── */
.band { background: var(--band); }
.section-title { font-size: clamp(2rem, 5vw, 3rem); text-align: center; margin-bottom: .6rem; }
.section-sub { text-align: center; max-width: 36rem; margin: 0 auto 2.75rem; }
.tile {
  background: #fff; border-radius: 28px; padding: 2.5rem 2rem; height: 100%; text-align: center;
}
.tile .bi { font-size: 2.5rem; color: var(--accent); display: inline-block; margin-bottom: 1rem; }
.tile h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.tile p { color: var(--ink-soft); margin-bottom: 0; }

/* ── The one big card on the home page: the Recommended list ───────────── */
.feature-card { background: #fff; border-radius: 36px; padding: clamp(1.75rem, 5vw, 4rem); }
.feature-title { font-size: clamp(2.25rem, 5.5vw, 3.5rem); margin-bottom: 1rem; }
.feature-points { list-style: none; padding: 0; margin: 1.75rem 0; }
.feature-points li { padding: .7rem 0; border-top: 1px solid var(--band); color: var(--ink-soft); }
.feature-points li strong { color: var(--ink, #1d1d1f); }
/* A white tile needs an edge when it sits on a white section. */
section:not(.band) .tile { background: var(--band); }

/* ── Why KinCasts: a picture of the app beside each reason ─────────────── */
.why-row { padding: 4.5rem 0; }
.why-title { font-size: clamp(1.9rem, 4.2vw, 2.75rem); margin-bottom: 1rem; }
.why-problem { color: var(--ink-soft); font-size: 1.0625rem; margin-bottom: .75rem; }
.why-answer { color: inherit; max-width: 32rem; }
/* The picture sits in a plain dark frame the shape of a phone. */
.phone {
  width: min(280px, 72vw); height: auto;
  border: 10px solid #1d1d1f; border-radius: 44px; background: #1d1d1f;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .45);
}

/* ── Text pages (Support, Privacy, Contact) ───────────────────────────── */
.eyebrow { letter-spacing: 0; text-transform: none; font-size: 1.0625rem; font-weight: 600; color: var(--accent); }
.display-5 { font-size: clamp(2.5rem, 6vw, 3.5rem); font-weight: 700; letter-spacing: -.025em; }
main h2.h4 { font-size: 1.5rem; margin-top: 2.5rem !important; }
main ul li { margin-bottom: .6rem; }
.form-control, .form-select { border-radius: 12px; padding: .7rem .9rem; font-size: 1.0625rem; }
.alert { border-radius: 14px; }

/* ── Footer: small grey type on a pale band ───────────────────────────── */
.site-footer { background: var(--band); border-top: 0; padding: 1.25rem 0; font-size: .75rem; color: var(--ink-soft) !important; }
.site-footer p { margin-bottom: 0 !important; }

/* ── Member pages: sign in, join, My Kinfolk ──────────────────────────── */
.btn-nav-plain { background: none; border: 0; border-radius: 0; font-weight: 400; }
.panel { background: #fff; border: 1px solid var(--bs-border-color); border-radius: 22px; padding: 2rem; }
.band .panel { border-color: transparent; }
.narrow { max-width: 30rem; }
.form-label { font-size: .9375rem; font-weight: 600; margin-bottom: .35rem; }
.person-list { list-style: none; padding: 0; margin: 0; }
.person-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .9rem 0; border-top: 1px solid var(--bs-border-color); margin: 0; }
.person-list li:first-child { border-top: 0; }
.person-list .who { font-weight: 600; flex: 1 1 12rem; min-width: 0; }
.person-list .note { color: var(--ink-soft); font-size: .9375rem; }
.tag { font-size: .8125rem; font-weight: 600; border-radius: 980px; padding: .15rem .65rem; background: var(--band); color: var(--ink-soft); }
.tag-accent { background: rgba(var(--accent-rgb), .1); color: var(--accent); }
.link-row { display: flex; gap: .5rem; flex: 1 1 100%; }
.link-row input { font-size: .9375rem; }
.btn-sm { font-size: .9375rem; padding: .35rem .95rem; }
main .panel h2.h4 { margin-top: 0 !important; }
.link-row { flex-wrap: wrap; }
.link-row input { flex: 1 1 14rem; min-width: 0; width: auto; }
.link-row .btn { white-space: nowrap; }
.show-list li { align-items: flex-start; }
.show-art { border-radius: 12px; flex: 0 0 56px; object-fit: cover; }
.hp { display: none; }
