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

:root {
  --bg-primary: #f5f5f5;
  --brand-primary: #CDD2F6;
  --border-color: #000000;
  --text-color: #000000;
  --card-bg: #ffffff;
  --shadow-color: #000000;
  --accent-color: #CDD2F6;
  --category-order: #CDD2F6;
  --category-order-soft: rgba(205, 210, 246, 0.2);
  --category-meeting: #CDD2F6;
  --category-meeting-soft: rgba(205, 210, 246, 0.2);
  --category-pause: #CDD2F6;
  --category-pause-soft: rgba(205, 210, 246, 0.2);
  --font-family: 'Heebo', sans-serif;
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --bottom-nav-clearance: calc(116px + var(--safe-area-bottom));
  --keyboard-offset: 0px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #e5e5e5;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

/* Centering phone-like container on desktop, full-screen on mobile */
.app-container {
  width: 100%;
  max-width: 450px;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  background-color: var(--bg-primary);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.1);
  border-left: 1px solid rgba(0,0,0,0.05);
  border-right: 1px solid rgba(0,0,0,0.05);
}

@media (min-width: 450px) {
  .app-container {
    height: 90vh;
    border: 4px solid #000000;
    border-radius: 36px;
    max-height: 850px;
  }
}

/* Screen Management */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: var(--bg-primary);
  min-height: 0;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.screen.active {
  display: flex;
  animation: fadeInGentle 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.screen.slide-active {
  display: flex;
  animation: slideInRtl 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Keyframes Animations */
@keyframes fadeInGentle {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRtl {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

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

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

/* Global Typography */
.main-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-color);
  text-align: center;
}

.sub-title {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-color);
  text-align: center;
}

.button-text {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-color);
  text-align: center;
}

.home-choice-btn {
  flex-direction: column;
  gap: 0;
  padding: 16px 20px;
}

.body-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-color);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px 8px 24px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
  z-index: 10;
}

.breadcrumbs button {
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  padding: 4px;
  margin: -4px;
  transition: color 0.2s;
}

.breadcrumbs button:hover {
  color: #000000;
}

.breadcrumbs button:focus,
.breadcrumbs button:focus-visible {
  outline: none;
  box-shadow: none;
}

.breadcrumbs button,
.breadcrumbs span.active-crumb {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  -webkit-appearance: none;
  appearance: none;
}

.breadcrumbs span.separator {
  color: rgba(0, 0, 0, 0.3);
  font-size: 12px;
}

.breadcrumbs span.active-crumb {
  color: #000000;
  font-weight: 700;
}

.screen .breadcrumbs span.active-crumb {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--brand-primary);
  text-underline-offset: 6px;
}

.screen .breadcrumbs button {
  font-weight: 600;
}

.breadcrumbs .btn-back-home {
  gap: 6px;
}

.breadcrumbs .btn-back-home svg {
  display: inline-block !important;
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  flex: 0 0 14px;
  opacity: 0.95;
}

/* Neo-Brutalist Buttons */
.neo-btn {
  background-color: var(--brand-primary);
  border: 2.035px solid var(--border-color);
  border-radius: 15px;
  box-shadow: 4px 4px 0px 0px var(--shadow-color);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  width: 100%;
}

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

.neo-btn-round {
  background-color: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: 99px;
  box-shadow: 4px 4px 0px 0px var(--shadow-color);
  color: var(--text-color);
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  transition: all 0.15s ease-out;
  padding: 18px 32px;
  width: 100%;
}

.neo-btn-round:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px 0px var(--shadow-color);
}

.neo-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid var(--border-color);
  box-shadow: 2px 2px 0px 0px var(--shadow-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease-out;
}

.neo-icon-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 0px 0px 0px 0px var(--shadow-color);
}

/* Wavy SVG Divider */
.wavy-divider {
  width: 100%;
  height: 8px;
  margin: 8px 0;
  opacity: 0.15;
}

/* Segmented Control / Sliding Tabs */
.segmented-control {
  width: 100%;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 15px;
  padding: 4px;
  display: flex;
  position: relative;
  box-shadow: inset 0px 2px 4px rgba(0, 0, 0, 0.05);
}

.segmented-control-bg {
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: calc(33.333% - 4px);
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1;
}

.segmented-control-bg.is-hidden {
  opacity: 0;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-btn.active {
  color: #000000;
}

.tab-btn:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 30%;
  bottom: 30%;
  width: 1px;
  background-color: rgba(0, 0, 0, 0.1);
  z-index: 3;
}

/* Process screen image layout */
.process-image-area {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 10px calc(108px + var(--safe-area-bottom));
  overflow: hidden;
  position: relative;
}

.process-hero-image {
  width: min(100%, 430px);
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: none;
  opacity: 0.95;
}

@media (max-height: 780px) {
  .process-image-area {
    padding: 0 8px calc(96px + var(--safe-area-bottom));
  }

  .process-hero-image {
    width: min(100%, 390px);
  }
}

/* Bottom Sheet Overlay */
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 900;
  display: none;
}

.sheet-backdrop.active {
  display: block;
  animation: fadeInGentle 0.3s ease-out forwards;
}

