/* Schoolynq landing page. Phone first; no scripts. Colours from the logo. */
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --navy: #071e50;
  --ink: #13213f;
  --muted: #5a6680;
  --line: #dfe5ef;
  --bg: #ffffff;
  --soft: #f3f6fb;
  --teal: #04a5a5;
  --teal-dark: #037f80;
  --teal-soft: #e3f7f6;
  --blue: #0a62e6;
  --blue-dark: #0848b0;
  --blue-soft: #e7f0fe;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(7, 30, 80, 0.06), 0 8px 28px rgba(7, 30, 80, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; margin-top: 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: #fff; padding: 8px 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 800; text-decoration: none; border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-small { min-height: 44px; padding: 8px 18px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-teal { background: var(--teal-dark); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-outline-white { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.link { font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.link:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand img { width: 150px; }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 10px 12px; border-radius: 10px; }
.nav a:hover { background: var(--soft); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hide-small { display: none; }

.signin { position: relative; }
.signin summary {
  list-style: none; cursor: pointer; font-weight: 800; color: var(--navy);
  min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--line);
  display: inline-flex; align-items: center; gap: 6px;
}
.signin summary::-webkit-details-marker { display: none; }
.signin summary::after { content: "▾"; font-size: 0.8em; }
.signin[open] summary { border-color: var(--navy); }
.signin-menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 32px));
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px;
}
.signin-menu a { display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.signin-menu a:hover { background: var(--soft); }
.signin-menu strong { display: block; color: var(--navy); }
.signin-menu span { font-size: 0.9rem; color: var(--muted); }

/* Hero */
.hero {
  padding: 40px 0 56px;
  background:
    radial-gradient(900px 400px at 100% 0%, var(--blue-soft), transparent 70%),
    radial-gradient(700px 360px at 0% 100%, var(--teal-soft), transparent 70%);
}
.hero-grid { display: grid; gap: 32px; align-items: center; }
.eyebrow { font-size: 0.8rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.eyebrow-teal { color: var(--teal-dark); }
.eyebrow-blue { color: var(--blue); }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 900; letter-spacing: -0.02em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 0.95rem; }
.facts strong { color: var(--navy); }

.screen { margin: 0; }
.screen-frame { background: #0a0f1f; padding: 8px; border-radius: 16px; box-shadow: 0 20px 50px rgba(7, 30, 80, 0.25); }
.screen-frame img { border-radius: 10px; }
.screen-light { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.screen figcaption, .shot figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 10px; }
.screen-wide { margin-top: 32px; }

/* Sections */
.section { padding: 64px 0; }
.section-soft { background: var(--soft); }
.section-polaris { background: linear-gradient(180deg, var(--blue-soft), #fff 60%); }
.section-title { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 900; letter-spacing: -0.01em; }
.section-lead { font-size: 1.1rem; color: var(--muted); max-width: 44em; margin-bottom: 32px; }
.sub-title { font-size: 1.4rem; font-weight: 900; }

/* Cards */
.products { padding: 56px 0; }
.cards { display: grid; gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.product { border-top: 6px solid var(--teal); }
.product-polaris { border-top-color: var(--blue); }
.product h3 { font-size: 1.7rem; font-weight: 900; margin-top: 12px; }
.product .by { font-size: 1rem; font-weight: 700; color: var(--muted); }
.product-line { font-weight: 700; color: var(--ink); }
.product-head { display: flex; gap: 8px; flex-wrap: wrap; }
.product-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 16px; }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--navy); }
.tag-teal { background: var(--teal-soft); color: var(--teal-dark); }
.tag-blue { background: var(--blue-soft); color: var(--blue-dark); }
.tag-live { background: #e5f6ea; color: #17733a; }
.tag-soon { background: #fff4dc; color: #8a5a00; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.ticks li { padding-left: 30px; position: relative; margin: 10px 0; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23037f80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.product-polaris .ticks li::before {
  background-color: var(--blue-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230848b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Mission steps */
.steps { list-style: none; padding: 0; margin: 0 0 48px; display: grid; gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.step img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: #0a0f1f; }
.step > div { padding: 18px 20px 6px; }
.step h3 { font-size: 1.2rem; font-weight: 900; display: inline; margin-left: 8px; }
.step p { margin-top: 8px; color: var(--muted); }
.step-no { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--teal-dark); color: #fff; font-weight: 900; }

.split { display: grid; gap: 24px; align-items: center; margin-bottom: 56px; }
.photo { margin: 0; }
.photo img { border-radius: var(--radius); box-shadow: var(--shadow); }

.leaders { margin-bottom: 40px; }
.leader-grid { display: grid; gap: 16px; margin-top: 20px; }
.shot { margin: 0; display: grid; gap: 12px; align-content: start; }
.shot img { border-radius: 10px; }
.shot img.narrow { max-width: 300px; }
.shot .tag { justify-self: start; }

.addon { border-style: dashed; box-shadow: none; }
.addon h3 { font-size: 1.2rem; font-weight: 900; margin-top: 10px; }
.addon p { color: var(--muted); margin: 0; }

/* Polaris */
.polaris-grid { display: grid; gap: 32px; align-items: center; }
.phone {
  width: min(300px, 100%); margin: 0 auto; padding: 12px; border-radius: 40px; background: var(--navy);
  box-shadow: 0 24px 60px rgba(7, 30, 80, 0.3);
}
.phone-screen { background: #fff; border-radius: 30px; padding: 26px 18px 22px; }
.phone-meta { font-size: 0.78rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 10px; }
.phone-q { font-weight: 800; color: var(--navy); line-height: 1.4; }
.phone-opt { border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 8px 0; font-weight: 700; }
.phone-opt.is-chosen { border-color: var(--blue); background: var(--blue-soft); }
.phone-sure { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone-sure span { text-align: center; padding: 10px; border-radius: 12px; border: 2px solid var(--line); font-weight: 800; }
.phone-sure .is-on { background: var(--blue); border-color: var(--blue); color: #fff; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.features h3 { font-size: 1.15rem; font-weight: 900; margin-bottom: 4px; }
.features p { color: var(--muted); margin: 0; }

/* How to start */
.cards-4 { margin-bottom: 32px; }
.mini h3 { font-size: 1.15rem; font-weight: 900; }
.mini p { color: var(--muted); margin: 0; }
.mini-no { font-weight: 900; color: var(--teal-dark); }
.phases { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; counter-reset: phase; }
.phases li { display: grid; gap: 4px; padding: 16px 20px; border-left: 4px solid var(--blue); background: var(--soft); border-radius: 0 12px 12px 0; }
.phases strong { color: var(--navy); }
.phases span { color: var(--muted); }
.note { color: var(--muted); font-size: 0.95rem; }

/* Team */
.team { display: grid; gap: 20px; }
.person { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px; align-items: start; }
.person img { width: 96px; height: 96px; object-fit: cover; object-position: top; border-radius: 14px; }
.person h3 { font-size: 1.2rem; font-weight: 900; margin-bottom: 2px; }
.person .role { font-weight: 800; color: var(--teal-dark); margin-bottom: 8px; }
.person p:last-child { color: var(--muted); margin: 0; }

/* Call to action */
.cta { background: linear-gradient(120deg, var(--navy), #0b3a8f 60%, var(--blue)); color: #fff; padding: 56px 0; }
.cta h2 { color: #fff; font-size: clamp(1.7rem, 5vw, 2.4rem); font-weight: 900; }
.cta p { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; }
.cta-grid { display: grid; gap: 24px; align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list li { display: grid; gap: 0; background: rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 6px 16px; }
.contact-list span { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255, 255, 255, 0.75); }
.contact-list a { color: #fff; font-weight: 800; text-decoration: none; overflow-wrap: anywhere; min-height: 44px; display: flex; align-items: center; }
.contact-list a:hover { text-decoration: underline; }

/* Footer */
.foot { background: #061638; color: rgba(255, 255, 255, 0.8); padding: 40px 0 24px; }
.foot-grid { display: grid; gap: 24px; }
.foot-logo { width: 170px; margin-bottom: 12px; }
.foot nav { display: grid; gap: 4px; align-content: start; }
.foot a { color: #fff; text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.foot a:hover { text-decoration: underline; }
.copy { font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); margin-top: 24px; }

/* Wider screens */
@media (min-width: 720px) {
  .wrap { padding: 0 24px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .leader-grid { grid-template-columns: 2fr 1fr; }
  .split { grid-template-columns: 1.2fr 1fr; }
  .phases { grid-template-columns: repeat(3, 1fr); }
  .person { grid-template-columns: 120px 1fr; }
  .person img { width: 120px; height: 120px; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr; }
  .hide-small { display: inline-flex; }
  .contact-list li { grid-template-columns: 90px 1fr; gap: 8px; align-items: center; }
}
@media (min-width: 980px) {
  .nav { display: flex; }
  .brand img { width: 170px; }
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .polaris-grid { grid-template-columns: 340px 1fr; gap: 56px; }
  .features { grid-template-columns: 1fr 1fr; gap: 28px 36px; }
  .cta-grid { grid-template-columns: 1.4fr 1fr; }
  /* Four people, two by two: the founder and the chief advisor first, each photo beside the words. */
  .team { grid-template-columns: 1fr 1fr; }
  .person { grid-template-columns: 180px 1fr; gap: 20px; padding: 20px; }
  .person img { width: 180px; height: 230px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
