/* ============================================
   Filecook — Cartoon Kitchen Design System
   Palette pulled straight from the logo:
   cook-blue, ink-navy, and the file-type sticker colours
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:wght@400;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* --- Logo colours --- */
  --blue: #2563EB;
  /* "cook" blue */
  --blue-deep: #1D4ED8;
  --blue-bright: #3B82F6;
  --blue-pale: #E7EFFF;
  --blue-mist: #F2F6FF;

  --ink: #0F1A3D;
  /* "file" navy — used for every cartoon outline */
  --ink-soft: #1E2A52;
  --navy: #0F1A3D;
  --navy-hover: #0A1230;

  /* --- File sticker colours (HTML / PDF / PNG / JPEG / URL) --- */
  --html-green: #4CAF50;
  --pdf-red: #EF4444;
  --png-orange: #F5A623;
  --jpeg-purple: #8B5CF6;
  --url-teal: #14B8A6;

  /* --- Semantic --- */
  --primary: var(--blue);
  --primary-hover: var(--blue-deep);
  --secondary: var(--html-green);
  --red: var(--pdf-red);
  --orange: var(--png-orange);
  --yellow: #FBBF24;
  --accent-light: var(--blue-pale);

  --bg: #FFFFFF;
  --bg-alt: #F2F6FF;
  --bg-card: #FFFFFF;
  --bg-card-tint: #F7FAFF;
  --text: #0F1A3D;
  --text-secondary: #46527A;
  --text-muted: #8994B5;

  /* --- Cartoon outlines & sticker shadows --- */
  --line: 2.5px;
  --border: var(--line) solid var(--ink);
  --border-light: 2px solid rgba(15, 26, 61, 0.12);
  --pop-sm: 3px 3px 0 var(--ink);
  --pop: 5px 5px 0 var(--ink);
  --pop-lg: 8px 8px 0 var(--ink);
  --pop-blue: 5px 5px 0 var(--blue);
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow-md: 5px 5px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);

  --r: 9999px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;

  --font: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Baloo 2', 'Nunito', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --max-w: 1100px;
  --header-h: 62px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-weight: 600;
  background-color: var(--bg);
  /* Layered kitchen-counter backdrop: warm + cool washes over tile dots,
     so the white sections sit on colour instead of flat paper. */
  background-image:
    radial-gradient(circle at 8% 4%, rgba(37, 99, 235, 0.10) 0%, transparent 26%),
    radial-gradient(circle at 95% 14%, rgba(245, 166, 35, 0.12) 0%, transparent 24%),
    radial-gradient(circle at 2% 46%, rgba(139, 92, 246, 0.10) 0%, transparent 22%),
    radial-gradient(circle at 98% 66%, rgba(20, 184, 166, 0.10) 0%, transparent 22%),
    radial-gradient(circle at 10% 88%, rgba(76, 175, 80, 0.10) 0%, transparent 24%),
    radial-gradient(rgba(37, 99, 235, 0.09) 1.6px, transparent 1.6px);
  background-size: auto, auto, auto, auto, auto, 22px 22px;
  background-attachment: fixed, fixed, fixed, fixed, fixed, scroll;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Floating confetti — a few cartoon shapes drifting behind the content.
   Purely decorative, so it stays out of the accessibility tree. */
.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.confetti i {
  position: absolute;
  display: block;
  border: 2.5px solid var(--ink);
  opacity: 0.16;
  animation: drift 18s ease-in-out infinite;
}

.confetti i:nth-child(1) {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--png-orange);
  top: 14%;
  left: 5%;
  animation-delay: -1s;
}

.confetti i:nth-child(2) {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pdf-red);
  top: 32%;
  right: 7%;
  animation-delay: -5s;
}

.confetti i:nth-child(3) {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--html-green);
  bottom: 22%;
  left: 8%;
  animation-delay: -9s;
}

.confetti i:nth-child(4) {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--jpeg-purple);
  bottom: 12%;
  right: 12%;
  animation-delay: -3s;
}

.confetti i:nth-child(5) {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--url-teal);
  top: 62%;
  left: 3%;
  animation-delay: -13s;
}

@keyframes drift {

  0%,
  100% {
    transform: translateY(0) rotate(-8deg);
  }

  50% {
    transform: translateY(-26px) rotate(10deg);
  }
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--display);
  letter-spacing: 0;
}

/* Utilities */
.bg-alt {
  background-color: var(--bg-alt);
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--blue-deep);
}

/* --- Layout --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-sm {
  padding: 64px 0;
}

.bg-alt {
  background-color: var(--bg-alt);
  /* tinted corner washes + a soft candy stripe give the alt bands depth */
  background-image:
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.16) 0%, transparent 38%),
    radial-gradient(circle at 100% 100%, rgba(245, 166, 35, 0.16) 0%, transparent 38%),
    repeating-linear-gradient(-45deg,
      rgba(255, 255, 255, 0.38) 0 26px,
      rgba(255, 255, 255, 0) 26px 52px);
  border-top: var(--line) solid var(--ink);
  border-bottom: var(--line) solid var(--ink);
  position: relative;
  overflow: hidden;
}

/* Big soft blobs behind the alt sections */
.bg-alt::before,
.bg-alt::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.bg-alt::before {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.20) 0%, transparent 70%);
  top: -120px;
  right: -100px;
}

.bg-alt::after {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.20) 0%, transparent 70%);
  bottom: -110px;
  left: -90px;
}

