/* ============================================================
   TapIn — Sticky Note Presentation + Pinned Showcase
   style.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600;700&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---- Design Tokens ---- */
:root {
  --blue: #2563EB;
  --cyan: #06B6D4;
  --bg: #EEF2F8;
  --text-dark: #0F172A;
  --text-muted: #475569;
  --border: #CBD5E1;
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --phone-w: 268px;
  --phone-h: 558px;
  --phone-r: 42px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text-dark);
  overflow-x: hidden;
}

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

/* ---- Fixed Grid Background ---- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #EEF2F8;
  background-image:
    linear-gradient(to right, rgba(37, 99, 235, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, 0.07) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ---- Regular Slides ---- */
.slide {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px clamp(20px, 5vw, 80px);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

/* ---- Labels & Titles ---- */
.slide-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 8px;
}

.slide-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 44px;
  line-height: 1.15;
}

.slide-title span {
  color: var(--blue);
}

.slide-badge {
  text-align: center;
  margin-top: 14px;
  font-size: 0.8rem;
  color: #94A3B8;
  letter-spacing: 0.06em;
}

/* ---- Phone Mockup ---- */
.phone-mockup {
  width: var(--phone-w);
  height: var(--phone-h);
  border-radius: var(--phone-r);
  background: #1E293B;
  box-shadow:
    0 0 0 2px #334155,
    inset 0 0 0 3px #0F172A,
    0 32px 64px rgba(0, 0, 0, 0.22),
    0 8px 16px rgba(0, 0, 0, 0.10);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transform-style: preserve-3d;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 112px;
  height: 26px;
  background: #0F172A;
  border-radius: 20px;
  z-index: 10;
}

.phone-screen {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: calc(var(--phone-r) - 2px);
  overflow: hidden;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top;
  padding-top: 38px;
  box-sizing: border-box;
  display: block;
}

.phone-bar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  z-index: 10;
}

.phone-iso {
  transform: perspective(1200px) rotateY(-18deg) rotateX(10deg);
  transition: transform 0.5s ease;
}

.phone-iso:hover {
  transform: perspective(1200px) rotateY(-10deg) rotateX(5deg);
}

.phone-flat {
  transform: none;
}

/* ---- Sticky Notes (regular sections) ---- */
.sticky {
  font-family: 'Caveat', cursive;
  font-size: 1.18rem;
  line-height: 1.6;
  padding: 20px 22px 22px;
  border-radius: 3px;
  box-shadow:
    2px 3px 0 rgba(0, 0, 0, 0.06),
    5px 8px 18px rgba(0, 0, 0, 0.10);
  position: relative;
  cursor: default;
  transition: box-shadow 0.22s ease;
  max-width: 220px;
}

.sticky::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 20px;
  background: rgba(255, 255, 255, 0.52);
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
}

/* Color variants with rotation */
.sticky.yellow {
  background: #FFF176;
  color: #3D2C00;
  transform: rotate(-2.8deg);
}

.sticky.pink {
  background: #FFCDD2;
  color: #4A0010;
  transform: rotate(2.0deg);
}

.sticky.blue {
  background: #B3E5FC;
  color: #01243A;
  transform: rotate(-1.4deg);
}

.sticky.green {
  background: #C8E6C9;
  color: #1B3A1D;
  transform: rotate(2.4deg);
}

.sticky.orange {
  background: #FFE0B2;
  color: #3E2000;
  transform: rotate(-1.8deg);
}

.sticky.purple {
  background: #E1BEE7;
  color: #2D0040;
  transform: rotate(1.5deg);
}

/* XL sticky */
.sticky-xl {
  max-width: 280px;
  font-size: 1.22rem;
  padding: 26px 28px 28px;
}

/* Inline Lucide SVG Icons */
.inline-icon {
  width: 1.2em;
  height: 1.2em;
  vertical-align: text-bottom;
  display: inline-block;
  stroke-width: 2.5;
}

/* ============================================================
   PINNED SHOWCASE SECTION
   ============================================================ */
#showcase-section {
  position: relative;
  /* Height is controlled by GSAP pinSpacing */
}

#showcase-pin {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 36px clamp(20px, 5vw, 80px) 28px;
  position: relative;
}

#showcase-header {
  width: 100%;
  max-width: 1140px;
  margin-bottom: 24px;
  flex-shrink: 0;
}

