/* ClassToybox public site (home, tool pages, pricing, legal). Tools keep their own styles. */
:root {
  --bg: #fffaf2;
  --surface: #ffffff;
  --ink: #23324a;
  --muted: #5d6b80;
  --line: #ece3d4;
  --accent: #ff6b4a;
  --accent-ink: #ffffff;
  --accent-soft: #ffe6dd;
  --sun: #ffc845;
  --mint: #2bb68b;
  --blue: #4f7cff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(35, 50, 74, .08);
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171c26; --surface: #212836; --ink: #eef1f6; --muted: #a8b2c3; --line: #323b4c;
    --accent-soft: #3a2a27; --shadow: 0 10px 30px rgba(0, 0, 0, .35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #171c26; --surface: #212836; --ink: #eef1f6; --muted: #a8b2c3; --line: #323b4c;
  --accent-soft: #3a2a27; --shadow: 0 10px 30px rgba(0, 0, 0, .35); color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--body); }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Header / footer */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 22px/1 var(--display); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); }
.site-footer { margin-top: 72px; border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }

/* Type */
h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(34px, 6vw, 56px); letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3.4vw, 32px); margin-top: 1.6em; }
h3 { font-size: 20px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 46em; }
.eyebrow { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid transparent; font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(.95); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); }
.btn:focus-visible, .nav a:focus-visible, .card:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Home */
.hero { padding: 56px 0 24px; }
.hero .lead { margin-bottom: 24px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.hero-badges li::before { content: "✓ "; color: var(--mint); font-weight: 800; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 18px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s; }
.card:hover { transform: translateY(-3px); }
.card img { display: block; aspect-ratio: 16 / 9; object-fit: contain; width: 100%; background: var(--surface); }
.card-body { padding: 16px 18px 20px; }
.card-body h3 { margin: 0 0 6px; }
.card-body p { margin: 0; color: var(--muted); font-size: 15px; }
.soon { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.soon li { background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; padding: 14px 16px; }
.soon strong { display: block; }
.soon span { color: var(--muted); font-size: 15px; }

/* Tool page */
.tool-hero { padding: 32px 0 12px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.player { margin-top: 18px; background: #0f172a; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tool-preview { display: block; width: 100%; height: auto; }
.player [hidden] { display: none !important; }
.player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; min-height: 420px; border: 0; background: #0f172a; }
.player-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--surface); border-top: 1px solid var(--line); }
.player-bar p { margin: 0; color: var(--muted); font-size: 14px; }
.player-bar .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.content { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.content ol, .content ul { padding-left: 1.3em; }
.content li { margin: 6px 0; }
.aside { position: sticky; top: 88px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 2.2em; }
.aside h3 { margin-top: 0; }
.aside ul { list-style: none; padding: 0; margin: 0 0 4px; }
.aside li { margin: 0 0 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 24px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--accent); }
.price { font: 600 44px/1 var(--display); margin: 8px 0 4px; }
.price small { font-size: 17px; color: var(--muted); font-family: var(--body); }
.plan ul { padding-left: 1.2em; }
.note { color: var(--muted); font-size: 15px; }

/* Legal */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; }

@media (max-width: 860px) {
  .content { grid-template-columns: 1fr; gap: 0; }
  .aside { position: static; }
  .player iframe { aspect-ratio: auto; height: 72vh; min-height: 360px; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }
