* {
  box-sizing: border-box;
}
.grecaptcha-badge {
  bottom: 20px !important;
  right: 0 !important;
}
.sticky-header {
  position: relative;
  top: 20px;
  width: 100%;
  z-index: 99;
  background: rgba(250, 246, 242, 0.98);
  box-shadow: 0 4px 24px #357abd13;
  border-bottom: 1.5px solid #e5f5ff;
  transition: background 0.2s;
}
.sticky-header.scrolled {
  padding: 3px 0 !important;
  background: rgba(250, 246, 242, 0.98);
  box-shadow: 0 4px 22px #357abd1a;
  border-bottom: 1.5px solid #b8d5ee;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.margin-compensator {
  margin-top: 60px;
}
.sticky-header .logo {
  transition: font-size 0.24s, padding 0.24s;
}
.sticky-header.scrolled .logo {
  font-size: 1.25rem !important;
  padding-top: 0;
  padding-bottom: 0;
}
.sticky-header .header-content {
  transition: padding 0.24s;
}
.sticky-header.scrolled .header-content {
  padding: 4px 20px 2px 16px !important;
}
.sticky-header nav .nav-link,
.sticky-header .cta-nav-button {
  transition: font-size 0.22s, padding 0.22s;
}
.sticky-header.scrolled nav .nav-link {
  font-size: 1rem !important;
  padding: 4px 8px !important;
}
.sticky-header.scrolled .cta-nav-button {
  font-size: 1rem !important;
  padding: 6px 15px !important;
}
.header-content {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px 10px 26px;
}
.logo {
  color: #357abd;
}
nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-link {
  color: #222;
  font-size: 1.12rem;
  font-weight: 700;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 7px;
  transition: transform 0.17s;
}
.nav-link:hover {
  /* background: #e5f5ff; */
  /* color: #357abd; */
  transform: scale(1.04);
}
.cta-nav-button {
  background: #357abd;
  color: #fff;
  font-size: 1.13rem;
  font-weight: 800;
  border-radius: 8px;
  padding: 9px 22px;
  margin-left: 10px;
  box-shadow: 0 2px 9px #357abd44;
  text-decoration: none;
  transition: background 0.17s, transform 0.17s;
}
.cta-nav-button:hover {
  background: #2a5f99;
  color: #fff;
  transform: scale(1.04);
}
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #f4edfa 0%, #d4f0ff 100%);
  color: #231f1a;
  line-height: 1.6;
}
header {
  padding: 20px;
  text-align: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 36px;
  /* box-shadow: 0 8px 48px #357abd15; */
}
section {
  padding: 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 36px;
  /* box-shadow: 0 8px 48px #357abd15; */
}
h1 {
  font-size: 3.7rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: #222;
  margin-bottom: 0.5rem;
}
h2 {
  font-size: 3.5rem;
  color: #357abd;
  letter-spacing: 0;
  margin-bottom: 0.5rem;
}
h3 {
  font-size: 1.5rem;
  color: #357abd;
}
.cta-button {
  background: #357abd;
  color: white;
  border: none;
  padding: 10px 30px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 6px;
  margin-top: 20px;
  box-shadow: 0 2px 12px #357abd44;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  transition: background 0.2s, transform 0.2s;
}
.cta-button:hover {
  background: #2a5f99;
  transform: scale(1.04);
}
.card {
  /* background: rgba(255, 255, 255, 0.93); */
  background: rgba(250, 246, 242, 0.98);
  margin: 20px auto;
  padding: 20px 20px 20px 60px;
  border-radius: 20px;
  width: 100%;
  max-width: 1200px;
  text-align: left;
  box-shadow: 0 6px 32px #5dade255;
  font-size: 1.2rem;
  border: 1.5px solid #d5e7f9;
}

.card__text {
  font-size: 2.4rem;
  margin: 0;
  font-weight: 700;
}
.card__text_small {
  font-size: 1.4rem;
}
.card__form {
  width: 50%;
  margin: auto;
}
.highlight {
  color: #6fb3f2;
  font-weight: 700;
  background: #e5f5ff;
  padding: 0 8px;
  border-radius: 5px;
}
.form-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  margin: 14px 0;
  border: 1.5px solid #b8d5ee;
  border-radius: 10px;
  font-size: 1.15rem;
  background: #f9fcff;
  color: #231f1a;
  box-shadow: 0 2px 8px #a5d7ff22;
}
textarea.form-input {
  resize: vertical;
  font-family: inherit;
  line-height: 1.4;
  vertical-align: top;
  text-align: left;
}

/* Make forms smaller and more compact */
#waitlist .form-input,
#feedback .form-input {
  font-size: 1rem;
  padding: 8px;
  margin: 10px 0;
}

