/* KinDox homepage — human-centred redesign. Loaded ONLY by index.html, after styles.css, so every other page
   (guides, free resources, about, legal) is untouched. Palette stays KinDox navy + blue; the new base is a warm
   ivory with sand, a humanist serif for headlines (Newsreader) and the existing Public Sans for reading text. */

.home {
  --ivory: #fbf8f2;
  --ivory-2: #f5eee0;
  --sand: #e8dcc6;
  --sand-deep: #d6c4a3;
  --line: #e4d9c4;
  --navy: #0b1f3b;
  --navy-2: #12305a;
  --ink: #0e1a2b;
  --text: #34445a;
  --muted: #5e6b7e;
  --blue: #0b63c4;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  background: var(--ivory);
  color: var(--text);
}

.home h1, .home h2, .home h3.serif, .home .serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.012em; color: var(--ink); text-wrap: balance; }
.home em.soft { font-style: italic; color: var(--navy-2); }

/* ---- header: warm, quieter ---- */
.home .site-nav { background: rgba(251, 248, 242, 0.92); border-bottom: 1px solid var(--line); }
.home .nav-links a { color: var(--text); font-weight: 600; }
.home .nav-links a:hover { color: var(--navy); }
@media (max-width: 1100px) { .home .nav-links { background: var(--ivory); } }

