/* ================================================================
   seo.css — the guide pages (/bouncing-ball-simulation, /line-war-simulation, /multiplying-balls-simulation, /satisfying-video-maker).
   Plain CSS on top of Website_style.css (its "Studio" palette variables, .modes-grid / .mode-tile / .clip-* cards), so these pages
   look like the main page without loading the Tailwind CDN: they stay light and fast, which is what search engines rank.
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; font-family: Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.6; color: rgb(var(--c-txt));
  background: rgb(var(--c-paper)); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; letter-spacing: -0.02em; margin: 0; color: rgb(var(--c-txt)); }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .wrap { padding: 0 2.5rem; } }

/* ── header ── */
.g-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgb(var(--c-edge) / 0.12); background: rgb(var(--c-paper) / 0.88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.g-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.g-logo { display: inline-flex; align-items: center; gap: 0.6rem; font-family: "Space Grotesk", sans-serif; font-size: 1.1rem; font-weight: 700; white-space: nowrap; }
.g-logo b { color: rgb(var(--c-accent)); font-weight: 700; }
.g-nav { display: none; gap: 1.75rem; font-size: 0.875rem; font-weight: 500; color: rgb(var(--c-txt2)); }
.g-nav a:hover { color: rgb(var(--c-txt)); }
@media (min-width: 900px) { .g-nav { display: flex; } }
.g-header .btn { white-space: nowrap; }
@media (max-width: 400px) { .g-header .g-logo { font-size: 1rem; gap: 0.5rem; } .g-header .btn-sm { padding: 0.55rem 0.95rem; } }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border-radius: 999px; padding: 0.8rem 1.5rem;
  font-size: 0.9rem; font-weight: 600; line-height: 1.2; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn-main { color: rgb(var(--c-ink)); background: rgb(var(--c-accent)); box-shadow: 0 8px 20px -8px rgba(255,107,26,0.7); }
.btn-main:hover { background: rgb(var(--c-accent-hover)); transform: translateY(-2px); }
.btn-line { color: rgb(var(--c-txt)); background: rgb(var(--c-surface)); border: 1px solid rgb(var(--c-inset) / 0.2); }
.btn-line:hover { border-color: rgb(var(--c-inset) / 0.45); transform: translateY(-2px); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.82rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* ── hero ── */
.g-hero { padding: 3.5rem 0 4rem; }
.g-hero .wrap { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .g-hero { padding: 5rem 0 5.5rem; } .g-hero .wrap { grid-template-columns: 1.1fr 0.9fr; } }
.crumbs { font-size: 0.8rem; color: rgb(var(--c-txt2)); margin-bottom: 1.1rem; }
.crumbs a:hover { color: rgb(var(--c-accent-text)); }
.g-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.08; font-weight: 700; }
.g-hero h1::after { content: ""; display: block; width: 4.5rem; height: 0.3rem; margin-top: 1.25rem; border-radius: 999px; background: rgb(var(--c-accent)); }
.lead { margin-top: 1.5rem; font-size: 1.12rem; line-height: 1.65; color: rgb(var(--c-txt2)); max-width: 36rem; }
.proof { margin-top: 1.25rem; font-size: 0.9rem; color: rgb(var(--c-txt2)); }
.proof b { color: rgb(var(--c-txt)); }
.hero-clip { justify-self: center; width: min(100%, 360px); }
.hero-clip .clip-frame { aspect-ratio: 9 / 16; }
.hero-clip.square .clip-frame { aspect-ratio: 1; border-radius: 22px; }

/* ── sections ── */
.g-sec { padding: 4.5rem 0; }
.g-sec.alt { background: rgb(var(--c-mist)); border-top: 1px solid rgb(var(--c-edge) / 0.1); border-bottom: 1px solid rgb(var(--c-edge) / 0.1); }
@media (min-width: 768px) { .g-sec { padding: 6rem 0; } }
.eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgb(var(--c-accent-text)); }
.g-sec h2 { margin-top: 0.5rem; font-size: clamp(1.7rem, 3.4vw, 2.25rem); line-height: 1.15; font-weight: 700; }
.sub { margin-top: 0.75rem; color: rgb(var(--c-txt2)); max-width: 40rem; }
.head { max-width: 44rem; margin-bottom: 2.75rem; }

/* numbered steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.steps li {
  counter-increment: step; position: relative; padding: 1.5rem 1.5rem 1.5rem 4.4rem; border-radius: 1.1rem; background: rgb(var(--c-surface));
  border: 1px solid rgb(var(--c-edge) / 0.12); box-shadow: 0 1px 2px rgba(15,27,51,0.04), 0 10px 28px -16px rgba(15,27,51,0.16);
}
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 1.4rem; top: 1.35rem; font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1.3px rgb(var(--c-accent) / 0.85);
}
.steps h3 { font-size: 1.02rem; font-weight: 600; }
.steps p { margin-top: 0.4rem; font-size: 0.92rem; color: rgb(var(--c-txt2)); }

/* tips: a plain readable list */
.tips { display: grid; gap: 1rem; }
@media (min-width: 768px) { .tips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2.5rem; } }
.tip { padding-left: 1.1rem; border-left: 3px solid rgb(var(--c-accent)); }
.tip h3 { font-size: 1rem; font-weight: 600; }
.tip p { margin-top: 0.3rem; font-size: 0.92rem; color: rgb(var(--c-txt2)); }

/* the clips row (Website_style.css .showcase-row / .clip-card) is reused as is */

/* plan table */
.plan-table { width: 100%; max-width: 44rem; border-collapse: collapse; font-size: 0.9rem; }
.plan-table th, .plan-table td { padding: 0.75rem 0.5rem; border-bottom: 1px solid rgb(var(--c-edge) / 0.1); text-align: center; }
.plan-table thead th { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(var(--c-txt2)); }
.plan-table tbody th { text-align: left; font-weight: 600; padding-left: 0; }
.plan-table td { color: rgb(var(--c-txt2)); width: 30%; }
.plan-table td.pro { color: rgb(var(--c-txt)); background: rgb(var(--c-accent) / 0.08); }

/* FAQ */
.faq { max-width: 50rem; display: grid; gap: 0.75rem; }
.faq details { border-radius: 1rem; background: rgb(var(--c-surface)); border: 1px solid rgb(var(--c-edge) / 0.12); padding: 0 1.25rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 0.95rem; font-size: 1.3rem; line-height: 1; color: rgb(var(--c-accent-text)); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 1.2rem; font-size: 0.93rem; color: rgb(var(--c-txt2)); }
.faq a, .sub a, .tip a, .steps a { color: rgb(var(--c-accent-text)); font-weight: 600; }
.faq a:hover, .sub a:hover, .tip a:hover, .steps a:hover { text-decoration: underline; }

/* closing call to action */
.g-cta { text-align: center; }
.g-cta .sub { margin-left: auto; margin-right: auto; }
.g-cta .btn-row { justify-content: center; }

/* ── footer ── */
.g-footer { background: rgb(var(--c-footer)); border-top: 1px solid rgb(var(--c-edge) / 0.12); padding: 3rem 0; text-align: center; }
.g-footer .tag-line { margin-top: 0.4rem; font-size: 0.875rem; color: rgb(var(--c-txt2)); }
.g-footer nav { margin-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; font-size: 0.875rem; color: rgb(var(--c-txt2)); }
.g-footer nav a:hover, .g-footer nav a[aria-current] { color: rgb(var(--c-accent-text)); }
.g-footer .copy { margin-top: 1.5rem; font-size: 0.75rem; color: rgb(var(--c-txt2)); }

@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }
