/* KhayaKin marketing site. Colours match the logo and the app. */
:root {
  --teal: #0a4a50;
  --teal-dark: #063a3f;
  --teal-soft: #e7f0f0;
  --coral: #ff6f59;
  --coral-dark: #ef5a43;
  --ink: #12292c;
  --muted: #5f7275;
  --line: #dde6e6;
  --bg-soft: #f4f7f7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: #fff;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--teal); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -.025em; color: var(--teal); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; letter-spacing: -.02em; color: var(--teal); margin-bottom: 28px; }
h3 { font-size: 1.1rem; }
.muted { color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

.btn {
  display: inline-block; padding: 10px 20px; border-radius: 99px; font-weight: 700; font-size: .95rem;
  background: var(--teal); color: #fff; border: 1.5px solid var(--teal); white-space: nowrap;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn.ghost { background: transparent; color: var(--teal); border-color: var(--line); }
.btn.ghost:hover { background: var(--teal-soft); }
.btn.coral { background: var(--coral); border-color: var(--coral); }
.btn.coral:hover { background: var(--coral-dark); border-color: var(--coral-dark); }
.btn.white { background: #fff; border-color: #fff; color: var(--teal); }
.btn.lg { padding: 14px 28px; font-size: 1.05rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 1.35rem; font-weight: 700; color: var(--teal); letter-spacing: -.01em; }
.brand b { color: var(--coral); }
.links { display: flex; gap: 26px; margin-left: auto; font-size: .95rem; font-weight: 500; }
.links a { color: var(--ink); }
.links a:hover { color: var(--teal); }
.actions { display: flex; gap: 10px; }

/* Hero */
.hero { padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
img { max-width: 100%; height: auto; display: block; }
.hero-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; box-shadow: 0 30px 60px rgba(10, 74, 80, .18); }
.eyebrow { font-size: .85rem; font-weight: 600; letter-spacing: .04em; color: var(--coral-dark); margin-bottom: 16px; }
.lead { font-size: 1.15rem; color: #34494c; margin-top: 18px; max-width: 54ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.note { margin-top: 16px; font-size: .88rem; color: var(--muted); }

/* Phone illustration */
.phone { justify-self: center; width: 300px; padding: 10px; border-radius: 40px; background: var(--teal); box-shadow: 0 30px 60px rgba(10, 74, 80, .25); }
.screen { border-radius: 31px; background: var(--bg-soft); padding: 18px 14px 12px; font-size: 12.5px; line-height: 1.35; }
.p-top { display: flex; align-items: center; justify-content: space-between; font-size: 15px; margin-bottom: 12px; }
.p-av { width: 28px; height: 28px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.p-chips { display: flex; gap: 5px; margin-bottom: 10px; }
.p-chips span { padding: 5px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-weight: 500; font-size: 11px; }
.p-chips .on { background: var(--teal); border-color: var(--teal); color: #fff; }
.p-card { display: flex; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin-bottom: 8px; }
.p-card > div { flex: 1; min-width: 0; }
.p-pic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.p-row { display: flex; justify-content: space-between; }
.p-card small { color: var(--muted); font-size: 11px; }
.p-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.p-tags i { font-style: normal; font-size: 10px; padding: 2px 7px; border-radius: 99px; background: var(--teal-soft); color: var(--teal); }
.p-tags .v { background: var(--teal); color: #fff; font-weight: 700; }
.p-tabs { display: flex; gap: 4px; margin-top: 12px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.p-tabs span { flex: 1; text-align: center; padding: 8px 0; border-radius: 12px; font-size: 10.5px; color: var(--muted); }
.p-tabs .on { background: var(--teal); color: #fff; font-weight: 700; }

/* Carer types */
.types { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); padding: 48px 0; }
.types-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.type img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; margin-bottom: 14px; }
.type h3 { color: var(--teal); }
.type p { font-size: .92rem; color: var(--muted); }

/* Sections */
.section { padding: 80px 0; }
.section.story { background: var(--bg-soft); border-top: 1px solid var(--line); }
.story .eyebrow { margin-bottom: 10px; }
.story-grid { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.founder { width: 220px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 20px; }
@media (max-width: 700px) { .story-grid { grid-template-columns: 1fr; gap: 24px; } .founder { width: 160px; aspect-ratio: 1; border-radius: 50%; } }
.story-text { border-left: 3px solid var(--coral); padding-left: 24px; font-size: 1.12rem; color: #2a4144; }
.story-text p + p { margin-top: 14px; }
.story-text .sign { font-size: .95rem; font-weight: 600; color: var(--teal); margin-top: 20px; }
.section.tinted { background: var(--teal); color: #fff; }
.section.tinted h2 { color: #fff; }
.section.tinted .lead { color: rgba(255, 255, 255, .9); margin-top: 0; }
.section.tinted .muted { color: rgba(255, 255, 255, .7); margin-top: 16px; font-size: .95rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { border: 1px solid var(--line); border-radius: 20px; padding: 30px; }
.panel img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; margin-bottom: 24px; }
.safety-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; margin-top: 28px; }
.panel h3 { font-size: 1.25rem; color: var(--teal); margin-bottom: 18px; }
.steps { list-style: none; counter-reset: step; margin: 0 0 24px; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 46px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--teal); color: #fff; display: grid; place-items: center; font-size: .85rem; font-weight: 700;
}
.steps.coral li::before { background: var(--coral); }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: .95rem; }

.safety-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { padding: 16px 0 16px 34px; border-top: 1px solid rgba(255, 255, 255, .18); position: relative; }
.checks li:first-child { border-top: 0; padding-top: 0; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 24px; width: 12px; height: 6px; border-left: 2.5px solid var(--coral); border-bottom: 2.5px solid var(--coral); transform: rotate(-45deg); }
.checks li:first-child::before { top: 8px; }
.checks b { display: block; }
.checks span { color: rgba(255, 255, 255, .78); font-size: .95rem; }

.features-grid { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.features > div { border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.features h3 { color: var(--teal); margin-bottom: 6px; }
.features p { color: var(--muted); font-size: .95rem; }

.band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.band-photo { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; flex: none; }
.band .grow { flex: 1; min-width: 240px; }
.band h2 { margin-bottom: 4px; }
.band p { color: var(--muted); }
.band .cta { margin-top: 0; }
.band .btn.white { background: var(--teal); border-color: var(--teal); color: #fff; }

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--coral); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: #34494c; }

.site-footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: .92rem; }
.foot { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; }
.foot p { width: 100%; }

@media (max-width: 860px) {
  body { font-size: 16px; }
  .links { display: none; }
  .actions { margin-left: auto; }
  .hero { padding: 44px 0 56px; }
  .hero-grid, .two-col, .safety-grid, .features-grid { grid-template-columns: 1fr; gap: 36px; }
  .types-grid { gap: 20px; }
  .types-grid { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .panel { padding: 22px; }
  .foot nav { margin-left: 0; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .brand span { display: none; }
  .cta .btn { width: 100%; text-align: center; }
  .phone { width: 100%; max-width: 300px; }
}

/* Resources page */
.page-head { padding: 64px 0 24px; }
.page-head h1 { max-width: 18ch; }
.section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.notice { border: 1px solid var(--line); border-left: 3px solid var(--coral); background: var(--bg-soft); border-radius: 10px; padding: 14px 18px; font-size: .95rem; color: #34494c; margin-bottom: 28px; max-width: 80ch; }
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dl { border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; background: #fff; }
.dl h3 { color: var(--teal); margin-bottom: 6px; }
.dl p { color: var(--muted); font-size: .95rem; flex: 1; }
.dl-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
details ul { margin: 10px 0 0; padding-left: 22px; color: #34494c; }
details li { margin-bottom: 4px; }
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li { padding: 14px 0; border-top: 1px solid var(--line); }
.linklist a { font-weight: 600; }
.linklist span { display: block; color: var(--muted); font-size: .95rem; }
.res-teaser { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.res-teaser > div { flex: 1; min-width: 280px; max-width: 70ch; }
.res-teaser h2 { margin-bottom: 12px; }

@media (max-width: 860px) {
  .downloads { grid-template-columns: 1fr; }
  .page-head { padding: 40px 0 8px; }
}
.check-steps li { padding-bottom: 24px; }
.check-steps b { font-size: 1.08rem; color: var(--teal); }
.check-steps span { display: block; }
.check-steps .src { margin-top: 6px; font-size: .9rem; }
.check-steps .src a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.list-head { color: var(--teal); margin: 28px 0 4px; }
.list-head:first-of-type { margin-top: 0; }
/* Terms and privacy pages */
.legal h2 { font-size: 1.25rem; margin: 34px 0 10px; }
.legal p, .legal li { color: #2a4144; }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 0 0 12px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
mark { background: #ffe9a8; padding: 1px 4px; border-radius: 4px; }
.h1-sub { font-size: 1.2rem; font-weight: 600; color: var(--teal); margin-top: 12px; }

/* Area pages */
.areas { display: flex; flex-wrap: wrap; gap: 8px; }
.areas span { padding: 7px 14px; border-radius: 99px; background: var(--teal-soft); color: var(--teal); font-size: .92rem; font-weight: 600; }
.area-card { display: block; border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: #fff; text-decoration: none !important; }
.area-card:hover { border-color: var(--teal); }
.area-card h3 { color: var(--teal); margin-bottom: 4px; }
.area-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.legal .steps { margin-top: 8px; }
.legal .steps span { display: block; }
.type h3 a { color: inherit; }
.type h3 a:hover { text-decoration: underline; }
@media (max-width: 860px) { .legal .features { grid-template-columns: 1fr !important; } }