/* ---- generic section rhythm ---- */
.home section.h-sec { padding: 88px 0; position: relative; }
@media (max-width: 860px) { .home section.h-sec { padding: 64px 0; } }
@media (max-width: 560px) { .home section.h-sec { padding: 52px 0; } }
.h-sec.on-sand { background: var(--ivory-2); }
.h-sec.on-navy { background: var(--navy); color: #cfdcef; }
.home .h-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.h-sec.on-navy .h-eyebrow, .h-final-copy .h-eyebrow { color: #8fc2ff; }
.home h2.h-title { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; }
.home .h-lede { font-size: 19px; line-height: 1.7; color: var(--text); max-width: 620px; margin-top: 22px; }
.home .h-narrow { max-width: 760px; }
.home .h-center { text-align: center; margin-left: auto; margin-right: auto; }
.home .h-center .h-lede { margin-left: auto; margin-right: auto; }

/* gentle wave transitions: a coloured band that melts the previous section into the next */
.h-wave { display: none !important; position: absolute; left: 0; right: 0; top: 1px; height: 56px; line-height: 0; pointer-events: none; transform: translateY(-100%); }
.h-wave svg { width: 100%; height: 100%; display: block; }
.h-wave path { fill: currentColor; }
.h-sec.on-sand > .h-wave { color: var(--ivory-2); }
.h-sec.on-ivory > .h-wave { color: var(--ivory); }
.h-sec.on-navy > .h-wave { color: var(--navy); }
@media (max-width: 640px) { .h-wave { height: 32px; } }

/* ---- buttons: same brand blue, a little softer ---- */
.home .btn { border-radius: 12px; padding: 16px 28px; font-size: 16px; }
.home .btn-primary { background: var(--blue); box-shadow: 0 6px 16px rgba(11, 99, 196, .2); }
.home .btn-secondary { background: transparent; color: var(--navy); border-color: var(--sand-deep); }
.home .btn-secondary:hover { background: #fff; border-color: var(--navy); }
.home .btn-ghost-light { border-color: rgba(255, 255, 255, .5); }
.home .nav-cta-wrap .btn { padding: 12px 22px; font-size: 15px; min-height: 44px; }

/* ---- hero ---- */
.h-hero { padding: 56px 0 88px; background: var(--ivory); }
.h-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "head photo" "rest photo"; column-gap: 64px; row-gap: 0; align-items: center; }
.h-hero-head { grid-area: head; align-self: end; }
.h-hero-rest { grid-area: rest; align-self: start; }
.h-hero h1 { font-size: clamp(40px, 5.2vw, 70px); line-height: 1.03; letter-spacing: -0.022em; }
.h-hero .hero-eyebrow { display: inline-block; margin-bottom: 22px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: none; padding: 0; border: 0; }
.h-hero-sub { font-size: 19px; line-height: 1.65; color: var(--text); max-width: 540px; margin-top: 26px; }
.h-hero .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.h-hero .hero-fineprint { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.h-hero .cta-agree { margin-top: 6px; }
.h-photo { grid-area: photo; position: relative; margin: 0; width: 100%; }
.h-photo-frame { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); box-shadow: 0 2px 10px rgba(11, 31, 59, .08); }
.h-photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%; display: block; }
.h-photo-phone { position: absolute; right: 18px; bottom: -26px; width: 21%; border-radius: 14px; border: 4px solid #fff; background: #fff; box-shadow: 0 8px 24px rgba(11, 31, 59, .22); overflow: hidden; }
.h-photo-phone img { width: 100%; height: auto; display: block; }
@media (max-width: 980px) {
  .h-hero { padding: 28px 0 56px; }
  .h-hero-grid { grid-template-columns: 1fr; grid-template-areas: "head" "photo" "rest"; row-gap: 0; }
  .h-hero-head { align-self: auto; }
  .h-photo { margin-top: 26px; }
  .h-hero-rest { margin-top: 36px; }
  .h-hero .hero-eyebrow { margin-bottom: 14px; }
  .h-hero-sub { margin-top: 0; }
  .h-photo-phone { width: 22%; right: 14px; bottom: -22px; }
}
@media (max-width: 560px) {
  .h-hero { padding-top: 22px; }
  .h-hero h1 { font-size: 36px; }
  .h-hero .hero-eyebrow { font-size: 11.5px; margin-bottom: 10px; }
  .h-photo { margin-top: 18px; }
  .h-photo-frame { border-radius: 12px; }
  .h-photo-phone { width: 26%; right: 10px; bottom: -18px; border-width: 3px; border-radius: 11px; }
  .h-hero-rest { margin-top: 30px; }
  .h-hero-sub { font-size: 17.5px; }
  .h-hero .hero-ctas .btn { width: 100%; text-align: center; }
}

/* ---- recognise + why a record helps (one section) ---- */
.h-story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.h-story-grid p { font-size: 18px; line-height: 1.7; color: var(--text); margin-top: 22px; }
.h-moments { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.h-moments li { font-family: var(--serif); font-size: clamp(21px, 2.3vw, 27px); line-height: 1.3; color: var(--ink); padding-left: 24px; position: relative; }
.h-moments li::before { content: ''; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; border-radius: 2px; background: var(--blue); opacity: .55; }
.h-quote { margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px 32px; position: relative; }
.h-quote small { display: block; margin-top: 16px; font-family: var(--font-body); font-size: 14px; letter-spacing: .02em; color: var(--muted); }
.h-story-why h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.3vw, 27px); line-height: 1.25; color: var(--ink); margin-top: 34px; }
.h-story-why h3 + p { margin-top: 12px; }
@media (max-width: 900px) { .h-story-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---- solution ---- */
.h-solution-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 72px; margin-top: 56px; }
.h-point { padding: 28px 0; border-top: 1px solid var(--line); }
.h-point h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.2; color: var(--ink); }
.h-point p { margin-top: 10px; font-size: 17px; line-height: 1.7; color: var(--text); max-width: 460px; }
@media (max-width: 760px) { .h-solution-grid { grid-template-columns: 1fr; margin-top: 36px; } }