.bg-alt>.container {
  position: relative;
  z-index: 1;
}

/* Plain white sections get a lighter version of the same treatment */
.section:not(.bg-alt):not(.apple-dark-section):not(.parallax-section)::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.13) 0%, transparent 70%);
  top: 4%;
  left: -110px;
  pointer-events: none;
  z-index: 0;
}

.section:not(.bg-alt):not(.apple-dark-section):not(.parallax-section)::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.15) 0%, transparent 70%);
  bottom: 6%;
  right: -90px;
  pointer-events: none;
  z-index: 0;
}

.section>.container {
  position: relative;
  z-index: 1;
}

.section-label {
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
  display: inline-block;
  background: var(--blue-pale);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  padding: 4px 14px;
}

.section-title {
  font-family: var(--display);
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-title .accent {
  color: var(--blue);
  display: inline-block;
  -webkit-text-fill-color: currentColor;
}

/* Hand-drawn highlighter behind key words */
.scribble {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.scribble::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: -4px;
  width: calc(100% + 8px);
  height: 12px;
  background: rgba(245, 166, 35, 0.45);
  border-radius: 40% 60% 55% 45% / 60% 40% 60% 40%;
  z-index: -1;
  transform: rotate(-1.4deg);
}

.section-sub,
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 520px;
}

/* --- Buttons (chunky sticker buttons) --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--r);
  border: var(--border);
  cursor: pointer;
  transition: transform 0.18s var(--bounce), box-shadow 0.18s var(--bounce), background 0.18s;
  text-decoration: none;
  box-shadow: var(--pop-sm);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--pop);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-bright);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--blue-pale);
  color: var(--ink);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.88rem;
  box-shadow: 2px 2px 0 var(--ink);
}

/* --- Header (floating cartoon pill) --- */
.header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 32px);
  max-width: 940px;
  height: var(--header-h);
  background: #fff;
  border: var(--border);
  border-radius: var(--r);
  box-shadow: var(--pop);
}

.header-inner {
  padding: 0 8px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

/* The source Logo.png is a wide lockup — crop out just the chef mascot
   and pair it with a live text wordmark so it stays crisp at any size. */
.logo-mark {
  width: 40px;
  height: 46px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  display: block;
  transition: transform 0.3s var(--bounce);
}

.logo-mark img {
  position: absolute;
  width: 148px;
  max-width: none;
  height: auto;
  left: -4px;
  top: -6px;
}

.logo:hover .logo-mark {
  transform: rotate(-7deg) scale(1.08);
}

.logo-word {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.logo-word span {
  color: var(--blue);
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: var(--blue);
  border: 2px solid var(--ink);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 13px;
  border-radius: var(--r);
  border: 2px solid transparent;
  transition: all 0.15s;
}

.nav a:hover {
  color: var(--ink);
  background: var(--blue-pale);
  border-color: var(--ink);
}

.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  margin-left: 6px !important;
  border: 2px solid var(--ink) !important;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.18s var(--bounce), box-shadow 0.18s var(--bounce) !important;
}

.nav-cta:hover {
  background: var(--blue-bright) !important;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.mobile-toggle {
  display: none;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  box-shadow: 2px 2px 0 var(--ink);
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}

/* --- Hero --- */
.hero {
  padding-top: calc(var(--header-h) + 100px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

/* soft cartoon blobs floating behind the hero */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  filter: blur(2px);
}

.hero::before {
  width: 320px;
  height: 320px;
  background: rgba(59, 130, 246, 0.14);
  top: -60px;
  right: -80px;
}

.hero::after {
  width: 220px;
  height: 220px;
  background: rgba(245, 166, 35, 0.16);
  bottom: -70px;
  left: -70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
}

.hero-left {
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 24px;
  box-shadow: 3px 3px 0 var(--blue);
}

.hero h1 {
  font-family: var(--display);
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  color: var(--ink);
}

.hero h1 .accent {
  color: var(--blue);
  -webkit-text-fill-color: currentColor;
  position: relative;
  display: inline-block;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 460px;
  margin-bottom: 32px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 18px;
}

/* Hero stats panel — a sticker card */
.hero-stats {
  background: #fff;
  border: var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--pop-lg);
  transform: rotate(1deg);
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: var(--blue-mist);
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  transition: transform 0.25s var(--bounce), box-shadow 0.25s var(--bounce);
}

.hero-stat:hover {
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 4px 4px 0 var(--ink);
  background: #fff;
}

.hero-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
}

.hero-stat-icon.orange {
  background: #FFF1DA;
  color: var(--png-orange);
}

.hero-stat-icon.green {
  background: #E6F6E7;
  color: var(--html-green);
}

.hero-stat-icon.indigo {
  background: var(--blue-pale);
  color: var(--blue);
}

.hero-stat-value {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* --- File-type sticker row (echoes the logo) --- */
.file-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.file-chip {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  padding: 6px 14px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.2s var(--bounce);
}

.file-chip:nth-child(odd) {
  transform: rotate(-3deg);
}

.file-chip:nth-child(even) {
  transform: rotate(2deg);
}

.file-chip:hover {
  transform: rotate(0deg) translateY(-3px);
}

.file-chip.html {
  background: var(--html-green);
}

.file-chip.pdf {
  background: var(--pdf-red);
}

.file-chip.png {
  background: var(--png-orange);
}

.file-chip.jpeg {
  background: var(--jpeg-purple);
}

.file-chip.url {
  background: var(--url-teal);
}

/* --- Customer Logos Strip --- */
.logos-strip {
  padding: 44px 0;
  background-color: var(--ink);
  /* layered glow so the dark band reads rich rather than flat black */
  background-image:
    radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.55) 0%, transparent 42%),
    radial-gradient(circle at 88% 100%, rgba(139, 92, 246, 0.42) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(20, 184, 166, 0.18) 0%, transparent 55%),
    radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
  background-size: auto, auto, auto, 24px 24px;
  border-top: var(--line) solid var(--ink);
  border-bottom: var(--line) solid var(--ink);
  position: relative;
  overflow: hidden;
}

