/* TinkerBit marketing landing — palette locked to brand tokens */

:root {
  --primary: #FF6B35;
  --secondary: #00A896;
  --accent: #FFD23F;
  --bg: #FFFBF5;
  --text: #2B2B2B;
  --text-muted: #5A5A5A;
  --white: #FFFFFF;
  --radius: 1rem;
  --radius-pill: 999px;
  --shadow-soft: 0 8px 28px rgba(43, 43, 43, 0.08);
  --font-display: "Quicksand", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --nav-h: 4.25rem;
  --max: 68rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 251, 245, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(43, 43, 43, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
}

.btn-outline {
  background: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
}

.btn-outline:hover {
  background: rgba(0, 168, 150, 0.08);
  transform: translateY(-1px);
}

.btn-pill-nav {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: #2B2B2B;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 107, 53, 0.88) 0%, rgba(255, 210, 63, 0.72) 55%, rgba(43, 43, 43, 0.35) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0 4rem;
  max-width: 40rem;
}

.hero-copy {
  position: relative;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  text-shadow: 0 2px 16px rgba(43, 43, 43, 0.18);
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  opacity: 0.96;
  margin-bottom: 1.5rem;
}

.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.hero .btn-primary {
  background: var(--text);
  box-shadow: 0 10px 24px rgba(43, 43, 43, 0.25);
}

.hero-note {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
  max-width: 28rem;
}

.hero-note[hidden] {
  display: none;
}

.placeholder-tag {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  background: rgba(43, 43, 43, 0.75);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border-radius: 0.4rem;
}

.hero-copy {
  animation: hero-rise 0.8s ease both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 4.5rem 0;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--text-muted);
  max-width: 40rem;
  font-size: 1.1rem;
}

.section--tint {
  background: rgba(0, 168, 150, 0.08);
}

.section--warm {
  background: rgba(255, 107, 53, 0.06);
}

.what-it-is {
  padding: 3rem 0 1rem;
}

.what-it-is p {
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  font-weight: 600;
  line-height: 1.45;
}

/* How it works */

.steps {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}

.step {
  display: grid;
  gap: 0.75rem;
}

.step-num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
}

.step h3 {
  font-size: 1.25rem;
}

.step p {
  color: var(--text-muted);
  margin: 0;
  max-width: 28rem;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.rj11-demo {
  margin-top: 3rem;
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 800px) {
  .rj11-demo {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.rj11-demo-copy h3 {
  font-size: 1.35rem;
}

.rj11-demo-copy p {
  color: var(--text-muted);
}

.rj11-frame {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  overflow: hidden;
}

.rj11-frame svg {
  width: 100%;
  height: auto;
}

.click-pulse {
  transform-origin: center;
  animation: click-in 2.4s ease-in-out infinite;
}

@keyframes click-in {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(14px); }
  55% { transform: translateY(14px); }
}

/* Gallery */

.gallery-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  display: grid;
  gap: 0.65rem;
}

.gallery-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(0, 168, 150, 0.12);
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item h3 {
  font-size: 1.1rem;
  margin: 0;
}

.gallery-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Why RJ11 / Trust / Schools / About */

.split {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.point-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.point-list li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--text-muted);
}

.point-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--secondary);
}

.trust-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

@media (min-width: 800px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-item h3 {
  font-size: 1.1rem;
  color: var(--text);
}

.trust-item p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.98rem;
}

.schools-panel {
  border: 2px solid var(--secondary);
  border-radius: 1.25rem;
  padding: 1.75rem;
  background: var(--white);
}

.schools-panel p {
  color: var(--text-muted);
}

.about-panel {
  max-width: 40rem;
}

.about-panel p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Waitlist (mobile) */

.waitlist {
  margin-top: 0.5rem;
  display: none;
  width: 100%;
  max-width: 22rem;
}

.waitlist.is-visible {
  display: block;
}

.waitlist label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.waitlist-row {
  display: flex;
  gap: 0.5rem;
}

.waitlist input {
  flex: 1;
  min-width: 0;
  border: 2px solid rgba(43, 43, 43, 0.15);
  border-radius: var(--radius-pill);
  padding: 0.7rem 1rem;
  font: inherit;
}

.waitlist button {
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0.7rem 1rem;
  cursor: pointer;
}

.waitlist-msg {
  font-size: 0.85rem;
  margin: 0.45rem 0 0;
}

/* Footer */

.site-footer {
  padding: 3.5rem 0 2rem;
  background: var(--text);
  color: rgba(255, 251, 245, 0.92);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: rgba(255, 251, 245, 0.72);
  margin: 0;
  max-width: 18rem;
}

.footer-col h2 {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  color: var(--accent);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-col a {
  text-decoration: none;
  color: rgba(255, 251, 245, 0.85);
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 251, 245, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 251, 245, 0.55);
}

/* Mobile nav */

@media (max-width: 799px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-soft);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 0.75rem 0.25rem;
  }

  .nav-links .btn-pill-nav {
    width: 100%;
    margin-top: 0.5rem;
  }

  .hero-cta-desktop {
    display: none !important;
  }

  .waitlist.is-mobile-default {
    display: block;
  }
}

@media (min-width: 800px) {
  .hero-cta-mobile {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy,
  .click-pulse,
  .btn-primary:hover {
    animation: none;
    transition: none;
    transform: none;
  }
}