.bottom-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90%;
  background-color: #ffffff;
  border-top: 4px solid var(--border-color);
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  box-shadow: 0px -10px 45px rgba(0, 0, 0, 0.15);
  z-index: 950;
  transform: translateY(100%);
  display: flex;
  flex-direction: column;
  padding-bottom: calc(20px + var(--safe-area-bottom));
}

.bottom-sheet.active {
  transform: translateY(0);
  animation: slideUpSheet 0.4s cubic-bezier(0.32, 0.94, 0.6, 1) forwards;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 24px;
  position: relative;
  flex-shrink: 0;
}

.drag-handle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 6px;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 3px;
}

/* Modals */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.active {
  display: flex;
  animation: fadeInModal 0.3s ease-out forwards;
}

.modal-container {
  background-color: var(--bg-primary);
  width: 100%;
  max-width: 380px;
  border-radius: 24px;
  box-shadow: 0px 20px 50px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.05);
}

.modal-container.slide-up {
  animation: slideUpCenterModal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-header {
  background-color: var(--brand-primary);
  width: 100%;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #000000;
}

.modal-close-btn {
  position: absolute;
  right: 16px;
  width: 32px;
  height: 32px;
  background-color: rgba(0, 0, 0, 0.15);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.modal-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.25);
}

.modal-content {
  padding: 24px;
  overflow-y: auto;
  max-height: 65vh;
}

/* Pagination Dots */
.pagination-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-bottom: 48px;
  width: 100%;
  flex-shrink: 0;
}

.dot {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  touch-action: manipulation;
}

.dot::before {
  content: "";
  height: 6px;
  border-radius: 3px;
  transition: all 0.3s;
}

.dot.active {
  background-color: transparent;
}

.dot.active::before {
  width: 28px;
  background-color: #000000;
}

.dot.inactive {
  background-color: transparent;
}

.dot.inactive::before {
  width: 8px;
  background-color: var(--brand-primary);
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 380px;
  background-color: var(--bg-primary);
  border-radius: 30px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.08);
  padding: 8px 16px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  transition: transform 0.25s ease, opacity 0.25s ease;
  will-change: transform, opacity;
}

.bottom-nav.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 28px));
}

.bottom-nav.keyboard-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 28px));
}

.nav-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 56px;
  border-radius: 16px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  color: #000000;
}

.nav-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.nav-item:active {
  background-color: rgba(0, 0, 0, 0.1);
}

.nav-item span {
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}

.nav-item svg,
.genia-nav-icon {
  flex-shrink: 0;
}

.genia-nav-icon {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  filter: brightness(0);
}

.nav-item.active {
  background-color: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(42, 101, 226, 0.22);
  transform: translateY(-1px);
}

.nav-item.active .genia-nav-icon {
  filter: brightness(0) invert(1);
}

/* Specific Screen Styles */

/* Screen: Opening */
.opening-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 55%;
  background-color: var(--brand-primary);
  z-index: 1;
}

.opening-wave svg {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
}

.opening-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px calc(20px + var(--safe-area-bottom)) 20px;
}

.logo-text {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: #000000;
  margin-bottom: 20px;
}

.illustration-box {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 10px;
  margin-top: 0;
  padding: 0 12px;
  min-height: 280px;
}

.illustration-img {
  width: 549px;
  height: 366px;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center bottom;
  flex-shrink: 0;
}

.opening-subtitle {
  font-size: clamp(16px, 4.8vw, 20px);
  line-height: 1.3;
}

.opening-subtitle-line {
  display: block;
  white-space: nowrap;
}

.concept-video-btn {
  min-height: 76px;
  background-color: #ffffff;
  border-radius: 999px;
  justify-content: flex-start;
  gap: 14px;
  padding: 14px 18px;
  margin-bottom: 28px;
  overflow: visible;
  text-align: right;
}

.concept-video-icon {
  position: static;
  transform: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #000000;
  flex-shrink: 0;
}

.concept-video-label {
  display: block;
  width: auto;
  min-width: 0;
  text-align: right;
  padding-right: 0;
  font-weight: 700;
  font-size: clamp(17px, 4.6vw, 21px);
  line-height: 1.25;
  white-space: normal;
}

@media (max-width: 420px) {
  .concept-video-btn {
    min-height: 72px;
    gap: 12px;
    padding: 12px 16px;
  }

  .concept-video-icon {
    width: 40px;
    height: 40px;
  }

  .concept-video-label {
    font-size: 17px;
  }
}

/* Onboarding screens */
.onboarding-skip-btn {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 500;
  color: #000000;
  cursor: pointer;
  align-self: flex-start;
  position: relative;
  z-index: 5;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.onboarding-content {
  padding: 24px 18px 18px 18px;
  touch-action: pan-y;
}

.onboarding-img-box {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 0 8px;
}

.onboarding-img-box img {
  width: min(391px, 100%);
  height: min(484px, calc(100dvh - 300px));
  aspect-ratio: 185 / 229;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center bottom;
}

#screen-onboarding2 .onboarding-img-box img {
  width: min(414px, 100%);
  height: min(512px, calc(100dvh - 285px));
}

.onboarding-text-block {
  width: 100%;
  text-align: center;
  min-height: 148px;
  margin-top: 6px;
}

.onboarding-title {
  font-size: 22px;
  margin-bottom: 16px;
}

