/* Semper Ed product site (ed.semperfi.uk). Semper Fi brand: charcoal, silver Cinzel, gold, Montserrat; Semper Ed's school green. */
:root {
  --char: #16191d; --char-2: #1f2328; --char-3: #2a2f35;
  --gold: #c9a45c; --gold-ink: #7a5c22; --green: #0c4a2e; --green-2: #12623d;
  --paper: #f6f7f5; --white: #fff; --ink: #16191d; --steel: #5b636b; --rule: #dde1dc;
  --silver: linear-gradient(180deg, #f4f6f8 0%, #c9ced4 48%, #9aa3ad 100%);
  --display: 'Cinzel', Georgia, serif; --body: 'Montserrat', system-ui, sans-serif;
  --r: 14px; --shadow: 0 24px 60px rgba(10, 14, 12, 0.28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: 0.01em; }
h3 { font-size: 1.08rem; font-weight: 700; }
section { padding: clamp(56px, 8vw, 104px) 0; }
.kicker { text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.74rem; font-weight: 700; color: var(--gold-ink); margin: 0 0 12px; }
.lead { font-size: 1.12rem; color: #d7d9dc; max-width: 62ch; }
.lead.dark { color: var(--steel); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 0.92rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.gold { background: var(--gold); color: #1b1406; }
.btn.gold:hover { background: #d8b571; }
.btn.line { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn.line:hover { border-color: #fff; }
.btn.big { padding: 14px 26px; font-size: 1rem; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(22, 25, 29, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.06); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.mark { width: 38px; height: 38px; flex: none; border-radius: 10px; background: url(/ed/favicon.svg) center / cover no-repeat; box-shadow: 0 0 0 1px rgba(201,164,92,.55); }
.word strong { display: block; font: 700 1.15rem var(--display); letter-spacing: 0.04em; background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.word small { display: block; font-size: 0.68rem; letter-spacing: 0.08em; color: #9aa0a7; text-transform: uppercase; }
.menu { display: flex; align-items: center; gap: 22px; }
.menu a:not(.btn) { color: #d4d7da; text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.menu a:not(.btn):hover { color: #fff; }
.menu-btn { display: none; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; padding: 6px 12px; font: inherit; }

/* hero */
.hero { background: radial-gradient(1100px 600px at 80% 10%, #263a30 0%, rgba(22,25,29,0) 60%), linear-gradient(180deg, var(--char) 0%, #121417 100%); color: #fff; padding-top: clamp(48px, 7vw, 88px); overflow: hidden; position: relative; }
.hero::after { content: ''; position: absolute; right: -10%; bottom: -1px; width: 55%; height: 140px; background: var(--paper); clip-path: polygon(100% 0, 100% 100%, 0 100%); opacity: 0.04; }
.hero-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: 0.005em; background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 span { display: block; background: linear-gradient(180deg, #e8cf98, var(--gold)); -webkit-background-clip: text; background-clip: text; }
.hero .kicker { color: var(--gold); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 26px; }
.proof { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: #c4c8cc; font-size: 0.95rem; }
.proof li::before { content: '◆'; color: var(--gold); margin-right: 10px; font-size: 0.7rem; }
.proof b { color: #fff; }
.hero-shot { position: relative; margin: 0; padding-bottom: 40px; }
.frame { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.08); transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.phone { position: absolute; right: -6px; bottom: 0; width: 30%; border-radius: 26px; overflow: hidden; border: 6px solid #0b0c0e; box-shadow: var(--shadow); background: #000; }

/* find school */
.find { padding: 26px 0; background: var(--white); border-bottom: 1px solid var(--rule); }
.find-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.find h2 { font-size: 1.15rem; margin: 0; }
.find-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1; }
.find-form label { font-size: 0.85rem; color: var(--steel); }
.address { display: flex; align-items: center; border: 1.5px solid #b9c0bc; border-radius: 999px; padding: 4px 6px 4px 16px; background: #fff; }
.address input { border: 0; font: inherit; width: 160px; outline: none; }
.address span { color: var(--steel); padding-right: 10px; }
.find .btn.gold { padding: 10px 18px; }
.find-msg { width: 100%; margin: 0; color: #9b2c2c; font-size: 0.9rem; }

/* pillars */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.grid4 article, .grid3 article { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); padding: 24px; }
.grid4 p, .grid3 p { color: var(--steel); margin: 0; font-size: 0.95rem; }
.ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--green); color: var(--gold); font-size: 1.2rem; margin-bottom: 14px; }

/* roles */
.roles { background: var(--white); }
.role-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 28px; }
.role-tabs button { font: 600 0.92rem var(--body); padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--rule); background: var(--paper); cursor: pointer; color: var(--ink); }
.role-tabs button[aria-selected="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.role-panel { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: center; }
.role-panel[hidden] { display: none; }
.role-panel ul, .ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.role-panel li, .ticks li { padding-left: 30px; position: relative; color: #3a4148; }
.role-panel li::before, .ticks li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px; border-left: 2.5px solid var(--green-2); border-bottom: 2.5px solid var(--green-2); transform: rotate(-45deg); }
.role-panel img { border-radius: var(--r); box-shadow: 0 18px 44px rgba(0,0,0,.14), 0 0 0 1px var(--rule); }
.role-panel img.tall { width: min(300px, 100%); justify-self: center; border-radius: 24px; border: 6px solid #0b0c0e; }

/* chat */
.chat-sec { background: linear-gradient(180deg, var(--paper), #edf2ee); }
.chat-in { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.ticks { margin-top: 22px; }
.chat-shots { position: relative; margin: 0; padding-bottom: 50px; }
.chat-shots .desk { border-radius: var(--r); box-shadow: 0 18px 44px rgba(0,0,0,.16), 0 0 0 1px var(--rule); }
.chat-shots .mob { position: absolute; right: -10px; bottom: 0; width: 28%; border-radius: 22px; border: 6px solid #0b0c0e; box-shadow: var(--shadow); }

/* modules */
.modules { background: var(--char); color: #fff; }
.modules .kicker { color: var(--gold); }
.modules h2 { background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mods { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.08); border-radius: var(--r); overflow: hidden; }
.mods li { background: var(--char-2); padding: 20px 22px; display: grid; gap: 4px; }
.mods b { font-size: 1rem; } .mods b::before { content: '◆'; color: var(--gold); font-size: 0.65rem; margin-right: 10px; vertical-align: 2px; }
.mods span { color: #a9afb5; font-size: 0.88rem; }

/* devices */
.dev-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.steps, .flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li, .flow li { counter-increment: s; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); padding: 18px 20px 18px 64px; position: relative; display: grid; gap: 2px; }
.steps li::before, .flow li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #1b1406; font-weight: 700; display: grid; place-items: center; font-size: 0.9rem; }
.steps span, .flow span { color: var(--steel); font-size: 0.95rem; }

/* security */
.security { background: var(--white); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.grid3 article { border-top: 3px solid var(--gold); }

/* demo */
.demo { background: radial-gradient(900px 500px at 15% 0%, #1d3a2c 0%, rgba(0,0,0,0) 60%), var(--char); color: #fff; }
.demo .kicker { color: var(--gold); }
.demo h2 { background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.demo-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.roles-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; color: #c4c8cc; }
.roles-list li { padding-left: 18px; position: relative; }
.roles-list li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.roles-list b { color: #fff; margin-right: 6px; }
.have-code { margin-top: 26px; color: #c4c8cc; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.demo-form { color: var(--char); }
.demo-form h3 { margin: 0; font-size: 1.2rem; }
.small-print { margin: 0; font-size: 0.82rem; color: #5b636b; }
.logins td:last-child { color: #c9cdd1; }

/* onboarding */
.flow { grid-template-columns: repeat(4, 1fr); margin-top: 26px; }
.price { margin-top: 26px; font-size: 1.05rem; } .price a { color: var(--green-2); font-weight: 700; }

/* faq */
.faq { background: var(--white); }
.faq .wrap { max-width: 860px; }
details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 1.04rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: '+'; color: var(--gold-ink); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { color: var(--steel); margin: 10px 0 0; }

/* contact */
.contact-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; }
.contact .lead { color: var(--steel); }
.mails { display: grid; margin: 14px 0; } .mails a { font-weight: 700; color: var(--green); font-size: 1.05rem; } .mails span { color: var(--steel); font-size: 0.9rem; }
.enquiry { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); padding: 26px; display: grid; gap: 14px; }
.enquiry label { display: grid; gap: 6px; font-size: 0.86rem; font-weight: 600; color: #3a4148; }
.enquiry input, .enquiry textarea { font: inherit; font-weight: 400; padding: 11px 13px; border: 1.5px solid #c3c9c5; border-radius: 10px; background: #fbfcfb; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; font-weight: 600; } .form-msg.ok { color: var(--green-2); } .form-msg.err { color: #9b2c2c; }

/* footer */
.foot { background: #0f1113; color: #a9afb5; padding: 34px 0; font-size: 0.9rem; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot p { margin: 4px 0 0; } .fw { font: 700 1.05rem var(--display); color: #e6e8ea; letter-spacing: 0.04em; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; } .foot a { color: #d4d7da; text-decoration: none; } .foot a:hover { color: #fff; }

@media (max-width: 980px) {
  .hero-in, .role-panel, .chat-in, .dev-in, .demo-in, .contact-in { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: 1fr 1fr; } .grid3, .mods { grid-template-columns: 1fr 1fr; } .flow { grid-template-columns: 1fr 1fr; }
  .frame { transform: none; }
  .menu-btn { display: inline-block; }
  .menu { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--char); flex-direction: column; align-items: stretch; padding: 16px; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .menu.open { display: flex; }
}
@media (max-width: 600px) {
  .grid4, .grid3, .mods, .flow, .row2 { grid-template-columns: 1fr; }
  .logins th:first-child, .logins td:first-child { white-space: nowrap; }
  .address input { width: 110px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* sign-in page */
.signin-page { background: radial-gradient(1000px 600px at 70% 0%, #263a30 0%, rgba(22,25,29,0) 60%), var(--char); min-height: 100vh; display: flex; flex-direction: column; }
.menu-plain { display: flex; gap: 18px; align-items: center; } .menu-plain a:not(.btn) { color: #d4d7da; text-decoration: none; font-size: 0.9rem; }
.signin-main { flex: 1; display: grid; place-items: center; padding: 56px 16px; }
.signin-card { width: min(560px, 100%); background: var(--white); border-radius: 18px; padding: clamp(26px, 5vw, 44px); box-shadow: var(--shadow); }
.signin-card h1 { font: 700 clamp(1.7rem, 4vw, 2.2rem) var(--display); margin: 0 0 8px; }
.si-lead { color: var(--steel); margin: 0 0 22px; }
.si-form { display: grid; gap: 12px; }
.si-form label { font-weight: 600; font-size: 0.9rem; }
.address.big { border-radius: 12px; padding: 6px 8px 6px 16px; font-size: 1.1rem; }
.address.big input { flex: 1; width: auto; min-width: 0; font-size: 1.1rem; padding: 6px 0; }
.si-form .btn { justify-self: start; }
.si-last { margin: 0 0 18px; color: var(--steel); font-size: 0.92rem; }
.btn.line-dark { border-color: var(--green); color: var(--green); background: #fff; margin-right: 6px; }
.si-help { list-style: none; padding: 18px 0 0; margin: 22px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 8px; color: var(--steel); font-size: 0.9rem; }
.si-help a { color: var(--green-2); font-weight: 600; }
.signin-page .foot { background: transparent; }
.signin-card { min-width: 0; }
.address.big input { width: 100%; }
.address span { flex: none; }
.menu-plain .btn { white-space: nowrap; }
@media (max-width: 600px) {
  .menu-plain a:not(.btn) { display: none; }
  .menu-plain .btn { padding: 8px 14px; font-size: 0.85rem; }
  .word small { display: none; }
  .signin-main { padding: 28px 16px; place-items: start center; }
}

/* Download the computer app */
.get-app { margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(0,0,0,.08); }
.get-app h3 { margin: 0 0 8px; font-size: 1.4rem; }
.get-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 8px; }
.get-btns .btn[hidden] { display: none; }
.get-msg { min-height: 1.2em; color: #5a4a1a; }
.get-help { margin-top: 10px; max-width: 760px; }
.get-help summary { cursor: pointer; font-weight: 700; }
.get-help ul { margin: 10px 0 0; padding-left: 20px; line-height: 1.6; }
/* Which demo: private schools, government or both. */
.which-demo { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.which-demo legend { font-size: 0.86rem; font-weight: 600; color: #3a4148; margin-bottom: 6px; padding: 0; }
.enquiry .which-demo label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid #d7dbe0; border-radius: 999px; font-weight: 600; cursor: pointer; background: #fff; }
.enquiry .which-demo label:has(input:checked) { border-color: #12284A; box-shadow: 0 0 0 2px rgb(18 40 74 / 0.15); }
