/* ChannelKidd.com — modern, dependency-free stylesheet */
:root {
  --navy: #0B2A6F;
  --navy-dark: #071B4A;
  --blue: #1D4ED8;
  --red: #C8102E;
  --red-dark: #A00D25;
  --white: #ffffff;
  --off: #F4F6FB;
  --ink: #17213A;
  --muted: #55607A;
  --line: #DDE3F0;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 42, 111, .12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 92%); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--white); color: var(--navy);
  padding: .75rem 1rem; z-index: 100; font-weight: 700;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Top stripe */
.flag-stripe { height: 6px; background: linear-gradient(90deg, var(--red) 0 33.33%, var(--white) 33.33% 66.66%, var(--navy) 66.66%); border-bottom: 1px solid var(--line); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand svg { width: 40px; height: 45px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.brand-name span { color: var(--red); }
.brand-tag { font-size: .65rem; font-weight: 700; letter-spacing: .22em; color: var(--navy); }

.nav ul { list-style: none; display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; }
.nav a.link { display: block; padding: .5rem .8rem; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: 8px; }
.nav a.link:hover { background: var(--off); color: var(--navy); }
.nav a.link[aria-current="page"] { color: var(--red); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem; font: inherit; font-weight: 700; color: var(--navy); cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s, background .15s, box-shadow .15s; cursor: pointer; font-size: 1rem;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 4px 14px rgba(200, 16, 46, .35); }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); }
.btn-sm { padding: .5rem 1rem; font-size: .95rem; }

/* Hero */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  background:
    radial-gradient(circle at 85% 10%, rgba(255,255,255,.12) 0, transparent 40%),
    linear-gradient(135deg, var(--navy-dark), var(--navy) 60%, #14409c);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
  background: repeating-linear-gradient(90deg, var(--red) 0 60px, var(--white) 60px 120px);
}
.hero-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; align-items: center; padding: 5rem 0 6rem; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: #FF8A9B; }
.hero p.lead { font-size: 1.2rem; color: #E1E8FA; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #FFB3BF; margin-bottom: .75rem; }
.hero-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 1.6rem; backdrop-filter: blur(6px); }
.hero-card h2 { color: var(--white); font-size: 1.2rem; margin-bottom: .75rem; }
.hero-card .big { font-size: 1.9rem; font-weight: 800; line-height: 1.15; }
.hero-card .small { color: #D3DDF6; font-size: .95rem; margin: .25rem 0 1rem; }
.hero-card hr { border: 0; border-top: 1px solid rgba(255,255,255,.25); margin: 1.1rem 0; }
.hero-card a { color: var(--white); }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: var(--white); padding: 3.5rem 0 3rem; border-bottom: 8px solid var(--red); }
.page-hero h1 { color: var(--white); margin-bottom: .3rem; }
.page-hero p { color: #D8E1F7; font-size: 1.15rem; margin: 0; max-width: 40rem; }

/* Sections */
section { padding: 4.5rem 0; }
.alt { background: var(--off); }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-head .rule { width: 64px; height: 4px; margin: .8rem auto 1rem; background: linear-gradient(90deg, var(--red) 0 33%, var(--white) 33% 66%, var(--navy) 66%); border: 1px solid var(--line); border-radius: 4px; }

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow); border-top: 4px solid var(--navy); }
.card:nth-child(3n+1) { border-top-color: var(--red); }
.card:nth-child(3n+2) { border-top-color: var(--navy); }
.card:nth-child(3n) { border-top-color: var(--blue); }
.card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--off); display: grid; place-items: center; margin-bottom: 1rem; color: var(--navy); }
.card .icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); margin: 0; }
.card ul { color: var(--muted); padding-left: 1.2rem; margin: .75rem 0 0; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.steps li { counter-increment: step; position: relative; padding: 4rem 1.5rem 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.steps li::before {
  content: counter(step); position: absolute; top: 1.2rem; left: 1.5rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--red); color: var(--white); font-weight: 800; display: grid; place-items: center;
}
.steps h3 { margin-bottom: .3rem; }
.steps p { color: var(--muted); margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.panel { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); border-left: 8px solid var(--red); }
.panel h3 { color: var(--white); }
.panel p, .panel li { color: #DCE5FA; }
.panel ul { padding-left: 1.2rem; margin: 0; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; }
.check-list li::before { content: "★"; position: absolute; left: 0; color: var(--red); }
.panel .check-list li::before { color: #FF8A9B; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--red-dark), var(--red)); color: var(--white); text-align: center; padding: 3.5rem 0; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #FFE3E8; font-size: 1.1rem; }
.cta-band .btn-white { background: var(--white); color: var(--red-dark); }
.cta-band .btn-white:hover { background: var(--off); }

/* Link tiles (Home/links page) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; }
.tiles section, section[hidden], .tile[hidden] { display: none; }
.tile { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: .8rem .6rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); text-align: center; transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--navy); }
.tile-img { display: grid; place-items: center; width: 100%; height: 75px; }
.tile-img img { max-width: 100px; max-height: 75px; width: auto; height: auto; object-fit: contain; margin: auto; }
.tile-label { font-size: .85rem; font-weight: 600; line-height: 1.2; }
section h2 { margin-bottom: 1rem; }

/* Script cards (Scripts page) */
.script-list { display: grid; gap: 1.25rem; }
.script { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.script-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.script-head h2 { margin: 0; font-size: 1.15rem; }
.script-head p { margin: .15rem 0 0; color: var(--muted); font-size: .95rem; }
.script-actions { display: flex; align-items: center; gap: .6rem; }
.badge { display: inline-block; padding: .2rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--off); color: var(--navy); }
.badge-admin { background: #FFE3E8; color: var(--red-dark); }
pre.code { margin: 0; padding: 1rem 1.25rem; background: #0F172A; color: #E2E8F0; overflow-x: auto; font: .9rem/1.6 ui-monospace, "Cascadia Code", Consolas, "Courier New", monospace; white-space: pre; tab-size: 4; }
.copy-btn { padding: .5rem 1.1rem; min-width: 6.5rem; }
.copy-btn.done { background: #15803D; }
.notice { background: var(--off); border: 1px solid var(--line); border-left: 6px solid var(--red); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.notice p { margin: 0 0 .4rem; }
.notice p:last-child { margin: 0; }

/* Contact blocks */
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow); }
.contact-card h3 { display: flex; align-items: center; gap: .6rem; }
.contact-card .value { font-size: 1.6rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
.contact-card .value a { color: inherit; text-decoration: none; }
.contact-card .value a:hover { color: var(--red); }
.contact-card .note { color: var(--muted); margin: .4rem 0 0; }
.placeholder { background: #FFF4C2; color: var(--ink); border-radius: 4px; padding: 0 .3rem; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #C5D0EC; padding: 3rem 0 1.5rem; border-top: 8px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { color: var(--white); font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; }
.site-footer a { color: #E4EAFB; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.footer-brand { font-size: 1.4rem; font-weight: 800; color: var(--white); }
.footer-brand span { color: #FF8A9B; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1.2rem; text-align: center; font-size: .9rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .split { grid-template-columns: 1fr; }
  .hero-inner { padding: 3.5rem 0 4.5rem; gap: 2rem; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 3.25rem 0; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: .75rem 4%; }
  .nav a.link[aria-current="page"] { box-shadow: none; background: var(--off); border-radius: 8px; }
  .header-inner .btn-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
@media print { .site-header, .cta-band, .nav-toggle { display: none; } }