.logos-label {
  text-align: center;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  color: #9DB2E8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* Each brand gets its own sticker colour, cycling the logo palette */
.logo-item {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 2.5px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--r);
  padding: 8px 20px;
  transition: all 0.22s var(--bounce);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}

.logo-item:nth-child(6n + 1) {
  background: var(--blue);
}

.logo-item:nth-child(6n + 2) {
  background: var(--html-green);
}

.logo-item:nth-child(6n + 3) {
  background: var(--png-orange);
  color: var(--ink);
}

.logo-item:nth-child(6n + 4) {
  background: var(--pdf-red);
}

.logo-item:nth-child(6n + 5) {
  background: var(--jpeg-purple);
}

.logo-item:nth-child(6n + 6) {
  background: var(--url-teal);
}

.logo-item:nth-child(odd) {
  transform: rotate(-1.5deg);
}

.logo-item:nth-child(even) {
  transform: rotate(1.5deg);
}

.logo-item:hover {
  transform: rotate(0deg) translate(-2px, -4px);
  box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.4);
}

/* --- "Parallax" testimonial band (now a painted blue kitchen wall) --- */
.parallax-section {
  position: relative;
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 18% 20%, rgba(37, 99, 235, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(139, 92, 246, 0.32) 0%, transparent 45%),
    radial-gradient(rgba(255, 255, 255, 0.09) 1.5px, transparent 1.5px);
  background-size: auto, auto, 26px 26px;
  color: #fff;
  padding: 120px 0;
  border-top: var(--line) solid var(--ink);
  border-bottom: var(--line) solid var(--ink);
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 26, 61, 0.35);
}

/* --- Testimonials --- */
.testimonial-card {
  background: #fff;
  border: var(--border);
  border-radius: var(--r-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s var(--bounce), box-shadow 0.25s var(--bounce);
  box-shadow: var(--pop);
}

.testimonial-card:nth-child(2) {
  transform: rotate(-1.2deg);
}

.testimonial-card:nth-child(3) {
  transform: rotate(1deg);
}

.testimonial-card:hover {
  transform: translate(-3px, -3px) rotate(0deg);
  box-shadow: var(--pop-lg);
}

.testimonial-stars {
  color: var(--png-orange);
  font-size: 1.1rem;
  letter-spacing: 2px;
  -webkit-text-stroke: 0.5px var(--ink);
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 2px dashed rgba(15, 26, 61, 0.15);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-pale);
  border: 2.5px solid var(--ink);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-avatar svg,
.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-name {
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink);
}

.testimonial-role {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* --- Playground --- */
.playground-wrapper {
  background: #fff;
  border: var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--pop-lg);
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
}

.playground-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--blue-pale);
  border-bottom: var(--line) solid var(--ink);
  position: relative;
}

.playground-toolbar::before {
  content: '';
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--pdf-red);
  border: 2px solid var(--ink);
  box-shadow:
    22px 0 0 var(--png-orange), 22px 0 0 2px var(--ink),
    44px 0 0 var(--html-green), 44px 0 0 2px var(--ink);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.playground-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 74px;
}

.playground-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.template-select {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 7px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  outline: none;
  box-shadow: 2px 2px 0 var(--ink);
}

.playground-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

.playground-editor {
  border-right: var(--line) solid var(--ink);
  display: flex;
  flex-direction: column;
}

.editor-label {
  padding: 9px 16px;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--blue-mist);
  border-bottom: 2px solid var(--ink);
}

.editor-textarea {
  flex: 1;
  width: 100%;
  padding: 16px;
  border: none;
  resize: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--ink-soft);
  background: #fff;
  outline: none;
  min-height: 340px;
}

.playground-preview {
  display: flex;
  flex-direction: column;
}

.preview-frame {
  flex: 1;
  width: 100%;
  border: none;
  background: #fff;
  min-height: 340px;
}

/* --- Cards --- */
.card {
  background: #fff;
  border: var(--border);
  border-radius: var(--r-lg);
  padding: 30px;
  transition: transform 0.25s var(--bounce), box-shadow 0.25s var(--bounce), background 0.25s;
  box-shadow: var(--pop);
}

.card:hover {
  transform: translate(-3px, -3px) rotate(-0.6deg);
  box-shadow: var(--pop-lg);
  background: var(--blue-mist);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--blue-pale);
  border: 2.5px solid var(--ink);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition: all 0.25s var(--bounce);
}

.card:hover .card-icon {
  background: var(--blue);
  color: #fff;
  transform: rotate(-8deg) translateY(-2px);
}