.onboarding-description {
  text-align: center;
  max-width: 88%;
  margin: 0 auto;
}

.onboarding-cta-slot {
  width: 100%;
  min-height: 88px;
  padding: 0 18px;
  margin-top: 8px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding-skip-placeholder {
  visibility: hidden;
  pointer-events: none;
}

.onboarding-cta-slot:empty::before {
  content: "";
  width: 100%;
  height: 1px;
}

.onboarding-content .pagination-dots {
  padding-bottom: 22px;
}

/* Screen Header Wave Pattern */
.screen-header-wave {
  position: relative;
  width: 100%;
  height: 120px;
  background-color: var(--brand-primary);
  flex-shrink: 0;
}

.screen-header-wave > svg {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 30px;
}

.screen-header-wave-small {
  position: relative;
  width: 100%;
  height: 80px;
  background-color: var(--brand-primary);
  flex-shrink: 0;
}

.screen-header-wave-small > svg {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 15px;
}

#btn-goto-ordersteps {
  background-color: var(--category-order);
}

#btn-goto-premeeting {
  background-color: var(--category-meeting);
}

#btn-goto-pause {
  background-color: var(--category-pause);
}

#btn-goto-videoinfo,
#btn-goto-concepts,
#screen-concepts .btn-concept-item,
#btn-concept-play-video {
  background-color: var(--category-order);
}

#screen-videoInfo [style*="background-color: rgba(205, 210, 246"],
#concept-details-sheet [style*="background-color: rgba(205, 210, 246"] {
  background-color: var(--category-order-soft) !important;
}

#btn-concept-play-video .concept-video-icon {
  background-color: #ffffff;
}

#btn-goto-process,
#btn-goto-preparation {
  background-color: var(--category-meeting);
}

#screen-process .segmented-control-bg,
#screen-preparation .checklist-info-badge {
  background-color: var(--category-meeting);
}

#screen-preparation .checklist-item.checked,
#process-phase-sheet [style*="background-color: rgba(205, 210, 246"] {
  background-color: var(--category-meeting-soft) !important;
}

.process-sheet-richtext {
  line-height: 1.6;
}

.process-sheet-richtext p + p {
  margin-top: 12px;
}

.process-sheet-richtext ul {
  margin: 6px 18px 0 0;
  padding: 0 18px 0 0;
}

.process-sheet-richtext li + li {
  margin-top: 10px;
}

.process-helper-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  align-self: flex-start;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--primary-blue);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.process-helper-link[hidden] {
  display: none !important;
}

.process-helper-link-arrow {
  font-size: 18px;
  line-height: 1;
  color: rgba(29, 86, 192, 0.75);
}

.process-helper-link:active {
  opacity: 0.75;
}

.process-sheet-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.process-sheet-tab-btn {
  flex: 1;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.55);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.process-sheet-tab-btn.active {
  background-color: var(--category-meeting);
  border-color: var(--category-meeting);
  color: #ffffff;
}

#btn-goto-geniaintro-frompause,
#btn-goto-selfwrite {
  background-color: var(--category-pause);
}

#screen-geniaIntro .note-input-card,
#screen-selfWrite .note-input-card,
#screen-selfWrite .note-item {
  border-color: var(--category-pause);
}

#screen-geniaIntro .screen-header-wave,
#screen-selfWrite .screen-header-wave {
  background-color: var(--category-pause);
}

.contact-screen-content {
  gap: 16px;
}

.contact-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 8px 0;
}

.contact-icon-shell {
  border: 1px solid rgba(0,0,0,0.2);
  background: white;
}

.contact-copy {
  text-align: right;
  flex: 1;
}

.contact-label {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
  color: #000000;
}

.contact-title {
  margin-bottom: 8px !important;
}

.contact-subtitle {
  margin-bottom: 8px !important;
}

.contact-about-btn {
  align-self: center;
  width: auto;
  max-width: none;
  min-height: 0;
  margin-top: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--shadow-color);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

.concept-btn-text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  white-space: pre-line;
}

/* Preparation Screen (Checklist) */
.checklist-reset-btn {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.4);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
}

.checklist-reset-btn:hover {
  color: #000000;
}

.checklist-item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  border-radius: 24px;
  padding: 14px 14px;
  margin-bottom: 14px;
  border: 2px solid #000000;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
  text-align: right;
  gap: 10px;
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.checklist-item.checked {
  background-color: rgba(205, 210, 246, 0.1);
  opacity: 0.7;
}

.checkbox-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.checklist-item.checked .checkbox-circle {
  background-color: #000000;
  border-color: #000000;
}

.checklist-text-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding: 2px 4px 0 4px;
}

.checklist-label-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.checklist-label {
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  line-height: 1.5;
  transition: all 0.3s;
  text-align: right;
  flex: 1;
  min-width: 0;
}

.checklist-item.checked .checklist-label {
  color: rgba(0, 0, 0, 0.3);
  text-decoration: line-through;
}

.checklist-info-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--brand-primary);
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-right: 0;
  vertical-align: middle;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.checklist-expand-btn {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.6);
  background: none;
  border: none;
  text-decoration: underline;
  font-weight: 600;
  margin-top: 4px;
  cursor: pointer;
  align-self: flex-start;
}

