/* KidTime v1.3 — Apple-Grade Architecture × KidTime Crayon Storybook Palette
 * Exact DoodleColors from KidTime App:
 *   Paper #FFFAEB | Note #FFFDF5 | Ink #332114 | Blue #0D69D6 | Sky #63B5E6
 *   Yellow #F5B30D | Orange #F05914 | Green #4D9C40 | Purple #8C63B3
 */

:root {
  --paper: #fffaeb;
  --paper-alt: #f5edd8;
  --note: #fffdf5;
  --ink: #332114;
  --secondary: #6e5a47;
  --tertiary: #968371;
  --blue: #0d69d6;
  --blue-hover: #0a58b8;
  --soft-blue: #63b5e6;
  --yellow: #f5b30d;
  --yellow-soft: #fff2be;
  --orange: #f05914;
  --orange-soft: #ffede3;
  --green: #4d9c40;
  --green-soft: #e7f6e4;
  --purple: #8c63b3;
  --purple-soft: #f1eaf9;
  --night-1: #181f4c;
  --night-2: #2b2968;
  --night-3: #13183b;
  --dark-text: #fffaf0;
  --dark-secondary: #cdc8e6;
  --line: rgba(51, 33, 20, 0.10);
  --line-crayon: rgba(13, 105, 214, 0.24);
  --line-dark: rgba(255, 250, 240, 0.16);
  --radius-card: 30px;
  --radius-pill: 980px;
  --max-w: 1120px;
  --shadow-warm: 0 20px 52px rgba(68, 46, 22, 0.09), 0 4px 12px rgba(68, 46, 22, 0.04);
  --shadow-device: 0 34px 70px rgba(42, 31, 18, 0.20), 0 8px 20px rgba(42, 31, 18, 0.10);
}

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

html {
  scroll-behavior: smooth;
  background: var(--paper);
  color: var(--ink);
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("/assets/paper-texture.jpg");
  background-size: 520px 520px;
  background-repeat: repeat;
  color: var(--ink);
  font-family: "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
  line-height: 1.52;
  font-weight: 400;
  letter-spacing: -0.018em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-select: none;
}

::selection {
  background: var(--yellow-soft);
  color: var(--ink);
}

.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;
}

.wrap {
  width: min(var(--max-w), calc(100% - 48px));
  margin: 0 auto;
}

.hand-font {
  font-family: "HanziPenSC-W5", "SF Pro Rounded", "PingFang SC", -apple-system, sans-serif;
}

/* Smooth Apple scroll reveal (progressive enhancement so no-JS crawlers see 100% of content) */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.28, 0.11, 0.32, 1), transform 0.8s cubic-bezier(0.28, 0.11, 0.32, 1);
}

html.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Signature Crayon Underline SVG */
.crayon-underline {
  display: block;
  height: 12px;
  width: 168px;
  margin-top: 8px;
}

.crayon-underline.center {
  margin-inline: auto;
}

/* ================= STICKY WARM GLASS NAV (54px) ================= */
.ac-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 54px;
  width: 100%;
  background: rgba(255, 250, 235, 0.84);
  backdrop-filter: saturate(170%) blur(18px);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  border-bottom: 1.5px solid rgba(51, 33, 20, 0.08);
}

.ac-nav-inner {
  width: min(var(--max-w), calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ac-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  flex-shrink: 0;
}

.ac-brand img.brand-icon {
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(245, 179, 13, 0.28);
}

.ac-brand img.brand-wordmark {
  height: 24px;
  width: auto;
}

.ac-nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary);
}

.ac-nav-right > a:not(.ac-nav-cta) {
  transition: color 0.2s;
  white-space: nowrap;
}

.ac-nav-right > a:not(.ac-nav-cta):hover {
  color: var(--blue);
}

.ac-lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 10px;
  border-radius: 980px;
  border: 1.5px solid rgba(51, 33, 20, 0.12);
  background: rgba(255, 253, 245, 0.9);
  color: var(--ink);
  cursor: pointer;
}

.ac-lang select {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
}

.ac-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  background: var(--blue);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(13, 105, 214, 0.24);
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}

.ac-nav-cta:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

/* ================= CRAYON APPLE BUTTONS & LINKS ================= */
.ac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 650;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.ac-btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 28px rgba(13, 105, 214, 0.28);
}

.ac-btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(13, 105, 214, 0.34);
}

.ac-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  font-size: 16.5px;
  font-weight: 600;
}

.ac-link:hover {
  text-decoration: underline;
}

.ac-link .chev {
  font-size: 15px;
  transition: transform 0.2s;
}

.ac-link:hover .chev {
  transform: translateX(3px);
}

/* ================= PRECISION DEVICE FRAMES (WARM STUDIO) ================= */
.iphone {
  position: relative;
  background: linear-gradient(155deg, #3c3631 0%, #1c1815 40%, #302b27 76%, #171310 100%);
  border-radius: 52px;
  padding: 9px;
  box-shadow:
    var(--shadow-device),
    inset 0 0 0 1px rgba(255, 248, 232, 0.28);
}

.iphone::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 22px;
  border-radius: 999px;
  background: #0d0b09;
  z-index: 5;
}

.iphone-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 43px;
  overflow: hidden;
  background: var(--paper);
}

.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.ipad {
  position: relative;
  background: linear-gradient(145deg, #3b3631 0%, #191614 48%, #2e2925 100%);
  border-radius: 34px;
  padding: 13px;
  box-shadow:
    var(--shadow-device),
    inset 0 0 0 1px rgba(255, 248, 232, 0.24);
}

.ipad-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  overflow: hidden;
  background: var(--paper);
}

.ipad-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.ipad-screen img.active {
  opacity: 1;
}

/* ================= SECTION 1: WARM SUNLIT CRAYON HERO ================= */
.ac-hero {
  position: relative;
  background:
    radial-gradient(circle at 20% 8%, rgba(245, 179, 13, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 14%, rgba(99, 181, 230, 0.18), transparent 28rem);
  padding: 72px 0 98px;
  text-align: center;
  overflow: hidden;
}

.hero-doodle-sun {
  position: absolute;
  top: 44px;
  right: max(24px, calc((100vw - var(--max-w)) / 2 + 24px));
  width: 132px;
  opacity: 0.96;
  pointer-events: none;
  animation: gentleBob 6s ease-in-out infinite;
}

.hero-doodle-star {
  position: absolute;
  top: 120px;
  left: max(24px, calc((100vw - var(--max-w)) / 2 + 34px));
  width: 78px;
  opacity: 0.9;
  pointer-events: none;
  animation: gentleBob 5.2s ease-in-out 0.8s infinite reverse;
}

@keyframes gentleBob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-9px) rotate(3deg); }
}

.ac-hero-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.ac-hero-icon {
  width: 68px;
  height: 68px;
  border-radius: 17px;
  box-shadow: 0 10px 24px rgba(245, 179, 13, 0.28);
}

.ac-hero-wordmark {
  height: 44px;
  width: auto;
}

.ac-hero-eyebrow {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 980px;
  background: rgba(255, 253, 245, 0.92);
  border: 2px solid rgba(13, 105, 214, 0.22);
}

.ac-hero h1 {
  margin: 14px auto 0;
  max-width: 900px;
  font-size: clamp(46px, 6.8vw, 84px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.07;
  color: var(--ink);
}

.ac-hero h1 .crayon-blue {
  color: var(--blue);
  position: relative;
  display: inline-block;
}

.ac-hero-sub {
  margin: 22px auto 0;
  max-width: 640px;
  font-size: clamp(17.5px, 1.75vw, 21px);
  font-weight: 450;
  line-height: 1.62;
  color: var(--secondary);
}

.ac-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}

.ac-hero-note {
  margin: 16px 0 0;
  font-size: 13px;
  font-weight: 550;
  color: var(--tertiary);
}

