/*
Theme Name: Kindred
Theme URI: https://kindred.co.nz
Author: Kindred Co-parenting Platform
Description: Official Kindred theme — a one-page marketing site with integrated login, registration, and pricing for the Kindred co-parenting platform.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: kindred
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=Nunito:wght@300;400;500;600;700;800&display=swap');

/* ── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --slate:    #2c3e52;
  --slate2:   #364d63;
  --teal:     #3a9e8f;
  --teal-d:   #2a7a6d;
  --teal-l:   #e8f7f5;
  --teal-m:   #9fd9d2;
  --warm:     #e8834a;
  --warm-l:   #fef3ec;
  --rose:     #e05c6a;
  --lav:      #7c6fd4;
  --border:   #e5eaef;
  --bg:       #f4f6f9;
  --text:     #2c3e52;
  --muted:    #8fa3b1;
  --surface:  #ffffff;
  --radius:   14px;
  --shadow:   0 2px 8px rgba(44,62,82,0.08);
  --shadow-md:0 8px 32px rgba(44,62,82,0.14);
  --shadow-lg:0 20px 60px rgba(44,62,82,0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-d); }
img { max-width: 100%; height: auto; }

/* ── TYPOGRAPHY ──────────────────────────────────────── */
.k-display {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.12;
  color: var(--slate);
}
.k-display-hero { font-size: clamp(52px, 7vw, 88px); }
.k-display-section { font-size: clamp(36px, 4vw, 52px); }
.k-display-card { font-size: 28px; }
.k-serif-em { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--teal); }

.k-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal);
}

/* ── LAYOUT HELPERS ──────────────────────────────────── */
.k-container { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.k-container-sm { max-width: 760px; margin: 0 auto; padding: 0 32px; }

.k-section { padding: 100px 0; }
.k-section-lg { padding: 130px 0; }
.k-section-sm { padding: 64px 0; }

.k-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.k-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.k-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── BUTTONS ─────────────────────────────────────────── */
.k-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 32px; border-radius: 50px;
  font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 700;
  border: 2px solid transparent; cursor: pointer;
  transition: all 0.22s ease; text-decoration: none; white-space: nowrap;
}
.k-btn-primary {
  background: var(--teal); color: white; border-color: var(--teal);
}
.k-btn-primary:hover { background: var(--teal-d); border-color: var(--teal-d); color: white; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(58,158,143,0.35); }

.k-btn-outline {
  background: transparent; color: var(--teal); border-color: var(--teal);
}
.k-btn-outline:hover { background: var(--teal); color: white; transform: translateY(-2px); }

.k-btn-white {
  background: white; color: var(--slate); border-color: white;
}
.k-btn-white:hover { background: var(--teal-l); color: var(--teal-d); transform: translateY(-2px); }

.k-btn-lg { padding: 18px 40px; font-size: 16px; }
.k-btn-sm { padding: 10px 22px; font-size: 13px; }

/* ── NAVBAR ──────────────────────────────────────────── */
#k-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: all 0.3s ease;
  padding: 0;
}
#k-nav.scrolled {
  background: rgba(44,62,82,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.15);
}
.k-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px; max-width: 1200px; margin: 0 auto;
}
.k-nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-style: italic; font-weight: 600;
  color: white; letter-spacing: -0.02em;
}
.k-nav-logo span { color: #6dceaa; }
.k-nav-logo img { max-height: 80px; object-fit: contain; }
.k-nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}
.k-nav-links a {
  color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em; transition: color 0.15s;
}
.k-nav-links a:hover { color: white; }
.k-nav-cta { display: flex; align-items: center; gap: 12px; }
.k-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.k-hamburger span { display: block; width: 24px; height: 2px; background: white; border-radius: 2px; transition: all 0.3s; }

