@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --plum-900: #3a1334;
  --plum-700: #5b1f52;
  --plum-600: #6f2864;
  --rose-500: #c23f87;
  --rose-400: #d0699e;
  --rose-100: #f6e1ee;
  --rose-50: #fbeff6;
  --cream-50: #fbf7f5;
  --cream-100: #f4ece9;
  --ink-800: #241220;
  --ink-600: #543a4f;
  --line: rgba(58, 19, 52, 0.12);
  --shadow: 0 24px 60px -30px rgba(58, 19, 52, 0.35);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream-50);
  color: var(--ink-800);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--plum-900);
  margin: 0;
  text-wrap: balance;
  font-weight: 600;
}

p {
  margin: 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-500);
  margin: 0 0 14px;
}

/* --- Logo mark --- */

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.mark-icon {
  flex-shrink: 0;
  object-fit: contain;
}

.mark-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.mark-word .nurtur {
  color: var(--rose-500);
}

.mark-word .log {
  color: var(--plum-700);
}

/* --- Nav --- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-600);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a:hover {
  color: var(--plum-900);
}

.nav-links a.active {
  color: var(--plum-900);
  font-weight: 700;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--rose-500);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  padding: 13px 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--plum-700);
  color: var(--cream-50);
}

.btn-primary:hover {
  background: var(--plum-900);
}

.btn-outline {
  background: transparent;
  border-color: var(--plum-700);
  color: var(--plum-700);
}

.btn-outline:hover {
  background: var(--rose-50);
}

.btn-admin {
  background: var(--ink-800);
  color: var(--cream-50);
  padding: 11px 22px;
  font-size: 14px;
}

.btn-admin:hover {
  background: var(--plum-900);
}

/* --- Hero --- */

.hero {
  padding: 96px 0 110px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.06;
}

.hero-sub {
  margin-top: 22px;
  font-size: 18px;
  color: var(--ink-600);
  max-width: 46ch;
  line-height: 1.65;
}

.hero-ctas {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  background: linear-gradient(160deg, var(--rose-100) 0%, var(--cream-100) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.hero-logo {
  width: 74%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(58, 19, 52, 0.22));
}

.hero-stats {
  position: absolute;
  bottom: 26px;
  left: 26px;
  right: 26px;
  background: rgba(251, 247, 245, 0.9);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 12px 30px -18px rgba(58, 19, 52, 0.4);
}

.hero-stat {
  text-align: center;
}

.hero-stat .num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--plum-900);
  font-variant-numeric: tabular-nums;
}

.hero-stat .lbl {
  font-size: 11.5px;
  color: var(--ink-600);
  letter-spacing: 0.03em;
}

/* --- Section shell --- */

section {
  padding: 96px 0;
}

.section-head {
  max-width: 60ch;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin-top: 10px;
}

.section-head p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-600);
  line-height: 1.65;
}

/* --- Page intro (About / Demo / Contact top-of-page header) --- */

.page-intro {
  padding: 76px 0 60px;
  background: linear-gradient(180deg, var(--rose-100) 0%, var(--cream-50) 100%);
  border-bottom: 1px solid var(--line);
}

.page-intro .wrap {
  max-width: 720px;
}

.page-intro h1 {
  font-size: clamp(32px, 4vw, 46px);
  margin-top: 10px;
}

.page-intro p {
  margin-top: 18px;
  font-size: 18px;
  color: var(--ink-600);
  line-height: 1.65;
  max-width: 56ch;
}

/* --- Demo page: real app screenshots, carer left / family right --- */

.app-showcase {
  padding: 8px 0 64px;
  background: var(--cream-50);
}

.app-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  max-width: 600px;
  margin: 0 auto;
}

.app-shot {
  text-align: center;
}

.app-shot img {
  width: 100%;
  max-width: 250px;
  height: auto;
  filter: drop-shadow(0 22px 36px rgba(58, 19, 52, 0.25));
}

.app-shot-caption {
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rose-500);
}

/* --- About --- */

.about-body {
  background: var(--cream-100);
  border-bottom: 1px solid var(--line);
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.role-card {
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
}

.role-card .role-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rose-500);
  margin-bottom: 18px;
}

.role-card h3 {
  font-size: 21px;
  margin-bottom: 12px;
}