/* ---- journey: five compact steps in a row ---- */
.h-journey { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; position: relative; counter-reset: none; }
.h-journey::before { content: ''; position: absolute; left: 22px; right: calc((100% - 112px) / 5 - 22px); top: 22px; height: 2px; background: var(--sand-deep); opacity: .7; }
.h-step { position: relative; padding: 0; }
.h-step-n { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--ivory); border: 2px solid var(--navy); color: var(--navy); font-family: var(--serif); font-size: 20px; display: grid; place-items: center; }
.h-step h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; color: var(--ink); line-height: 1.2; margin-top: 18px; }
.h-step p { margin-top: 8px; font-size: 15.5px; line-height: 1.6; }
.h-fiction { font-size: 14.5px; color: var(--muted); margin-top: 14px; font-style: italic; }
@media (max-width: 960px) {
  .h-journey { grid-template-columns: 1fr; gap: 26px; margin-top: 34px; }
  .h-journey::before { left: 21px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .h-step { padding-left: 66px; min-height: 44px; }
  .h-step-n { position: absolute; left: 0; top: 0; }
  .h-step h3 { margin-top: 0; padding-top: 2px; }
}

/* ---- app demo ---- */
.h-demo-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 36px 0 32px; }
.h-demo-tab { font: inherit; font-weight: 600; font-size: 15.5px; color: var(--navy); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 22px; cursor: pointer; min-height: 46px; }
.h-demo-tab:hover { border-color: var(--sand-deep); }
.h-demo-tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.h-demo-panels { max-width: 1120px; margin: 0 auto; }
.h-demo-panel[hidden] { display: none; }
.h-demo-panel { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px; align-items: center; }
.h-demo-copy h3 { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.15; color: var(--ink); }
.h-demo-copy p { margin-top: 14px; font-size: 17px; line-height: 1.7; }
.h-demo-stage { position: relative; }
.h-demo-shot { border-radius: 14px; overflow: hidden; background: #edf1f7; aspect-ratio: 16 / 10; box-shadow: 0 6px 24px rgba(11, 31, 59, .12); border: 1px solid var(--line); }
.h-demo-shot img { width: 100%; height: auto; display: block; cursor: zoom-in; }
.h-demo-phone { position: absolute; right: -22px; bottom: -34px; width: 22%; border-radius: 14px; border: 4px solid #fff; background: #fff; box-shadow: 0 8px 24px rgba(11, 31, 59, .22); overflow: hidden; }
.h-demo-phone img { width: 100%; height: auto; display: block; cursor: zoom-in; }
.h-demo-cap { margin-top: 48px; text-align: center; font-size: 13.5px; color: var(--muted); }
@media (max-width: 960px) {
  .h-demo-panel { grid-template-columns: 1fr; gap: 28px; }
  .h-demo-copy { text-align: center; max-width: 560px; margin: 0 auto; }
  .h-demo-phone { right: 4px; bottom: -22px; width: 24%; }
}
@media (max-width: 560px) { .h-demo-tabs { gap: 8px; } .h-demo-tab { padding: 10px 16px; font-size: 14.5px; } }

/* ---- privacy (navy) ---- */
.h-privacy-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 72px; align-items: start; }
.h-privacy h2 { color: #fff; }
.h-privacy .h-lede { color: #cfdcef; }
.h-privacy-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.h-privacy-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; font-size: 18px; line-height: 1.6; color: #e6eefa; }
.h-privacy-list svg { width: 24px; height: 24px; color: #8fc2ff; margin-top: 2px; }
.h-privacy-small { margin-top: 36px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14.5px; line-height: 1.7; color: #aebfd6; }
.h-privacy-small a { color: #fff; }
.h-privacy-small p + p { margin-top: 10px; }
@media (max-width: 900px) { .h-privacy-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---- pricing ---- */
.h-price-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 72px; align-items: center; }
.h-price-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 40px 36px 32px; box-shadow: 0 8px 28px rgba(11, 31, 59, .08); }
.h-price-card .plan { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.h-price-amount { font-family: var(--serif); font-size: 76px; line-height: 1; color: var(--ink); margin-top: 10px; font-weight: 500; }
.h-price-amount sup { font-size: 30px; vertical-align: top; position: relative; top: 10px; margin-right: 2px; }
.h-price-period { color: var(--muted); font-size: 16px; margin-top: 6px; }
.h-price-list { list-style: none; padding: 0; margin: 26px 0 28px; display: grid; gap: 12px; }
.h-price-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 16px; line-height: 1.5; color: var(--text); }
.h-price-list svg { width: 20px; height: 20px; color: var(--blue); margin-top: 2px; }
.h-price-card .price-fine { text-align: center; font-size: 14px; color: var(--muted); margin-top: 14px; }
.h-price-card .cta-agree { text-align: center; }
.h-after { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.h-after h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; color: var(--ink); }
.h-after ol { margin: 20px 0 0; padding-left: 22px; display: grid; gap: 10px; font-size: 17px; line-height: 1.6; }
.h-after ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; font-size: 17px; line-height: 1.55; }
.h-after ul li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.h-after ul svg { width: 20px; height: 20px; color: var(--blue); margin-top: 2px; }
.h-after .after-note { margin-top: 18px; font-size: 14.5px; color: var(--muted); line-height: 1.65; }
@media (max-width: 900px) { .h-price-grid { grid-template-columns: 1fr; gap: 40px; } .h-after { grid-template-columns: 1fr; gap: 40px; margin-top: 56px; } }
@media (max-width: 480px) { .h-price-card { padding: 34px 24px 28px; } .h-price-amount { font-size: 64px; } }

/* ---- free resources ---- */
.h-free-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 52px; }
.h-free-card { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 24px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; text-decoration: none; color: inherit; transition: box-shadow .18s, transform .18s; }
.h-free-card:hover { box-shadow: 0 18px 40px rgba(11, 31, 59, .12); transform: translateY(-2px); }
.h-free-card img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 8px 22px rgba(11, 31, 59, .16); }
.h-free-card h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; color: var(--ink); line-height: 1.2; }
.h-free-card p { margin-top: 8px; font-size: 15.5px; line-height: 1.6; color: var(--text); }
.h-free-card .h-link { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--blue); font-size: 15.5px; }
.h-free-more { margin-top: 28px; font-size: 16.5px; }
.h-free-more a { font-weight: 700; }
@media (max-width: 860px) { .h-free-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .h-free-card { grid-template-columns: 96px 1fr; gap: 16px; padding: 18px; } }