/* ── HERO ────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: linear-gradient(155deg, var(--slate) 0%, #1e3347 40%, #1a3d3a 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 140px 0 80px;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 65% 50%, rgba(58,158,143,0.18) 0%, transparent 70%);
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(to bottom, transparent, var(--surface));
  pointer-events: none;
}
.k-hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 60px; align-items: center;
  position: relative; z-index: 1;
}
.k-hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(58,158,143,0.2); border: 1px solid rgba(58,158,143,0.4);
  border-radius: 50px; padding: 6px 16px 6px 8px;
  font-size: 12px; font-weight: 700; color: #9fd9d2; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 28px;
}
.k-hero-label-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #6dceaa;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(1.3)} }

.k-hero-title { color: white; margin-bottom: 24px; }
.k-hero-title em { color: #6dceaa; font-style: normal; }
.k-hero-subtitle {
  font-size: 18px; color: rgba(255,255,255,0.72); line-height: 1.7;
  margin-bottom: 40px; font-weight: 400; max-width: 520px;
}
.k-hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 52px; }
.k-hero-trust {
  display: flex; align-items: center; gap: 20px;
  font-size: 13px; color: rgba(255,255,255,0.5);
}
.k-hero-trust-item { display: flex; align-items: center; gap: 6px; }
.k-hero-trust-item::before { content: '✓'; color: #6dceaa; font-weight: 700; }

/* Hero visual — app mockup placeholder */
.k-hero-visual {
  position: relative;
}
.k-mockup-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(8px);
}
.k-mockup-card + .k-mockup-card {
  margin-top: 16px;
}
.k-mockup-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(58,158,143,0.25); border: 1px solid rgba(58,158,143,0.5);
  border-radius: 50px; padding: 8px 16px;
  font-size: 13px; color: #9fd9d2; font-weight: 600; margin-bottom: 14px;
}
.k-mockup-title { color: white; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.k-mockup-sub { color: rgba(255,255,255,0.5); font-size: 13px; }
.k-mockup-bar {
  height: 6px; border-radius: 3px; background: rgba(255,255,255,0.1);
  margin-top: 16px; overflow: hidden;
}
.k-mockup-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--teal), #6dceaa);
  border-radius: 3px;
}
.k-float-badge {
  position: absolute;
  background: white; border-radius: 12px;
  padding: 12px 16px; box-shadow: var(--shadow-lg);
  font-size: 13px; font-weight: 700; color: var(--slate);
  display: flex; align-items: center; gap: 8px;
}
.k-float-badge-icon { font-size: 20px; }

/* ── TRUST BAR ────────────────────────────────────────── */
#trust-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.k-trust-items {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}
.k-trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.k-trust-icon { font-size: 20px; }

/* ── PROBLEM SECTION ──────────────────────────────────── */
#problem {
  background: var(--bg);
}
.k-problem-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.4; color: var(--slate);
  font-weight: 400; text-align: center;
  max-width: 800px; margin: 0 auto 60px;
}
.k-problem-text em { color: var(--teal); font-style: italic; }
.k-pain-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.k-pain-card {
  background: white; border-radius: var(--radius);
  padding: 32px; border: 1px solid var(--border);
  border-top: 3px solid var(--rose);
}
.k-pain-icon { font-size: 32px; margin-bottom: 16px; }
.k-pain-title { font-size: 17px; font-weight: 700; color: var(--slate); margin-bottom: 10px; }
.k-pain-body { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ── FEATURES SECTION ─────────────────────────────────── */
#features { background: var(--surface); }
.k-section-header { text-align: center; margin-bottom: 72px; }
.k-section-header .k-label { margin-bottom: 16px; display: block; }
.k-section-header p { font-size: 18px; color: var(--muted); max-width: 560px; margin: 16px auto 0; }

.k-feature-group {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center; margin-bottom: 100px;
}
.k-feature-group:last-child { margin-bottom: 0; }
.k-feature-group.reverse { direction: rtl; }
.k-feature-group.reverse > * { direction: ltr; }

.k-feature-visual {
  background: var(--bg); border-radius: 20px;
  padding: 36px; border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.k-feature-visual::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: var(--teal-l); opacity: 0.6;
  pointer-events: none;
}
.k-feature-icon-lg {
  font-size: 48px; margin-bottom: 20px; display: block;
}
.k-feature-items { display: flex; flex-direction: column; gap: 12px; }
.k-feature-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: white; border-radius: 10px; padding: 14px 16px;
  border: 1px solid var(--border); font-size: 14px;
}
.k-feature-item-check {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}
.k-feature-item-text { font-weight: 600; color: var(--slate); font-size: 15px; }
.k-feature-item-sub { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

.k-feature-content .k-label { margin-bottom: 14px; display: block; }
.k-feature-content h3 { margin-bottom: 16px; }
.k-feature-content p { color: var(--muted); margin-bottom: 24px; line-height: 1.75; }
.k-feature-bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.k-feature-bullets li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--slate);
}
.k-feature-bullets li::before {
  content: '→'; color: var(--teal); font-weight: 700; flex-shrink: 0;
}