/* Studio Hero Stage — 3 crisp aligned phones */
.ac-hero-stage {
  margin: 56px auto 0;
  max-width: 980px;
  display: grid;
  grid-template-columns: 240px 300px 240px;
  justify-content: center;
  align-items: end;
  gap: 32px;
}

.ac-hero-side {
  transform: translateY(18px);
  transition: transform 0.55s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.ac-hero-side:hover {
  transform: translateY(6px);
}

.ac-hero-side .iphone {
  border-radius: 42px;
  padding: 7px;
}

.ac-hero-side .iphone::before {
  top: 13px;
  height: 17px;
}

.ac-hero-side .iphone-screen {
  border-radius: 35px;
}

.ac-hero-center {
  z-index: 3;
}

/* ================= SECTION 2: CRAYON "GET THE HIGHLIGHTS" CAROUSEL ================= */
.ac-highlights {
  background: linear-gradient(180deg, rgba(245, 237, 216, 0.82) 0%, rgba(245, 237, 216, 0.62) 100%);
  border-top: 2px solid rgba(51, 33, 20, 0.05);
  border-bottom: 2px solid rgba(51, 33, 20, 0.05);
  padding: 112px 0 96px;
  overflow: hidden;
}

.ac-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.ac-sec-head h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.09;
  color: var(--ink);
}

.ac-sec-head p {
  margin: 12px 0 0;
  font-size: 18.5px;
  color: var(--secondary);
  max-width: 560px;
}

.ac-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(24px, calc((100vw - var(--max-w)) / 2));
  padding: 6px max(24px, calc((100vw - var(--max-w)) / 2)) 26px;
  scrollbar-width: none;
}

.ac-carousel::-webkit-scrollbar {
  display: none;
}

.ac-slide {
  flex: 0 0 min(920px, calc(100vw - 48px));
  scroll-snap-align: start;
  background: var(--note);
  border: 2.5px solid rgba(13, 105, 214, 0.16);
  border-radius: var(--radius-card);
  height: 540px;
  padding: 44px 48px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  overflow: hidden;
  box-shadow: var(--shadow-warm);
}

/* Warm KidTime Pastel Crayon Card Variants */
.ac-slide.tint-blue {
  background: linear-gradient(145deg, #fffdf5 0%, #eaf4ff 100%);
  border-color: rgba(13, 105, 214, 0.24);
}

.ac-slide.tint-sky {
  background: linear-gradient(145deg, #fffdf5 0%, #e8f7ff 100%);
  border-color: rgba(99, 181, 230, 0.36);
}

.ac-slide.tint-yellow {
  background: linear-gradient(145deg, #fffdf5 0%, #fff4cc 100%);
  border-color: rgba(245, 179, 13, 0.34);
}

.ac-slide.tint-green {
  background: linear-gradient(145deg, #fffdf5 0%, #e9f6e5 100%);
  border-color: rgba(77, 156, 64, 0.28);
}

.ac-slide.dark-slide {
  background: linear-gradient(155deg, #1d2458 0%, #2d296c 65%, #171d45 100%);
  border-color: rgba(185, 162, 255, 0.30);
  color: var(--dark-text);
}

.ac-slide.dark-slide p {
  color: var(--dark-secondary);
}

.ac-slide-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 6px;
  max-width: 410px;
}

.ac-slide-kicker {
  display: inline-flex;
  align-self: flex-start;
  font-size: 13.5px;
  font-weight: 750;
  padding: 5px 12px;
  border-radius: 980px;
  background: rgba(13, 105, 214, 0.11);
  color: var(--blue);
  margin-bottom: 14px;
}

.ac-slide.tint-yellow .ac-slide-kicker {
  background: rgba(245, 179, 13, 0.24);
  color: #966200;
}

.ac-slide.tint-green .ac-slide-kicker {
  background: rgba(77, 156, 64, 0.16);
  color: #2f7324;
}

.ac-slide.dark-slide .ac-slide-kicker {
  background: rgba(245, 179, 13, 0.20);
  color: #ffd561;
}

.ac-slide-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.16;
}

.ac-slide-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--secondary);
}

.ac-slide-visual {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding-top: 12px;
}

.ac-slide-phone {
  width: 242px;
  transform: translateY(38px);
}

.ac-slide-phone.secondary-phone {
  width: 214px;
  transform: translateY(68px);
}

.ac-slide-ipad {
  width: 350px;
  transform: translateY(28px);
}

/* Carousel Controls */
.ac-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}

