:root {
  --bg: #FDF7F1;          /* warm cream gallery */
  --card: #FFFFFF;
  --text: #1A1614;        /* warm near-black */
  --text-muted: #6B5F58;
  --accent: #FF6B47;      /* warm coral — Ditto-style */
  --accent-deep: #E04F2B;
  --accent-soft: #FFE6DE;
  --border: #EADFD3;      /* warm beige border */
  --border-hover: #1A1614;
  --sun: #FFB454;         /* warm sun yellow */
  --pink-soft: #FFC7B8;
}

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

html, body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px;
  padding-top: 12vh;
  position: relative;
  min-height: 100vh;
}

/* ===== Doodles (hand-drawn vectors, Ditto-style) ===== */
.doodle {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.doodle-sun {
  width: 92px;
  height: 92px;
  top: 18vh;
  right: 8vw;
  color: var(--sun);
  animation: spin 26s linear infinite;
}

.doodle-heart {
  width: 64px;
  height: 64px;
  bottom: 10vh;
  left: 7vw;
  color: var(--pink-soft);
  animation: pulse 3.2s ease-in-out infinite;
}

.doodle-squiggle {
  width: 140px;
  height: 35px;
  top: 18vh;
  left: 6vw;
  color: var(--accent);
  opacity: 0.6;
  animation: wiggle 5s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1) rotate(-6deg); }
  50%      { transform: scale(1.12) rotate(-3deg); }
}

@keyframes wiggle {
  0%, 100% { transform: translateX(0) rotate(-3deg); }
  50%      { transform: translateX(8px) rotate(2deg); }
}

/* ===== Top bar ===== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: rgba(253, 247, 241, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.wordmark {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.wordmark .period {
  color: var(--accent);
}

.try-now-top {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  background: var(--text);
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 3px 0 0 var(--accent-deep);
}

.try-now-top:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 0 0 var(--accent-deep);
}

.try-now-top .arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.try-now-top:hover .arrow { transform: translateX(2px); }

/* ===== Hero ===== */
.hero {
  width: 100%;
  max-width: 620px;
  position: relative;
  z-index: 2;
  text-align: center;
  animation: fadeIn 0.5s ease-out;
  padding-top: 64px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Kicker / pre-headline label ===== */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 32px;
}

.kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(0.85); }
}

/* ===== Headlines ===== */
.question {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 20px;
}

.question em {
  font-style: normal;
  font-family: 'Caveat', cursive;
  font-weight: 600;
  color: var(--accent);
  font-size: 1.15em;
  display: inline-block;
  transform: translateY(0.08em) rotate(-2deg);
  padding: 0 0.1em;
}

.sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.5;
}

.signoff {
  margin-top: 40px;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
}

/* ===== Hero CTA button (rounded pill, Ditto/DateDrops style) ===== */
.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.cta-btn {
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  padding: 16px 36px;
  min-height: 56px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: var(--text);
  color: white;
  box-shadow: 0 4px 0 0 var(--accent-deep), 0 8px 24px rgba(255, 107, 71, 0.25);
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}

.cta-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 0 var(--accent-deep), 0 10px 30px rgba(255, 107, 71, 0.35);
}

.cta-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 0 var(--accent-deep), 0 4px 12px rgba(255, 107, 71, 0.25);
}

.cta-btn .arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.cta-btn:hover .arrow { transform: translateX(3px); }

/* ===== Demo section ===== */
.demo {
  width: 100%;
  max-width: 380px;
  position: relative;
  z-index: 2;
  margin: 64px auto 0;
  padding-bottom: 24px;
  text-align: center;
  animation: fadeIn 0.8s ease-out;
}

.demo-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.demo-caption {
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== iPhone frame ===== */
/* Real iPhone scale: 71.9mm × 150mm = 2.83in × 5.91in = 272px × 567px @ 96dpi */
.iphone {
  position: relative;
  width: 272px;
  height: 567px;
  max-width: calc(100vw - 48px);
  margin: 0 auto;
  background: #1a1614;
  border-radius: 38px;
  padding: 7px;
  box-shadow:
    0 0 0 1.5px #2a2624,
    0 0 0 3px #0a0807,
    0 30px 60px -20px rgba(26, 22, 20, 0.45),
    0 12px 24px -8px rgba(26, 22, 20, 0.25);
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
  flex-shrink: 0;
}

@media (max-width: 320px) {
  .iphone {
    width: calc(100vw - 48px);
    height: calc((100vw - 48px) * 567 / 272);
  }
}


.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 31px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 64px;       /* reserve space for the floating header so chat
                              never scrolls under it */
}