/* ── EMOTIONAL QUOTE ──────────────────────────────────── */
#quote {
  background: linear-gradient(135deg, var(--slate) 0%, #1a3d3a 100%);
  padding: 100px 0;
}
.k-quote-block {
  text-align: center; max-width: 760px; margin: 0 auto;
}
.k-quote-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 120px; color: rgba(58,158,143,0.3); line-height: 0.5;
  margin-bottom: 24px; display: block;
}
.k-quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 3vw, 38px);
  font-style: italic; color: white; line-height: 1.45;
  margin-bottom: 32px;
}
.k-quote-attribution { font-size: 14px; color: rgba(255,255,255,0.5); font-weight: 600; }

/* ── HOW IT WORKS ─────────────────────────────────────── */
#how { background: var(--bg); }
.k-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; position: relative;
}
.k-steps::before {
  content: '';
  position: absolute; top: 36px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, var(--teal-m), var(--teal), var(--teal-m));
  z-index: 0;
}
.k-step {
  text-align: center; position: relative; z-index: 1;
}
.k-step-number {
  width: 72px; height: 72px; border-radius: 50%;
  background: white; border: 3px solid var(--teal);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 600; color: var(--teal);
  box-shadow: 0 4px 16px rgba(58,158,143,0.2);
}
.k-step h4 { font-size: 16px; font-weight: 700; color: var(--slate); margin-bottom: 8px; }
.k-step p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── PRICING ──────────────────────────────────────────── */
#pricing { background: var(--surface); }
.k-billing-toggle {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-bottom: 52px;
}
.k-billing-btn {
  font-size: 15px; font-weight: 700; color: var(--muted);
  background: none; border: none; cursor: pointer; padding: 6px 12px;
  border-radius: 8px; transition: color 0.15s; font-family: 'Nunito', sans-serif;
}
.k-billing-btn.active { color: var(--slate); }
.k-billing-track {
  width: 52px; height: 28px; background: var(--teal);
  border-radius: 14px; cursor: pointer; position: relative; transition: all 0.3s;
}
.k-billing-knob {
  position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 11px;
  background: white; transition: left 0.3s;
}
.k-billing-track.yearly .k-billing-knob { left: 27px; }
.k-savings-badge {
  background: #22c55e; color: white;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 20px; margin-left: 4px;
}
.k-plans {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; align-items: start;
}
.k-plan {
  border-radius: 20px; border: 1px solid var(--border);
  overflow: hidden; background: white;
  transition: transform 0.22s, box-shadow 0.22s;
}
.k-plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.k-plan-featured {
  border-color: var(--teal); border-width: 2px;
  transform: scale(1.04);
  box-shadow: 0 12px 48px rgba(58,158,143,0.2);
}
.k-plan-featured:hover { transform: scale(1.04) translateY(-6px); }
.k-plan-badge {
  background: var(--teal); color: white;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; text-align: center; padding: 8px;
}
.k-plan-header { padding: 32px 32px 24px; border-bottom: 1px solid var(--border); }
.k-plan-icon { font-size: 36px; margin-bottom: 12px; display: block; }
.k-plan-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 600; color: var(--slate); margin-bottom: 4px;
}
.k-plan-tagline { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.k-plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.k-plan-price-amount {
  font-size: 52px; font-weight: 800; color: var(--slate); line-height: 1;
}
.k-plan-price-currency { font-size: 22px; font-weight: 700; color: var(--slate); }
.k-plan-price-period { font-size: 14px; color: var(--muted); }
.k-plan-price-yearly { display: none; }
.k-plan-saving { font-size: 12px; color: #22c55e; font-weight: 700; min-height: 18px; }
.k-plan-body { padding: 28px 32px 32px; }
.k-plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.k-plan-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--slate);
}
.k-plan-features li.yes::before {
  content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; margin-top: 1px;
}
.k-plan-features li.no { color: var(--muted); }
.k-plan-features li.no::before {
  content: '–'; color: var(--border); font-weight: 700; flex-shrink: 0;
}
.k-plan-cta { display: block; width: 100%; text-align: center; }
.k-plan-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; }
.k-pricing-footer { text-align: center; margin-top: 40px; font-size: 14px; color: var(--muted); }

