/* Version: 1.0.32 */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  /* one screen, never scrolls — on the root too (iOS Safari ignores body alone), and no rubber-band bounce */
  overflow: hidden;
  overscroll-behavior: none;
}

* {
  box-sizing: border-box;
  font-family: "Onest", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* CSS Custom Properties for animatable angles (from public/css/app.css) */
@property --angle-1 {
  syntax: "<angle>";
  inherits: false;
  initial-value: 90deg;
}

@property --angle-2 {
  syntax: "<angle>";
  inherits: false;
  initial-value: -45deg;
}

@property --border-angle {
  syntax: "<angle>";
  inherits: true;
  initial-value: 135deg;
}

body {
  position: relative;
  overflow: hidden;
  background: #f4dbff;
}

button {
  font: inherit;
  cursor: pointer;
}

/* Match Demo reset closer (prevents UA styles affecting glass) */
button,
textarea {
  border: none;
  outline: none;
  background: none;
}

.home-content-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  pointer-events: none; /* allow canvas clicks except interactive controls */
  text-align: center;
}


.makeboard-logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 52px;
  pointer-events: none;
}

.makeboard-logo {
  width: 35px;
  height: auto;
  /* the mark in dark green, exact: the icon file used as a mask over a green fill (its own white drawing pushed out of view) */
  background: #1f3b2c;
  -webkit-mask: url(Assets/Makeboard_logo_icon.svg) center / contain no-repeat;
  mask: url(Assets/Makeboard_logo_icon.svg) center / contain no-repeat;
  object-position: -9999px 0;
}

