/* ================================================================
   REDESIGNED HOME PAGE CSS
   Hero, features, philosophy, options, platforms, CTA
================================================================ */

/* ================================================================
   HERO — full-bleed video
================================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h1v1H0zM10 10h1v1h-1zM20 5h1v1h-1zM30 15h1v1h-1zM5 25h1v1H5zM15 35h1v1h-1zM25 20h1v1h-1zM35 30h1v1h-1z' fill='%23c8b898' fill-opacity='0.08'/%3E%3C/svg%3E");
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  will-change: opacity;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 50% 40%, transparent 30%, rgba(18,10,4,0.5) 100%),
    linear-gradient(180deg, rgba(18,10,4,0.15) 0%, rgba(18,10,4,0.65) 100%);
  will-change: opacity;
}

.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  color: #fff;
  padding: 2rem;
  max-width: 600px;
  will-change: opacity, transform;
}

.hero-eyebrow {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: rgba(255,245,168,0.92);
  display: inline-block;
  margin-bottom: 1.25rem;
  transform: rotate(-2deg);
}

.hero-icon {
  width: 180px; height: 180px;
  border-radius: 40px;
  display: block;
  margin: 0 auto 1.5rem;
  box-shadow: 0 12px 48px rgba(0,0,0,0.45);
}

.hero-title {
  font-family: var(--font-logo);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  text-shadow: 0 2px 16px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  margin-bottom: 2.25rem;
}

.hero-cta {
  display: inline-block;
}
.hero-cta img { height: 54px; }

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-hand);
  font-size: 0.85rem;
  text-align: center;
  animation: float-down 2.2s ease-in-out infinite;
  cursor: pointer;
  user-select: none;
}
.scroll-hint::after {
  content: '↓';
  display: block;
  font-size: 1.3rem;
  line-height: 1;
  margin-top: 2px;
}
@keyframes float-down {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.45; }
  60%       { transform: translateX(-50%) translateY(7px); opacity: 0.7; }
}

/* ================================================================
   FEATURES SECTION — Capture. Review. Remember.
================================================================ */
.features-section {
  padding: 6rem 2rem;
  background: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h1v1H0zM10 10h1v1h-1zM20 5h1v1h-1zM30 15h1v1h-1zM5 25h1v1H5zM15 35h1v1h-1zM25 20h1v1h-1zM35 30h1v1h-1z' fill='%23c8b898' fill-opacity='0.08'/%3E%3C/svg%3E");
  position: relative;
}

.features-inner {
  max-width: 980px;
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-eyebrow {
  font-family: var(--font-hand);
  font-size: 1rem;
  color: var(--red-pen);
  display: inline-block;
  margin-bottom: 0.5rem;
  transform: rotate(-2deg);
  position: relative;
}

.section-eyebrow::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--red-pen);
  opacity: 0.4;
  transform: rotate(0.5deg);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0;
}

.section-title em { font-style: italic; }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  justify-items: center;
  padding: 3.5rem 0;
  max-width: 820px;
  margin: 0 auto;
}

.feature-row + .feature-row {
  border-top: 1px dashed var(--paper-lines);
}

.feature-row.flip { direction: rtl; }
.feature-row.flip > * { direction: ltr; }

.feat-text-paper {
  background: var(--paper);
  border: 1px solid var(--paper-lines);
  border-radius: 2px;
  padding: 1.75rem 1.5rem 1.5rem;
  position: relative;
  box-shadow:
    2px 3px 10px rgba(0,0,0,0.07),
    0 1px 0 rgba(255,255,255,0.6) inset;
  background-image: repeating-linear-gradient(
    var(--paper) 0px, var(--paper) 25px,
    #e8e0d0 26px
  );
  background-size: 100% 26px;
  background-position: 0 50px;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.feature-row:nth-child(2) .feat-text-paper { transform: rotate(-1.5deg); transform-origin: bottom left; }
.feature-row:nth-child(3) .feat-text-paper { transform: rotate(1.2deg);  transform-origin: bottom right; }
.feature-row:nth-child(4) .feat-text-paper { transform: rotate(-1deg);   transform-origin: bottom left; }

.feat-text-paper:hover {
  transform: translateY(-3px) rotate(0deg);
  box-shadow:
    3px 6px 16px rgba(0,0,0,0.1),
    0 1px 0 rgba(255,255,255,0.6) inset;
}

.feat-text-paper::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 20px;
  width: 60px;
  height: 22px;
  background: var(--sticker-color, var(--washi-coral));
  border-radius: 2px;
  transform: rotate(-2deg);
  opacity: 0.85;
}