/* ── SOCIAL PROOF ─────────────────────────────────────── */
#testimonials { background: var(--bg); }
.k-testimonials {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.k-testimonial {
  background: white; border-radius: var(--radius);
  padding: 32px; border: 1px solid var(--border);
  position: relative;
}
.k-testimonial::before {
  content: '"'; font-family: 'Cormorant Garamond', serif;
  font-size: 80px; color: var(--teal-m); position: absolute;
  top: 12px; left: 24px; line-height: 1;
}
.k-testimonial-text {
  font-size: 15px; color: var(--slate); line-height: 1.7;
  margin-bottom: 20px; padding-top: 28px;
}
.k-testimonial-author {
  display: flex; align-items: center; gap: 12px;
}
.k-testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.k-testimonial-name { font-weight: 700; font-size: 14px; color: var(--slate); }
.k-testimonial-role { font-size: 13px; color: var(--muted); }
.k-stars { color: #f0a500; font-size: 14px; margin-bottom: 4px; }

/* ── AUTH SECTION ─────────────────────────────────────── */
#get-started {
  background: linear-gradient(155deg, var(--slate) 0%, #1a3d3a 100%);
  padding: 100px 0;
}
.k-auth-header {
  text-align: center; max-width: 700px; margin: 0 auto 56px;
}
.k-auth-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; max-width: 1000px; margin: 0 auto;
}
.k-auth-headline { color: white; margin-bottom: 16px; text-align: center; }
.k-auth-sub { color: rgba(255,255,255,0.65); font-size: 17px; line-height: 1.7; margin-bottom: 28px; text-align: center; }
.k-auth-bullets { list-style: none; display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px 28px; justify-content: center; margin-bottom: 0; }
.k-auth-bullets li {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,0.8); font-size: 15px;
}
.k-auth-bullets li::before {
  content: '✓'; background: var(--teal); color: white;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
/* ── AUTH COMBINED CARD ──────────────────────────────── */
.k-auth-single {
  background: white; border-radius: 24px;
  max-width: 640px; margin: 0 auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.25);
  overflow: hidden;
}
.k-auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 2px solid var(--border);
}
.k-auth-tab {
  text-align: center; padding: 18px 12px;
  font-weight: 700; font-size: 15px; color: var(--muted);
  cursor: pointer; border-bottom: 3px solid transparent;
  margin-bottom: -2px; transition: all 0.18s; background: var(--bg);
}
.k-auth-tab.active {
  color: var(--teal); border-bottom-color: var(--teal);
  background: white;
}
.k-auth-pane { display: none; padding: 36px 44px 40px; }
.k-auth-pane.active { display: block; }

/* Strip ALL inner plugin chrome — logo, tagline, heading, wrap card */
.k-auth-pane .kindred-auth-wrap { background: none !important; padding: 0 !important; min-height: 0 !important; }
.k-auth-pane .kindred-auth-card {
  background: none !important; border: none !important;
  box-shadow: none !important; padding: 0 !important;
  border-radius: 0 !important; margin: 0 !important;
  max-width: 100% !important; width: 100% !important;
}
.k-auth-pane .kindred-auth-logo { display: none !important; }
.k-auth-pane .kindred-auth-tagline { display: none !important; }
.k-auth-pane .kindred-auth-heading { display: none !important; }