/* Cycle the sticker palette across a grid of cards */
.bento-grid .card:nth-child(6n + 1) .card-icon,
.grid-4 .card:nth-child(4n + 1) .card-icon {
  background: #DDEAFF;
  color: var(--blue);
}

.bento-grid .card:nth-child(6n + 2) .card-icon,
.grid-4 .card:nth-child(4n + 2) .card-icon {
  background: #E3F7E6;
  color: var(--html-green);
}

.bento-grid .card:nth-child(6n + 3) .card-icon,
.grid-4 .card:nth-child(4n + 3) .card-icon {
  background: #FFEDD6;
  color: #C97C00;
}

.bento-grid .card:nth-child(6n + 4) .card-icon,
.grid-4 .card:nth-child(4n) .card-icon {
  background: #F3E9FF;
  color: var(--jpeg-purple);
}

.bento-grid .card:nth-child(6n + 5) .card-icon {
  background: #FDE4E4;
  color: var(--pdf-red);
}

.bento-grid .card:nth-child(6n) .card-icon {
  background: #DDF5F1;
  color: #0E8C7F;
}

.bento-grid .card:hover .card-icon,
.grid-4 .card:hover .card-icon {
  background: var(--blue);
  color: #fff;
}

.card h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--ink);
}

.card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* --- Bento Grid & Features Split --- */
.features-split-grid {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 48px;
  align-items: start;
}

.features-header {
  position: sticky;
  top: 120px;
}

/* Cartoon mascot panel replacing the old photo */
.mascot-panel {
  background: #fff;
  border: var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--pop);
  padding: 22px;
  max-width: 380px;
  transform: rotate(-1.5deg);
}

.mascot-panel svg {
  width: 100%;
  height: auto;
  display: block;
}

.mascot-caption {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 10px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  grid-auto-rows: minmax(220px, auto);
}

.bento-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.bento-span-2 {
  grid-column: span 2;
}

.bento-span-3 {
  grid-column: span 2;
}

@media (max-width: 900px) {
  .features-split-grid {
    grid-template-columns: 1fr;
  }

  .features-header {
    position: static;
    margin-bottom: 32px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-span-2,
  .bento-span-3 {
    grid-column: span 1;
  }
}

/* --- Problem / Solution --- */
.problem-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  transition: all 0.2s var(--bounce);
}

.problem-item:hover {
  box-shadow: var(--pop-sm);
  transform: translate(-2px, -2px);
}

.problem-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
}

.problem-icon.red {
  background: #FDE8E8;
  color: var(--pdf-red);
}

.problem-icon.green {
  background: #E6F6E7;
  color: var(--html-green);
}

.problem-text h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.problem-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- API blocks --- */
.api-block {
  background: var(--ink);
  border: var(--line) solid var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--pop-lg);
}

.api-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
}

.api-method {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: #9DB2E8;
}

.api-method .method {
  color: #7DD3FC;
  margin-right: 6px;
}

.api-method .path {
  color: #E2E8F0;
}

.api-method .comment {
  color: #64748B;
  font-style: italic;
}

.api-body {
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  overflow-x: auto;
}

.api-body .key {
  color: var(--blue);
  font-weight: 600;
}

.api-body .str {
  color: var(--html-green);
}

.api-body .comment {
  color: var(--text-muted);
  font-style: italic;
}

/* --- Dark "kitchen at night" API section --- */
.apple-dark-section {
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at top, rgba(37, 99, 235, 0.28) 0%, rgba(15, 26, 61, 0) 55%),
    radial-gradient(rgba(255, 255, 255, 0.07) 1.5px, transparent 1.5px);
  background-size: auto, 26px 26px;
  color: #FFFFFF;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  border-top: var(--line) solid var(--ink);
  border-bottom: var(--line) solid var(--ink);
}

.apple-dark-section .section-title {
  color: #FFFFFF;
}

.apple-dark-section .section-title .accent {
  color: #8AB4FF;
}

.apple-dark-section .scribble::after {
  background: rgba(245, 166, 35, 0.4);
}

.apple-dark-section .section-subtitle {
  color: #A9B8DD;
}

.apple-terminal-window {
  background: #12203F;
  border-radius: var(--r-md);
  border: 3px solid #fff;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.45);
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  overflow: hidden;
}

.apple-terminal-header {
  background: #1B2C53;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.18);
  position: relative;
}

.mac-dots {
  display: flex;
  gap: 8px;
}

.mac-dots .dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.4);
}

.mac-dots .red {
  background: var(--pdf-red);
}

.mac-dots .yellow {
  background: var(--png-orange);
}

.mac-dots .green {
  background: var(--html-green);
}

.mac-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #A9B8DD;
}

.apple-terminal-body {
  padding: 32px;
  font-family: var(--mono);
  font-size: 0.95rem;
  line-height: 1.7;
  color: #E5E7EB;
  overflow-x: auto;
}

.apple-terminal-body .str {
  color: #C4B5FD;
}

.apple-terminal-body .key {
  color: #FBBF24;
}

.apple-terminal-body .comment {
  color: #7E8CB0;
  font-style: italic;
}

.apple-terminal-body .method {
  color: #6EE7A8;
  font-weight: bold;
}

.apple-terminal-body .url {
  color: #93C5FD;
}

.apple-terminal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(255, 255, 255, 0.18);
}

.apple-terminal-pane {
  background: #12203F;
  padding: 32px;
}

.copy-btn {
  font-family: var(--display);
  font-weight: 700;
}