#showcase-header .slide-title {
  margin-bottom: 0;
}

/* Three-column canvas */
#sc-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1140px;
  flex: 1;
  overflow: visible;
}

.sc-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow: visible;
  /* min-height to keep column stable as notes change */
  min-height: 420px;
  justify-content: center;
}

#sc-left {
  align-items: flex-end;
  padding-right: 44px;
}

#sc-right {
  align-items: flex-start;
  padding-left: 44px;
}

#sc-phone-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  perspective: 1200px;
}

/* Showcase screen image transition */
#sc-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top;
  display: block;
  padding-top: 38px;
  box-sizing: border-box;
  will-change: opacity;
}

/* Showcase sticky notes — NO CSS rotation (GSAP handles all transforms) */
.sc-sticky {
  font-family: 'Caveat', cursive;
  font-size: 1.15rem;
  line-height: 1.6;
  padding: 18px 20px 22px;
  border-radius: 3px;
  max-width: 230px;
  position: relative;
  cursor: default;
  /* Tape strip */
  box-shadow:
    2px 3px 0 rgba(0, 0, 0, 0.06),
    5px 8px 18px rgba(0, 0, 0, 0.10);
  will-change: transform, opacity;
}

.sc-sticky::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 20px;
  background: rgba(255, 255, 255, 0.52);
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
}

/* Color variants for showcase stickies (background + text only, no rotation) */
.sc-sticky.yellow {
  background: #FFF176;
  color: #3D2C00;
}

.sc-sticky.pink {
  background: #FFCDD2;
  color: #4A0010;
}

.sc-sticky.blue {
  background: #B3E5FC;
  color: #01243A;
}

.sc-sticky.green {
  background: #C8E6C9;
  color: #1B3A1D;
}

.sc-sticky.orange {
  background: #FFE0B2;
  color: #3E2000;
}

.sc-sticky.purple {
  background: #E1BEE7;
  color: #2D0040;
}

/* Progress dots */
#sc-dots {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-shrink: 0;
}

.sc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #CBD5E1;
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.sc-dot.active {
  background: var(--blue);
  transform: scale(1.5);
}

/* Prev / Next navigation arrows */
#sc-nav {
  position: absolute;
  top: 36px;
  right: clamp(20px, 5vw, 80px);
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 20;
}

.sc-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  color: var(--text-dark);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.sc-nav-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: scale(1.08);
}

.sc-nav-btn:active {
  transform: scale(0.95);
}

.sc-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

/* Step counter */
#sc-counter {
  margin-top: 12px;
  font-size: 0.82rem;
  color: #94A3B8;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ============================================================
   SLIDE 1 — HERO
   ============================================================ */
.slide-two-col {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  flex: 1;
  max-width: 520px;
  position: relative;
}

.univ-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.univ-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.univ-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.3;
}