.checklist-actions {
  display: flex;
  flex-direction: row;
  gap: 6px;
  margin: 8px 0 0 0;
  flex-shrink: 0;
  width: 100%;
  direction: ltr;
  justify-content: flex-start;
}

.checklist-edit-btn, .checklist-delete-btn {
  background: none;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.checklist-edit-btn {
  color: rgba(0, 0, 0, 0.28);
}

.checklist-edit-btn:hover {
  color: #000000;
  background-color: rgba(0,0,0,0.05);
}

.checklist-delete-btn {
  color: rgba(0, 0, 0, 0.18);
}

.checklist-delete-btn:hover {
  color: #ef4444;
  background-color: #fef2f2;
}

.checklist-edit-btn svg,
.checklist-delete-btn svg {
  width: 16px;
  height: 16px;
}

.checklist-edit-input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  outline: none;
  font-size: 17px;
  font-weight: 700;
  color: #000000;
  padding: 4px 0;
  font-family: inherit;
}

.add-item-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  background-color: #ffffff;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0px 4px 12px rgba(0,0,0,0.02);
}

.add-item-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 8px;
}

/* Chat Screen */
.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 96px;
}

.chat-bubble-row {
  display: flex;
  width: 100%;
}

.chat-bubble-row.user {
  justify-content: flex-start;
}

.chat-bubble-row.bot {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.chat-bubble-row.user .chat-bubble {
  background-color: #000000;
  color: #ffffff;
  border-top-right-radius: 2px;
}

.chat-bubble-row.bot .chat-bubble {
  background-color: var(--brand-primary);
  color: #000000;
  border-top-left-radius: 2px;
  box-shadow: 0px 2px 8px rgba(0,0,0,0.05);
}

.chat-bubble p {
  margin-bottom: 12px;
}

.chat-bubble p:last-child {
  margin-bottom: 0;
}

.chat-bubble ul, .chat-bubble ol {
  margin-right: 20px;
  margin-bottom: 12px;
}

.chat-bubble li {
  margin-bottom: 6px;
}

.chat-bubble img {
  max-width: 100%;
  border-radius: 12px;
  margin-top: 8px;
  border: 1px solid rgba(0,0,0,0.1);
}

.chat-quick-prompts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
  padding-inline-start: 48px;
}

.chat-quick-prompt-btn {
  background-color: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  color: #000000;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  max-width: 100%;
  padding: 9px 13px;
  text-align: right;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.chat-quick-prompt-btn:active {
  transform: translateY(1px);
}

.chat-quick-prompt-btn:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

/* Typing Indicator */
.typing-bubble {
  background-color: var(--brand-primary);
  color: #000000;
  padding: 12px 16px;
  border-radius: 16px;
  border-top-left-radius: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

/* Floating Scroll to Top */
.scroll-top-btn {
  position: absolute;
  bottom: 110px;
  right: 24px;
  width: 40px;
  height: 40px;
  background-color: #ffffff;
  border: 2px solid #000000;
  border-radius: 50%;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  animation: bounceMini 2s infinite;
}

@keyframes bounceMini {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Chat Input Bar */
.chat-input-bar {
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 12px 16px calc(12px + var(--safe-area-bottom) + var(--keyboard-offset)) 16px;
  flex-shrink: 0;
  z-index: 20;
  box-shadow: 0px -4px 20px rgba(0,0,0,0.02);
  transition: padding-bottom 0.2s ease;
}

.chat-input-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #f5f5f5;
  border-radius: 99px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 4px;
  padding-right: 16px;
  transition: border-color 0.2s;
}

.chat-input-container:focus-within {
  border-color: rgba(0, 0, 0, 0.3);
}

.chat-input-field {
  flex: 1;
  height: 44px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #000000;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
}

.chat-send-btn:active {
  transform: scale(0.9);
}

.chat-send-btn:disabled,
.chat-input-field:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.chat-send-btn:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

.chat-header-action-btn {
  border: none;
  background: #f5f5f5;
  color: rgba(0, 0, 0, 0.72);
  box-shadow: none;
  border-radius: 999px;
  padding: 0 14px;
  height: 40px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.chat-header-action-btn:active {
  transform: translateY(1px);
}

.related-content-section {
  width: 100%;
  margin-top: 16px;
  padding-top: 0;
}

#screen-concepts .related-content-section {
  margin-top: 32px;
}

.related-content-title {
  font-size: 16px;
  font-weight: 700;
  text-align: right;
  margin-bottom: 10px;
  color: rgba(0,0,0,0.88);
}

.related-content-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.related-link-card {
  width: 100%;
  text-align: right;
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 10px 22px 10px 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: inherit;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.related-link-card:not(:last-child) {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.related-link-card:active {
  transform: translateY(1px);
  opacity: 0.7;
}

.related-link-card::after {
  content: '›';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  line-height: 1;
  color: rgba(0,0,0,0.34);
}

.related-link-label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  padding-left: 0;
  display: block;
  width: 100%;
  margin-bottom: 2px;
}

.related-link-copy {
  font-size: 12px;
  color: rgba(0,0,0,0.52);
  line-height: 1.4;
  padding-left: 0;
  display: block;
  width: 100%;
  max-width: calc(100% - 18px);
}

.related-link-hint {
  display: none;
}

/* Self Write Screen */
.note-input-card {
  width: 100%;
  min-height: 200px;
  background-color: #ffffff;
  border: 1px solid var(--brand-primary);
  border-radius: 24px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  padding: 24px;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.keyboard-aware-screen-body {
  transition: padding-bottom 0.2s ease;
}

#screen-preparation .keyboard-aware-screen-body,
#screen-selfWrite .keyboard-aware-screen-body {
  padding-bottom: calc(128px + var(--keyboard-offset)) !important;
}

.note-textarea {
  flex: 1;
  width: 100%;
  min-height: 100px;
  border: none;
  outline: none;
  font-size: 16px;
  text-align: center;
  resize: none;
  font-family: inherit;
  margin-top: 16px;
}

.note-save-btn-wrapper {
  display: none;
  justify-content: flex-end;
  width: 100%;
  margin-top: 12px;
}

.note-save-btn {
  width: auto;
  min-width: 92px;
  height: 40px;
  padding: 0 18px;
  border: 1.5px solid var(--border-color);
  border-radius: 999px;
  background-color: var(--brand-primary);
  color: var(--text-color);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--shadow-color);
  cursor: pointer;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.note-save-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--shadow-color);
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.note-item {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid var(--brand-primary);
  border-radius: 15px;
  padding: 16px;
  box-shadow: 0px 2px 8px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
}

.note-text {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  white-space: pre-wrap;
  margin-bottom: 16px;
}

.note-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  padding-top: 12px;
}

.note-action-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #4b5563;
  cursor: pointer;
  transition: color 0.2s;
}