@media (max-width: 800px) {
  .apple-terminal-grid {
    grid-template-columns: 1fr;
  }

  .apple-terminal-body,
  .apple-terminal-pane {
    padding: 20px;
    font-size: 0.85rem;
  }
}

/* --- Workflow panel --- */
.apple-glass-panel {
  background: #fff;
  border: var(--border);
  border-radius: 36px;
  padding: 72px 40px;
  box-shadow: var(--pop-lg);
  max-width: 1100px;
  margin: 0 auto;
}

.apple-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.apple-pipeline-node {
  background: #fff;
  border-radius: var(--r-md);
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: var(--pop-sm);
  border: var(--border);
  transition: transform 0.25s var(--bounce), box-shadow 0.25s var(--bounce);
  min-width: 140px;
}

.apple-pipeline-node:hover {
  transform: translate(-2px, -4px) rotate(-2deg);
  box-shadow: var(--pop);
}

.apple-pipeline-node .icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-pale);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-size: 1.2rem;
}

.apple-pipeline-node.core {
  background: var(--blue);
  color: #fff;
}

.apple-pipeline-node.core .icon {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  color: #fff;
  font-weight: 800;
}

.apple-pipeline-node span {
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 800;
}

.apple-pipeline-connector {
  height: 3px;
  width: 40px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.apple-pipeline-connector .connector-arrow {
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  padding: 2px;
}

/* dashed "steam" trail between nodes */
.apple-pipeline-connector::before {
  content: '';
  position: absolute;
  inset: 0;
  border-top: 3px dashed var(--ink);
  top: 0;
}

.apple-workflow-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.apple-w-card {
  background: var(--blue-mist);
  border-radius: var(--r-md);
  padding: 30px;
  border: var(--border);
  box-shadow: var(--pop-sm);
  transition: transform 0.25s var(--bounce), box-shadow 0.25s var(--bounce);
}

.apple-w-card:hover {
  transform: translate(-3px, -3px) rotate(-1deg);
  box-shadow: var(--pop);
  background: #fff;
}

.apple-w-card h4 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--ink);
}

.apple-w-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

@media (max-width: 800px) {
  .apple-glass-panel {
    padding: 40px 20px;
    border-radius: 24px;
  }

  .apple-pipeline {
    gap: 8px;
  }

  .apple-pipeline-connector {
    display: none;
  }

  .apple-workflow-cards {
    grid-template-columns: 1fr;
  }
}

/* --- Engine Features --- */
.engine-feature {
  padding: 30px;
  background: #fff;
  border-radius: var(--r-md);
  border: var(--border);
  box-shadow: var(--pop-sm);
  transition: all 0.25s var(--bounce);
}

.engine-feature:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--pop);
}

.engine-feature h4 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--ink);
}

.engine-feature p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Use cases --- */
.usecase-card {
  background: #fff;
  border: var(--border);
  border-radius: var(--r-lg);
  padding: 30px;
  text-align: center;
  transition: transform 0.25s var(--bounce), box-shadow 0.25s var(--bounce), background 0.25s;
  box-shadow: var(--pop);
}

.usecase-card:hover {
  transform: translate(-3px, -3px) rotate(0.8deg);
  box-shadow: var(--pop-lg);
  background: var(--blue-mist);
}

.usecase-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--blue-pale);
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: transform 0.25s var(--bounce);
}

.usecase-card:hover .usecase-icon {
  transform: rotate(-8deg);
}

.usecase-card:nth-child(4n + 1) .usecase-icon {
  background: #DDEAFF;
}

.usecase-card:nth-child(4n + 2) .usecase-icon {
  background: #E3F7E6;
}

.usecase-card:nth-child(4n + 3) .usecase-icon {
  background: #F3E9FF;
}

.usecase-card:nth-child(4n) .usecase-icon {
  background: #FFEDD6;
}

/* Tinted top edge so each use-case card carries its own colour */
.usecase-card:nth-child(4n + 1) {
  box-shadow: var(--pop-blue);
}

.usecase-card:nth-child(4n + 2) {
  box-shadow: 5px 5px 0 var(--html-green);
}

.usecase-card:nth-child(4n + 3) {
  box-shadow: 5px 5px 0 var(--jpeg-purple);
}

.usecase-card:nth-child(4n) {
  box-shadow: 5px 5px 0 var(--png-orange);
}

.usecase-card:hover {
  box-shadow: var(--pop-lg);
}

.usecase-card h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--ink);
}

.usecase-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pricing-card {
  background: #fff;
  border: var(--border);
  border-radius: var(--r-lg);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--bounce), box-shadow 0.25s var(--bounce);
  position: relative;
  box-shadow: var(--pop);
}

.pricing-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--pop-lg);
}

.pricing-card.featured {
  background: var(--blue-mist);
  border: 3px solid var(--ink);
  box-shadow: var(--pop-lg);
  transform: scale(1.02);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translate(-3px, -3px);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  background: var(--png-orange);
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 16px;
  border: 2.5px solid var(--ink);
  border-radius: var(--r);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 2px 2px 0 var(--ink);
  white-space: nowrap;
}

.pricing-card h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--ink);
}

.pricing-price {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--blue);
}

.pricing-price span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}