/* ---- FAQ (original markup kept) ---- */
.home .faq-list { margin-top: 40px; border-top: 1px solid var(--line); }
.home .faq-item { border-bottom: 1px solid var(--line); }
.home .faq-q { font-family: var(--font-body); }

/* ---- final CTA ---- */
.h-final-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 0; align-items: stretch; background: var(--navy); border-radius: 16px; overflow: hidden; clip-path: inset(0 round 16px); }
.h-final-copy { padding: 56px 56px; color: #cfdcef; display: flex; flex-direction: column; justify-content: center; }
.h-final-copy h2 { color: #fff; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.h-final-copy p.lede { margin-top: 18px; font-size: 18px; line-height: 1.7; }
.h-final-copy .hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.h-final-copy .cta-agree { color: #aebfd6; }
.h-final-copy .cta-agree a { color: #fff; }
.h-final-photo { position: relative; min-height: 360px; }
.h-final-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
@media (max-width: 900px) { .h-final-grid { grid-template-columns: 1fr; } .h-final-copy { padding: 52px 28px; } .h-final-photo { min-height: 260px; order: -1; } }

/* ---- footer credit ---- */
.h-credit { margin-top: 10px; font-size: 12.5px; color: #8b9ab0; }
.h-credit a { color: inherit; }

/* ---- disclaimer on ivory ---- */
.home .disclaimer-block { background: var(--ivory-2); border: 1px solid var(--line); }
.home section.h-disclaimer { padding: 24px 0 88px; }

/* ---- quiet entrance motion (existing .reveal system) ---- */
@media (prefers-reduced-motion: reduce) { .home .btn, .h-free-card { transition: none; } }