.feat-label {
  font-family: var(--font-hand);
  font-size: 0.95rem;
  color: var(--red-pen);
  display: inline-block;
  margin-bottom: 0.5rem;
  transform: rotate(-1deg);
}

.feat-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.feat-body {
  font-size: 0.93rem;
  color: var(--ink-light);
  line-height: 1.75;
}

.feat-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.feat-gif {
  max-width: 260px;
  width: 100%;
  border-radius: 16px;
}

/* Feature text triggers */
.feat-trigger {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.feat-trigger:hover {
  color: var(--red-pen);
  text-decoration-color: var(--red-pen);
}

.feat-trigger.active {
  color: var(--red-pen);
  text-decoration-style: solid;
  text-decoration-color: var(--red-pen);
}

/* Feature mini-carousel */
.feat-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.feat-carousel-slider {
  display: flex;
  transition: transform 0.4s ease;
}

.feat-carousel-slider[data-slide="0"] { transform: translateX(0); }
.feat-carousel-slider[data-slide="1"] { transform: translateX(-100%); }

.feat-carousel-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feat-carousel-slide .feat-gif {
  max-width: 260px;
  width: 100%;
}

/* ================================================================
   PHILOSOPHY SECTION — with diagonal lines texture
================================================================ */
.philosophy-section {
  padding: 5rem 2rem 6rem;
  background-color: #d4c4a8;
  background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23a89878' fill-opacity='0.22'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
  box-shadow: inset 0 4px 6px -4px rgba(0,0,0,0.10), inset 0 -4px 6px -4px rgba(0,0,0,0.10);
  position: relative;
}

@media (prefers-color-scheme: dark) {
  .philosophy-section {
    background-color: #2a2418;
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23584830' fill-opacity='0.22'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
  }
}

.philosophy-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.philosophy-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1rem;
}

.philosophy-text {
  font-size: 1rem;
  color: var(--ink-mid);
  line-height: 1.8;
}

.philosophy-text .highlight {
  color: var(--red-pen);
  font-weight: 600;
}

.ideas-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.idea-tag {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--paper-lines);
  padding: 0.6rem 1.1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-mid);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.idea-tag:hover {
  background: var(--sticky-yellow);
  border-color: var(--kraft);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.idea-card {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  width: 220px;
  background: var(--paper);
  border: 1px solid var(--paper-lines);
  border-radius: 8px;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 100;
  text-align: left;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  pointer-events: none;
}

.idea-card::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--paper);
}