.pricing-features li {
  font-size: 0.88rem;
  padding: 9px 0;
  border-bottom: 2px dashed rgba(15, 26, 61, 0.12);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.pricing-features li::before {
  content: '✓';
  color: #fff;
  background: var(--html-green);
  border: 2px solid var(--ink);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* --- Reliability specs --- */
.apple-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.apple-spec-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 34px;
  border: var(--border);
  box-shadow: var(--pop);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.25s var(--bounce), box-shadow 0.25s var(--bounce);
}

.apple-spec-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--pop-lg);
}

.apple-spec-card.large {
  grid-column: span 3;
  background: var(--blue);
  color: #fff;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 60px 70px;
  position: relative;
  overflow: hidden;
  gap: 40px;
}

.apple-spec-card.large::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 2px, transparent 2px);
  background-size: 26px 26px;
  z-index: 0;
}

.apple-spec-card.large>div {
  position: relative;
  z-index: 2;
}

.apple-spec-card.large .spec-value {
  font-family: var(--display);
  font-size: clamp(3.6rem, 8vw, 7rem);
  line-height: 1;
  font-weight: 800;
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-shadow: 5px 5px 0 var(--ink);
  margin: 0;
}

.apple-spec-card.large .spec-content {
  max-width: 420px;
  text-align: left;
}

.apple-spec-card.large h4 {
  color: #fff;
  font-size: 1.9rem;
  margin-bottom: 12px;
}

.apple-spec-card.large p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.6;
}

.apple-spec-card .spec-value {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--blue);
}

.apple-spec-card:nth-of-type(2) .spec-value {
  color: var(--html-green);
}

.apple-spec-card:nth-of-type(3) .spec-value {
  color: var(--jpeg-purple);
}

.apple-spec-card:nth-of-type(4) .spec-value {
  color: #C97C00;
}

.apple-spec-card h4 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--ink);
}

.apple-spec-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .apple-specs-grid {
    grid-template-columns: 1fr;
  }

  .apple-spec-card.large {
    grid-column: span 1;
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
    gap: 32px;
  }

  .apple-spec-card.large .spec-content {
    text-align: center;
  }
}

/* --- Old way vs Filecook --- */
.apple-statement {
  padding: 120px 0;
}

.apple-statement-title {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 16px;
  color: var(--ink);
}

.apple-statement-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.apple-compare-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.apple-card {
  border-radius: 32px;
  padding: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: var(--border);
  transition: transform 0.3s var(--bounce);
}

.apple-card:hover {
  transform: translate(-3px, -3px);
}

.apple-card.old {
  background: #EEF1F8;
  box-shadow: var(--pop-sm);
  transform: rotate(-1deg);
}

.apple-card.old:hover {
  transform: rotate(-1deg) translate(-3px, -3px);
}

.apple-card.new {
  background: var(--blue);
  box-shadow: var(--pop-lg);
}

.apple-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.apple-tag {
  font-family: var(--display);
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.apple-card.old .apple-tag {
  color: #7C89AE;
}

.apple-card.new .apple-tag {
  color: #FFD79A;
}

.apple-card h3 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  position: relative;
  z-index: 2;
}

.apple-card.old h3 {
  color: #8A96B8;
}

.apple-card.new h3 {
  color: #FFFFFF;
  text-shadow: 3px 3px 0 rgba(15, 26, 61, 0.35);
}

@media (max-width: 800px) {
  .apple-compare-grid {
    grid-template-columns: 1fr;
  }

  .apple-card {
    padding: 32px;
  }
}

.founder-note {
  max-width: 640px;
  margin: 40px auto 0;
  padding: 24px;
  background: #FFF7E6;
  border: 2.5px dashed var(--png-orange);
  border-radius: var(--r-md);
  text-align: center;
  font-size: 0.9rem;
  color: #8A5A00;
  line-height: 1.6;
}

.founder-sig {
  margin-top: 12px;
  font-family: var(--display);
  font-weight: 800;
  color: var(--ink);
  font-size: 1.1rem;
}

/* --- Security --- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.security-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 26px;
  background: #fff;
  border: var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--pop-sm);
  transition: all 0.25s var(--bounce);
}

.security-item:hover {
  box-shadow: var(--pop);
  transform: translate(-3px, -3px);
}

.security-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #E6F6E7;
  border: 2.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--html-green);
}

.security-item:nth-child(2) .security-icon {
  background: #F3E9FF;
  color: var(--jpeg-purple);
}

.security-item:nth-child(3) .security-icon {
  background: #DDEAFF;
  color: var(--blue);
}

.security-item h4 {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--ink);
}

.security-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- On-premise card --- */
.on-prem-card {
  border: var(--line) solid var(--ink);
}

/* --- Final CTA --- */
.final-cta {
  text-align: center;
  padding: 80px 0;
}

.final-cta-box {
  background: #fff;
  border: var(--border);
  border-radius: var(--r-lg);
  padding: 64px 32px;
  text-align: center;
  box-shadow: var(--pop-lg);
}

.final-cta-box h2 {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.final-cta-box p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* --- FAQ --- */
.faq-section-card {
  background: #fff;
  border: var(--border);
  border-radius: 36px;
  padding: 72px 60px;
  box-shadow: var(--pop-lg);
}

@media (max-width: 800px) {
  .faq-section-card {
    padding: 40px 24px;
    border-radius: 24px;
  }
}

.faq-split-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.faq-left {
  display: flex;
  flex-direction: column;
}

.faq-contact-card {
  background: var(--blue-mist);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--pop-sm);
  border: var(--border);
}