.ac-dot-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 253, 245, 0.9);
  border: 1.5px solid var(--line);
}

.ac-dot-pill button {
  padding: 0;
  border: 0;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(51, 33, 20, 0.22);
  cursor: pointer;
  transition: width 0.35s cubic-bezier(0.28, 0.11, 0.32, 1), background 0.3s;
}

.ac-dot-pill button.active {
  width: 28px;
  background: var(--blue);
}

.ac-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--note);
  color: var(--ink);
  font-size: 17px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.ac-arrow-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
}

/* ================= SECTION 3: CRAYON DRAWING-BOARD ACCORDION ================= */
.ac-closer {
  padding: 118px 0;
}

.ac-closer-card {
  position: relative;
  background: var(--note);
  border: 2.5px solid rgba(13, 105, 214, 0.28);
  border-radius: var(--radius-card);
  padding: 54px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 60px;
  box-shadow: var(--shadow-warm);
}

.ac-accordion {
  display: flex;
  flex-direction: column;
}

.ac-acc-item {
  border-bottom: 1.5px dashed rgba(51, 33, 20, 0.12);
}

.ac-acc-item:last-child {
  border-bottom: 0;
}

.ac-acc-btn {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: inherit;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.2s;
}

.ac-acc-btn:hover,
.ac-acc-item.active .ac-acc-btn {
  color: var(--blue);
}

.ac-acc-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--yellow-soft);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.2s, color 0.2s;
}

.ac-acc-item.active .ac-acc-icon {
  transform: rotate(45deg);
  background: var(--blue);
  color: #fff;
}

.ac-acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.28, 0.11, 0.32, 1), opacity 0.35s ease;
  opacity: 0;
}

.ac-acc-item.active .ac-acc-panel {
  max-height: 190px;
  opacity: 1;
}

.ac-acc-panel p {
  margin: 0 0 22px;
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--secondary);
}

.ac-closer-stage {
  display: grid;
  place-items: center;
}

.ac-closer-phone {
  width: 300px;
}

.ac-closer-phone .iphone-screen img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.ac-closer-phone .iphone-screen img.active {
  opacity: 1;
  transform: scale(1);
}

/* ================= SECTION 4: STARRY CRAYON BEDTIME NIGHT ================= */
.ac-dark {
  background:
    radial-gradient(circle at 80% 18%, rgba(140, 99, 179, 0.42), transparent 30rem),
    radial-gradient(circle at 18% 82%, rgba(245, 179, 13, 0.14), transparent 26rem),
    linear-gradient(155deg, var(--night-1) 0%, var(--night-2) 55%, var(--night-3) 100%);
  color: var(--dark-text);
  padding: 128px 0;
  position: relative;
  overflow: hidden;
}

.ac-dark-head {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 740px;
  margin: 0 auto 60px;
}

.ac-dark-moon {
  width: 112px;
  margin: 0 auto 18px;
  animation: gentleBob 6s ease-in-out infinite;
}

.ac-dark-eyebrow {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: #ffd666;
}

.ac-dark-head h2 {
  margin: 0;
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
  color: #fffaf0;
}

.ac-dark-head p {
  margin: 20px auto 0;
  max-width: 580px;
  font-size: 18.5px;
  line-height: 1.62;
  color: var(--dark-secondary);
}

.ac-dark-device {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  margin-bottom: 64px;
}

.ac-dark-device .iphone {
  width: 304px;
  box-shadow: 0 40px 90px rgba(8, 10, 32, 0.65), 0 0 0 1.5px rgba(255, 240, 200, 0.22);
}

.ac-dark-specs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  padding-top: 44px;
  border-top: 1.5px dashed var(--line-dark);
}