/* Form fields — native theme style */
.k-auth-pane input[type="text"],
.k-auth-pane input[type="email"],
.k-auth-pane input[type="password"],
.k-auth-pane input[type="tel"] {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-family: 'Nunito', sans-serif; font-size: 15px; color: var(--slate);
  transition: border-color 0.15s; outline: none; background: white;
  box-sizing: border-box;
}
.k-auth-pane input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(58,158,143,0.12); }
.k-auth-pane label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--slate); margin-bottom: 6px; letter-spacing: 0.02em;
  text-transform: uppercase;
}
.k-auth-pane .kindred-auth-field { margin-bottom: 16px; }
.k-auth-pane .kindred-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.k-auth-pane button[type="submit"],
.k-auth-pane .kindred-auth-btn {
  width: 100%; padding: 15px;
  background: var(--teal) !important; color: white !important; border: none;
  border-radius: 50px; font-family: 'Nunito', sans-serif;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background 0.18s, transform 0.15s; margin-top: 8px;
}
.k-auth-pane button[type="submit"]:hover,
.k-auth-pane .kindred-auth-btn:hover { background: var(--teal-d) !important; transform: translateY(-2px); }
.k-auth-pane .kindred-error {
  background: #fef0f1; color: var(--rose); border-radius: 8px;
  padding: 10px 14px; font-size: 13px; margin-bottom: 16px; font-weight: 600;
}
.k-auth-pane .kindred-auth-link { text-align: center; font-size: 13px; margin-top: 16px; color: var(--muted); }
.k-auth-pane .kindred-auth-link a { color: var(--teal); font-weight: 700; }
.k-auth-pane .kindred-auth-divider {
  text-align: center; margin: 18px 0; font-size: 12px;
  color: var(--muted); display: none; /* hide cross-links inside combined card */
}

/* ── FOOTER ──────────────────────────────────────────── */
#k-footer {
  background: var(--slate); color: rgba(255,255,255,0.6);
  padding: 60px 0 32px;
}
.k-footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.k-footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-style: italic; font-weight: 600;
  color: white; margin-bottom: 16px; display: block;
}
.k-footer-logo span { color: #6dceaa; }
.k-footer-desc { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.k-footer-col h5 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: white; margin-bottom: 16px;
}
.k-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.k-footer-col ul li a {
  color: rgba(255,255,255,0.55); font-size: 14px; transition: color 0.15s;
}
.k-footer-col ul li a:hover { color: white; }
.k-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; display: flex; justify-content: space-between;
  align-items: center; font-size: 13px;
}
.k-footer-nzd {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.08); border-radius: 6px;
  padding: 4px 10px; font-size: 12px; font-weight: 600;
}

/* ── SCROLL ANIMATIONS ───────────────────────────────── */
.k-reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.k-reveal.visible { opacity: 1; transform: translateY(0); }

/* ── MOBILE MENU ─────────────────────────────────────── */
#k-mobile-menu {
  position: fixed; inset: 0; background: var(--slate);
  z-index: 999; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 32px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
#k-mobile-menu.open { opacity: 1; pointer-events: all; }
#k-mobile-menu a { color: white; font-size: 24px; font-weight: 700; }

/* ── RESPONSIVE ──────────────────────────────────────── */

/* Tablet — 1024px */
@media (max-width: 1024px) {
  .k-feature-group { grid-template-columns: 1fr; gap: 40px; }
  .k-feature-group.reverse { direction: ltr; }
  .k-steps { grid-template-columns: repeat(2, 1fr); }
  .k-steps::before { display: none; }
  .k-plans { grid-template-columns: repeat(2, 1fr); }
  .k-plan-featured { transform: none; grid-column: span 2; max-width: 480px; margin: 0 auto; width: 100%; }
  .k-testimonials { grid-template-columns: repeat(2, 1fr); }
  .k-pain-cards { grid-template-columns: repeat(2, 1fr); }
  .k-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .k-trust-items { gap: 24px; }
  .k-hero-visual { display: none; }
  .k-hero-grid { grid-template-columns: 1fr; }
  .k-display-hero { font-size: clamp(44px, 6vw, 72px); }
}