.note-action-btn:hover {
  color: #000000;
}

.note-action-btn.delete:hover {
  color: #ef4444;
}

/* Vimeo Vertical Player Overlay */
.video-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.video-overlay.active {
  display: flex;
  animation: fadeInModal 0.3s ease-out forwards;
}

.video-overlay-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 48px 16px 16px 16px;
  display: flex;
  justify-content: space-between;
  z-index: 1120;
}

.video-player-container {
  width: 90vw;
  max-width: 340px;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0px 10px 40px rgba(0,0,0,0.5);
  z-index: 1110;
  background-color: rgba(0,0,0,0.1);
}

.video-player-container iframe {
  width: 100%;
  height: 100%;
}

/* Small-phone optimization */
@media (max-width: 390px), (max-height: 760px) {
  .main-title {
    font-size: clamp(26px, 7vw, 32px);
  }

  .sub-title {
    font-size: clamp(16px, 4.4vw, 18px);
    line-height: 1.35;
  }

  .button-text {
    font-size: clamp(18px, 4.8vw, 20px);
  }

  .bottom-nav {
    bottom: 10px;
    width: 94%;
    padding: 6px 12px;
    border-radius: 24px;
  }

  .nav-item {
    width: 50px;
    height: 50px;
  }

  .nav-item span {
    font-size: 11px;
    margin-top: 2px;
  }

  .contact-card {
    padding: 16px;
    border-radius: 20px;
  }

  .contact-row {
    gap: 12px;
  }

  .contact-label {
    font-size: 16px;
  }

  .opening-content {
    padding: 22px 14px calc(12px + var(--safe-area-bottom)) 14px;
  }

  .logo-text {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .opening-subtitle {
    font-size: 17px;
    line-height: 1.3;
  }

  .illustration-box {
    min-height: 290px;
    margin-top: -30px;
    margin-bottom: 2px;
    padding: 0 2px;
  }

  .illustration-img {
    transform: scale(1.2);
    transform-origin: center bottom;
  }

  .onboarding-content {
    padding: 16px 14px 10px 14px;
  }

  .onboarding-img-box {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .onboarding-img-box img {
    width: min(391px, 100%);
    height: min(484px, calc(100dvh - 280px));
    aspect-ratio: 185 / 229;
  }

  #screen-onboarding2 .onboarding-img-box img {
    width: min(414px, 100%);
    height: min(512px, calc(100dvh - 265px));
  }

  .onboarding-title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .onboarding-description {
    max-width: 94%;
    font-size: 15px;
    line-height: 1.45;
  }

  .onboarding-text-block {
    min-height: 122px;
  }

  .onboarding-cta-slot {
    min-height: 74px;
    margin-top: 4px;
    margin-bottom: 2px;
    padding: 0 12px;
  }

  .onboarding-content .pagination-dots {
    padding-bottom: 8px;
  }

  #screen-home > div:last-child,
  #screen-orderSteps > div:last-child,
  #screen-videoInfo > div:last-child,
  #screen-concepts > div:last-child,
  #screen-preMeeting > div:last-child,
  #screen-preparation > div:last-child,
  #screen-pause > div:last-child,
  #screen-geniaIntro > div:last-child,
  #screen-selfWrite > div:last-child {
    padding-bottom: var(--bottom-nav-clearance) !important;
  }

  #screen-home > div:last-child,
  #screen-orderSteps > div:last-child,
  #screen-preMeeting > div:last-child,
  #screen-pause > div:last-child {
    padding-top: 28px !important;
  }

  #screen-home .sub-title,
  #screen-orderSteps .sub-title,
  #screen-pause .sub-title {
    margin-bottom: 30px !important;
  }

  #screen-home > div:last-child > div:last-child,
  #screen-orderSteps > div:last-child > div:last-child,
  #screen-preMeeting > div:last-child > div:last-child,
  #screen-pause > div:last-child > div:last-child {
    gap: 16px !important;
  }

  #btn-goto-ordersteps,
  #btn-goto-premeeting,
  #btn-goto-pause,
  #btn-goto-videoinfo,
  #btn-goto-concepts {
    height: 104px !important;
  }

  #btn-goto-process,
  #btn-goto-preparation,
  #btn-goto-geniaintro-frompause,
  #btn-goto-selfwrite {
    height: 116px !important;
  }
}

