/* ==========================================================================
   Rhino Kids — marketing site
   Palette + type ported from rhino-kids-admin-console (src/styles.scss) and
   rhino_kids_flutter_app (lib/core/theme/app_colors.dart) so this site reads
   as the same brand as the app and admin console.
   ========================================================================== */

:root {
  --color-brand: #6d5ef0;
  --color-brand-active: #5a4ce0;
  --color-brand-light: #efecff;

  --color-success: #17c653;
  --color-info: #3fa9f5;
  --color-danger: #f8285a;
  --color-warning: #f6b100;
  --color-warning-active: #dfa000;

  --color-dark: #1a1c2b;
  --color-canvas: #0f1119;
  --color-surface: #171a26;
  --color-surface-2: #1f2333;
  --color-border-soft: #2a2f42;

  --color-gray-100: #f9f9f9;
  --color-gray-200: #f1f1f4;
  --color-gray-300: #dbdfe9;
  --color-gray-400: #c4cada;
  --color-gray-500: #99a1b7;
  --color-gray-600: #78829d;
  --color-gray-700: #4b5675;
  --color-gray-900: #071437;

  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Baloo 2", var(--font-sans);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-soft: 0 20px 45px -20px rgba(26, 28, 43, 0.25);
  --shadow-card: 0 10px 30px -12px rgba(26, 28, 43, 0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-gray-900);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--color-dark);
}

p { line-height: 1.65; color: var(--color-gray-700); margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--color-brand);
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(109, 94, 240, 0.55);
}
.btn-primary:hover { background: var(--color-brand-active); }
.btn-ghost {
  background: transparent;
  border-color: var(--color-gray-300);
  color: var(--color-dark);
}
.btn-ghost:hover { border-color: var(--color-brand); color: var(--color-brand); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; margin-top: 8px; }

/* Header ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-gray-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.brand-logo { height: 36px; width: auto; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 600;
  font-size: 15px;
  color: var(--color-gray-700);
}
.main-nav a:hover { color: var(--color-brand); }
.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border: 1px solid var(--color-gray-300);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--color-dark);
  border-radius: 2px;
}

/* Hero -------------------------------------------------------------------- */
.hero {
  padding: 64px 0 100px;
  background:
    radial-gradient(1100px 500px at 85% -10%, var(--color-brand-light), transparent 60%),
    #fff;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-brand-light);
  color: var(--color-brand-active);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px;
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.mini-badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gray-700);
  background: var(--color-gray-100);
  border: 1px solid var(--color-gray-200);
  padding: 7px 14px;
  border-radius: 999px;
}

