:root {
  /* Navy + restrained red, pulled from the AIYouth brain/flag mark — replaces
     the earlier generic purple-gradient "AI startup template" palette. */
  --brand-primary: #1b3864;
  --brand-secondary: #2f5c9e;
  --brand-accent: #c8102e;
  --brand-sun: #c8102e;
  --brand-success: #22c55e;
  --brand-warn: #f59e0b;
  --brand-error: #ef4444;
  --bg: #f7f9fc;
  --card-bg: #ffffff;
  --text: #16233b;
  --text-muted: #5b6577;
  --border: #e2e6ee;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 10px 28px rgba(27, 56, 100, 0.14);
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0 0 12px; }
p { line-height: 1.65; color: var(--text-muted); }

main { max-width: 1080px; margin: 0 auto; padding: 0 20px 60px; }

/* ---------------- nav ---------------- */
.ac-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.ac-nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.ac-mascot { width: 34px; height: 34px; object-fit: contain; display: inline-block; }
.ac-nav-links { display: flex; align-items: center; gap: 20px; font-weight: 600; font-size: 0.92rem; }
.ac-nav-links a:hover { color: var(--brand-primary); }
.ac-nav-cta {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: white !important;
  padding: 10px 18px;
  border-radius: 999px;
}
.ac-link-btn { background: none; border: none; font: inherit; font-weight: 600; cursor: pointer; color: var(--text-muted); }
.ac-link-btn:hover { color: var(--brand-error); }