@media (max-height: 700px) {
  .illustration-box {
    min-height: 260px;
    margin-top: -20px;
  }

  .illustration-img {
    transform: scale(1.14);
  }
}

/* Responsive phone fit */
#screen-opening,
#screen-onboarding1,
#screen-onboarding2,
#screen-onboarding3 {
  overflow: hidden;
}

#screen-home,
#screen-orderSteps,
#screen-videoInfo,
#screen-concepts,
#screen-preMeeting,
#screen-preparation,
#screen-pause,
#screen-geniaIntro,
#screen-selfWrite,
#screen-process {
  overflow-y: auto;
}

#screen-home > div:last-child,
#screen-orderSteps > div:last-child,
#screen-videoInfo > div:last-child,
#screen-concepts > div:last-child,
#screen-preMeeting > div:last-child,
#screen-preparation > div:last-child,
#screen-pause > div:last-child,
#screen-geniaIntro > div:last-child,
#screen-selfWrite > div:last-child {
  flex: 0 0 auto !important;
  min-height: auto;
}

.screen-header-wave {
  height: clamp(78px, 16dvh, 120px);
}

.screen-header-wave-small {
  height: clamp(56px, 10dvh, 80px);
}

.breadcrumbs {
  flex-wrap: nowrap;
  min-width: 0;
  padding: clamp(10px, 2.2dvh, 16px) clamp(14px, 5vw, 24px) 6px;
  white-space: nowrap;
  overflow: hidden;
}

.breadcrumbs button,
.breadcrumbs span {
  flex-shrink: 0;
}

.breadcrumbs .active-crumb {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottom-nav {
  bottom: max(10px, var(--safe-area-bottom));
  width: min(94%, 380px);
  padding: 6px clamp(8px, 3vw, 16px);
}

.nav-item {
  height: clamp(48px, 8dvh, 56px);
}

.main-title {
  font-size: clamp(24px, 7vw, 32px);
}

.sub-title {
  font-size: clamp(15px, 4.4vw, 18px);
}

.button-text {
  font-size: clamp(17px, 5vw, 20px);
}

.body-text {
  font-size: clamp(14px, 4vw, 16px);
}

.neo-btn {
  min-height: 72px;
  height: auto;
  padding: clamp(12px, 3vw, 16px) clamp(14px, 5vw, 24px);
}

#screen-home > div:last-child,
#screen-orderSteps > div:last-child,
#screen-preMeeting > div:last-child,
#screen-pause > div:last-child {
  justify-content: flex-start;
  padding: clamp(16px, 4dvh, 40px) clamp(16px, 5.5vw, 24px) var(--bottom-nav-clearance) !important;
}

#screen-videoInfo > div:last-child,
#screen-concepts > div:last-child,
#screen-preparation > div:last-child,
#screen-geniaIntro > div:last-child,
#screen-selfWrite > div:last-child {
  padding-bottom: var(--bottom-nav-clearance) !important;
}

#screen-home .sub-title,
#screen-orderSteps .sub-title,
#screen-preMeeting .sub-title,
#screen-pause .sub-title {
  margin-bottom: clamp(18px, 4dvh, 48px) !important;
}

#screen-home > div:last-child > div:last-child,
#screen-orderSteps > div:last-child > div:last-child,
#screen-preMeeting > div:last-child > div:last-child,
#screen-pause > div:last-child > div:last-child {
  gap: clamp(12px, 2.5dvh, 24px) !important;
}

#btn-goto-ordersteps,
#btn-goto-premeeting,
#btn-goto-pause,
#btn-goto-videoinfo,
#btn-goto-concepts {
  height: clamp(78px, 12.5dvh, 120px) !important;
}

#btn-goto-process,
#btn-goto-preparation,
#btn-goto-geniaintro-frompause,
#btn-goto-selfwrite {
  height: clamp(84px, 13.5dvh, 130px) !important;
}

#btn-goto-process .body-text,
#btn-goto-preparation .body-text,
#btn-goto-geniaintro-frompause .body-text,
#btn-goto-selfwrite .body-text {
  line-height: 1.35;
}

#btn-goto-selfwrite .body-text {
  white-space: normal !important;
}

.home-choice-icon {
  right: 16px;
  width: 26px;
  height: 26px;
}

.home-choice-icon svg {
  width: 22px;
  height: 22px;
}

.opening-content {
  padding: clamp(18px, 4.5dvh, 40px) clamp(14px, 5vw, 20px) calc(16px + var(--safe-area-bottom));
  gap: clamp(4px, 1.1dvh, 10px);
}

