/* School Care – public site. Colours taken from the logo tiles. */
:root {
  --red: #ff3333;
  --yellow: #fff200;
  --yellow-deep: #f5c400;
  --green: #00ae4d;
  --blue: #00b4f0;
  --navy: #0022ff;
  --ink: #14161f;
  --ink-2: #4a5063;
  --line: #e6e8ef;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --card: #ffffff;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(20, 22, 31, .08);
  --font-head: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 700 1rem/1 var(--font-body); padding: .8em 1.3em; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.btn-lg { font-size: 1.08rem; padding: 1em 1.6em; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(0, 34, 255, .28); }
.btn-primary:hover { background: #001ad1; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-light { background: #fff; color: var(--navy); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 46px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; padding: .55em .85em; border-radius: 999px; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { background: var(--bg-soft); color: var(--navy); }
.site-nav .btn { padding: .65em 1.1em; margin-left: 4px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle .icon { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .brand img { height: 40px; }
  .site-nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .8em 1em; }
  .site-nav .btn { margin: 6px 0 0; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; background:
  radial-gradient(600px 400px at 90% 10%, rgba(0, 180, 240, .14), transparent 60%),
  radial-gradient(500px 380px at 0% 100%, rgba(255, 242, 0, .22), transparent 60%),
  radial-gradient(420px 300px at 60% 100%, rgba(255, 51, 51, .08), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); background: rgba(0, 34, 255, .07); padding: .35em .8em; border-radius: 999px; margin-bottom: 1em; }
.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-2); font-weight: 700; font-size: .95rem; }
.trust li { display: flex; align-items: center; gap: .4em; }
.trust .icon { color: var(--green); }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.phone { width: 300px; border-radius: 42px; background: var(--ink); padding: 12px; box-shadow: 0 30px 60px rgba(20, 22, 31, .25); transform: rotate(2deg); }
.phone-screen { background: var(--bg-soft); border-radius: 32px; padding: 20px 16px; min-height: 540px; font-size: .86rem; }
.app-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.app-hello { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.app-bell { position: relative; color: var(--ink-2); }
.app-bell i { position: absolute; top: -2px; right: -2px; width: 9px; height: 9px; background: var(--red); border-radius: 50%; border: 2px solid var(--bg-soft); }
.verse-card { background: var(--navy); color: #fff; border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; }
.verse-card small { opacity: .75; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; }
.verse-card p { margin: 4px 0; font-style: italic; }
.verse-card span { font-size: .75rem; opacity: .85; font-weight: 700; }
.child-chip { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 10px 12px; margin-bottom: 12px; }
.child-chip small { display: block; color: var(--ink-2); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-family: var(--font-head); }
.timeline { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.timeline li { background: #fff; border-radius: 12px; padding: 8px 10px 8px 14px; border-left: 4px solid; }
.timeline b { margin-right: 6px; }
.t-yellow { border-color: var(--yellow-deep) !important; } .t-green { border-color: var(--green) !important; } .t-blue { border-color: var(--blue) !important; } .t-red { border-color: var(--red) !important; }
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photo-strip .ph { aspect-ratio: 1; border-radius: 12px; }
.ph { display: block; }
.ph1 { background: linear-gradient(135deg, #ffd1d1, #ff8a8a); }
.ph2 { background: linear-gradient(135deg, #fff7a6, #f5c400); }
.ph3 { background: linear-gradient(135deg, #b8f2d0, #00ae4d); }
.ph4 { background: linear-gradient(135deg, #bfeeff, #00b4f0); }
.ph5 { background: linear-gradient(135deg, #c9d0ff, #4f63ff); }
.ph6 { background: linear-gradient(135deg, #ffe0b8, #ff9f43); }

.float-card { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); font-size: .88rem; }
.float-card small { display: block; color: var(--ink-2); }
.float-card .icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; color: #fff; }
.float-pickup { left: -8px; top: 44%; } .float-pickup .icon { background: var(--green); }
.float-alert { right: 0; bottom: 14%; } .float-alert .icon { background: var(--red); }

@media (max-width: 900px) {
  .hero { padding: 32px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .phone { width: 270px; }
  .float-pickup { left: 0; top: 8%; } .float-alert { right: 0; bottom: 6%; }
}
@media (max-width: 420px) { .float-card { display: none; } .cta-row .btn { width: 100%; } }

/* Colour tiles (echo the logo) */
.tile { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; color: #fff; flex: none; }
.tile .icon { width: 34px; height: 34px; }
.tile-sm { width: 52px; height: 52px; border-radius: 15px; } .tile-sm .icon { width: 28px; height: 28px; }
.tile-xs { width: 38px; height: 38px; border-radius: 11px; } .tile-xs .icon { width: 20px; height: 20px; }
.tile-red { background: var(--red); } .tile-yellow { background: var(--yellow); color: var(--ink); } .tile-green { background: var(--green); } .tile-blue { background: var(--blue); } .tile-navy { background: var(--navy); }

/* Pillars */
.pillars { margin-top: -24px; position: relative; z-index: 2; }
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillar { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-top: 5px solid; }
.pillar p { color: var(--ink-2); margin: 0; }
.pillar h3 { margin-top: 14px; }
.pillar-red { border-color: var(--red); } .pillar-yellow { border-color: var(--yellow-deep); } .pillar-green { border-color: var(--green); } .pillar-blue { border-color: var(--blue); }
@media (max-width: 980px) { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillar-grid { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: 80px 0; }
@media (max-width: 640px) { .section { padding: 56px 0; } }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head p { color: var(--ink-2); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: box-shadow .2s, transform .2s; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature h3 { margin-top: 16px; }
.feature p { color: var(--ink-2); margin: 0; }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 800; text-decoration: none; margin-top: 32px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split-rev > :first-child { order: 2; } }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: .6em; align-items: flex-start; }
.checks .icon { color: #fff; background: var(--green); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 2px; }

.section-album { background: var(--bg-soft); }
.album-visual { background: #fff; border-radius: 28px; padding: 24px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.album-day span { font-weight: 800; font-size: .9rem; color: var(--ink-2); }
.album-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.album-row .ph { aspect-ratio: 1; border-radius: 14px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { text-align: center; padding: 8px 12px; }
.step p { color: var(--ink-2); }
.step-num { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; font: 700 1.5rem var(--font-head); color: #fff; margin-bottom: 14px; }
.step-num.tile-yellow { color: var(--ink); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.section-safety { background: linear-gradient(180deg, #fff, var(--bg-soft)); }
.pickup-card { max-width: 420px; margin: 0 auto; background: #fff; border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.pc-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--navy); color: #fff; font: 600 1.1rem var(--font-head); }
.pc-head img { border-radius: 8px; background: #fff; }
.pc-body { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 20px; }
.pc-body small { display: block; color: var(--ink-2); }
.pc-photo { width: 72px; height: 72px; border-radius: 16px; background: linear-gradient(135deg, #ffe0b8, #ff9f43); display: grid; place-items: center; font: 700 1.4rem var(--font-head); color: #fff; }
.qr-big { width: 72px; height: 72px; color: var(--ink); }
@media (max-width: 420px) { .pc-body { grid-template-columns: auto 1fr; } .pc-qr { display: none; } }

.cta-band { background: var(--navy); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: auto -60px -80px auto; width: 260px; height: 260px; border-radius: 60px; background: var(--blue); opacity: .35; transform: rotate(18deg); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.cta-inner h2 { margin-bottom: .3em; }
.cta-inner p { margin: 0; opacity: .9; }
@media (max-width: 760px) { .cta-inner { flex-direction: column; align-items: flex-start; } }

/* Inner pages */
.page-hero { padding: 56px 0 24px; background: radial-gradient(500px 300px at 85% 0%, rgba(0, 180, 240, .12), transparent 60%), radial-gradient(400px 260px at 0% 100%, rgba(255, 242, 0, .18), transparent 60%); text-align: center; }
.page-hero .lead { margin: 0 auto; }
.prose { font-size: 1.05rem; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose img { border-radius: 16px; }

.section-roles { background: var(--bg-soft); }
.role-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.role { background: #fff; border-radius: var(--radius); padding: 24px; border-left: 6px solid; }
.role p { color: var(--ink-2); margin: 0; }
.role-red { border-color: var(--red); } .role-yellow { border-color: var(--yellow-deep); } .role-green { border-color: var(--green); } .role-blue { border-color: var(--blue); }
@media (max-width: 980px) { .role-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .role-grid { grid-template-columns: 1fr; } }

/* Pricing */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; max-width: 980px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 32px; box-shadow: var(--shadow); }
.price-card h2 { margin-top: 16px; font-size: 1.6rem; }
.price-school { border-top: 6px solid var(--navy); }
.price-parent { border-top: 6px solid var(--red); }
.price { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 8px; }
.price strong { font: 700 2.6rem var(--font-head); }
.price .price-ask { font-size: 1.8rem; }
.price span { color: var(--ink-2); font-weight: 700; }
.price-card .btn { margin-top: 24px; }
.tiers { width: 100%; border-collapse: collapse; margin-top: 22px; font-weight: 700; }
.tiers th, .tiers td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tiers th { color: var(--ink-2); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 820px) { .price-grid { grid-template-columns: 1fr; } .price-card { padding: 24px; } }

.section-faq { background: var(--bg-soft); }
.faq { background: #fff; border-radius: 16px; margin-bottom: 10px; border: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 800; list-style: none; position: relative; padding-right: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--navy); }
.faq[open] summary::after { content: '–'; }
.faq p { padding: 0 22px 18px; margin: 0; color: var(--ink-2); }

/* Forms */
.card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 700; margin-bottom: 16px; font-size: .95rem; }
.opt { font-weight: 400; color: var(--ink-2); }
input, textarea, select { display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
input:focus, textarea:focus { border-color: var(--navy); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.hp { position: absolute; left: -9999px; }
.notice { display: flex; align-items: center; gap: .6em; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 700; }
.notice-ok { background: #e3f8ec; color: #006b2f; }
.notice-err { background: #ffe5e5; color: #b00000; }
.contact-info { display: grid; gap: 14px; }
.contact-line { display: flex; align-items: center; gap: 12px; font-weight: 700; text-decoration: none; color: var(--ink); }
.mini-card h3 { margin-bottom: .3em; }
.mini-card p { color: var(--ink-2); }

.auth-section { min-height: 70vh; display: grid; place-items: center; padding: 48px 16px; background: var(--bg-soft); }
.auth-card { width: 100%; max-width: 420px; text-align: center; }
.auth-card form { text-align: left; margin-top: 20px; }
.auth-icon { border-radius: 16px; margin-bottom: 12px; }
.auth-links { margin: 16px 0 0; font-weight: 700; }

/* Footer */
.site-footer { background: var(--ink); color: #c9ccd8; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: 1rem; }
.footer-grid a { display: block; color: #c9ccd8; text-decoration: none; margin-bottom: 8px; }
.footer-grid a:hover { color: #fff; }
.footer-logo { width: 190px; background: #fff; padding: 10px 14px; border-radius: 16px; margin-bottom: 12px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid #2a2d3a; margin-top: 32px; padding-top: 20px; font-size: .88rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.page-hero.has-image { background: linear-gradient(rgba(20, 22, 31, .55), rgba(20, 22, 31, .55)), var(--hero) center / cover no-repeat; color: #fff; padding: 96px 0 80px; }
.page-hero.has-image .lead { color: rgba(255, 255, 255, .9); }
.page-hero.has-image .eyebrow { background: rgba(255, 255, 255, .15); color: #fff; }
.teacher-code { font: 700 2.4rem var(--font-head); letter-spacing: .12em; background: var(--bg-soft); border: 2px dashed var(--navy); color: var(--navy); border-radius: 18px; padding: 16px; margin: 12px 0 16px; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .92rem; }
.check-line input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; }

.get-app-card ol { padding-left: 22px; } .get-app-card li { margin: 6px 0; }
.get-app-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.get-app-head img { border-radius: 16px; }
.install-steps ol { padding-left: 22px; } .install-steps li { margin: 6px 0; }
@media print { .site-header, .site-footer, .get-app-card .btn { display: none; } }

.nav-logout { margin: 0; display: contents; }
.nav-logout .btn { font: 700 1rem/1 var(--font-body); }
@media (max-width: 900px) { .nav-logout .btn { width: 100%; justify-content: flex-start; padding: .8em 1em; } }
@media (max-width: 900px) { .site-nav .btn-ghost { justify-content: flex-start; padding: .8em 1em; margin: 0; } }