.meta-line {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.meta-line strong {
  color: var(--text-dark);
}

.submitters-row {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
}

.meta-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.meta-val {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.fingerprint-wrap {
  position: absolute;
  top: 20px;
  right: 30px;
  width: 80px;
  opacity: 0.8;
}

.fingerprint-svg {
  width: 80px;
  height: 80px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 24px;
  margin-bottom: 14px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.hero-phone-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.blue-text {
  color: var(--blue);
}

/* ============================================================
   SLIDE 2 — MACRO ECOSYSTEM
   ============================================================ */
.s2-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.s2-node {
  display: flex;
  align-items: center;
  justify-content: center;
}

.s2-sticky {
  max-width: 240px;
  text-align: left;
}

.s2-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.s2-arrow {
  display: flex;
  align-items: center;
  padding: 0 16px;
  flex-shrink: 0;
}

/* ============================================================
   SLIDE 3 — HARDWARE
   ============================================================ */
.s3-layout {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
}

.s3-img-wrap,
.s3-flow-img-wrap,
.s3-notes {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.s3-diagram-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.s3-svg {
  width: 340px;
  height: 320px;
}

/* Circuit diagram image (replaces old SVG) */
.s3-img-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.s3-circuit-img {
  width: 340px;
  height: auto;
  border-radius: 10px;
  display: block;
}

.s3-flow-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.flow-arrows {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.flow-step {
  position: absolute;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 1.15rem;
  color: #1e3a8a;
  border: 2px solid #1d4ed8;
  border-radius: 20px;
  padding: 6px 12px;
  background: transparent;
  line-height: 1.1;
  z-index: 2;
}

.hw-step-top {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.hw-step-right {
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
}

.hw-step-bottom {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.hw-step-left {
  top: 50%;
  left: -10px;
  transform: translateY(-50%);
}

.hw-tooltip-red {
  position: absolute;
  top: 60px;
  left: 55px;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: #b91c1c;
  border: 2px solid #dc2626;
  border-radius: 16px;
  padding: 6px 10px;
  line-height: 1.1;
  z-index: 3;
  transform: rotate(-3deg);
  background: transparent;
}

/* Pin connection table sticky note */
.sticky-table {
  max-width: 300px;
  padding: 20px 22px 24px;
  flex-shrink: 0;
}

.pin-table-title {
  font-family: 'Caveat', cursive;
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: inherit;
}

.pin-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Caveat', cursive;
  font-size: 1.05rem;
  color: inherit;
}

.pin-table th {
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.18);
  padding: 4px 8px;
  text-align: left;
  white-space: nowrap;
}

.pin-table td {
  padding: 5px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
  white-space: nowrap;
  font-family: 'Caveat', cursive;
}

.pin-table tr:last-child td {
  border-bottom: none;
}

.pin-table tr:hover td {
  background: rgba(0, 0, 0, 0.04);
}

.s3-notes {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

.s3-notes-cluster {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10px;
}

.s3-notes-cluster .sticky {
  max-width: 155px;
  font-size: 1rem;
  padding: 16px;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.15);
}

.s3-notes-cluster .sticky.pink {
  transform: rotate(-4deg) translateY(10px);
  z-index: 1;
}

.s3-notes-cluster .sticky.blue {
  transform: rotate(3deg) translateY(-5px);
  margin-left: -20px;
  z-index: 2;
}

.s3-notes-cluster .sticky.green {
  transform: rotate(-2deg) translateY(15px);
  margin-left: -15px;
  z-index: 3;
}

.s3-cycle {
  flex-shrink: 0;
}

/* ============================================================
   SLIDE 4 — BACKEND CLOUD
   ============================================================ */
.s4-layout {
  display: flex;
  align-items: center;
  gap: 40px;
}

.s4-hw-diagram-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.db-flow-container {
  position: relative;
  width: 100%;
  height: 320px;
  font-family: 'Caveat', cursive;
}

.db-arrows {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.db-node {
  position: absolute;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  border: 2px solid #0369a1;
  border-radius: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.7);
  line-height: 1.2;
  z-index: 2;
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.06);
}

.db-node small {
  font-weight: 500;
  color: #475569;
  font-size: 1.1rem;
  font-family: 'Caveat', cursive;
}

.edge-func-box {
  position: absolute;
  top: -65px;
  right: -100px;
  background: #06b6d4;
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-family: 'Caveat', cursive;
  font-size: 0.95rem;
  line-height: 1.2;
  z-index: 3;
  transform: rotate(4deg);
  box-shadow: 3px 5px 15px rgba(6, 182, 212, 0.3);
  width: 210px;
}

.edge-func-box strong {
  font-size: 1.2rem;
  font-weight: 700;
}

.s4-notes {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  flex: 0 0 450px;
  max-width: 100%;
}

/* ============================================================
   SLIDE 11 — SUMMARY GRID
   ============================================================ */
.s11-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  justify-items: center;
}

/* ============================================================
   THANK YOU SLIDE
   ============================================================ */
.thankyou-slide {
  text-align: center;
  background-color: #fff;
}

.ty-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ty-icon {
  margin-bottom: 24px;
}

.ty-app-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.ty-thankyou-note {
  max-width: 600px;
  width: 100%;
  margin-bottom: 56px;
  text-align: center;
}

.ty-heading {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0;
  font-family: 'Caveat', cursive;
}

.ty-heading span {
  color: var(--blue);
}

.ty-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 56px;
}

.ty-creators-wrapper {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 32px;
  flex-wrap: wrap;
}

.ty-creator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 32px 32px;
  max-width: 280px;
  text-align: center;
}

.ty-creator-info {
  text-align: center;
}

.ty-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.ty-creator-info {
  text-align: left;
}

.ty-creator-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.ty-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ty-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}