/* Mobile — 768px */
@media (max-width: 768px) {
  /* Layout */
  .k-container, .k-container-sm { padding: 0 18px; }
  .k-section { padding: 56px 0; }
  .k-section-lg { padding: 64px 0; }
  .k-section-sm { padding: 40px 0; }

  /* Nav */
  .k-nav-links, .k-nav-cta { display: none; }
  .k-hamburger { display: flex; }
  .k-nav-inner { padding: 14px 18px; }
  .k-nav-logo { font-size: 26px; }
  .k-nav-logo img { max-height: 52px; }

  /* Hero */
  .k-hero-grid { grid-template-columns: 1fr; }
  .k-hero-visual { display: none; }
  .k-hero-label { font-size: 11px; padding: 5px 12px 5px 6px; }
  .k-display-hero { font-size: clamp(38px, 10vw, 56px); }
  .k-hero-subtitle { font-size: 16px; }
  .k-hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .k-hero-actions .k-btn { justify-content: center; width: 100%; }
  .k-hero-trust { flex-wrap: wrap; gap: 10px 18px; }
  #hero { padding: 110px 0 60px; }

  /* Trust bar */
  .k-trust-items { gap: 14px 24px; justify-content: flex-start; }
  .k-trust-item { font-size: 13px; }

  /* Problem */
  .k-problem-text { font-size: clamp(22px, 5vw, 32px); margin-bottom: 36px; }
  .k-pain-cards { grid-template-columns: 1fr; gap: 16px; }

  /* Features */
  .k-grid-2, .k-grid-3, .k-grid-4 { grid-template-columns: 1fr; gap: 20px; }
  .k-feature-group { gap: 28px; margin-bottom: 56px; }
  .k-feature-group.reverse { direction: ltr; }
  .k-feature-visual { padding: 24px; }
  .k-feature-icon-lg { font-size: 36px; margin-bottom: 14px; }
  .k-section-header { margin-bottom: 44px; }
  .k-display-section { font-size: clamp(28px, 7vw, 44px); }

  /* Quote */
  .k-quote-mark { font-size: 80px; }
  .k-quote-text { font-size: clamp(20px, 5vw, 28px); }
  #quote { padding: 64px 0; }

  /* How it works */
  .k-steps { grid-template-columns: 1fr; gap: 28px; }
  .k-step-number { width: 56px; height: 56px; font-size: 22px; margin-bottom: 14px; }

  /* Pricing */
  .k-plans { grid-template-columns: 1fr; gap: 20px; }
  .k-plan-featured { transform: none; grid-column: auto; max-width: 100%; }
  .k-plan-header { padding: 24px 24px 18px; }
  .k-plan-body { padding: 20px 24px 24px; }
  .k-plan-price-amount { font-size: 40px; }
  .k-billing-toggle { flex-wrap: wrap; gap: 10px; }
  .k-billing-btn { font-size: 14px; }

  /* Testimonials */
  .k-testimonials { grid-template-columns: 1fr; gap: 16px; }

  /* Auth */
  .k-auth-single { border-radius: 16px; max-width: 100%; }
  .k-auth-tab { font-size: 14px; padding: 15px 8px; }
  .k-auth-pane { padding: 24px 22px 28px; }
  .k-auth-pane .kindred-field-row { grid-template-columns: 1fr; gap: 0; }
  .k-auth-header { margin-bottom: 36px; }
  .k-auth-bullets { flex-direction: column; align-items: center; gap: 8px; }
  .k-auth-bullets li { font-size: 14px; }

  /* Footer */
  .k-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .k-footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  #k-footer { padding: 48px 0 24px; }

  /* Buttons */
  .k-btn-lg { padding: 15px 28px; font-size: 15px; }
  .k-plan-cta { padding: 14px; }

  /* Mobile menu */
  #k-mobile-menu a { font-size: 20px; }
  #k-mobile-menu { gap: 24px; }
}