.ac-dark-spec h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  color: #ffd666;
}

.ac-dark-spec p {
  margin: 0;
  font-size: 15px;
  line-height: 1.66;
  color: var(--dark-secondary);
}

/* ================= SECTION 5: CRAYON BENTO GRID ================= */
.ac-bento-sec {
  background: linear-gradient(180deg, rgba(245, 237, 216, 0.78) 0%, rgba(255, 250, 235, 0.55) 100%);
  padding: 116px 0;
}

.ac-bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ac-tile {
  position: relative;
  background: var(--note);
  border: 2px solid rgba(51, 33, 20, 0.08);
  border-radius: var(--radius-card);
  padding: 44px 42px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  box-shadow: var(--shadow-warm);
}

.ac-tile.ipad-tile {
  background: linear-gradient(145deg, #fffdf5 0%, #f1eaf9 55%, #eaf4ff 100%);
  border-color: rgba(140, 99, 179, 0.24);
}

.ac-tile.widget-tile {
  background: linear-gradient(155deg, #fffdf5 0%, #fff3cc 100%);
  border-color: rgba(245, 179, 13, 0.30);
}

.ac-tile.badge-tile-card {
  background: linear-gradient(155deg, #fffdf5 0%, #ebf7e8 100%);
  border-color: rgba(77, 156, 64, 0.26);
}

.ac-tile-full {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 48px;
  padding: 52px;
}

.ac-tile-kicker {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 750;
  color: var(--blue);
  margin-bottom: 10px;
}

.ac-tile.widget-tile .ac-tile-kicker { color: var(--orange); }
.ac-tile.badge-tile-card .ac-tile-kicker { color: var(--green); }
.ac-tile.ipad-tile .ac-tile-kicker { color: var(--purple); }

.ac-tile h3 {
  margin: 0 0 12px;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.16;
}

.ac-tile p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--secondary);
}

/* Segmented Control in KidTime Crayon Style */
.ac-seg {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 253, 245, 0.9);
  border: 1.5px solid var(--line);
  margin-top: 24px;
}

.ac-seg button {
  border: 0;
  background: transparent;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.ac-seg button.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 105, 214, 0.24);
}

.ac-ipad-stage {
  display: grid;
  place-items: center;
}

.ac-ipad-stage .ipad {
  width: min(440px, 100%);
}

.ac-tile-widget-shot {
  display: grid;
  place-items: center;
  margin-bottom: -44px;
}

.ac-tile-widget-shot .iphone {
  width: 248px;
  transform: translateY(20px);
}

/* Curated Hand-Drawn Crayon Badge Grid */
.ac-badge-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 6px 0;
}

.ac-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border-radius: 20px;
  background: rgba(255, 253, 245, 0.92);
  border: 1.5px solid rgba(77, 156, 64, 0.16);
  transition: transform 0.26s cubic-bezier(0.2, 0.9, 0.3, 1.2), border-color 0.25s, box-shadow 0.25s;
}

.ac-badge-item:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: var(--yellow);
  box-shadow: 0 10px 22px rgba(245, 179, 13, 0.18);
}

.ac-badge-item img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.ac-badge-item span {
  font-size: 11.5px;
  font-weight: 650;
  color: var(--ink);
  text-align: center;
}

/* ================= SECTION 6: PRIVACY + TIERS + FATHER'S NOTE ================= */
.ac-privacy {
  padding: 120px 0 108px;
}

.ac-privacy-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 68px;
}

.ac-privacy-glyph {
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  color: var(--green);
}

.ac-privacy-head h2 {
  margin: 0;
  font-size: clamp(36px, 4.8vw, 60px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.ac-privacy-head p {
  margin: 18px auto 0;
  max-width: 580px;
  font-size: 18.5px;
  line-height: 1.62;
  color: var(--secondary);
}

.ac-privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
  margin-bottom: 84px;
}

.ac-privacy-col {
  background: var(--note);
  border: 1.5px solid var(--line);
  border-radius: 24px;
  padding: 28px 30px;
  box-shadow: 0 10px 28px rgba(68, 46, 22, 0.05);
}

.ac-privacy-col h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.ac-privacy-col p {
  margin: 0;
  font-size: 15px;
  line-height: 1.68;
  color: var(--secondary);
}

/* Warm Cream vs Crayon Cobalt Blue Tier Strip */
.ac-tiers-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 72px;
}