.logo-text {
  margin-bottom: clamp(6px, 1.8dvh, 20px);
}

#screen-opening .main-title {
  font-size: clamp(32px, 10vw, 42px) !important;
}

.opening-subtitle {
  font-size: clamp(14px, 4.6vw, 20px);
}

.opening-subtitle-line {
  white-space: normal;
}

.illustration-box {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 42dvh;
  margin: 0;
  padding: 0;
}

.illustration-img {
  width: min(100%, 380px);
  height: 100%;
  max-height: 100%;
  transform: none;
}

#screen-opening .neo-btn-round {
  padding: clamp(14px, 3.8dvh, 18px) 32px;
}

#screen-opening .opening-content > div[style*="margin-bottom: 24px"] {
  margin-bottom: clamp(8px, 2.2dvh, 24px) !important;
}

#screen-opening .opening-content > div[style*="margin-top: auto"] {
  margin-top: 0 !important;
  margin-bottom: clamp(4px, 1.5dvh, 24px) !important;
}

.onboarding-content {
  padding: clamp(14px, 3dvh, 24px) clamp(14px, 4.5vw, 18px) calc(10px + var(--safe-area-bottom));
  gap: clamp(4px, 1dvh, 10px);
  display: grid;
  grid-template-rows:
    auto
    minmax(0, 1fr)
    clamp(132px, 23dvh, 166px)
    clamp(58px, 10dvh, 88px)
    auto;
  align-items: center;
}

.onboarding-skip-btn {
  flex: 0 0 auto;
  font-size: clamp(15px, 4.5vw, 18px);
  justify-self: start;
}

.onboarding-img-box {
  align-self: end;
  flex: initial;
  min-height: 0;
  max-height: none;
  padding: 0;
}

.onboarding-img-box img,
#screen-onboarding2 .onboarding-img-box img {
  width: min(100%, 390px);
  height: 100%;
  max-height: 100%;
}

.onboarding-text-block {
  align-self: start;
  flex: initial;
  min-height: 0;
  margin-top: clamp(2px, 1dvh, 6px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.onboarding-title {
  font-size: clamp(18px, 5.4vw, 22px);
  margin-bottom: clamp(8px, 1.8dvh, 16px);
}

.onboarding-description {
  max-width: min(94%, 340px);
  font-size: clamp(14px, 4vw, 16px);
  line-height: 1.42;
}

.onboarding-cta-slot {
  align-self: center;
  flex: initial;
  min-height: clamp(58px, 11dvh, 88px);
  margin: 0;
  padding: 0 clamp(10px, 4vw, 18px);
}

.onboarding-content .pagination-dots {
  flex: initial;
  padding-bottom: clamp(2px, 1.5dvh, 22px);
}

#screen-process .screen-header-wave {
  padding-bottom: clamp(18px, 4dvh, 28px) !important;
}

#screen-process .breadcrumbs {
  padding-top: clamp(18px, 4dvh, 40px) !important;
}

#screen-process .screen-header-wave > div[style*="margin-top"] {
  margin-top: clamp(14px, 3dvh, 40px) !important;
  margin-bottom: clamp(14px, 3dvh, 32px) !important;
}

#screen-process .screen-header-wave > div[style*="padding: 0 24px"] {
  padding: 0 clamp(16px, 5vw, 24px) !important;
}

.process-image-area {
  min-height: 0;
  padding-bottom: var(--bottom-nav-clearance);
}

.process-hero-image {
  max-height: 100%;
}

@media (max-width: 360px), (max-height: 680px) {
  .screen-header-wave {
    height: clamp(64px, 13dvh, 92px);
  }

  .main-title {
    font-size: clamp(22px, 6.6vw, 28px);
  }

  .sub-title {
    line-height: 1.32;
  }

  .bottom-nav {
    border-radius: 22px;
  }

  .nav-item svg,
  .genia-nav-icon {
    width: 22px;
    height: 22px;
  }

  .nav-item span {
    font-size: 11px;
  }

  #screen-home > div:last-child,
  #screen-orderSteps > div:last-child,
  #screen-preMeeting > div:last-child,
  #screen-pause > div:last-child {
    padding-top: 14px !important;
    padding-bottom: var(--bottom-nav-clearance) !important;
  }

  #screen-home .sub-title,
  #screen-orderSteps .sub-title,
  #screen-preMeeting .sub-title,
  #screen-pause .sub-title {
    margin-bottom: 14px !important;
  }

  #btn-goto-ordersteps,
  #btn-goto-premeeting,
  #btn-goto-pause,
  #btn-goto-videoinfo,
  #btn-goto-concepts {
    height: clamp(68px, 11dvh, 92px) !important;
  }

  #btn-goto-process,
  #btn-goto-preparation,
  #btn-goto-geniaintro-frompause,
  #btn-goto-selfwrite {
    height: clamp(76px, 12dvh, 102px) !important;
  }

  .illustration-box {
    max-height: 38dvh;
  }

  .onboarding-cta-slot {
    min-height: 52px;
  }

  .dot {
    width: 28px;
    height: 28px;
  }
}