/* Small mobile — 480px */
@media (max-width: 480px) {
  .k-container, .k-container-sm { padding: 0 14px; }
  .k-display-hero { font-size: 36px; }
  .k-display-section { font-size: 28px; }
  .k-display-card { font-size: 24px; }
  .k-hero-trust { flex-direction: column; gap: 8px; }
  .k-trust-items { flex-direction: column; align-items: flex-start; gap: 10px; }
  .k-plan-price-amount { font-size: 36px; }
  .k-auth-pane { padding: 20px 16px 24px; }
  .k-quote-mark { font-size: 60px; }
  .k-quote-text { font-size: 20px; }
  .k-nav-inner { padding: 12px 14px; }
  .k-nav-logo img { max-height: 44px; }
  .k-feature-item { flex-direction: row; }
  .k-pain-card { padding: 22px; }
  .k-testimonial { padding: 24px; }
}

/* ── MOBILE TOUCH OPTIMISATION ───────────────────────── */
html { -webkit-text-size-adjust: 100%; }
button, a, [role="button"] { -webkit-tap-highlight-color: transparent; }
input, textarea, select {
  -webkit-appearance: none;
  border-radius: 0;
  font-size: 16px; /* Prevents iOS auto-zoom on focus */
}
.k-auth-pane input[type="text"],
.k-auth-pane input[type="email"],
.k-auth-pane input[type="password"],
.k-auth-pane input[type="tel"] {
  font-size: 16px; /* Prevent iOS zoom */
}