.ac-tier-card {
  background: var(--note);
  border: 2px solid var(--line);
  border-radius: var(--radius-card);
  padding: 40px 38px;
  box-shadow: var(--shadow-warm);
}

.ac-tier-card.featured {
  background: linear-gradient(150deg, #0d69d6 0%, #0952ab 100%);
  border-color: #0b5bc0;
  color: #fffaf0;
}

.ac-tier-card h3 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.ac-tier-sub {
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--secondary);
}

.ac-tier-card.featured .ac-tier-sub {
  color: rgba(255, 250, 240, 0.80);
}

.ac-tier-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
  font-size: 15px;
  color: var(--ink);
}

.ac-tier-card.featured .ac-tier-list {
  color: rgba(255, 250, 240, 0.94);
}

.ac-tier-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.ac-tier-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
}

.ac-tier-card.featured .ac-tier-list li::before {
  color: #ffd666;
}

/* Editorial GEO FAQ Section inside Privacy / Overview */
.ac-geo-faq {
  margin: 0 auto 76px;
}

.ac-geo-faq-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.ac-geo-faq-head h3 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ac-geo-faq-head p {
  margin: 0;
  font-size: 16px;
  color: var(--secondary);
}

.ac-geo-faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ac-geo-qa {
  background: var(--note);
  border: 1.5px solid var(--line);
  border-radius: 24px;
  padding: 26px 28px;
  box-shadow: 0 10px 26px rgba(68, 46, 22, 0.05);
}

.ac-geo-qa h4 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.35;
  color: var(--ink);
}

.ac-geo-qa p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--secondary);
}

/* Father's Quote */
.ac-quote {
  max-width: 780px;
  margin: 0 auto;
  padding-top: 52px;
  border-top: 1.5px dashed rgba(51, 33, 20, 0.14);
  text-align: center;
}

.ac-quote blockquote {
  margin: 0;
  font-size: clamp(20px, 2.3vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.62;
  color: var(--ink);
}

.ac-quote figcaption {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}

/* ================= SECTION 7: SUNLIT DOWNLOAD & FOOTER ================= */
.ac-download {
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 179, 13, 0.20), transparent 34rem),
    linear-gradient(180deg, rgba(245, 237, 216, 0.82) 0%, rgba(245, 237, 216, 0.96) 100%);
  border-top: 2px solid rgba(51, 33, 20, 0.06);
  padding: 100px 0 72px;
  text-align: center;
}

.ac-download-family {
  width: min(300px, 74vw);
  margin: 0 auto 24px;
  filter: drop-shadow(0 12px 24px rgba(68, 46, 22, 0.12));
}