#waitlist .card,
#feedback .card {
  padding: 16px 32px;
  text-align: center;
}
.main-feature__container {
  position: relative;
  background: rgba(250, 246, 242, 0.98);
  border-radius: 20px;
  padding: 10px 20px;
  box-shadow: 0 6px 32px #5dade255;
}
.main-feature {
  position: relative;
  /* font-weight: 700; */
  /* background: rgba(0, 0, 0, 0.01); */
  /* background: rgba(250, 246, 242, 0.98); */
  border-radius: 7px;
  padding: 10px;
  /* box-shadow: 0 6px 32px #5dade255; */
  /* box-shadow: 0 4px 24px #357abd13; */
  /* border-bottom: 1.5px solid #e5f5ff; */
  display: flex;
  flex-direction: column;
}
.main-feature__header {
  font-size: 1.5rem;
  text-align: start;
  font-weight: 700;
  padding: 0;
  margin: 0;
}
.main-feature__text {
  text-align: start;
  padding: 0;
  margin: 0;
}
.language-tooltip {
  /* display: inline-block; */
  position: relative;
  cursor: pointer;
  /* color: #357abd;
        font-weight: 700;
        background: #e5f5ff;
        border-radius: 10px;
        padding: 2px 10px;
        border: none; */
  /* border-bottom: 1px dotted #564d40; */
  /* box-shadow: 0 1px 8px #357abd1a; */
}
.language-tooltip:hover .tooltip-content {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(100%);
  opacity: 1;
}
div.tooltip-content {
  display: grid;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  position: absolute;
  background: #fff;
  border: 1.5px solid #b8d5ee;
  padding: 10px;
  border-radius: 9px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  max-width: none;
  white-space: normal;
  grid-template-columns: repeat(2, max-content);
  gap: 8px 16px;
  text-align: left;
  z-index: 100;
  transition: opacity 0.3s ease;
  /* transition: opacity 0.3s ease, transform 0.3s ease; */
  overflow-y: visible;
  box-shadow: 0 3px 14px #357abd33;
}
/* Custom scrollbar for tooltip */
.language-tooltip .tooltip-content::-webkit-scrollbar {
  width: 8px;
}
.language-tooltip .tooltip-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}
.language-tooltip .tooltip-content::-webkit-scrollbar-thumb {
  background: #c1b7a6;
  border-radius: 4px;
}
.language-tooltip .tooltip-content::-webkit-scrollbar-thumb:hover {
  background: #a49d93;
}
/* Firefox scrollbar */
.language-tooltip .tooltip-content {
  scrollbar-width: thin;
  scrollbar-color: #c1b7a6 #f1f1f1;
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Speech bubble for sample phrase */
.speech-bubble {
  display: inline-block;
  position: relative;
  background: #fff;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 1.25rem;
  line-height: 1.4;
  box-shadow: 0 4px 18px #6fb3f244;
  color: #357abd;
  font-weight: 700;
  letter-spacing: 0.02rem;
  border: 1.5px solid #d5e7f9;
}
.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 50%;
  border-width: 16px 16px 0;
  border-style: solid;
  border-color: #fff transparent;
  display: block;
  width: 0;
  transform: translateX(-50%);
  filter: drop-shadow(0px 5px 4px #6fb3f244);
}
/* Round create-note button */
.round-button-container {
  margin: 0 auto;
  text-align: center;
  width: 300px;
}
.round-button {
  width: 220px;
  height: 220px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(#6fb3f2, #357abd);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.round-button:hover {
  transform: scale(0.95);
  background: linear-gradient(#5dade2, #2e86c1);
}
/* Pulse animation for mic icon */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
.mic-icon {
  animation: pulse 1s infinite;
  transform-origin: center;
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 2px 12px #6fb3f2aa);
}
a {
  color: #357abd;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-decoration-line: none;
}

@media (max-width: 800px) {
  /* Simplified mobile header - no animations, minimal nav */
  .sticky-header {
    top: 0 !important;
    background: rgba(250, 246, 242, 1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    border-bottom: 1px solid #e5e5e5 !important;
    border-radius: 0 !important;
    transition: none !important;
    z-index: 100 !important;
  }

  .sticky-header.scrolled {
    background: rgba(250, 246, 242, 1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    border-bottom: 1px solid #e5e5e5 !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
  }

  .header-content {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 20px !important;
    gap: 0 !important;
  }

  /* Hide navigation menu on mobile */
  nav .nav-link {
    display: none !important;
  }

  /* Keep only download button */
  .cta-nav-button {
    display: inline-block !important;
    font-size: 1rem !important;
    padding: 10px 16px !important;
    margin-left: 0 !important;
  }

  .logo {
    font-size: 1.6rem !important;
  }

  /* Remove header margin on mobile */
  header {
    margin: 0 !important;
  }
  #main-hero > div {
    flex-direction: column !important;
    gap: 30px !important;
    align-items: center !important;
    padding: 10px !important;
  }

  .main-feature__container {
    width: 100% !important;
    order: 2;
  }
  .card {
    padding: 20px 16px !important;
    margin: 16px auto !important;
  }
  .card > div {
    flex-direction: column !important;
    text-align: center !important;
    gap: 20px !important;
  }
  .card__form {
    width: 100%;
    margin: auto;
  }
}

@media (max-width: 700px) {
  .header-content {
    /* flex-direction: column; */
    gap: 8px;
    padding: 12px 4vw 9px 4vw;
  }
  nav {
    gap: 13px;
    flex-wrap: wrap;
  }
  .logo {
    font-size: 1.3rem;
  }
}

@media (max-width: 600px) {
  header,
  section {
    padding: 32px 6px;
  }
  .card {
    width: 98%;
  }
  h1 {
    font-size: 2rem;
  }
  .round-button {
    width: 120px;
    height: 120px;
  }
  img {
    max-width: 130px;
  }
  .speech-bubble {
    font-size: 1rem;
  }
}

/* iPhone 16 Pro and 16 Pro Plus optimizations */
@media (max-width: 430px) {
  /* Hero section mobile layout */
  #main-hero h1 {
    font-size: 2.2rem !important;
    margin-bottom: 0.3rem;
  }

  #main-hero p {
    font-size: 1.2rem !important;
    margin-bottom: 2rem;
  }

  /* Make H2 headers smaller on mobile */
  h2 {
    font-size: 2.2rem !important;
  }

  /* Break "Get 3 Months Free" to next line on mobile */
  #waitlist h2 {
    white-space: pre-line !important;
  }

  /* Stack hero content vertically */
  /* #main-hero > div {
    flex-direction: column !important;
    gap: 30px !important;
    align-items: center !important;
    padding: 10px !important;
  }

  .main-feature__container {
    width: 100% !important;
    order: 2;
  } */

  /* Microphone button container */
  #main-hero > div > div:last-child {
    width: 100% !important;
    order: 1;
  }

  .round-button {
    width: 160px !important;
    height: 160px !important;
  }

  .speech-bubble {
    font-size: 1.1rem !important;
    padding: 8px 12px !important;
  }

  /* Feature cards mobile redesign */
  /* .card > div {
    flex-direction: column !important;
    text-align: center !important;
    gap: 20px !important;
  } */

  .card__text {
    font-size: 1.4rem !important;
  }

  .card__text_small {
    font-size: 1.1rem !important;
  }

  .card img {
    width: 280px !important;
    max-width: 90% !important;
    margin: 0 auto !important;
  }

  /* Make iCloud image smaller on mobile */
  .card img[src*="icloud.png"] {
    width: 80px !important;
    max-width: 80px !important;
  }

  /* Improve main-feature-container for mobile */
  .main-feature__container {
    border-radius: 12px !important;
    padding: 12px 16px !important;
    gap: 6px !important;
    box-shadow: 0 3px 16px #5dade233 !important;
  }

  .main-feature {
    padding: 6px !important;
    text-align: center !important;
  }

  .main-feature__header {
    font-size: 1.3rem !important;
    text-align: center !important;
    margin-bottom: 6px !important;
    font-weight: 800 !important;
    color: #357abd !important;
  }

  .main-feature__text {
    font-size: 1rem !important;
    text-align: center !important;
    line-height: 1.4 !important;
    margin: 0 !important;
  }

  /* Language tooltip mobile fix */
  .tooltip-content {
    grid-template-columns: 1fr !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    left: 10px !important;
    right: 10px !important;
    transform: none !important;
    width: calc(100vw - 40px) !important;
    max-width: 300px !important;
    font-size: 0.9rem !important;
    padding: 12px !important;
  }

  .language-tooltip:hover .tooltip-content {
    transform: none !important;
  }

  /* Make language feature more touch-friendly */
  .language-tooltip {
    min-height: 44px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  /* Form and button optimizations */
  .form-input {
    padding: 12px !important;
    font-size: 1.1rem !important;
  }

  .cta-button {
    padding: 16px 32px !important;
    font-size: 1.1rem !important;
  }

  /* Better spacing for mobile */
  header,
  section {
    padding: 20px 16px !important;
  }

  /* .card {
    padding: 20px 16px !important;
    margin: 16px auto !important;
  } */
}

/* Message and form feedback styles */
.message {
  padding: 12px 16px;
  margin: 15px 0;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.message.show {
  opacity: 1;
  transform: translateY(0);
}

.success {
  background: #d4edda;
  color: #155724;
  border: 1.5px solid #c3e6cb;
  box-shadow: 0 2px 8px rgba(195, 230, 203, 0.3);
}

.error {
  background: #f8d7da;
  color: #721c24;
  border: 1.5px solid #f5c6cb;
  box-shadow: 0 2px 8px rgba(245, 198, 203, 0.3);
}

.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.loading .cta-button {
  background: #6c757d !important;
  cursor: not-allowed !important;
  transform: none !important;
}