.faq-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #fff;
  border: var(--border);
  border-radius: var(--r-md);
  padding: 0;
  box-shadow: var(--pop-sm);
  transition: all 0.2s var(--bounce);
}

.faq-item:hover {
  box-shadow: var(--pop);
  transform: translate(-2px, -2px);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue-pale);
  border: 2.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s var(--bounce);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--ink);
  border-radius: 2px;
}

.faq-icon::before {
  width: 11px;
  height: 2.5px;
}

.faq-icon::after {
  width: 2.5px;
  height: 11px;
}

details.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  background: var(--blue);
}

details.faq-item[open] .faq-icon::before {
  background: #fff;
}

details.faq-item[open] .faq-icon::after {
  display: none;
}

.faq-answer {
  padding: 0 24px 24px 24px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 2px dashed transparent;
}

details.faq-item[open] .faq-answer {
  border-top-color: rgba(15, 26, 61, 0.14);
  padding-top: 20px;
  margin-top: 0;
}

@media (max-width: 900px) {
  .faq-split-layout {
    grid-template-columns: 1fr;
  }
}

/* --- Footer --- */
.footer {
  background: var(--ink);
  padding: 60px 0 32px;
  border-top: var(--line) solid var(--ink);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand .logo {
  color: #fff;
}

.footer-brand p {
  font-size: 0.85rem;
  color: #9DB2E8;
  margin-top: 8px;
  max-width: 260px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: #9DB2E8;
  margin-bottom: 9px;
}

.footer-col a:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: #9DB2E8;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px dashed rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  color: #8994B5;
  text-align: center;
}

.social-icons a:hover {
  color: #fff !important;
}

/* --- Animations --- */
/* Only hide for the reveal when JS is actually running — otherwise the
   whole page would stay invisible if script.js fails to load. */
.js .animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s var(--bounce);
}

.js .animate.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

  .js .animate,
  .js .animate.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    animation: none !important;
  }
}

/* gentle sticker wobble for the mascot */
@keyframes wobble {

  0%,
  100% {
    transform: rotate(-1.5deg);
  }

  50% {
    transform: rotate(1.5deg);
  }
}

.mascot-panel {
  animation: wobble 6s ease-in-out infinite;
}

.copy-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  border: 2.5px solid #fff;
  padding: 12px 26px;
  border-radius: var(--r);
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0;
  transition: all 0.3s var(--bounce);
  pointer-events: none;
  z-index: 9999;
  box-shadow: 4px 4px 0 var(--blue);
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   MOBILE MENU OVERLAY — Right Slide Drawer
   ============================================ */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 26, 61, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
  display: block;
  opacity: 1;
}

.mobile-menu-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--ink);
  border-left: var(--line) solid #fff;
  display: flex;
  flex-direction: column;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.35s var(--bounce);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.4);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-overlay.open .mobile-menu-inner {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.mobile-menu-header .logo span {
  color: #fff;
}

.mobile-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #C9D6F5;
  transition: all 0.2s var(--bounce);
  flex-shrink: 0;
}

.mobile-close-btn:hover {
  background: var(--blue);
  border-color: #fff;
  color: #fff;
  transform: rotate(90deg);
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  gap: 6px;
  flex: 1;
}

.mobile-menu-nav a {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #C9D6F5;
  border-radius: 14px;
  background: transparent;
  text-decoration: none;
  transition: all 0.15s;
  border: 2px solid transparent;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a:active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.mobile-menu-nav .mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 15px 16px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--r);
  font-weight: 800;
  font-size: 1.05rem;
  border: 2.5px solid #fff;
  transition: all 0.2s var(--bounce);
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.35);
}

.mobile-menu-nav .mobile-cta:hover {
  background: var(--blue-bright);
  border-color: #fff;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(255, 255, 255, 0.35);
}