/* ---------------- flash / notices ---------------- */
.ac-flash-wrap { max-width: 1080px; margin: 16px auto 0; padding: 0 20px; }
.ac-flash { background: #fef2f2; border: 1.5px solid #fecaca; color: #b91c1c; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 8px; font-weight: 500; }
.ac-notice { max-width: 1080px; margin: 16px auto 0; padding: 14px 18px; border-radius: var(--radius-sm); background: #e8eef7; border: 1.5px solid #c2d1e8; color: var(--brand-primary); font-size: 0.92rem; overflow-wrap: anywhere; }
.ac-notice-warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }

/* ---------------- hero ---------------- */
.ac-hero { text-align: center; padding: 70px 20px 40px; }
.ac-hero-sm { padding: 50px 20px 20px; }
.ac-hero-logo { width: 100%; max-width: 380px; height: auto; display: block; margin: 0 auto 22px; }
.ac-eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--brand-secondary); background: #e8edf5;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.ac-hero h1 { font-size: 2.4rem; line-height: 1.15; max-width: 780px; margin: 0 auto 16px; }
.ac-hero-sub { max-width: 620px; margin: 0 auto 26px; font-size: 1.05rem; }
.ac-hero-free-note {
  display: inline-block; font-weight: 700; font-size: 0.88rem; color: var(--brand-success);
  background: #ecfdf3; border: 1.5px solid #bbf7d0; padding: 6px 16px; border-radius: 999px;
  margin: -10px auto 20px;
}
.ac-hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------- buttons ---------------- */
.ac-btn {
  display: inline-block; font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  padding: 13px 26px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform 0.08s ease;
}
.ac-btn:hover { transform: translateY(-2px); }
.ac-btn-primary { background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)); color: white; box-shadow: 0 6px 0 #12233f; }
.ac-btn-primary:active { transform: translateY(2px); box-shadow: 0 3px 0 #12233f; }
.ac-btn-ghost { background: white; color: var(--brand-primary); border: 2px solid var(--brand-primary); }
.ac-btn-ghost:hover { background: #e8edf5; }
.ac-btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.ac-btn-block { display: block; width: 100%; text-align: center; }

/* ---------------- sections ---------------- */
.ac-section { padding: 46px 0; text-align: center; }
.ac-section h2 { font-size: 1.7rem; max-width: 680px; margin: 0 auto 14px; }
.ac-lead { max-width: 640px; margin: 0 auto; font-size: 1.02rem; }
.ac-section-alt { background: linear-gradient(160deg, #e8edf5, #fdfcff); border-radius: var(--radius); }

/* ---------------- grade cards ---------------- */
.ac-grade-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px; margin-top: 28px; text-align: left;
}
.ac-grade-card {
  background: var(--card-bg); border: 2px solid var(--border); border-radius: var(--radius-sm);
  padding: 20px; position: relative; display: block;
}
.ac-grade-badge {
  display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: 0.85rem;
  color: white; background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}
.ac-grade-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.ac-grade-card p { font-size: 0.88rem; margin: 0; }
.ac-grade-live { border-color: var(--brand-secondary); box-shadow: var(--shadow); }
.ac-live-pill { float: right; font-size: 0.68rem; font-weight: 700; color: var(--brand-success); }
.ac-grade-disabled { opacity: 0.6; }
.ac-grade-clickable { cursor: pointer; transition: transform 0.1s ease; }
.ac-grade-clickable:hover { transform: translateY(-3px); }

/* ---------------- grade picker ---------------- */
.ac-grade-picker { max-width: 420px; margin: 32px auto 0; text-align: left; }
.ac-grade-select {
  width: 100%; font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  color: var(--text); padding: 14px 44px 14px 18px; border-radius: var(--radius-sm);
  border: 2px solid var(--border); background: var(--card-bg);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235b6577' stroke-width='2'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px;
  cursor: pointer; transition: border-color 0.15s ease;
}
.ac-grade-select:focus { outline: none; border-color: var(--brand-secondary); }
.ac-grade-result {
  margin-top: 18px; background: var(--card-bg); border: 2px solid var(--brand-secondary);
  border-radius: var(--radius-sm); padding: 22px; box-shadow: var(--shadow);
  animation: ac-grade-reveal 0.3s ease;
}
.ac-grade-result h3 { font-size: 1.1rem; margin: 4px 0 8px; clear: both; }
.ac-grade-result p { font-size: 0.92rem; margin: 0 0 16px; }
@keyframes ac-grade-reveal {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------- student picker (one parent account, multiple kids) ---------------- */
.ac-student-picker { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 560px; margin: 28px auto 0; }
.ac-student-chip {
  display: inline-block; font-weight: 600; font-size: 0.95rem; color: var(--brand-primary);
  background: var(--card-bg); border: 2px solid var(--border); border-radius: 999px;
  padding: 10px 22px; transition: border-color 0.15s ease, transform 0.08s ease;
}
.ac-student-chip:hover { border-color: var(--brand-secondary); transform: translateY(-2px); }
.ac-student-chip-active { border-color: var(--brand-primary); background: #e8edf5; }
.ac-student-add-form {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  max-width: 460px; margin: 18px auto 0;
}
.ac-student-add-form input {
  flex: 1 1 220px; font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  color: var(--text); padding: 12px 16px; border-radius: var(--radius-sm);
  border: 2px solid var(--border); background: var(--card-bg);
}
.ac-student-add-form input:focus { outline: none; border-color: var(--brand-secondary); }
.ac-rename-details { max-width: 420px; margin: 18px auto 0; text-align: center; }
.ac-rename-details summary { cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.ac-rename-details summary:hover { color: var(--brand-secondary); }
.ac-rename-details .ac-student-add-form { margin-top: 12px; }

/* ---------------- feature grid ---------------- */
.ac-feature-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 30px; text-align: left; }
.ac-feature { padding: 8px; }
.ac-feature-icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.ac-feature h3 { font-size: 1rem; margin-bottom: 6px; }
.ac-feature p { font-size: 0.9rem; margin: 0; }

/* ---------------- checklist ---------------- */
.ac-checklist { list-style: none; padding: 0; margin: 20px auto 0; max-width: 520px; text-align: left; }
.ac-checklist li { padding: 8px 0; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--border); }
.ac-checklist-compact { max-width: none; margin: 16px 0; }
.ac-checklist-compact li { font-size: 0.85rem; padding: 6px 0; }

/* ---------------- pricing ---------------- */
.ac-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 720px; margin: 30px auto 0; }
.ac-plan-card {
  background: var(--card-bg); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; text-align: left; position: relative;
}
.ac-plan-featured { border-color: var(--brand-sun); box-shadow: var(--shadow); }
.ac-plan-flag {
  position: absolute; top: -12px; right: 20px; background: var(--brand-sun); color: white;
  font-size: 0.7rem; font-weight: 700; padding: 5px 12px; border-radius: 999px;
}
.ac-plan-price { font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; color: var(--brand-primary); margin-bottom: 6px; }
.ac-plan-price span { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.ac-fine-print { text-align: center; font-size: 0.8rem; max-width: 520px; margin: 20px auto 0; }

/* ---------------- auth (split-screen: brand panel + form panel) ---------------- */
.ac-auth-section { padding: 0; margin: -46px calc(50% - 50vw) -60px; }
.ac-auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 69px); }

.ac-auth-brand {
  background: linear-gradient(160deg, var(--brand-primary), var(--brand-secondary));
  color: white;
  padding: 60px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ac-auth-brand-mark { width: 56px; height: 56px; border-radius: 50%; background: white; padding: 9px; margin-bottom: 28px; display: block; }
.ac-auth-brand h2 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 18px; max-width: 380px; color: white; }
.ac-auth-brand-list { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.ac-auth-brand-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; opacity: 0.95; line-height: 1.4; }
.ac-auth-brand-list li::before { content: "✓"; font-weight: 800; flex-shrink: 0; }
.ac-auth-brand-tagline { font-size: 0.82rem; opacity: 0.75; font-style: italic; margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.25); max-width: 360px; }

.ac-auth-form-side { display: flex; align-items: center; justify-content: center; padding: 60px 40px; background: var(--card-bg); }
.ac-auth-card { max-width: 380px; width: 100%; text-align: left; }

@media (max-width: 860px) {
  .ac-auth-split { grid-template-columns: 1fr; min-height: auto; }
  .ac-auth-brand { display: none; }
  .ac-auth-form-side { padding: 44px 20px; }
}

.ac-form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.ac-form label { font-size: 0.85rem; font-weight: 600; color: var(--text); display: flex; flex-direction: column; gap: 6px; }
.ac-form input {
  font-family: var(--font-body); font-size: 0.95rem; padding: 12px 14px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
}
.ac-form input:focus { outline: none; border-color: var(--brand-secondary); }
.ac-auth-switch { text-align: center; font-size: 0.88rem; margin-top: 16px; }
.ac-auth-switch a { color: var(--brand-primary); font-weight: 600; }

/* ---------------- account ---------------- */
.ac-account-card { background: var(--card-bg); border: 2px solid var(--border); border-radius: var(--radius); padding: 26px; text-align: left; margin-top: 20px; }
.ac-status-badge { display: inline-block; font-weight: 700; font-size: 0.85rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 12px; }
.ac-status-active { background: #dcfce7; color: #15803d; }
.ac-status-warn { background: #fffbeb; color: #92400e; }
.ac-status-muted { background: #f1f0f5; color: var(--text-muted); }
.ac-dev-card { background: #fffbeb; border-color: #fde68a; }
.ac-dev-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ---------------- product showcase (real screenshots) ---------------- */
.ac-showcase-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px;
  margin-top: 44px; align-items: start;
}
.ac-showcase-item { margin: 0; }
.ac-showcase-item img {
  width: 100%; height: auto; display: block; cursor: pointer;
  transition: transform 0.25s ease;
}
.ac-showcase-item:hover img { transform: scale(1.035); }
.ac-showcase-item-b { margin-top: 64px; }
.ac-showcase-item figcaption {
  margin-top: 18px; font-size: 0.92rem; color: var(--text-muted);
  max-width: 360px; line-height: 1.5;
}

/* ---------------- why-it-matters illustration ---------------- */
.ac-why-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; text-align: left; }
.ac-why-copy { text-align: left; }
.ac-why-illus { color: var(--brand-primary); cursor: pointer; }
.ac-why-illus svg { width: 100%; height: auto; display: block; transition: transform 0.3s ease; }
.ac-why-illus:hover svg { transform: scale(1.06); }
.ay-node-a { fill: var(--brand-secondary); }
.ay-node-b { fill: var(--brand-primary); }
.ay-node-accent { fill: var(--brand-accent); animation: ay-pulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes ay-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.72; transform: scale(1.18); }
}

@media (max-width: 860px) {
  .ac-showcase-grid { grid-template-columns: 1fr; }
  .ac-showcase-item-b { margin-top: 0; }
  .ac-why-grid { grid-template-columns: 1fr; }
  .ac-why-illus { max-width: 320px; margin: 0 auto; order: -1; }
}

/* ---------------- legal pages ---------------- */
.ac-legal { text-align: left; max-width: 760px; margin: 0 auto; }
.ac-legal h1 { margin-bottom: 6px; }
.ac-legal-updated { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 36px; }
.ac-legal h2 { font-size: 1.2rem; margin-top: 36px; margin-bottom: 10px; }
.ac-legal p, .ac-legal li { color: var(--text-muted); line-height: 1.7; }
.ac-legal ul { padding-left: 22px; margin: 10px 0; }
.ac-legal li { margin-bottom: 6px; }
.ac-legal-note {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius-sm);
  padding: 16px 18px; font-size: 0.88rem; color: #92400e; margin-bottom: 32px;
}
.ac-legal-note p { color: #92400e; margin: 0; }

/* ---------------- FAQ (pricing page) ---------------- */
.ac-faq { max-width: 720px; margin: 36px auto 0; text-align: left; }
.ac-faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card-bg); margin-bottom: 12px; overflow: hidden;
}
.ac-faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700;
  font-family: var(--font-display); font-size: 0.98rem; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.ac-faq-item summary::-webkit-details-marker { display: none; }
.ac-faq-item summary::after {
  content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--brand-secondary);
  flex-shrink: 0; transition: transform 0.15s ease;
}
.ac-faq-item[open] summary::after { transform: rotate(45deg); }
.ac-faq-item p { padding: 0 20px 18px; margin: 0; font-size: 0.92rem; }

/* ---------------- final CTA ---------------- */
.ac-final-cta { padding: 60px 0; }

/* ---------------- footer ---------------- */
.ac-footer { text-align: center; padding: 30px 20px; color: var(--text-muted); font-size: 0.82rem; }
.ac-footer-links { margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.ac-footer-links a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.ac-footer-links a:hover { color: var(--brand-primary); }

@media (max-width: 640px) {
  .ac-nav-links { gap: 12px; font-size: 0.82rem; }
  .ac-hero h1 { font-size: 1.8rem; }
  .ac-hide-mobile { display: none; }
}