.ac-download h2 {
  margin: 0;
  font-size: clamp(36px, 4.8vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.ac-download p {
  margin: 16px auto 30px;
  max-width: 540px;
  font-size: 18px;
  color: var(--secondary);
}

.ac-footer {
  background: rgba(245, 237, 216, 0.96);
  color: var(--secondary);
  font-size: 12.5px;
  padding: 0 0 38px;
}

.ac-footer-inner {
  width: min(var(--max-w), calc(100% - 48px));
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1.5px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ac-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-weight: 600;
}

.ac-footer-links a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.ac-footer-langs {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px dashed rgba(51, 33, 20, 0.08);
  font-size: 12px;
  color: var(--tertiary);
}

.ac-footer-langs a:hover,
.ac-footer-langs a[aria-current="page"] {
  color: var(--blue);
  font-weight: 700;
}

/* ================= SUBPAGES ================= */
.ac-sub-main {
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
  padding: 78px 0 108px;
}

.ac-sub-hero {
  margin-bottom: 52px;
  padding-bottom: 34px;
  border-bottom: 1.5px dashed var(--line);
}

.ac-sub-hero span {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 750;
  color: var(--blue);
  background: rgba(13, 105, 214, 0.10);
  padding: 5px 12px;
  border-radius: 980px;
  margin-bottom: 14px;
}

.ac-sub-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.ac-sub-hero p {
  margin: 16px 0 10px;
  font-size: 17.5px;
  line-height: 1.68;
  color: var(--secondary);
}

.ac-sub-hero small {
  font-size: 13px;
  color: var(--tertiary);
}

.ac-legal-list {
  background: var(--note);
  border: 2px solid var(--line);
  border-radius: var(--radius-card);
  padding: 12px 38px;
  box-shadow: var(--shadow-warm);
}

.ac-legal-sec {
  padding: 26px 0;
  border-bottom: 1.5px dashed var(--line);
}

.ac-legal-sec:last-child {
  border-bottom: 0;
}

.ac-legal-sec h2 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 750;
  color: var(--ink);
}

.ac-legal-sec p,
.ac-legal-sec li {
  font-size: 15px;
  line-height: 1.76;
  color: var(--secondary);
}

.ac-legal-sec p { margin: 0; }
.ac-legal-sec p + p { margin-top: 10px; }

.ac-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ac-faq-card {
  background: var(--note);
  border: 2px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 10px 26px rgba(68, 46, 22, 0.06);
}

.ac-faq-card h3 {
  margin: 0 0 10px;
  font-size: 18.5px;
  font-weight: 750;
  color: var(--ink);
}

.ac-faq-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--secondary);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 980px) {
  .hero-doodle-sun,
  .hero-doodle-star {
    display: none;
  }
  .ac-hero-stage {
    grid-template-columns: 200px 264px 200px;
    gap: 20px;
  }
  .ac-slide {
    height: auto;
    grid-template-columns: 1fr;
    padding: 36px 32px 0;
    gap: 28px;
  }
  .ac-slide-visual {
    justify-content: center;
  }
  .ac-closer-card {
    grid-template-columns: 1fr;
    padding: 40px 32px;
    gap: 40px;
  }
  .ac-tile-full {
    grid-template-columns: 1fr;
    padding: 40px 32px;
    text-align: center;
  }
  .ac-bento-grid,
  .ac-privacy-grid,
  .ac-tiers-strip,
  .ac-dark-specs,
  .ac-faq-grid,
  .ac-geo-faq-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 740px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .ac-nav-inner {
    width: calc(100% - 28px);
  }
  .ac-nav-right > a:not(.ac-nav-cta) {
    display: none;
  }
  .ac-nav-right {
    gap: 10px;
  }
  .ac-hero {
    padding: 52px 0 72px;
  }
  .ac-hero-stage {
    grid-template-columns: 1fr;
    max-width: 280px;
  }
  .ac-hero-side {
    display: none;
  }
  .ac-highlights {
    padding: 80px 0 72px;
  }
  .ac-sec-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 28px;
  }
  .ac-slide {
    flex: 0 0 calc(100vw - 32px);
    padding: 28px 22px 0;
  }
  .ac-slide-phone {
    width: 210px;
  }
  .ac-slide-phone.secondary-phone {
    display: none;
  }
  .ac-slide-ipad {
    width: 260px;
  }
  .ac-closer {
    padding: 80px 0;
  }
  .ac-closer-card {
    padding: 28px 22px;
  }
  .ac-closer-phone {
    width: 248px;
  }
  .ac-dark {
    padding: 92px 0;
  }
  .ac-bento-sec {
    padding: 80px 0;
  }
  .ac-tile {
    padding: 32px 24px;
  }
  .ac-badge-mosaic {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .ac-privacy {
    padding: 84px 0;
  }
  .ac-legal-list {
    padding: 8px 22px;
  }
  .ac-download {
    padding: 76px 0 56px;
  }
  .ac-footer-inner {
    width: calc(100% - 32px);
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