.makeboard-text {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #1f3b2c;
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.greeting-text {
  width: 100%;
  max-width: 12.5em;
  font-size: clamp(40px, 5.6vw, 88px);
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 0.98;
  font-weight: 700;
  color: #333333;
  letter-spacing: -0.045em;
  margin: 0 0 44px;
  pointer-events: none;
}

/* two lines, always: each holds together and the break falls after "work" — "Your AI OS for work" in the bold
   sans, "& everyday life." in Zodiak light (the * reset sets Onest on every element, so the lines inherit explicitly) */
.greeting-text .hero-line { display: block; white-space: nowrap; font: inherit; letter-spacing: inherit; }
.greeting-text .hero-line + .hero-line { font-family: "Zodiak", Georgia, serif; font-weight: 300; letter-spacing: -0.03em; }

.detail-text {
  width: 100%;
  max-width: 600px;
  font-family: "Satoshi", "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(22px, 1.375rem, 24px);
  line-height: 1.5;
  font-weight: 450;
  color: rgba(45, 58, 46, 0.78);
  margin: 0 0 30px;
  pointer-events: none;
  text-wrap: pretty;
}

.ai-chat-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ai-chat-input-container {
  width: 100%;
  max-width: 600px;
}

.ai-chat-gradient-container,
.ai-chat-prompt-preview {
  display: none;
}

.white-filter {
  filter: invert(1);
}

/* =========================
   GLASSMORPHIC INPUT STYLES
   (extracted from public/css/app.css)
   ========================= */

.home-input-wrap {
  z-index: 2;
  pointer-events: none;
  background: transparent;
  border-radius: 999vw;
  width: 100%;
  max-width: 600px;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
}

.home-input-shadow {
  --shadow-cuttoff-fix: 2em;
  width: calc(100% + var(--shadow-cuttoff-fix));
  height: calc(100% + var(--shadow-cuttoff-fix));
  top: calc(0% - var(--shadow-cuttoff-fix) / 2);
  left: calc(0% - var(--shadow-cuttoff-fix) / 2);
  filter: blur(clamp(5px, 0.35em, 20px));
  pointer-events: none;
  position: absolute;
  overflow: visible;
}

.home-input-shadow::after {
  content: "";
  z-index: 0;
  width: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);
  height: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);
  inset: 0;
  top: calc(var(--shadow-cuttoff-fix) - 0.5em);
  left: calc(var(--shadow-cuttoff-fix) - 0.875em);
  box-sizing: border-box;
  opacity: 1;
  background:
    conic-gradient(
      from 180deg at 50% 50%,
      rgba(255, 80, 80, 0.15),
      rgba(255, 150, 50, 0.15),
      rgba(220, 180, 0, 0.15),
      rgba(50, 180, 50, 0.15),
      rgba(0, 160, 180, 0.15),
      rgba(80, 80, 255, 0.15),
      rgba(180, 60, 255, 0.15),
      rgba(255, 80, 80, 0.15)
    ),
    linear-gradient(#0002, #00000012);
  border-radius: 999vw;
  padding: 0.25em;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: absolute;
  overflow: visible;
  -webkit-mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  -webkit-mask-position: 0 0, 0 0;
  mask-position: 0 0, 0 0;
  -webkit-mask-size: auto, auto;
  mask-size: auto, auto;
  -webkit-mask-repeat: repeat, repeat;
  mask-repeat: repeat, repeat;
  -webkit-mask-clip: content-box, border-box;
  mask-clip: content-box, border-box;
  -webkit-mask-origin: content-box, border-box;
  mask-origin: content-box, border-box;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.glassmorphic-input {
  --shimmer-angle: 105deg;
  --shimmer-band-start: 66%;
  --shimmer-band-end: 80%;
  --border-width: clamp(1px, 0.0625em, 4px);

  pointer-events: auto;
  z-index: 3;
  -webkit-backdrop-filter: blur(clamp(5px, calc(0.125em + 4px), 8px));
  backdrop-filter: blur(clamp(5px, calc(0.125em + 4px), 8px));
  background: linear-gradient(-75deg, #ffffff4d, #ffffff59, #ffffff4d);
  border-radius: 999vw;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 72px;
  padding: 6px 8px;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  box-shadow:
    inset 0 0.2em 0.2em #0000000d,
    inset 0 -0.125em 0.125em #ffffff80,
    0 0.25em 0.125em -0.125em rgba(0, 0, 0, 0.17),
    inset 0 0 0.15em 0.35em #fff3,
    0 0 #fff;
}

/* Responsive shimmer fallbacks (from public/css/app.css) */
@media (max-width: 600px) {
  .glassmorphic-input {
    --shimmer-angle: 101deg;
    --shimmer-band-start: 65%;
    --shimmer-band-end: 79%;
  }
}
@media (min-width: 1000px) {
  .glassmorphic-input {
    --shimmer-angle: 109deg;
    --shimmer-band-start: 67%;
    --shimmer-band-end: 81%;
  }
}
@media (min-width: 1200px) {
  .glassmorphic-input {
    --shimmer-angle: 113deg;
    --shimmer-band-start: 69%;
    --shimmer-band-end: 83%;
  }
}
@media (min-width: 1400px) {
  .glassmorphic-input {
    --shimmer-angle: 116deg;
    --shimmer-band-start: 70%;
    --shimmer-band-end: 84%;
  }
}

/* Force pseudo-element initialization when panel becomes active */
.ai-chat-panel.active .glassmorphic-input {
  animation: init-glassmorphic 0.3s ease-out;
}

@keyframes init-glassmorphic {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.glassmorphic-input:hover,
.glassmorphic-input:focus-within {
  -webkit-backdrop-filter: blur(calc(0.01em + 4px));
  backdrop-filter: blur(calc(0.01em + 4px));
  background: linear-gradient(-75deg, #00000003, #00000002, #00000003),
    linear-gradient(-75deg, #ffffff33, #ffffff4d, #ffffff33);
  box-shadow:
    inset 0 0.2em 0.2em #0000000d,
    inset 0 -0.125em 0.125em #ffffff4d,
    0 0.15em 0.05em -0.1em rgba(0, 0, 0, 0.27),
    inset 0 0 0.15em 0.35em #ffffff4d,
    0 0 #fff;
}

.glassmorphic-input::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    var(--shimmer-angle),
    transparent 0%,
    transparent var(--shimmer-band-start),
    rgba(255, 255, 255, 1) calc(var(--shimmer-band-start) + 2%),
    rgba(255, 255, 255, 1) calc(var(--shimmer-band-end) - 2%),
    transparent var(--shimmer-band-end),
    transparent 100%
  );
  background-size: 140% 100%;
  background-position: 0% 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.15;
  transition: background-position 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

.glassmorphic-input:hover::before {
  background-position: 30% 0;
  opacity: 0.3;
}

.glassmorphic-input::after {
  --border-angle: 135deg;
  content: "";
  z-index: 1;
  width: calc(100% + var(--border-width));
  height: calc(100% + var(--border-width));
  inset: 0;
  top: calc(0% - var(--border-width) / 2);
  left: calc(0% - var(--border-width) / 2);
  padding: var(--border-width);
  box-sizing: border-box;
  background:
    linear-gradient(
      var(--border-angle),
      transparent 0%,
      #00000050 3%,
      transparent 6%,
      transparent 94%,
      #00000050 97%,
      transparent 100%
    ),
    linear-gradient(180deg, #ffffff80, #ffffff80);
  box-shadow: inset 0 0 0 calc(var(--border-width) / 2) #ffffff80;
  border-radius: 999vw;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1), --border-angle 0.5s;
  position: absolute;
  pointer-events: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  -webkit-mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  -webkit-mask-position: 0 0, 0 0;
  mask-position: 0 0, 0 0;
  -webkit-mask-size: auto, auto;
  mask-size: auto, auto;
  -webkit-mask-repeat: repeat, repeat;
  mask-repeat: repeat, repeat;
  -webkit-mask-clip: content-box, border-box;
  mask-clip: content-box, border-box;
  -webkit-mask-origin: content-box, border-box;
  mask-origin: content-box, border-box;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  /* Improve rendering quality (from public/css/app.css) */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: translateZ(0);
  will-change: transform;
}

.glassmorphic-input:hover::after,
.glassmorphic-input:focus-within::after {
  --border-angle: 45deg;
  --border-width: clamp(1.5px, 0.1em, 6px);
}

.glassmorphic-input .home-input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  color: #323232;
  padding: 0;
  z-index: 2;
  resize: none;
  -webkit-resize: none;
  -moz-resize: none;
  -ms-resize: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  min-height: 1.25em;
  height: auto;
}

.glassmorphic-input .home-input-field::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.glassmorphic-input .home-input-field::-webkit-scrollbar-corner {
  display: none;
  background: transparent;
}

.glassmorphic-input .home-input-field::placeholder {
  color: #32323280;
}

.glassmorphic-input .home-input-attach-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  z-index: 2;
  color: #323232;
  font-weight: 700;
  position: relative;
}

/* Context count badge */
.home-input-attach-count-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff3990;
  color: #fff;
  font: 600 9.5px/1 "Onest", -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  z-index: 3;
  animation: dock-home-badge-pop 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.glassmorphic-input .home-input-attach-btn:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  background: #ffffff;
}

.glassmorphic-input .home-input-attach-btn i {
  font-size: 24px;
  color: #323232;
}

.glassmorphic-input .home-input-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

/* History / accept / options buttons (usually hidden via inline display:none) */
.glassmorphic-input .history-nav-button,
.glassmorphic-input .accept-changes-button,
.glassmorphic-input .ai-chat-mode-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.glassmorphic-input .history-nav-button i,
.glassmorphic-input .accept-changes-button i {
  font-size: 22px;
  color: #323232;
}

.glassmorphic-input .ai-chat-mode-toggle img {
  width: 18px;
  height: 18px;
}

/* Slider toggle styling (from public/css/app.css) */
.glassmorphic-input .home-input-slider-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 58px;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 29px;
  background: #1f3b2c;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  outline: none;
  -webkit-user-select: none;
  user-select: none;
}