.ty-link:hover {
  color: var(--blue);
}

/* ============================================================
   GSAP Initial States (regular sections)
   ============================================================ */
.gsap-fade {
  opacity: 0;
  transform: translateY(30px);
}

.gsap-scale {
  opacity: 0;
  transform: scale(0.92);
}

.gsap-sticky {
  opacity: 0;
  transform: translateY(20px);
}

/* ============================================================
   Responsive — Tablet (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .slide-two-col {
    flex-direction: column;
    gap: 40px;
  }

  .hero-info-card {
    max-width: 100%;
  }

  .hero-phone-wrap {
    display: none; /* hide hero phone on tablet/mobile, card is enough */
  }

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

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

  .s3-layout {
    flex-direction: column;
  }

  .s3-svg {
    width: 100%;
  }

  .s4-layout {
    flex-direction: column;
  }

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


  #sc-canvas {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .sc-col {
    max-width: 100%;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    min-height: auto;
    gap: 16px;
  }

  #sc-left {
    padding-right: 0;
    order: 2; /* notes below phone */
  }

  #sc-right {
    padding-left: 0;
    order: 3;
  }

  #sc-phone-wrap {
    order: 1;
  }

  .sc-sticky {
    max-width: 200px;
    font-size: 1rem;
    padding: 14px 16px 18px;
  }
}

/* ============================================================
   Responsive — Mobile (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  /* ---- Base ---- */
  .slide {
    padding: 60px 20px;
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .slide-title {
    font-size: 1.75rem;
    margin-bottom: 28px;
  }

  /* ---- Hero (Slide 1) ---- */
  .hero-info-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .submitters-row {
    flex-direction: column;
    gap: 12px;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .fingerprint-wrap {
    width: 56px;
    top: 16px;
    right: 16px;
  }

  .fingerprint-svg {
    width: 56px;
    height: 56px;
  }

  /* ---- Slide 2 — Ecosystem ---- */
  .s2-sticky {
    max-width: 90vw;
    font-size: 1rem;
  }

  /* ---- Slide 3 — Hardware ---- */
  .s3-notes {
    padding: 0;
  }

  .s3-notes .sticky {
    max-width: 90vw;
    font-size: 1rem;
    padding: 14px 16px;
  }

  /* ---- Slide 4 — Backend ---- */
  .s4-layout {
    gap: 24px;
  }

  .s4-notes {
    flex: unset;
    width: 100%;
    flex-direction: column;
  }

  .s4-notes .sticky {
    max-width: 100%;
    font-size: 0.95rem;
    padding: 14px 16px;
    word-break: break-word;
  }

  /* ---- Slide 11 — Summary ---- */
  .s11-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sticky-xl {
    font-size: 1rem;
    padding: 18px 20px;
  }

  /* ---- Pinned Showcase ---- */
  :root {
    --phone-w: 220px;
    --phone-h: 458px;
    --phone-r: 34px;
  }

  #showcase-pin {
    padding: 16px 12px;
    height: auto;
    min-height: 100svh;
  }

  #showcase-header {
    margin-bottom: 12px;
  }

  #sc-canvas {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  #sc-phone-wrap {
    order: 1;
    flex-shrink: 0;
  }

  #sc-left,
  #sc-right {
    order: 2;
    width: 100%;
    padding: 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    min-height: auto;
  }

  .sc-sticky {
    max-width: 44vw;
    font-size: 0.88rem;
    padding: 10px 12px 14px;
    line-height: 1.4;
  }

  /* Dots at bottom */
  #sc-dots {
    margin-top: 10px;
    gap: 7px;
  }

  .sc-dot {
    width: 7px;
    height: 7px;
  }

  /* ---- General Sticky Notes ---- */
  .sticky {
    font-size: 0.95rem;
    padding: 14px 16px 18px;
  }
}

/* ============================================================
   Responsive — Very Small (≤ 380px)
   ============================================================ */
@media (max-width: 380px) {
  :root {
    --phone-w: 190px;
    --phone-h: 396px;
    --phone-r: 28px;
  }

  .sc-sticky {
    max-width: 42vw;
    font-size: 0.8rem;
    padding: 8px 10px 12px;
  }

  .slide-title {
    font-size: 1.45rem;
  }
}