.hero-art { position: relative; min-height: 480px; }
.phone-frame {
  position: relative;
  z-index: 2;
  width: min(320px, 78%);
  margin: 0 auto;
  border-radius: 40px;
  padding: 12px;
  background: var(--color-dark);
  box-shadow: var(--shadow-soft);
}
.phone-frame img {
  border-radius: 30px;
  width: 100%;
  aspect-ratio: 9 / 17;
  object-fit: cover;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.9;
  z-index: 1;
}
.blob-a {
  width: 340px; height: 340px;
  background: linear-gradient(135deg, var(--color-brand), #a99bff);
  top: -30px; right: -20px;
  opacity: 0.18;
}
.blob-b {
  width: 220px; height: 220px;
  background: linear-gradient(135deg, var(--color-warning), #ffd77a);
  bottom: -20px; left: 0;
  opacity: 0.2;
}
.blob-c {
  width: 260px; height: 260px;
  background: linear-gradient(135deg, var(--color-brand), var(--color-info));
  top: -10px; left: -30px;
  opacity: 0.15;
  position: absolute;
  border-radius: 50%;
}
.floaty {
  position: absolute;
  z-index: 3;
  animation: float 5s ease-in-out infinite;
}
.star { color: var(--color-warning); font-size: 22px; }
.star-1 { top: 8%; left: 8%; animation-delay: 0.2s; }
.star-2 { bottom: 18%; right: 6%; font-size: 16px; animation-delay: 1.2s; }
.moon { top: 4%; right: 14%; font-size: 30px; animation-delay: 0.6s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.floating-pill {
  position: absolute;
  z-index: 3;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-gray-700);
  white-space: nowrap;
}
.floating-pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 4px rgba(23, 198, 83, 0.18);
}

/* Section shared styles --------------------------------------------------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.kicker {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--color-brand);
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-sub { font-size: 17px; }

/* Features ---------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--color-gray-100);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--icon-bg, var(--color-brand));
  color: #fff;
  margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 19px; margin-bottom: 8px; }
.feature-card p { font-size: 15px; margin: 0; }

/* How it works -------------------------------------------------------------- */
.how { background: var(--color-gray-100); }
.how-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.how-art { position: relative; min-height: 420px; }
.phone-frame-alt { width: min(300px, 80%); }
.steps { list-style: none; margin: 32px 0 0; padding: 0; position: relative; }
.step {
  display: flex;
  gap: 20px;
  padding-bottom: 32px;
  position: relative;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--color-gray-300);
}
.step:last-child::before { display: none; }
.step-num {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  z-index: 1;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { margin: 0; font-size: 15px; }

/* Premium ------------------------------------------------------------------ */
.premium {
  background: radial-gradient(900px 420px at 15% -10%, rgba(109, 94, 240, 0.35), transparent 60%), var(--color-canvas);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.premium .wrap { position: relative; z-index: 1; }
.section-head-light h2 { color: #fff; }
.kicker-light { color: var(--color-warning); }
.section-sub-light { color: var(--color-gray-400); }

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}
.plan-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.plan-card h3 { color: #fff; font-size: 22px; margin-bottom: 4px; }
.plan-tag { color: var(--color-gray-500); font-size: 14px; margin-bottom: 20px; }
.plan-features {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan-features li {
  color: var(--color-gray-300);
  font-size: 14.5px;
  padding-left: 26px;
  position: relative;
}
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-success);
  font-weight: 800;
}
.plan-card-highlight {
  background: linear-gradient(165deg, var(--color-surface-2), var(--color-surface));
  border-color: var(--color-warning);
  box-shadow: 0 20px 50px -20px rgba(246, 177, 0, 0.35);
}
.plan-badge {
  position: absolute;
  top: -14px;
  right: 28px;
  background: var(--color-warning);
  color: var(--color-dark);
  font-weight: 800;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
}
.plan-note { font-size: 12.5px; color: var(--color-gray-500); text-align: center; margin: 10px 0 0; }

/* FAQ ---------------------------------------------------------------------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-icon {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--color-brand-light);
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--color-brand);
  border-radius: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-icon::before { width: 10px; height: 2px; }
.faq-icon::after { width: 2px; height: 10px; transition: transform 0.2s ease; }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer p { padding: 0 24px 20px; margin: 0; font-size: 15px; }

/* Signup -------------------------------------------------------------------- */
.signup {
  text-align: center;
  background: linear-gradient(180deg, #fff, var(--color-brand-light));
  position: relative;
}
.signup-inner { max-width: 560px; position: relative; }
.signup-star {
  position: static;
  display: inline-block;
  color: var(--color-warning);
  font-size: 26px;
  margin-bottom: 12px;
  animation: float 4s ease-in-out infinite;
}
.signup h2 { margin-bottom: 10px; }
.signup-form {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.signup-form input[type="email"] {
  flex: 1 1 280px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 2px solid var(--color-gray-300);
  font-family: var(--font-sans);
  font-size: 15px;
  outline-offset: 2px;
}
.signup-form input[type="email"]:focus { border-color: var(--color-brand); }
.signup-note { margin-top: 16px; font-weight: 700; color: var(--color-brand-active); min-height: 1.2em; }
.signup-note.is-error { color: var(--color-danger); }

/* Footer ---------------------------------------------------------------- */
.site-footer { background: var(--color-dark); color: var(--color-gray-400); padding-top: 64px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-logo { height: 30px; margin-bottom: 12px; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-brand p { color: var(--color-gray-500); max-width: 30ch; margin: 0; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--color-gray-400); font-size: 14.5px; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 22px 24px;
  font-size: 13px;
  color: var(--color-gray-600);
  flex-wrap: wrap;
  gap: 8px;
}

/* Responsive --------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-inner, .how-inner { grid-template-columns: 1fr; }
  .how-art { order: -1; min-height: 340px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  section { padding: 64px 0; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--color-gray-200);
  }
  .site-header.nav-open .main-nav a { padding: 12px 0; width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}

/* ==========================================================================
   Legal pages (privacy-policy.html, account-deletion.html)
   ========================================================================== */
.legal { padding: 56px 0 96px; }
.legal-wrap { max-width: 820px; }
.legal-wrap-narrow { max-width: 680px; }
.legal-back {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-brand);
  margin-bottom: 24px;
}
.legal-back:hover { color: var(--color-brand-active); }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 8px; }
.legal-meta { color: var(--color-gray-600); font-size: 14.5px; margin-bottom: 32px; }
.legal h2 { font-size: 21px; margin-top: 40px; margin-bottom: 12px; }
.legal h3 { font-size: 16.5px; margin-top: 24px; margin-bottom: 8px; }
.legal p, .legal li { font-size: 15.5px; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 1em; }
.legal li { margin-bottom: 8px; }
.legal a:not(.btn):not(.legal-back) { color: var(--color-brand); text-decoration: underline; text-underline-offset: 2px; }

.legal-callout {
  background: var(--color-brand-light);
  border: 1px solid #ddd6ff;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0 32px;
}
.legal-callout p { margin: 0; font-size: 15px; }
.legal-callout-muted { background: var(--color-gray-100); border-color: var(--color-gray-200); margin-top: 40px; }

.legal-toc {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  background: var(--color-gray-100);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 40px;
  font-size: 14.5px;
}
.legal-toc a { color: var(--color-gray-700); font-weight: 600; }
.legal-toc a:hover { color: var(--color-brand); }

.table-scroll { overflow-x: auto; margin: 16px 0; border: 1px solid var(--color-gray-200); border-radius: var(--radius-md); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
.legal-table th, .legal-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--color-gray-200); vertical-align: top; }
.legal-table th { background: var(--color-gray-100); font-weight: 800; color: var(--color-dark); }
.legal-table tr:last-child td { border-bottom: none; }
.legal-note { font-size: 13px; color: var(--color-gray-600); }

.legal-steps { counter-reset: step; list-style: none; padding: 0; }
.legal-steps li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 20px;
}
.legal-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deletion-request-box {
  background: var(--color-gray-100);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 24px 0 32px;
  text-align: center;
}
.deletion-request-box h3 { margin-top: 0; }

@media (max-width: 560px) {
  .legal-toc { grid-template-columns: 1fr; }
}

.signup-privacy { font-size: 12.5px; color: var(--color-gray-600); margin-top: 14px; }
.signup-privacy a { color: var(--color-gray-700); text-decoration: underline; }
