/* ClarityBase landing — custom CSS on top of Tailwind Play CDN.
   Utility-first classes live in the markup; this file carries the
   design-system-y bits (buttons, cards, decorative sketch) so the HTML
   stays readable. */

/* ─── Typography ──────────────────────────────────────────────────────── */
:root {
  --brand-500: #2f7fed;
  --brand-600: #1f6adb;
  --brand-700: #1a56b8;
  --ink-900: #0b0d12;
  --ink-500: #4a5163;
  --ink-100: #eef1f5;
}

html { scroll-behavior: smooth; }
body { font-feature-settings: "cv02", "cv03", "cv04", "cv11"; }

/* Section wrapper. */
.section { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 1024px) { .section { padding-top: 6.5rem; padding-bottom: 6.5rem; } }

.section-title {
  font-family: "Instrument Sans", Inter, system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
@media (min-width: 640px) { .section-title { font-size: 2.5rem; } }

.section-sub {
  margin-top: 1rem;
  color: var(--ink-500);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.btn-primary,
.btn-outline,
.btn-outline-invert,
.btn-ghost,
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.15rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform 120ms ease, background-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary { background: var(--brand-500); color: #fff; box-shadow: 0 1px 2px rgba(47,127,237,.25), 0 6px 20px rgba(47,127,237,.25); }
.btn-primary:hover { background: var(--brand-600); }
.btn-primary:active { background: var(--brand-700); transform: translateY(1px); }

.btn-outline { background: transparent; color: var(--brand-500); border: 1.5px solid rgba(47,127,237,.35); }
.btn-outline:hover { background: rgba(47,127,237,.06); border-color: rgba(47,127,237,.55); }

.btn-outline-invert { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-outline-invert:hover { background: rgba(255,255,255,.1); }

.btn-ghost { background: #eef1f5; color: var(--ink-900); }
.btn-ghost:hover { background: #dfe4ec; }

.btn-white { background: #fff; color: var(--brand-700); }
.btn-white:hover { background: #f4f7ff; }

.btn-lg { padding: 0.85rem 1.4rem; font-size: 0.95rem; }

/* ─── Feature cards ───────────────────────────────────────────────────── */
.feature-card {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(16,24,40,.03), 0 8px 24px rgba(16,24,40,.05);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(16,24,40,.06), 0 22px 48px rgba(16,24,40,.10);
  border-color: rgba(47,127,237,.3);
}
.feature-icon {
  height: 3rem;
  width: 3rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.feature-title { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.005em; }
.feature-body { margin-top: 0.5rem; color: var(--ink-500); font-size: 0.95rem; line-height: 1.55; }

/* ─── Persona cards ───────────────────────────────────────────────────── */
.persona-card {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: 20px;
  transition: transform 200ms ease, border-color 200ms ease;
}
.persona-card:hover { transform: translateY(-3px); border-color: rgba(47,127,237,.35); }
.persona-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.persona-desc { margin-top: 0.9rem; color: var(--ink-500); font-size: 0.9rem; line-height: 1.55; }
.persona-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--ink-900);
  font-size: 0.9rem;
}
.persona-list li {
  padding-left: 1.4rem;
  position: relative;
}
.persona-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--brand-500);
  opacity: .55;
}

/* ─── Step cards ──────────────────────────────────────────────────────── */
.step-card {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: 20px;
  position: relative;
}
.step-num {
  height: 2rem;
  width: 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* ─── Pricing cards ───────────────────────────────────────────────────── */
.price-card {
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  position: relative;
}
.price-card--popular {
  border-color: rgba(47,127,237,.5);
  box-shadow: 0 2px 6px rgba(47,127,237,.12), 0 30px 60px rgba(47,127,237,.15);
  transform: translateY(-6px);
}
.price-tag {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-500);
  color: #fff;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.price-name {
  font-size: 0.9rem;
  color: var(--ink-500);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.price-amount {
  margin-top: 0.75rem;
  font-family: "Instrument Sans", Inter, system-ui, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.price-suffix { font-size: 1rem; color: var(--ink-500); font-weight: 500; }
.price-cta-sub { margin-top: 0.35rem; color: var(--ink-500); font-size: 0.85rem; }
.price-list {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: var(--ink-900);
  font-size: 0.92rem;
}
.price-list li { padding-left: 1.6rem; position: relative; }
.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: rgba(47,127,237,.14);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232f7fed'><path d='M7.3 13.8L3.5 10l1.4-1.4 2.4 2.3 5.8-5.7 1.4 1.4z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

/* ─── FAQ ─────────────────────────────────────────────────────────────── */
.faq { padding: 1rem 1.25rem; }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--brand-500);
  transition: transform 200ms ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 0.5rem; color: var(--ink-500); font-size: 0.95rem; line-height: 1.6; }

/* ─── CTA banner ─────────────────────────────────────────────────────── */
.cta-banner {
  border-radius: 24px;
  padding: 3rem 1.5rem;
  text-align: center;
  background:
    radial-gradient(1200px 400px at 100% 0%, rgba(255,255,255,.15), transparent 60%),
    radial-gradient(800px 300px at 0% 100%, rgba(255,255,255,.15), transparent 60%),
    linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: #fff;
  box-shadow: 0 40px 60px -20px rgba(47,127,237,.35);
}
@media (min-width: 640px) { .cta-banner { padding: 4rem 2rem; } }

/* ─── Footer ─────────────────────────────────────────────────────────── */
.footer-heading {
  font-size: 0.8rem;
  color: var(--ink-500);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-list { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.9rem; }
.footer-list a { color: var(--ink-900); }
.footer-list a:hover { color: var(--brand-500); }

/* ─── Hero preview (abstract dashboard sketch, fallback for image) ───── */
.dashboard-sketch {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--ink-100);
  overflow: hidden;
  display: none; /* hidden by default; image above shows */
}
/* If the image failed and hid itself, the sketch becomes the fallback. */
.dashboard-sketch:only-child { display: block; }

.sketch-topbar {
  height: 34px;
  background: linear-gradient(90deg, #eaf1fd, #f8fafc);
  border-bottom: 1px solid var(--ink-100);
}
.sketch-body { display: grid; grid-template-columns: 96px 1fr; height: calc(100% - 34px); }
.sketch-sidebar {
  background: #f1f4f9;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sketch-sidebar span {
  height: 8px;
  border-radius: 4px;
  background: rgba(47,127,237,.15);
}
.sketch-sidebar span:first-child { background: rgba(47,127,237,.45); }
.sketch-content { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.sketch-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sketch-stat { height: 46px; border-radius: 8px; background: #eaf1fd; }
.sketch-chart {
  flex: 1;
  border-radius: 10px;
  background:
    repeating-linear-gradient(180deg, #eaf1fd 0 1px, transparent 1px 32px),
    linear-gradient(180deg, #f4f7fd, #eaf1fd);
  min-height: 100px;
}
.sketch-table { display: flex; flex-direction: column; gap: 6px; }
.sketch-table span { height: 12px; border-radius: 4px; background: #eef2f7; }

/* ─── Floating chips over the hero preview ───────────────────────────── */
.chip {
  position: absolute;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--ink-100);
  box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 10px 30px rgba(16,24,40,.08);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-900);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.chip-teacher { top: 1.5rem; left: -0.75rem; }
.chip-parent { bottom: 1rem; right: -0.5rem; }
.chip-dot { height: 0.5rem; width: 0.5rem; border-radius: 999px; background: var(--brand-500); }
.chip-dot--green { background: #10b981; }
@media (min-width: 1024px) {
  .chip-teacher { top: 2rem; left: -1.5rem; }
  .chip-parent { bottom: 1.5rem; right: -1.25rem; }
}

/* ─── Logo strip (text placeholders — replace with images later) ───── */
.logo-strip {
  font-family: "Instrument Sans", Inter, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-500);
  font-size: 1rem;
}

/* ─── Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