/* ── CHILD SAFETY & PRIVACY ──────────────────────────── */
.k-safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.k-safety-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--teal);
  transition: transform 0.2s, box-shadow 0.2s;
}
.k-safety-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.k-safety-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}
.k-safety-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 10px;
}
.k-safety-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}
.k-privacy-banner {
  background: linear-gradient(135deg, var(--slate) 0%, #1a3d3a 100%);
  border-radius: 20px;
  padding: 36px 40px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.k-privacy-banner-icon {
  font-size: 44px;
  flex-shrink: 0;
  margin-top: 4px;
}
.k-privacy-banner-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
}
.k-privacy-banner-body {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
}

/* ── FAQ ─────────────────────────────────────────────── */
.k-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.k-faq-item {
  border-bottom: 1px solid var(--border);
}
.k-faq-item:last-child {
  border-bottom: none;
}
.k-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background: white;
  border: none;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--slate);
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.k-faq-q:hover { background: var(--bg); }
.k-faq-q[aria-expanded="true"] { color: var(--teal); background: var(--teal-l); }
.k-faq-icon {
  font-size: 22px;
  font-weight: 300;
  color: var(--teal);
  flex-shrink: 0;
  transition: transform 0.25s;
  line-height: 1;
}
.k-faq-q[aria-expanded="true"] .k-faq-icon {
  transform: rotate(45deg);
}
.k-faq-a {
  display: none;
  padding: 0 28px 22px;
  background: var(--teal-l);
}
.k-faq-a.open { display: block; }
.k-faq-a p {
  font-size: 15px;
  color: var(--slate-t, #546e7a);
  line-height: 1.75;
  padding-top: 4px;
}

/* ── SAFETY + FAQ RESPONSIVE ────────────────────────── */
@media (max-width: 1024px) {
  .k-safety-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .k-safety-grid { grid-template-columns: 1fr; gap: 16px; }
  .k-safety-card { padding: 24px 20px; }
  .k-privacy-banner { flex-direction: column; gap: 16px; padding: 28px 24px; }
  .k-privacy-banner-icon { font-size: 36px; }
  .k-faq-q { padding: 18px 20px; font-size: 15px; }
  .k-faq-a { padding: 0 20px 18px; }
}

/* ── LAWYERS BANNER ──────────────────────────────────── */
.k-lawyers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 12px;
}
.k-lawyer-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.k-lawyer-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.k-lawyer-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-d) 100%);
  color: white;
  font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.k-lawyer-name {
  font-size: 15px; font-weight: 700; color: var(--slate);
}
.k-lawyer-firm {
  font-size: 13px; color: var(--teal); font-weight: 600;
}
.k-lawyer-location {
  font-size: 13px; color: var(--muted); margin-top: 2px;
}
.k-lawyer-quote {
  font-size: 13px; color: var(--slate-t, #546e7a);
  line-height: 1.65; font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 12px; margin-top: 2px;
}

/* ── LAWYERS RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
  .k-lawyers-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .k-lawyers-grid { grid-template-columns: 1fr; gap: 14px; }
  .k-lawyer-card { padding: 18px 16px; }
}

/* ── LAWYER vs KINDRED COMPARISON TABLE ──────────────── */
.k-comparison-table {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.k-comp-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.k-comp-row:last-child { border-bottom: none; }
.k-comp-header { background: var(--slate); }
.k-comp-header .k-comp-cell { background: var(--slate) !important; border-color: rgba(255,255,255,0.1) !important; }
.k-comp-header .k-comp-kindred { background: var(--teal-d) !important; border-left: 2px solid rgba(255,255,255,0.3) !important; }
.k-comp-cell {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.k-comp-label-col { background: var(--bg); }
.k-comp-lawyer {
  background: #fff5f5;
  border-left: 1px solid var(--border);
}
.k-comp-kindred {
  background: #f0faf8;
  border-left: 2px solid var(--teal);
  position: relative;
}
.k-comp-kindred::before {
  content: '★ Best value';
  position: absolute;
  top: 0; right: 0;
  background: var(--teal);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-bottom-left-radius: 8px;
  letter-spacing: 0.05em;
}
.k-comp-row.k-comp-header .k-comp-kindred::before { display: none; }

.k-comp-col-head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
  color: white;
}
.k-comp-col-head.lawyer { color: rgba(255,255,255,0.7); }
.k-comp-col-head.kindred { color: white; }

.k-comp-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 3px;
}
.k-comp-sublabel {
  font-size: 13px;
  color: var(--muted);
}
.k-comp-val {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 4px;
  line-height: 1.2;
}
.k-comp-val span { font-size: 13px; font-weight: 600; }
.k-comp-val.expensive { color: #c0392b; }
.k-comp-val.affordable { color: var(--teal); }
.k-comp-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.k-comp-cta-row { background: white; }

/* Responsive */
@media (max-width: 768px) {
  .k-comp-row { grid-template-columns: 1fr; }
  .k-comp-label-col { border-bottom: 1px solid var(--border); }
  .k-comp-lawyer, .k-comp-kindred { border-left: none; border-top: 1px solid var(--border); }
  .k-comp-kindred::before { display: none; }
  .k-comp-header .k-comp-label-col { display: none; }
  .k-comp-cell { padding: 14px 18px; }
}

/* ── CURRENCY SELECTOR ───────────────────────────────── */
.k-currency-btn {
  font-family: 'Nunito', sans-serif;
  font-size: 13px; font-weight: 700;
  padding: 6px 14px; border-radius: 20px;
  border: 1.5px solid var(--border);
  background: white; color: var(--muted);
  cursor: pointer; transition: all 0.15s;
}
.k-currency-btn:hover { border-color: var(--teal); color: var(--teal); }
.k-currency-btn.active {
  background: var(--teal); color: white;
  border-color: var(--teal);
}
.k-converted-price { transition: opacity 0.2s; }

/* ── AUTH SUCCESS MESSAGE ────────────────────────────── */
.kindred-success {
  background: #e8f7f5;
  color: #2a7a6d;
  border: 1.5px solid #9fd9d2;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  margin-bottom: 18px;
  text-align: center;
}

/* ── FAQ tab group buttons ─────────────────────────────── */
.k-faq-tabs { margin-bottom: 36px; gap: 10px; color: #1a2744; }
.k-faq-tabs .k-faq-tab,
.k-faq-tab {
  font-family: inherit; font-size: 15px; font-weight: 700;
  padding: 11px 22px; border-radius: 50px;
  border: 2px solid #cbd5e1;
  background: white; color: #1a2744 !important;
  cursor: pointer; transition: all 0.18s;
  letter-spacing: .01em;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.k-faq-tabs .k-faq-tab:hover,
.k-faq-tab:hover {
  border-color: #3a9e8f;
  color: #3a9e8f !important;
  background: #f0faf8;
}
.k-faq-tabs .k-faq-tab.active,
.k-faq-tab.active {
  background: #3a9e8f;
  color: white !important;
  border-color: #3a9e8f;
  box-shadow: 0 2px 12px rgba(58,158,143,.25);
}