.glassmorphic-input .home-input-slider-toggle:active,
.glassmorphic-input .home-input-slider-toggle:focus {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.glassmorphic-input .slider-toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.glassmorphic-input .slider-toggle-slider {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
  cursor: pointer;
}

.glassmorphic-input .slider-toggle-slider::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  width: calc(50% - 5px);
  background: #d6ff59;
  border-radius: 24px;
  transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 0;
  transform: translateX(0);
}

.glassmorphic-input .slider-toggle-option {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  user-select: none;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.glassmorphic-input .slider-toggle-icon {
  display: block;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  object-fit: contain;
  transition: filter 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.glassmorphic-input .slider-toggle-option[data-option="email"] .slider-toggle-icon {
  width: 20px;
  height: 20px;
}

.glassmorphic-input .slider-toggle-option[data-option="phone"] .slider-toggle-icon {
  width: 20px;
  height: 20px;
}

.glassmorphic-input .slider-toggle-text {
  display: inline;
}

/* Desktop (label + icon): the icon leads the label, at 60% */
@media (min-width: 512px) {
  .glassmorphic-input .slider-toggle-icon {
    order: -1;
    opacity: 0.6;
  }
}

/* The chosen side reads dark green on the lime knob; the other side soft white on the green track */
.glassmorphic-input .slider-toggle-input:not(:checked) + .slider-toggle-slider .slider-toggle-option[data-option="email"],
.glassmorphic-input .slider-toggle-input:checked + .slider-toggle-slider .slider-toggle-option[data-option="phone"] {
  color: #1f3b2c;
}
.glassmorphic-input .slider-toggle-input:not(:checked) + .slider-toggle-slider .slider-toggle-option[data-option="phone"],
.glassmorphic-input .slider-toggle-input:checked + .slider-toggle-slider .slider-toggle-option[data-option="email"] {
  color: rgba(255, 255, 255, 0.85);
}
.glassmorphic-input .slider-toggle-input:not(:checked) + .slider-toggle-slider .slider-toggle-option[data-option="email"] .slider-toggle-icon,
.glassmorphic-input .slider-toggle-input:checked + .slider-toggle-slider .slider-toggle-option[data-option="phone"] .slider-toggle-icon {
  filter: brightness(0) saturate(100%) invert(17%) sepia(20%) saturate(1100%) hue-rotate(95deg) brightness(92%);
  opacity: 1;
}
.glassmorphic-input .slider-toggle-input:not(:checked) + .slider-toggle-slider .slider-toggle-option[data-option="phone"] .slider-toggle-icon,
.glassmorphic-input .slider-toggle-input:checked + .slider-toggle-slider .slider-toggle-option[data-option="email"] .slider-toggle-icon {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* Checked state: Phone selected */
.glassmorphic-input .slider-toggle-input:checked + .slider-toggle-slider::before {
  transform: translateX(100%);
}

.glassmorphic-input .slider-toggle-input:focus + .slider-toggle-slider {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.glassmorphic-input .slider-toggle-input:active + .slider-toggle-slider,
.glassmorphic-input .slider-toggle-slider:active {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.glassmorphic-input .home-input-mic-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  color: #323232;
  font-size: 16px;
}

.glassmorphic-input .home-input-mic-btn:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  background: #ffffff;
  opacity: 0.9;
}

.glassmorphic-input .home-input-mic-btn i {
  font-size: 20px;
  color: #323232;
}

.glassmorphic-input .home-input-send-btn {
  width: 58px;
  height: 58px;
  background: #252525;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  outline: none;
  -webkit-user-select: none;
  user-select: none;
  flex-shrink: 0;
}

/* Mobile: the submit button only fades in once something is typed (.has-value, script.js),
   leaving room for the full placeholder */
@media (max-width: 600px) {
  /* single-line field: the placeholder must not wrap out of view (inline padding is 0 16px) */
  .glassmorphic-input .home-input-field {
    white-space: nowrap;
    padding-right: 4px !important;
  }
  .glassmorphic-input .home-input-send-btn {
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), margin 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.25s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background 0.2s;
  }
  .glassmorphic-input:not(.has-value) .home-input-send-btn {
    width: 0;
    padding: 0;
    margin-left: -5px; /* swallow the actions gap */
    opacity: 0;
    transform: scale(0.6);
    pointer-events: none;
    overflow: hidden;
  }
}

.glassmorphic-input .home-input-send-btn:active,
.glassmorphic-input .home-input-send-btn:focus {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.glassmorphic-input .home-input-send-btn:hover {
  background: #3a3a3a;
  transform: scale(1.05);
}

.glassmorphic-input .home-input-send-btn svg {
  width: 27px;
  height: auto;
  margin-top: 3px;
  margin-left: 2px;
}

.home-input-wrap:has(.glassmorphic-input:hover) .home-input-shadow,
.home-input-wrap:has(.glassmorphic-input:focus-within) .home-input-shadow {
  filter: blur(clamp(8px, 0.5em, 24px));
  transition: filter 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover/Focus glow tweak (from public/css/app.css) */
.home-input-wrap:has(.glassmorphic-input:hover) .home-input-shadow::after,
.home-input-wrap:has(.glassmorphic-input:focus-within) .home-input-shadow::after {
  top: calc(var(--shadow-cuttoff-fix) - 0.75em);
  opacity: 1;
  background:
    conic-gradient(
      from 180deg at 50% 50%,
      rgba(255, 80, 80, 0.08),
      rgba(255, 150, 50, 0.08),
      rgba(220, 180, 0, 0.08),
      rgba(50, 180, 50, 0.08),
      rgba(0, 160, 180, 0.08),
      rgba(80, 80, 255, 0.08),
      rgba(180, 60, 255, 0.08),
      rgba(255, 80, 80, 0.08)
    ),
    linear-gradient(#0002, #00000012);
}

/* AI "Thinking..." indicator (hidden by default on homepage) */
.ai-chat-thinking {
  display: none;
  position: absolute;
  right: 18px;
  bottom: -26px;
  font-size: 13px;
  color: rgba(45, 58, 46, 0.8);
  pointer-events: none;
  gap: 4px;
  align-items: center;
}

.ai-chat-thinking .dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 2px;
  background: rgba(45, 58, 46, 0.7);
  border-radius: 50%;
  opacity: 0.25;
  animation: dotWave 1.2s infinite ease-in-out;
}

.ai-chat-thinking .dot:nth-child(2) {
  animation-delay: 0.2s;
}
.ai-chat-thinking .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotWave {
  0%,
  80%,
  100% {
    opacity: 0.2;
    transform: translateY(0);
    filter: blur(1px);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
    filter: blur(0);
  }
}

/* Narrow screens: the (hidden) blurb's size */
@media (max-width: 720px) {
  .detail-text {
    font-size: clamp(18px, 1.125rem, 20px);
  }
}

@media (max-width: 511px) {
  .glassmorphic-input .home-input-field {
    resize: none !important;
    -webkit-resize: none !important;
    -moz-resize: none !important;
    -ms-resize: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
  }
  
  .glassmorphic-input .home-input-field::-webkit-resizer {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
  
  .glassmorphic-input .home-input-field::-moz-resizer {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
  
  .glassmorphic-input textarea {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
  }
  
  .glassmorphic-input .home-input-field::-webkit-scrollbar-corner {
    display: none !important;
    background: transparent !important;
    width: 0 !important;
    height: 0 !important;
  }
  
  .glassmorphic-input .home-input-field::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  
  /* Icon-based toggle on mobile */
  .glassmorphic-input .slider-toggle-text {
    display: none !important;
  }
  
  .glassmorphic-input .slider-toggle-icon {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    width: 24px !important;
    height: 24px !important;
    object-fit: contain !important;
  }
  
  .glassmorphic-input .slider-toggle-option[data-option="email"] .slider-toggle-icon {
    width: 22px !important;
    height: 22px !important;
  }
  
  .glassmorphic-input .slider-toggle-option[data-option="phone"] .slider-toggle-icon {
    width: 20px !important;
    height: 20px !important;
  }
  
  .glassmorphic-input .slider-toggle-option {
    padding: 0 !important;
    gap: 0 !important;
    width: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }
  
  .glassmorphic-input .slider-toggle-option i,
  .glassmorphic-input .slider-toggle-option img {
    display: inline-block !important;
    vertical-align: middle !important;
    line-height: 1 !important;
  }
  
  .glassmorphic-input .home-input-slider-toggle {
    width: 106px;
  }

  .glassmorphic-input .slider-toggle-slider {
    padding: 0 5px;
    box-sizing: border-box;
  }

  .glassmorphic-input .slider-toggle-slider::before {
    width: 48px !important;
    height: 48px;
    border-radius: 50%;
  }
  
  .glassmorphic-input .home-input-actions {
    gap: 5px !important;
  }
  
  .detail-text {
    font-size: clamp(16px, 1rem, 18px);
  }
}

/* Small screens - only apply width-based rules for landscape/square */
@media (min-aspect-ratio: 1/1) and (max-width: 420px) {
  .detail-text {
    font-size: clamp(14px, 0.875rem, 16px);
  }
}

/* =========================
   FLOATING MOCK-UPS (built by mockups.js)
   Each screenshot is clipped to a shape over the same shape in a palette colour; place + size come from custom
   properties per picture. Desktop and landscape tablets scatter them around the centred block.
   ========================= */
.floating-mockups { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }   /* clipped: a shape dragged past the edge never makes the page bigger */
.mockup {
  position: absolute;
  top: var(--top); left: var(--left, auto); right: var(--right, auto);
  width: var(--w); height: auto; aspect-ratio: var(--ratio);
  overflow: visible;
  animation: mockup-bloom 0.95s cubic-bezier(0.34, 1.45, 0.64, 1) backwards, mockup-float 6s ease-in-out infinite;
  filter: drop-shadow(0 16px 24px rgba(31, 59, 44, 0.16));
}
.mockup-sparkle {
  position: absolute;
  top: var(--top); left: var(--left, auto); right: var(--right, auto);
  width: var(--size); height: var(--size);
  animation: mockup-bloom 0.7s cubic-bezier(0.34, 1.6, 0.64, 1) backwards, mockup-twinkle 5s ease-in-out infinite;
}
/* the bloom: grows from nothing with a small twist, a soft overshoot, then settles — on its own scale/rotate, so the
   float (transform) and a drag (inline translate/rotate/scale, once the bloom is done) are untouched */
@keyframes mockup-bloom {
  from { scale: 0; rotate: -60deg; opacity: 0; }   /* a twist in: the spring overshoots it a touch past 0, then settles */
  35%  { opacity: 1; }
  to   { scale: 1; rotate: 0deg; opacity: 1; }
}
@keyframes mockup-float {
  0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); }
  50%      { transform: translateY(-12px) rotate(var(--tilt, 0deg)); }
}
@keyframes mockup-twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(0.8) rotate(20deg); }
}
@media (prefers-reduced-motion: reduce) {
  .mockup, .mockup-sparkle { animation: none; }
  .mockup { transform: rotate(var(--tilt, 0deg)); }
}

/* Phones and upright tablets: the logo, headline and input centred, pictures above and below — sized off the
   screen's height too, so a squarer screen fits them. The headline keeps 40px wherever its longer line fits
   (375px and up); only narrower screens shrink it. */
@media (max-width: 699px), (max-aspect-ratio: 1/1) and (max-width: 1100px) {
  .mockup, .mockup-sparkle { display: none; }
  .mockup.on-phone { display: block; top: var(--m-top); left: var(--m-left, auto); right: var(--m-right, auto); width: calc(var(--m-wn) * min(1vw, 0.462vh)); filter: drop-shadow(0 8px 14px rgba(31, 59, 44, 0.14)); }
  .mockup-sparkle.on-phone { display: block; top: var(--m-top); left: var(--m-left, auto); right: var(--m-right, auto); }
  .home-content-container { padding: 20px 12px; }
  .makeboard-logo-container { margin-bottom: 32px; }
  .greeting-text { margin-bottom: 32px; font-size: min(40px, calc((100vw - 24px) / 8.8)); }
}

/* drag: the painted shape is the handle — never the empty corners of its box; no scroll/zoom/callout on touch */
.mockup { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: none; }
.mockup g, .mockup image { pointer-events: visiblePainted; cursor: grab; touch-action: none; }
.mockup.is-held g, .mockup.is-held image { cursor: grabbing; }
.floating-mockups.is-dragging { z-index: 3; }   /* a shape in hand rides above the headline and input */
.mockup.is-away { z-index: 1; }   /* the shape in hand (and on its way home) stays above the others and the sparkles */
.mockup-pic { opacity: 0; transition: opacity 0.4s ease; }
.mockup-pic.is-in { opacity: 1; }

/* Once there is text, the Email/Phone switch slides away (every screen size) — on phones the send button takes its place */
.glassmorphic-input .home-input-slider-toggle {
  max-width: 260px;
  transition: max-width 0.32s cubic-bezier(0.25, 1, 0.5, 1), margin 0.32s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s ease, transform 0.32s cubic-bezier(0.25, 1, 0.5, 1);
}
.glassmorphic-input.has-value .home-input-slider-toggle {
  max-width: 0;
  margin-right: -8px; /* swallow the actions gap */
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}
@media (max-width: 511px) {
  .glassmorphic-input.has-value .home-input-slider-toggle { margin-right: -5px; }
}

/* Autofill: Chrome paints its own blue behind a filled field, with priority CSS can't beat — so the background is
   clipped to the letters (the ink covers it) and the ink, caret and highlight are set here */
.glassmorphic-input .home-input-field:-webkit-autofill,
.glassmorphic-input .home-input-field:-webkit-autofill:hover,
.glassmorphic-input .home-input-field:-webkit-autofill:focus,
.glassmorphic-input .home-input-field:autofill {
  -webkit-text-fill-color: #333333;
  caret-color: #333333;
  -webkit-background-clip: text;
  background-clip: text;
  box-shadow: none;
  transition: background-color 600000s 0s, color 600000s 0s;
}
.glassmorphic-input .home-input-field::selection { background: rgba(31, 59, 44, 0.18); }

/* =========================
   WAITLIST STATES (waitlist.js)
   sending: the send button pulses · done: the input becomes a solid green pill, lime text · error: same pill, the
   message in orange, then the input comes back
   ========================= */
.waitlist-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* Turnstile's box: out of the layout (it's empty unless Cloudflare needs a challenge, then it shows under the input) */
.waitlist-turnstile { position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%); z-index: 6; pointer-events: auto; }
/* its frame can't be restyled inside, so it is clipped from outside — rounded like the input, its own square grey border
   trimmed off — and lifted with a soft shadow */