.mobile-menu-section-label {
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6B7BA8;
  padding: 12px 16px 6px;
  margin-top: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* --- Tablet (≤1024px) --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    transform: none;
  }

  .grid-3,
  .pricing-grid,
  .security-grid,
  .apple-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .playground-grid {
    grid-template-columns: 1fr;
  }

  .playground-editor {
    border-right: none;
    border-bottom: var(--line) solid var(--ink);
  }

  .features-split-grid {
    grid-template-columns: 1fr;
  }

  .features-header {
    position: static;
    margin-bottom: 32px;
  }

  .apple-compare-grid {
    grid-template-columns: 1fr;
  }

  .apple-workflow-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-split-layout {
    grid-template-columns: 1fr;
  }

  .apple-spec-card.large {
    grid-column: span 2;
  }

  .apple-terminal-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translate(-3px, -3px);
  }
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {

  .header {
    top: 8px;
    width: calc(100% - 24px);
    z-index: 1001;
  }

  .nav {
    display: none !important;
  }

  .mobile-toggle {
    display: flex;
    z-index: 1002;
    position: relative;
  }

  .hero {
    padding-top: calc(var(--header-h) + 72px);
    padding-bottom: 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 52px;
    text-align: center;
  }

  .hero-left {
    text-align: center;
  }

  .hero-badge {
    display: inline-flex;
    margin: 0 auto 28px;
  }

  .hero h1 {
    font-size: 2.8rem;
    margin-bottom: 22px;
  }

  .hero-sub {
    font-size: 1.05rem;
    max-width: 100%;
    margin-bottom: 32px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    font-size: 1.05rem;
    padding: 16px 24px;
  }

  .file-chips {
    justify-content: center;
  }

  .hero-note {
    margin-top: 18px;
    text-align: center;
  }

  /* 4 stats → a tidy 2×2 block rather than a 3-up row with a lonely orphan */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 0;
    background: #fff;
    border: var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--pop);
    transform: none;
  }

  .hero-stat {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 26px 10px;
    gap: 10px;
    border-radius: 0;
    background: transparent;
    border: none;
    border-right: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
  }

  .hero-stat:nth-child(2n) {
    border-right: none;
  }

  .hero-stat:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .hero-stat:hover {
    transform: none;
    box-shadow: none;
  }

  .hero-stat-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto;
  }

  .hero-stat-value {
    font-size: 1.15rem;
  }

  .hero-stat-label {
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .section {
    padding: 64px 0;
  }

  .section-sm {
    padding: 48px 0;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .pricing-grid,
  .security-grid,
  .apple-specs-grid,
  .apple-compare-grid,
  .apple-workflow-cards,
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-span-2,
  .bento-span-3 {
    grid-column: span 1;
  }

  .apple-spec-card.large {
    grid-column: span 1;
    flex-direction: column;
    text-align: center;
    padding: 36px 24px;
    gap: 24px;
  }

  .apple-spec-card.large .spec-content {
    text-align: center;
  }

  .playground-grid {
    grid-template-columns: 1fr;
  }

  .playground-editor {
    border-right: none;
    border-bottom: var(--line) solid var(--ink);
  }

  .playground-toolbar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }

  .playground-toolbar-left {
    margin-left: 0;
  }

  .playground-toolbar::before {
    display: none;
  }

  .playground-toolbar-right {
    flex-wrap: wrap;
    gap: 6px;
  }

  .apple-glass-panel {
    padding: 40px 20px;
    border-radius: 24px;
  }

  .apple-pipeline {
    gap: 10px;
    justify-content: center;
  }

  .apple-pipeline-connector {
    display: none;
  }

  .apple-pipeline-node {
    min-width: auto;
    padding: 14px 20px;
  }

  .apple-terminal-body,
  .apple-terminal-pane {
    padding: 20px;
    font-size: 0.8rem;
  }

  .apple-statement-title {
    font-size: 2rem;
  }

  .apple-card {
    padding: 28px 24px;
  }

  .apple-card.old,
  .apple-card.old:hover {
    transform: none;
  }

  .faq-section-card {
    padding: 40px 20px;
    border-radius: 24px;
  }

  .faq-split-layout {
    grid-template-columns: 1fr;
  }

  .faq-question {
    font-size: 1rem;
    padding: 18px;
  }

  .faq-answer {
    padding: 0 18px 18px;
  }

  .workflow-flow {
    flex-direction: column;
  }

  .workflow-arrow {
    transform: rotate(90deg);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-bottom>div:first-child {
    justify-content: center;
  }

  .final-cta-box {
    padding: 40px 24px;
  }

  .final-cta-box h2 {
    font-size: 1.6rem;
  }

  .final-cta-box .hero-actions {
    justify-content: center;
  }

  .problem-solution-grid {
    grid-template-columns: 1fr !important;
  }

  .api-grid {
    grid-template-columns: 1fr !important;
  }

  .on-prem-card {
    flex-direction: column !important;
    padding: 36px 24px !important;
  }

  .features-split-grid {
    grid-template-columns: 1fr;
  }

  .features-header {
    position: static;
    margin-bottom: 24px;
  }

  .mascot-panel {
    margin: 0 auto;
  }

  .apple-specs-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card,
  .testimonial-card:nth-child(2),
  .testimonial-card:nth-child(3) {
    transform: none;
  }
}

/* --- Small Mobile (≤480px) --- */
@media (max-width: 480px) {

  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 5px 12px;
  }

  .hero-stat {
    padding: 16px 6px;
  }

  .hero-stat-value {
    font-size: 1rem;
  }

  .hero-stat-label {
    font-size: 0.6rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .apple-statement-title {
    font-size: 1.75rem;
  }

  .card,
  .usecase-card,
  .pricing-card {
    padding: 24px;
  }

  .pricing-price {
    font-size: 2rem;
  }

  .apple-spec-card {
    padding: 26px 20px;
  }

  .apple-spec-card.large {
    padding: 28px 20px;
  }

  .apple-spec-card.large .spec-value {
    font-size: clamp(3rem, 15vw, 5rem);
    text-shadow: 3px 3px 0 var(--ink);
  }

  .hero-stats {
    padding: 0;
  }

  .btn {
    font-size: 0.92rem;
    padding: 12px 20px;
  }

  .btn-sm {
    padding: 7px 14px;
    font-size: 0.8rem;
  }

  .logos-row {
    gap: 12px;
  }

  .logo-item {
    font-size: 0.9rem;
    padding: 6px 14px;
  }

  .footer-col h4 {
    font-size: 0.88rem;
  }

  .footer-col a {
    font-size: 0.8rem;
  }

  .faq-section-card {
    padding: 28px 16px;
  }

  .on-prem-card {
    padding: 28px 16px !important;
  }

  .playground-wrapper {
    border-radius: var(--r-md);
  }

  .editor-textarea {
    font-size: 0.72rem;
  }

  .hero-actions {
    gap: 10px;
  }

  .security-item {
    flex-direction: column;
    gap: 10px;
  }
}