/* Items animated via JS — hidden until shown */
.messages [data-step] {
  display: none;
}
.messages [data-step].visible {
  display: flex;
  animation: bubbleIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.messages .msg-time[data-step].visible,
.messages .status-receipt[data-step].visible {
  display: block;
  animation: fadeInSimple 0.25s ease-out both;
}

@keyframes fadeInSimple {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.status-receipt {
  text-align: right;
  font-size: 9.5px;
  color: #8e8e93;
  font-weight: 500;
  padding: 0 12px;
  margin-top: 2px;
  letter-spacing: -0.01em;
  transition: color 0.25s;
}

.status-receipt.read {
  color: #8e8e93;
}

.imessage-header svg,
.input-bar svg {
  fill: currentColor;
  flex-shrink: 0;
  max-width: 28px;
  max-height: 28px;
  display: block;
}

/* ===== iOS 26 floating header — just avatar + name, no chrome ===== */
.imessage-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 10px 10px;
  background: transparent;
  border-bottom: none;
  flex-shrink: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  pointer-events: none;
}

.imessage-header > * { pointer-events: auto; }

.header-back, .header-video {
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
          backdrop-filter: blur(20px) saturate(180%);
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  cursor: pointer;
  color: #007AFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 3px rgba(0, 0, 0, 0.08);
}

.header-back svg, .header-video svg {
  width: 18px;
  height: 18px;
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.header-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.header-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-nameline {
  font-size: 10.5px;
  font-weight: 500;
  color: #0a0a0a;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1;
}

.header-chevron {
  width: 8px;
  height: 8px;
  color: #8e8e93;
  flex-shrink: 0;
}

/* ===== Messages ===== */
.messages {
  flex: 1;
  padding: 8px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 1.5px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  scroll-behavior: smooth;
  background: white;
  min-height: 0;
}

.messages::-webkit-scrollbar { display: none; }

.msg-time {
  text-align: center;
  font-size: 10.5px;
  color: #8e8e93;
  margin: 14px 0 6px;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.msg-time:first-child { margin-top: 6px; }
.msg-time br + * { color: #8e8e93; }

.msg {
  display: flex;
  padding: 0 4px;
}

.msg.sent    { justify-content: flex-end; }
.msg.received{ justify-content: flex-start; }

.bubble {
  max-width: 82%;
  padding: 7px 12px;
  font-size: 14.5px;
  line-height: 1.27;
  border-radius: 18px;
  word-wrap: break-word;
  position: relative;
  letter-spacing: -0.01em;
  animation: bubbleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.bubble strong { font-weight: 600; color: inherit; }

/* iOS 26 Liquid Glass bubbles */
.bubble-sent {
  background: #007AFF;
  color: white;
}

.bubble-received {
  background: #E9E9EB;
  color: #0a0a0a;
}

/* iOS 26 bubble directional shaping (no full tails — keep clean glass shape).
   Slight asymmetric radius gives a subtle "from here" feel without drawing
   a literal tail. */
.msg.sent .bubble        { border-bottom-right-radius: 6px; }
.msg.received .bubble    { border-bottom-left-radius: 6px; }

.msg.received.group-start .bubble { border-bottom-left-radius: 4px; }
.msg.received.group-end   .bubble { border-top-left-radius: 4px; }

/* ===== iMessage rich link preview card ===== */
.bubble.bubble-link-preview {
  display: block;
  padding: 0;
  background: white;
  max-width: 200px;
  overflow: hidden;
  border-radius: 14px;
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  border-bottom-left-radius: 14px !important;
}

.link-image {
  width: 100%;
  aspect-ratio: 5 / 3;
  background:
    radial-gradient(circle at 30% 110%, #FEDA77 0%, #F58529 25%, #DD2A7B 55%, #8134AF 75%, #515BD4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.link-image.has-photo {
  background: #0a0a0a;
}

.link-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.link-image-handle {
  color: white;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.link-meta {
  padding: 8px 12px 10px;
  background: white;
}

.link-title {
  font-size: 11.5px;
  font-weight: 500;
  color: #0a0a0a;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-domain {
  font-size: 10px;
  color: #8e8e93;
  margin-top: 1px;
  letter-spacing: 0.01em;
}

/* ===== iMessage photo stack (4+ photos collection) ===== */
.bubble.bubble-attachment {
  padding: 0;
  background: transparent;
  overflow: visible;
  max-width: 180px;
  box-shadow: none;
}

.card-stack {
  position: relative;
  width: 160px;
  height: 200px;
  margin: 6px 18px 24px 6px;        /* room for stacked cards peeking out */
  perspective: 1000px;
}

.stack-card {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #1a1614;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 8px 24px -6px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.45s ease,
    z-index 0s linear 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  will-change: transform, opacity;
}

.stack-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stack-card .stack-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: white;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

/* Stack positions — top card fully visible, others peek behind */
.stack-card[data-position="0"] {
  z-index: 4;
  transform: translate(0, 0) rotate(0deg) scale(1);
  opacity: 1;
}
.stack-card[data-position="1"] {
  z-index: 3;
  transform: translate(6px, 6px) rotate(2deg) scale(0.97);
  opacity: 0.95;
}
.stack-card[data-position="2"] {
  z-index: 2;
  transform: translate(12px, 12px) rotate(-1deg) scale(0.94);
  opacity: 0.88;
}
.stack-card[data-position="3"] {
  z-index: 1;
  transform: translate(18px, 18px) rotate(3deg) scale(0.91);
  opacity: 0.78;
}

/* Card leaving the stack (top swipes off to the left) */
.stack-card.is-leaving {
  z-index: 5 !important;
  transform: translate(-180%, -20%) rotate(-18deg) scale(0.92);
  opacity: 0;
  transition:
    transform 0.42s cubic-bezier(0.6, -0.2, 0.7, 0.2),
    opacity 0.38s ease;
}

/* Snap-back to bottom of stack without visible animation */
.stack-card.no-transition {
  transition: none !important;
}

/* Placeholder cards (until real images dropped into /images/) */
.stack-card.placeholder-1,
.stack-card.placeholder-2,
.stack-card.placeholder-3,
.stack-card.placeholder-4 {
  font-size: 12px;
}
.stack-card.placeholder-1 { background: linear-gradient(135deg, #FF8A65 0%, #E84A4A 100%); }
.stack-card.placeholder-1::after { content: "@wang_allenn"; position: absolute; }
.stack-card.placeholder-2 { background: linear-gradient(180deg, #2C3E50 0%, #0a0a0a 100%); }
.stack-card.placeholder-2::after { content: "Manhattan, NY"; position: absolute; }
.stack-card.placeholder-3 { background: linear-gradient(135deg, #6B5BFF 0%, #2C2C7A 100%); }
.stack-card.placeholder-3::after { content: "Office moment"; position: absolute; }
.stack-card.placeholder-4 { background: linear-gradient(135deg, #FFB85C 30%, #5B7A99 100%); }
.stack-card.placeholder-4::after { content: "Ditto Love Yacht"; position: absolute; }
.stack-card.placeholder-1 img,
.stack-card.placeholder-2 img,
.stack-card.placeholder-3 img,
.stack-card.placeholder-4 img {
  display: none;
}

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(6px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}


/* Typing indicator */
.bubble.typing {
  padding: 11px 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bubble.typing .dot {
  width: 7px;
  height: 7px;
  background: #8e8e93;
  border-radius: 50%;
  display: inline-block;
  animation: typingDot 1.3s infinite ease-in-out;
}

.bubble.typing .dot:nth-child(2) { animation-delay: 0.18s; }
.bubble.typing .dot:nth-child(3) { animation-delay: 0.36s; }

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

/* ===== Input bar ===== */
.input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 4px;
  background: white;
  border-top: 0.5px solid #d1d1d6;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

.input-plus {
  background: #e9e9eb;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.input-plus svg {
  width: 20px;
  height: 20px;
  color: #8e8e93;
}

.input-field {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: 0.5px solid #d1d1d6;
  border-radius: 18px;
  padding: 6px 8px 6px 14px;
  min-height: 30px;
}

.input-placeholder {
  font-size: 13px;
  color: #8e8e93;
}

.input-mic {
  width: 18px;
  height: 18px;
  color: #8e8e93;
}

/* ===== Home indicator ===== */
.home-indicator {
  width: 130px;
  height: 4px;
  background: #0a0a0a;
  border-radius: 2px;
  margin: 6px auto 8px;
  flex-shrink: 0;
}

/* ===== Mobile ===== */
@media (max-width: 640px) {
  html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Nuclear safety — nothing should ever exceed the viewport width */
  .hero, .demo, .iphone, .iphone-screen, .messages, .sub, .topbar {
    max-width: 100vw;
    box-sizing: border-box;
  }

  body {
    padding: 84px 18px 32px;
  }

  /* Topbar — compact, both items fit */
  .topbar {
    padding: 11px 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .wordmark { font-size: 1rem; }

  .try-now-top {
    font-size: 13px;
    padding: 8px 14px;
    flex-shrink: 0;
    gap: 5px;
  }

  .try-now-top .arrow { width: 13px; height: 13px; }

  /* Hide doodles — they crowd the small viewport */
  .doodle-squiggle { display: none; }

  .doodle-sun {
    width: 44px; height: 44px;
    top: 7vh; right: 6vw;
    opacity: 0.7;
  }

  .doodle-heart {
    width: 36px; height: 36px;
    bottom: 4vh; right: 6vw;
    left: auto;
    opacity: 0.6;
  }

  /* Hero — tight, viewport-fitting */
  .hero {
    width: 100%;
    max-width: 100%;
    padding-top: 24px;
  }

  .kicker {
    margin-bottom: 18px;
    font-size: 11.5px;
  }

  .question {
    font-size: clamp(2.4rem, 14vw, 3.5rem);
    margin-bottom: 16px;
  }

  .sub {
    font-size: 0.95rem;
    padding: 0;
    margin-bottom: 28px;
  }

  .cta-btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    font-size: 1rem;
    padding: 15px 30px;
  }

  .signoff {
    margin-top: 32px;
    font-size: 1.25rem;
  }

  /* === Demo: drop the iPhone bezel, render chat as a native panel === */
  .demo {
    margin-top: 56px;
    margin-bottom: 8px;
    max-width: 100%;
    width: 100%;
  }

  .demo-label {
    margin-bottom: 18px;
    font-size: 11px;
  }

  /* iPhone shell becomes invisible — no more "phone in a phone" */
  .iphone {
    background: transparent;
    box-shadow: none;
    padding: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: auto;
  }

  /* Chat panel — rounded card, comfortable height */
  .iphone-screen {
    border-radius: 26px;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.8) inset,
      0 4px 16px -4px rgba(26, 22, 20, 0.12),
      0 18px 40px -12px rgba(26, 22, 20, 0.18);
    border: 1px solid rgba(26, 22, 20, 0.08);
    height: 78vh;
    min-height: 560px;
    max-height: 720px;
    padding-top: 62px;
  }

  /* Floating header — comfortable touch sizing */
  .imessage-header {
    padding: 14px 10px 10px;
  }

  .header-avatar {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .header-nameline {
    font-size: 12px;
    margin-top: 2px;
  }

  /* Bubbles — slightly larger for thumb readability */
  .bubble {
    font-size: 15.5px;
    padding: 9px 14px;
  }

  .msg-time {
    font-size: 11.5px;
    margin: 16px 0 8px;
  }

  /* Card stack scales up a touch on mobile */
  .card-stack {
    width: 180px;
    height: 225px;
    margin: 6px 18px 24px 6px;
  }

  /* Link preview — bigger on mobile */
  .bubble.bubble-link-preview {
    max-width: 240px;
  }

  /* Input bar — bigger tap area */
  .input-bar { padding: 10px 10px 6px; }
  .input-plus { width: 32px; height: 32px; }
  .input-field { min-height: 32px; padding: 7px 10px 7px 14px; }

  /* Caption */
  .demo-caption {
    margin-top: 20px;
    font-size: 13.5px;
    padding: 0 12px;
  }
}