.idea-tag:hover .idea-card,
.idea-tag:focus .idea-card,
.idea-tag.active .idea-card {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

.idea-card-preview {
  width: 100%;
  height: 90px;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.idea-card-title {
  font-family: var(--font-hand);
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.idea-card-desc {
  font-size: 0.78rem;
  color: var(--ink-light);
  line-height: 1.55;
}

.idea-card-examples {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--paper-lines);
}

.idea-card-examples span {
  display: block;
  font-size: 0.7rem;
  color: var(--pencil);
  margin-bottom: 0.3rem;
  font-family: var(--font-hand);
}

/* ================================================================
   OPTIONS SECTION — sticky note grid
================================================================ */
.options-section {
  padding: 5rem 2rem;
  background: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h1v1H0zM10 10h1v1h-1zM20 5h1v1h-1zM30 15h1v1h-1zM5 25h1v1H5zM15 35h1v1h-1zM25 20h1v1h-1zM35 30h1v1h-1z' fill='%23c8b898' fill-opacity='0.08'/%3E%3C/svg%3E");
}

.options-inner {
  max-width: 900px;
  margin: 0 auto;
}

.options-header {
  text-align: center;
  margin-bottom: 3rem;
}

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

.option-card {
  background: var(--sticky-yellow);
  padding: 1.75rem 1.25rem 1.25rem;
  border-radius: 2px;
  position: relative;
  box-shadow:
    2px 4px 12px rgba(0,0,0,0.1),
    0 1px 0 rgba(255,255,255,0.4) inset;
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Pin on sticky notes — red pushpins with varied positions */
.option-card::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e85050, #a82020);
  box-shadow: 0 2px 4px rgba(0,0,0,0.35);
  z-index: 10;
}

.option-card:nth-child(1)::before { left: 45%; }
.option-card:nth-child(2)::before { left: 55%; }
.option-card:nth-child(3)::before { left: 48%; }
.option-card:nth-child(4)::before { left: 52%; }
.option-card:nth-child(5)::before { left: 46%; }
.option-card:nth-child(6)::before { left: 54%; }

.option-card:nth-child(1) { background: var(--sticky-yellow); --card-rotation: -1deg; transform: rotate(var(--card-rotation)); }
.option-card:nth-child(2) { background: var(--sticky-pink);   --card-rotation: 0.8deg; transform: rotate(var(--card-rotation)); }
.option-card:nth-child(3) { background: var(--sticky-blue);   --card-rotation: -0.5deg; transform: rotate(var(--card-rotation)); }
.option-card:nth-child(4) { background: var(--sticky-green);  --card-rotation: 1deg; transform: rotate(var(--card-rotation)); }
.option-card:nth-child(5) { background: var(--sticky-peach);  --card-rotation: -0.7deg; transform: rotate(var(--card-rotation)); }
.option-card:nth-child(6) { background: var(--sticky-yellow); --card-rotation: 0.5deg; transform: rotate(var(--card-rotation)); }

.option-card:hover {
  transform: translateY(-4px) rotate(0deg) !important;
  box-shadow: 3px 8px 20px rgba(0,0,0,0.15);
}

.option-stamp {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--stamp-color, var(--ink-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  opacity: 0.75;
  position: relative;
  filter: url(#ink-texture);
}

.option-stamp::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px dashed var(--stamp-color, var(--ink-mid));
}

.option-stamp::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: 
    radial-gradient(ellipse at 20% 80%, transparent 60%, rgba(255,255,255,0.3) 100%),
    radial-gradient(ellipse at 80% 20%, transparent 70%, rgba(255,255,255,0.2) 100%);
  pointer-events: none;
}

.option-stamp svg {
  width: 20px;
  height: 20px;
  stroke: var(--stamp-color, var(--ink-mid));
  stroke-width: 2;
  fill: none;
}

.option-card:nth-child(1) .option-stamp { --stamp-color: #9a7830; }
.option-card:nth-child(2) .option-stamp { --stamp-color: #a85050; }
.option-card:nth-child(3) .option-stamp { --stamp-color: #4a7a9a; }
.option-card:nth-child(4) .option-stamp { --stamp-color: #4a8a5a; }
.option-card:nth-child(5) .option-stamp { --stamp-color: #9a6a40; }
.option-card:nth-child(6) .option-stamp { --stamp-color: #9a7830; }

.option-title {
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.option-desc {
  font-size: 0.85rem;
  color: var(--ink-mid);
  line-height: 1.55;
}

/* ================================================================
   PLATFORMS SECTION — Mac & iPad carousel
================================================================ */
.platforms-section {
  padding: 5.5rem 2rem 6rem;
  background-color: #d4c4a8;
  background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23a89878' fill-opacity='0.22'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
  box-shadow: inset 0 4px 6px -4px rgba(0,0,0,0.10), inset 0 -4px 6px -4px rgba(0,0,0,0.10);
}

@media (prefers-color-scheme: dark) {
  .platforms-section {
    background-color: #2a2418;
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23584830' fill-opacity='0.22'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
  }
}

.platforms-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.platforms-header {
  text-align: center;
  margin-bottom: 3rem;
}

.platforms-header .section-title { color: var(--ink); }
.platforms-header .section-eyebrow { color: var(--ink-mid); }

.platforms-carousel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.platforms-images {
  position: relative;
  height: 39.375rem;
  overflow: hidden;
}

.platforms-slider {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

/* Slide positions for 3 platforms */
.platforms-slider[data-slide="0"] { transform: translateX(0); }
.platforms-slider[data-slide="1"] { transform: translateX(-100%); }
.platforms-slider[data-slide="2"] { transform: translateX(-200%); }
.platforms-slider[data-slide="3"] { transform: translateX(-300%); }

.platform-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.platform-img {
  max-height: 37.5rem;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
}

.platforms-content {
  padding: 1rem 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.platforms-content .platform-tabs {
  order: -1;
  justify-content: center;
  flex-shrink: 0;
}

/* Text slider for crossfade effect */
.platform-text-slider {
  position: relative;
  min-height: 200px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.platform-text {
  position: absolute;
  top: 20%;
  left: 1rem;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.platform-text.active {
  /* position: relative; */
  opacity: 1;
  visibility: visible;
}

.platform-text h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.platform-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.platform-features li {
  padding: 0.6rem 0;
  font-size: 0.95rem;
  color: var(--ink-mid);
  border-bottom: 1px dashed var(--paper-lines);
}

.platform-features li:last-child {
  border-bottom: none;
}

.platform-tabs {
  display: flex;
  gap: 0.5rem;
}

.platform-tab {
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--paper-lines);
  background: var(--paper);
  border-radius: 20px;
  font-family: var(--font-hand);
  font-size: 0.95rem;
  color: var(--ink-mid);
  cursor: pointer;
  transition: all 0.2s;
}

.platform-tab:hover {
  background: var(--paper-warm);
}

.platform-tab.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ================================================================
   CTA SECTION
================================================================ */
.cta-section {
  padding: 7rem 2rem;
  background: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h1v1H0zM10 10h1v1h-1zM20 5h1v1h-1zM30 15h1v1h-1zM5 25h1v1H5zM15 35h1v1h-1zM25 20h1v1h-1zM35 30h1v1h-1z' fill='%23c8b898' fill-opacity='0.08'/%3E%3C/svg%3E");
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-stickies {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
}

.cta-stickies span {
  position: absolute;
  border-radius: 2px;
  transition: transform 0.3s ease;
}

/* Red line at top of index cards */
.cta-stickies span::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red-pen);
  border-radius: 2px 2px 0 0;
}

.cta-stickies span:nth-child(1) {
  width: 280px; height: 160px;
  background: var(--paper);
  transform: translate(-120px, -70px) rotate(-4deg);
  box-shadow: 2px 3px 12px rgba(0,0,0,0.1);
  /* Lined paper effect */
  background-image: repeating-linear-gradient(
    var(--paper) 0px, var(--paper) 23px,
    #e8e0d0 24px
  );
  background-size: 100% 24px;
  background-position: 0 20px;
}

.cta-stickies span:nth-child(2) {
  width: 280px; height: 160px;
  background: var(--paper);
  transform: translate(-110px, -65px) rotate(3deg);
  box-shadow: 2px 3px 12px rgba(0,0,0,0.08);
  background-image: repeating-linear-gradient(
    var(--paper) 0px, var(--paper) 23px,
    #e8e0d0 24px
  );
  background-size: 100% 24px;
  background-position: 0 20px;
}

.cta-stickies:hover span:nth-child(1) {
  transform: translate(-120px, -70px) rotate(0deg);
}

.cta-stickies:hover span:nth-child(2) {
  transform: translate(-110px, -65px) rotate(0deg);
}

.cta-card {
  position: relative;
  z-index: 1;
  display: inline-block;
  background: var(--paper);
  border: 1px solid var(--paper-lines);
  border-radius: 4px;
  padding: 3rem 4.5rem;
  box-shadow: 0 12px 48px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.05);
  overflow: hidden;
}

/* Coffee cup stain image — cropped at lower left */
.cta-coffee-stain {
  position: absolute;
  bottom: -8rem;
  left: -4rem;
  width: 16rem;
  height: auto;
  pointer-events: none;
  user-select: none;
  opacity: 0.55;
}

.cta-hand {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--red-pen);
  display: inline-block;
  margin-bottom: 0.5rem;
  transform: rotate(-2deg);
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.cta-note {
  font-family: var(--font-hand);
  font-size: 1rem;
  color: var(--pencil);
  margin-bottom: 2rem;
}

.app-store-btn {
  display: inline-block;
}
.app-store-btn img { height: 54px; }

/* ================================================================
   DARK MODE — CTA & FEATURE OVERRIDES
================================================================ */
@media (prefers-color-scheme: dark) {
  .cta-section {
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E"),
      url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h1v1H0zM10 10h1v1h-1zM20 5h1v1h-1zM30 15h1v1h-1zM5 25h1v1H5zM15 35h1v1h-1zM25 20h1v1h-1zM35 30h1v1h-1z' fill='%23c8b898' fill-opacity='0.04'/%3E%3C/svg%3E");
  }

  /* Classic index card colors - more vibrant in dark mode */
  .cta-stickies span:nth-child(1) {
    background: #3a4a5a; /* Blue-tinted */
    background-image: repeating-linear-gradient(
      #3a4a5a 0px, #3a4a5a 23px,
      #4a5a6a 24px
    );
  }

  .cta-stickies span:nth-child(2) {
    background: #4a3a3a; /* Reddish/salmon tinted */
    background-image: repeating-linear-gradient(
      #4a3a3a 0px, #4a3a3a 23px,
      #5a4a4a 24px
    );
  }

  .cta-stickies span:nth-child(1)::before,
  .cta-stickies span:nth-child(2)::before {
    background: var(--red-pen);
  }

  /* Feature section index cards - classic colors */
  .feature-row:nth-child(2) .feat-text-paper {
    background: #3a4a5a; /* Blue */
    background-image: repeating-linear-gradient(
      #3a4a5a 0px, #3a4a5a 25px,
      #2a3a4a 26px
    );
    border-color: #2a3a4a;
  }

  .feature-row:nth-child(3) .feat-text-paper {
    background: #4a3a3a; /* Salmon/pink */
    background-image: repeating-linear-gradient(
      #4a3a3a 0px, #4a3a3a 25px,
      #3a2a2a 26px
    );
    border-color: #3a2a2a;
  }

  .feature-row:nth-child(4) .feat-text-paper {
    background: #3a4a3a; /* Green */
    background-image: repeating-linear-gradient(
      #3a4a3a 0px, #3a4a3a 25px,
      #2a3a2a 26px
    );
    border-color: #2a3a2a;
  }

  .feat-text-paper {
    box-shadow:
      2px 3px 10px rgba(0,0,0,0.2),
      0 1px 0 rgba(255,255,255,0.1) inset;
  }

  /* Lighter description text for readability */
  .feat-body {
    color: var(--ink-mid);
  }
}

/* ================================================================
   SCROLL REVEAL ANIMATIONS
================================================================ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for feature rows */
.feature-row.scroll-reveal {
  transition-delay: 0s;
}

/* Feature card entry — start at a more extreme rotation, settle to resting */
.feature-row.scroll-reveal:not(.revealed):nth-child(2) .feat-text-paper { transform: rotate(-5deg); }
.feature-row.scroll-reveal:not(.revealed):nth-child(3) .feat-text-paper { transform: rotate(4.5deg); }
.feature-row.scroll-reveal:not(.revealed):nth-child(4) .feat-text-paper { transform: rotate(-4deg); }

/* Options grid - all cards animate together */
.options-grid.scroll-reveal .option-card {
  opacity: 0;
  transform: translateY(20px) rotate(var(--card-rotation, 0deg));
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.options-grid.scroll-reveal.revealed .option-card {
  opacity: 1;
  transform: translateY(0) rotate(var(--card-rotation, 0deg));
}

/* Stagger the option cards slightly */
.options-grid.scroll-reveal.revealed .option-card:nth-child(1) { transition-delay: 0s; }
.options-grid.scroll-reveal.revealed .option-card:nth-child(2) { transition-delay: 0.05s; }
.options-grid.scroll-reveal.revealed .option-card:nth-child(3) { transition-delay: 0.1s; }
.options-grid.scroll-reveal.revealed .option-card:nth-child(4) { transition-delay: 0.15s; }
.options-grid.scroll-reveal.revealed .option-card:nth-child(5) { transition-delay: 0.2s; }
.options-grid.scroll-reveal.revealed .option-card:nth-child(6) { transition-delay: 0.25s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .options-grid.scroll-reveal .option-card {
    opacity: 1;
    transform: rotate(var(--card-rotation, 0deg));
    transition: none;
  }
  .feature-row.scroll-reveal:not(.revealed):nth-child(2) .feat-text-paper,
  .feature-row.scroll-reveal:not(.revealed):nth-child(3) .feat-text-paper,
  .feature-row.scroll-reveal:not(.revealed):nth-child(4) .feat-text-paper {
    transform: rotate(0deg);
  }
}

/* ================================================================
   RESPONSIVE
================================================================ */
/* Mobile tabs — hidden on desktop, shown only on mobile */
.platform-tabs-mobile {
  display: none;
}

@media (max-width: 720px) {
  .features-section { padding: 3.5rem 2rem; }
  .features-header { margin-bottom: 3rem; }
  .philosophy-section { padding: 3rem 2rem; }
  .options-section { padding: 3rem 2rem; }
  .platforms-section { padding: 1rem 3rem 5rem 1rem; }
  .platforms-header { margin-bottom: 2rem; }
  .cta-section { padding: 4rem 2rem; }
  .feature-row { grid-template-columns: 1fr; gap: 1.5rem; max-width: 400px; }
  .feature-row.flip { direction: ltr; }
  .cta-card { padding: 2.5rem 2rem; }
  .options-grid { grid-template-columns: repeat(2, 1fr); }
  .platforms-carousel { grid-template-columns: 1fr; }
  .platforms-images { order: -1; height: auto; transition: height 0.4s ease; }
  .platforms-content .platform-tabs { display: none; }
  .platforms-slider { height: auto; align-items: flex-start; }
  .platform-slide { height: auto; justify-content: center;}
  .platform-text { top: 0; left: 0; right: 0;}
  .platform-img { max-height: none; width: 100%; height: auto; }
  .platform-slide:nth-child(3) .platform-img,
  .platform-slide:nth-child(4) .platform-img { width: 70%; }
  .platform-tabs-mobile { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
}

@media (max-width: 480px) {
  .options-grid { grid-template-columns: 1fr; }
}