.waitlist-turnstile { filter: drop-shadow(0 6px 16px rgba(31, 59, 44, 0.14)); }
.waitlist-turnstile > * { display: block; clip-path: inset(1px round 18px); }

.glassmorphic-input.is-sending .home-input-send-btn { animation: waitlist-pulse 0.9s ease-in-out infinite; pointer-events: none; }
@keyframes waitlist-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.9); opacity: 0.75; } }

.waitlist-note {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: inherit; padding: 0 24px; text-align: center;
  background: #1f3b2c; color: #d6ff59;
  opacity: 0; transform: scale(0.97); pointer-events: none; z-index: 5;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}
.waitlist-main { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; line-height: 1.15; }
.waitlist-sub { font-size: 13px; color: rgba(214, 255, 89, 0.75); line-height: 1.2; }
.glassmorphic-input.is-done .waitlist-note,
.glassmorphic-input.is-error .waitlist-note { opacity: 1; transform: scale(1); }
.glassmorphic-input.is-error .waitlist-main { color: #fe6938; font-size: 17px; }
.glassmorphic-input.is-done .home-input-field,
.glassmorphic-input.is-done .home-input-actions,
.glassmorphic-input.is-error .home-input-field,
.glassmorphic-input.is-error .home-input-actions { opacity: 0; transition: opacity 0.2s ease; pointer-events: none; }
.glassmorphic-input.is-done::before, .glassmorphic-input.is-done::after { opacity: 0; transition: opacity 0.3s ease; }
.glassmorphic-input.is-done { pointer-events: none; }
@media (max-width: 511px) {
  .waitlist-main { font-size: 17px; }
  .glassmorphic-input.is-error .waitlist-main { font-size: 15px; }
}

/* Texting consent: shown under the input while Phone is chosen — overlays the space below (the centred block never
   jumps), fades up out of a soft blur; stays while typing, leaves with the input on success */
.waitlist-consent {
  position: absolute; left: 0; right: 0; top: 100%;   /* the input's full width, 10px under it */
  margin: 10px 0 0; padding: 0;
  font-size: 12.5px; line-height: 1.45; color: rgba(31, 59, 44, 0.72); text-align: center; text-wrap: pretty;
  opacity: 0; transform: translateY(-6px); filter: blur(4px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.32s ease;
}
.waitlist-consent span { white-space: nowrap; }   /* each phrase stays whole: lines break between sentences */
.home-input-wrap.is-phone .waitlist-consent {
  opacity: 1; transform: translateY(0); filter: blur(0); pointer-events: auto;
  transition: opacity 0.4s ease 0.06s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.06s, filter 0.45s ease 0.06s;
}
.home-input-wrap.is-phone .glassmorphic-input.is-done ~ .waitlist-consent { opacity: 0; transform: translateY(-6px); filter: blur(4px); }
@media (max-width: 511px) {
  .waitlist-consent { font-size: 11px; line-height: 1.4; letter-spacing: -0.005em; }
}
/* Short phones (iPhone SE height): a tighter block leaves room for the shapes and the consent line */
@media (max-width: 699px) and (max-height: 700px) {
  .makeboard-logo-container { margin-bottom: 22px; }
  .greeting-text { margin-bottom: 22px; }
  .mockup.on-phone.m-wellness { top: calc(var(--m-top) + 3%); }   /* clear of the consent line */
}

/* The dithered background (dither.js): its own fixed layer behind everything, pixels kept crisp; the lavender under
   it shows until it's drawn */
.page-dither { position: fixed; inset: 0; z-index: 0; pointer-events: none; background-repeat: no-repeat; image-rendering: pixelated; image-rendering: crisp-edges; }
