/* Teacher's Diary website. One stylesheet for every page. */

:root {
  --navy: #0b2a5b;
  --navy-2: #163d7a;
  --teal: #12909e;
  --teal-soft: #e3f4f5;
  --sun: #f6a821;
  --coral: #ef5a4c;
  --leaf: #4bb543;

  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --ink: #14213d;
  --ink-2: #4a5568;
  --ink-3: #718096;
  --line: #e6e2d9;
  --shadow: 0 1px 2px rgba(11, 42, 91, 0.04), 0 8px 24px rgba(11, 42, 91, 0.06);
  --shadow-lg: 0 2px 4px rgba(11, 42, 91, 0.05), 0 24px 60px rgba(11, 42, 91, 0.12);

  --radius: 18px;
  --max: 1120px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #9cc0ff;
    --navy-2: #c4d9ff;
    --teal: #5fd0db;
    --teal-soft: #12343a;
    --bg: #0d1424;
    --surface: #141d31;
    --surface-2: #1a253d;
    --ink: #eef2f8;
    --ink-2: #b6c0d2;
    --ink-3: #8a96ab;
    --line: #26324b;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.4);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.5em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 8px;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #fff;
}
.brand span b {
  color: var(--teal);
  font-weight: 800;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links .btn-primary,
.nav-links .btn-primary:hover {
  color: #fff;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 6px 18px rgba(11, 42, 91, 0.25);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary {
    background: #2a5bb5;
  }
}
.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}
.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle at center, var(--teal-soft), transparent 65%);
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(38px, 5.6vw, 62px);
  font-weight: 800;
  color: var(--navy);
}
.hero h1 em {
  font-style: normal;
  color: var(--teal);
}
.lead {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 34em;
  margin: 0 0 32px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--ink-3);
  font-weight: 600;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.trust svg {
  width: 16px;
  height: 16px;
  color: var(--leaf);
}

/* Real app screenshots in a phone frame */

.device {
  margin: 0;
  padding: 9px;
  border-radius: 42px;
  background: #0f1a2e;
  box-shadow: var(--shadow-lg);
  width: 300px;
  max-width: 100%;
}
.device img {
  width: 100%;
  height: auto;
  border-radius: 33px;
}
.devices {
  position: relative;
  height: 640px;
}
.devices .device {
  position: absolute;
}
.device-front {
  left: 50%;
  top: 0;
  transform: translateX(-30%) rotate(2deg);
  z-index: 2;
}
.device-back {
  left: 50%;
  top: 48px;
  width: 260px;
  transform: translateX(-95%) rotate(-5deg);
  opacity: 0.95;
}

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 36px 0;
}
.showcase + .showcase {
  border-top: 1px solid var(--line);
}
.showcase.flip .showcase-media {
  order: 2;
}
.showcase-media {
  display: flex;
  justify-content: center;
  position: relative;
}
.showcase-media.pair {
  min-height: 600px;
}
.showcase-media.pair .device {
  position: absolute;
  width: 260px;
}
.device-pair-back {
  left: 6%;
  top: 0;
  transform: rotate(-4deg);
}
.device-pair-front {
  right: 6%;
  top: 40px;
  transform: rotate(3deg);
}
.showcase-text h3 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  color: var(--navy);
}
.showcase-text p {
  color: var(--ink-2);
  font-size: 18px;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
  color: var(--ink-2);
}
.ticks li {
  display: flex;
  gap: 10px;
}
.ticks svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 5px;
  color: var(--leaf);
}
.more-features {
  list-style: none;
  padding: 0;
  margin: 48px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 820px;
}
.more-features li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
}

/* Sections */

section {
  padding: 88px 0;
}
.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  color: var(--navy);
}
.section-head p {
  color: var(--ink-2);
  font-size: 18px;
  margin: 0;
}
.alt {
  background: var(--surface-2);
}

/* Privacy band */

.privacy-band {
  background: linear-gradient(135deg, #0b2a5b 0%, #12406f 55%, #0f6c78 100%);
  color: #fff;
  border-radius: 28px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.privacy-band h2 {
  color: #fff;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
}
.privacy-text {
  display: flex;
  gap: 28px;
  align-items: center;
}
.device-mini {
  width: 170px;
  flex: none;
  padding: 6px;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.device-mini img {
  border-radius: 22px;
}
.privacy-band p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 24px;
}
.privacy-band .btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.checks li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
}
.checks svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: #7fe3c5;
  margin-top: 2px;
}
.checks b {
  display: block;
}
.checks span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .step::before {
    background: #2a5bb5;
  }
}
.step h3 {
  font-size: 17px;
}
.step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

/* Pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
  gap: 24px;
}
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px;
}
.plan.best {
  border: 2px solid var(--teal);
  box-shadow: var(--shadow-lg);
}
.ribbon {
  position: absolute;
  top: -13px;
  left: 34px;
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ribbon {
    color: #0d1424;
  }
}
.plan h3 {
  font-size: 18px;
  color: var(--ink-2);
  font-weight: 700;
}
.price {
  font-size: 46px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 6px 0 4px;
}
.price small {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0;
}
.plan .note {
  color: var(--ink-3);
  font-size: 14px;
  margin: 0 0 22px;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 10px;
  font-size: 15.5px;
  color: var(--ink-2);
}
.plan li {
  display: flex;
  gap: 10px;
}
.plan li svg {
  width: 18px;
  height: 18px;
  color: var(--leaf);
  flex: none;
  margin-top: 4px;
}
.plan .btn {
  width: 100%;
  justify-content: center;
}
.fine {
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
  margin: 28px auto 0;
  max-width: 620px;
}

/* FAQ */

.faq {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 22px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 500;
  color: var(--teal);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: 0 0 18px;
  color: var(--ink-2);
}

/* Final call to action */

.final {
  text-align: center;
}
.final img {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}
.final h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  color: var(--navy);
}
.final p {
  color: var(--ink-2);
  font-size: 18px;
  margin: 0 auto 30px;
  max-width: 34em;
}
.final .cta-row {
  justify-content: center;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 14.5px;
  color: var(--ink-3);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
}
.footer-links a:hover {
  color: var(--ink);
}

/* Legal pages */

.legal-hero {
  padding: 64px 0 36px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--teal-soft), transparent);
}
.legal-hero h1 {
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 800;
  color: var(--navy);
}
.legal-hero p {
  color: var(--ink-2);
  margin: 0;
}
.legal {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  padding: 48px 0 88px;
}
.toc {
  position: sticky;
  top: 96px;
  align-self: start;
  font-size: 14px;
}
.toc b {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.toc ol {
  margin: 0;
  padding: 0 0 0 26px;
  display: grid;
  gap: 8px;
  color: var(--ink-3);
}
.toc a {
  color: var(--ink-2);
  text-decoration: none;
}
.toc a:hover {
  color: var(--teal);
}
.prose {
  max-width: 720px;
}
.prose h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin-top: 44px;
  scroll-margin-top: 96px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  font-size: 18px;
  margin-top: 26px;
}
.prose p,
.prose li {
  color: var(--ink-2);
}
.prose ul {
  padding-left: 22px;
}
.prose li {
  margin: 6px 0;
}
.prose strong {
  color: var(--ink);
}
.summary-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 36px;
}
.summary-box h2 {
  font-size: 18px;
  margin: 0 0 8px;
}
.summary-box ul {
  margin: 0;
}
.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.prose th,
.prose td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-2);
}
.prose th {
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 700;
}
.prose tr:last-child td {
  border-bottom: 0;
}

/* Reveal on scroll (only when JavaScript is running) */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Responsive */

@media (max-width: 980px) {
  .hero-grid,
  .privacy-band {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 40px;
  }
  .showcase {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .showcase.flip .showcase-media {
    order: 0;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .privacy-band {
    padding: 44px 32px;
  }
  .legal {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .toc {
    position: static;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 20px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding: 0 16px;
  }
  .nav-links .hide-sm {
    display: none;
  }
  .nav-links {
    gap: 16px;
  }
  .steps,
  .plans {
    grid-template-columns: 1fr;
  }
  section {
    padding: 64px 0;
  }
  .privacy-band {
    padding: 36px 22px;
    border-radius: 22px;
  }
  .lead {
    font-size: 17px;
  }
  .devices {
    height: 520px;
  }
  .devices .device-front {
    width: 240px;
    transform: translateX(-35%) rotate(2deg);
  }
  .devices .device-back {
    width: 200px;
    top: 40px;
    transform: translateX(-85%) rotate(-5deg);
  }
  .showcase-media.pair {
    min-height: 480px;
  }
  .showcase-media.pair .device {
    width: 200px;
  }
  .device {
    width: 260px;
  }
  .privacy-text {
    flex-direction: column;
    align-items: flex-start;
  }
  .device-mini {
    width: 140px;
  }
}