.role-card p {
  color: var(--ink-600);
  font-size: 15px;
  line-height: 1.65;
}

/* --- Contact --- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info h2 {
  font-size: clamp(28px, 3vw, 38px);
}

.contact-info p.lede {
  margin-top: 16px;
  color: var(--ink-600);
  font-size: 17px;
  line-height: 1.65;
  max-width: 42ch;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-detail .lbl {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rose-500);
}

.contact-detail .val {
  font-size: 16px;
  color: var(--plum-900);
  font-weight: 500;
}

.contact-form {
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-600);
  margin-bottom: 7px;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--cream-50);
  color: var(--ink-800);
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--rose-500);
  box-shadow: 0 0 0 3px var(--rose-100);
}

.contact-form .btn-primary {
  width: 100%;
  padding: 15px 26px;
  font-size: 16px;
  margin-top: 6px;
}

.form-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-600);
  text-align: center;
}

.form-success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}

.form-success .check {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--rose-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.form-success h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.form-success p {
  color: var(--ink-600);
  font-size: 14.5px;
}

.contact-form.submitted .form-fields {
  display: none;
}

.contact-form.submitted .form-success {
  display: block;
}

/* --- Footer --- */

footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: var(--ink-600);
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--plum-900);
}

.footer-meta {
  font-size: 13px;
  color: var(--ink-600);
}

/* --- Demo page: role walkthroughs --- */

.role-section {
  padding: 80px 0;
}

.role-section-alt {
  background: var(--cream-100);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.role-section-head {
  max-width: 62ch;
  margin-bottom: 44px;
}

/* These name the role each section is about — the thing a scanning reader most
   needs to spot instantly, so it gets a proper badge treatment, not a small label. */
.role-section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 23px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 11px 26px;
  border-radius: 999px;
  background: var(--rose-100);
  color: var(--plum-700);
  margin-bottom: 20px;
}

.role-section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-top: 8px;
}

.role-section-head p {
  margin-top: 14px;
  color: var(--ink-600);
  font-size: 16px;
  line-height: 1.6;
}

/* Carers: a real sequence, so numbered steps are earned here */
.step-list {
  display: flex;
  flex-direction: column;
}

.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: var(--rose-500);
}

.step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step p {
  color: var(--ink-600);
  font-size: 15px;
  line-height: 1.65;
  max-width: 62ch;
}

.step-note {
  margin-top: 12px;
  display: inline-block;
  font-size: 13px;
  color: var(--plum-700);
  background: var(--rose-50);
  border: 1px solid var(--rose-100);
  border-radius: 10px;
  padding: 9px 13px;
}

/* Families / Admins: feature sets, not a sequence — plain cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
}

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--ink-600);
  font-size: 14.5px;
  line-height: 1.6;
}

.role-cta {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.role-cta p {
  font-size: 14px;
  color: var(--ink-600);
}

/* --- Responsive --- */

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero-art {
    max-width: 420px;
    margin: 0 auto;
  }
  .role-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .app-showcase-grid {
    grid-template-columns: 1fr;
    max-width: 260px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 20px;
  }
  .hero {
    padding: 56px 0 70px;
  }
  section {
    padding: 64px 0;
  }
  .contact-form {
    padding: 26px;
  }
}

/* --- Admin login page --- */

.admin-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--plum-900) 0%, var(--plum-700) 60%, var(--rose-500) 130%);
  padding: 24px;
}

.admin-card {
  width: 100%;
  max-width: 400px;
  background: var(--cream-50);
  border-radius: 24px;
  padding: 44px 38px 38px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45);
}

.admin-logo-link {
  display: inline-block;
  margin-bottom: 20px;
}

.admin-logo {
  width: 190px;
  height: auto;
  object-fit: contain;
}

.admin-card h1 {
  font-size: 24px;
  margin-bottom: 6px;
}

.admin-card .sub {
  font-size: 14.5px;
  color: var(--ink-600);
  margin-bottom: 30px;
}

.admin-notice {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--rose-50);
  border: 1px solid var(--rose-100);
  font-size: 13px;
  color: var(--ink-600);
  line-height: 1.55;
}

.admin-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--ink-600);
  text-decoration: none;
}

.admin-back:hover {
  color: var(--plum-900);
}