@media (max-height: 680px) {
  .onboarding-content {
    grid-template-rows:
      auto
      minmax(0, 1fr)
      clamp(116px, 21dvh, 136px)
      clamp(52px, 9dvh, 66px)
      auto;
  }

  .onboarding-title {
    margin-bottom: 8px;
  }

  .onboarding-description {
    line-height: 1.36;
  }
}

#screen-geniaIntro {
  overflow: hidden;
}

#screen-geniaIntro > div:last-child {
  flex: 1 1 auto !important;
  min-height: 0;
  justify-content: flex-start;
  padding: clamp(6px, 1.4dvh, 12px) 24px calc(var(--bottom-nav-clearance) + 10px) !important;
}

#screen-geniaIntro > div:last-child > div:first-child {
  width: min(96vw, 390px) !important;
  margin: clamp(0px, 0.6dvh, 6px) -2vw clamp(8px, 1.8dvh, 18px) !important;
}

#screen-geniaIntro > div:last-child > div:first-child > div {
  aspect-ratio: 350 / 178 !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
}

#screen-geniaIntro h1.main-title {
  font-size: clamp(21px, 5.6vw, 27px) !important;
  margin-bottom: clamp(8px, 1.5dvh, 14px) !important;
}

#screen-geniaIntro .body-text {
  font-size: clamp(14px, 3.8vw, 16px);
  line-height: 1.35;
  margin-bottom: clamp(8px, 1.8dvh, 16px) !important;
}

#screen-geniaIntro .body-text p {
  margin-bottom: clamp(6px, 1.2dvh, 10px) !important;
}

#screen-geniaIntro .body-text p:last-child {
  margin-top: clamp(6px, 1.2dvh, 10px) !important;
}

#btn-chat-trigger {
  min-height: clamp(56px, 8dvh, 72px) !important;
  height: clamp(56px, 8dvh, 72px) !important;
  border-radius: 24px !important;
  padding: 14px 22px !important;
  margin-top: auto;
  margin-bottom: 0 !important;
}

@media (max-height: 700px), (max-width: 360px) {
  #screen-opening,
  #screen-onboarding1,
  #screen-onboarding2,
  #screen-onboarding3 {
    overflow-y: auto;
  }

  #screen-onboarding1 .opening-wave,
  #screen-onboarding2 .opening-wave,
  #screen-onboarding3 .opening-wave {
    height: clamp(210px, 39dvh, 280px) !important;
  }

  #screen-onboarding1 .onboarding-content,
  #screen-onboarding2 .onboarding-content,
  #screen-onboarding3 .onboarding-content {
    min-height: 100%;
    padding-top: clamp(10px, 2dvh, 16px);
    padding-bottom: calc(8px + var(--safe-area-bottom));
    grid-template-rows:
      auto
      minmax(150px, 42dvh)
      auto
      minmax(34px, auto)
      auto;
  }

  #screen-onboarding1 .onboarding-img-box,
  #screen-onboarding2 .onboarding-img-box,
  #screen-onboarding3 .onboarding-img-box {
    align-self: end;
    max-height: 42dvh;
  }

  #screen-onboarding1 .onboarding-img-box img,
  #screen-onboarding2 .onboarding-img-box img,
  #screen-onboarding3 .onboarding-img-box img {
    max-height: 42dvh;
    width: min(88vw, 330px);
  }

  .onboarding-text-block {
    align-self: start;
    min-height: 0;
  }

  .onboarding-title {
    font-size: clamp(17px, 4.9vw, 20px);
    margin-bottom: 6px;
  }

  .onboarding-description {
    font-size: clamp(13px, 3.7vw, 15px);
    line-height: 1.34;
  }

  .onboarding-cta-slot {
    min-height: 34px;
  }

  #screen-onboarding3 .onboarding-cta-slot {
    min-height: 48px;
  }

  .onboarding-content .pagination-dots {
    padding-bottom: 4px;
  }
}

@media (max-height: 700px), (max-width: 360px) {
  #screen-geniaIntro .screen-header-wave {
    height: clamp(66px, 12dvh, 84px) !important;
  }

  #screen-geniaIntro .screen-header-wave .main-title {
    font-size: 20px !important;
    padding-top: 14px !important;
    padding-bottom: 8px !important;
  }

  #screen-geniaIntro .breadcrumbs {
    padding-top: 10px;
    padding-bottom: 4px;
  }

  #screen-geniaIntro > div:last-child {
    padding-top: 4px !important;
    padding-bottom: calc(88px + var(--safe-area-bottom)) !important;
  }

  #screen-geniaIntro > div:last-child > div:first-child {
    width: min(90vw, 340px) !important;
    margin-bottom: 6px !important;
  }

  #screen-geniaIntro > div:last-child > div:first-child > div {
    aspect-ratio: 350 / 176 !important;
  }

  #screen-geniaIntro h1.main-title {
    font-size: 21px !important;
    margin-bottom: 8px !important;
  }

  #screen-geniaIntro .body-text {
    font-size: 13px;
    line-height: 1.32;
    margin-bottom: 10px !important;
  }

  #screen-geniaIntro .body-text p {
    margin-bottom: 6px !important;
  }

  #screen-geniaIntro .body-text p:last-child {
    margin-top: 8px !important;
  }

  #btn-chat-trigger {
    min-height: 58px !important;
    height: 58px !important;
    padding: 14px 18px !important;
  }
}
