/* Sojiwa Custom Styles */

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Inline SVG Icon Helpers */
.icon {
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
}

/* Ensure hidden class always wins regardless of other display rules */
.hidden {
  display: none !important;
}
.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.5rem; height: 1.5rem; }
.icon-lg { width: 1.875rem; height: 1.875rem; }

/* Browser language suggestion */
.language-suggestion {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(calc(100% - 2rem), 32rem);
  padding: 0.85rem 1rem;
  border: 1px solid #E7DFFC;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(42, 30, 72, 0.16);
  color: #2A1E48;
  transform: translateX(-50%);
}

.language-suggestion p {
  flex: 1;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.language-suggestion-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.language-suggestion a,
.language-suggestion button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.language-suggestion a {
  background: #1A1730;
  color: #FFFFFF;
}

.language-suggestion button {
  border: 0;
  background: #F1ECF8;
  color: #5F5475;
  cursor: pointer;
}

.language-suggestion a:hover {
  background: #2D2550;
}

.language-suggestion button:hover {
  background: #E7DFFC;
  color: #2A1E48;
}

@media (max-width: 560px) {
  .language-suggestion {
    align-items: stretch;
    flex-direction: column;
    gap: 0.75rem;
  }

  .language-suggestion-actions {
    width: 100%;
  }

  .language-suggestion a,
  .language-suggestion button {
    flex: 1;
  }
}

/* Body */
body {
  font-family: Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  line-height: 1.6;
  color: #2A1E48;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Feature Cards Hover Effect */
.feature-card {
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(39, 56, 128, 0.15);
}

/* Download Button Animations */
.download-btn {
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.download-btn:active {
  transform: translateY(0);
}

/* FAQ Accordion */
.faq-question {
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: #273880;
}

.faq-answer {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.faq-answer.show {
  display: block !important;
  animation: fadeInUp 0.3s ease;
}

.faq-chevron {
  transition: transform 0.3s ease;
}

.faq-question.active .faq-chevron {
  transform: rotate(180deg);
}

/* Keep for legacy compatibility */
.faq-question i {
  transition: transform 0.3s ease;
}
.faq-question.active i {
  transform: rotate(180deg);
}

/* Mobile Menu */
#mobile-menu {
  transition: all 0.3s ease;
}

#mobile-menu.show {
  display: block !important;
  animation: fadeInUp 0.3s ease;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #273880 0%, #45668E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom Shadows */
.shadow-primary {
  box-shadow: 0 10px 40px rgba(39, 56, 128, 0.2);
}

/* Loading / Spinner Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading,
.spin {
  animation: spin 1s linear infinite;
}

/* Responsive Typography */
@media (max-width: 640px) {
  h1 {
    font-size: 2rem !important;
  }
  h2 {
    font-size: 1.75rem !important;
  }
  h3 {
    font-size: 1.25rem !important;
  }
}

/* Focus Styles for Accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #273880;
  outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  nav,
  footer,
  .download-btn {
    display: none;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #273880;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #45668E;
}

/* Section Spacing */
section {
  position: relative;
  scroll-margin-top: 5rem;
}

/* Fade in on Scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stats Counter Animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.stat-number {
  animation: countUp 0.6s ease;
}

/* Button Ripple Effect */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
  width: 300px;
  height: 300px;
}

/* Hide specific elements when viewed inside the app */
.in-app .app-hidden {
  display: none !important;
}

/* =============================================
   Revamp UI — New Design System
   ============================================= */

/* Section Label (FEATURES / WHY JOURNAL / etc.) */
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5B4FC8;
  display: block;
  margin-bottom: 1rem;
}

/* Header */
.site-nav {
  position: sticky;
  top: 0;
  border-bottom: 0;
  box-shadow: none;
  background: #FFFFFF;
}

.site-nav a {
  color: #2A1E48;
}

.site-nav-inner {
  min-height: 4.75rem;
}

.nav-links {
  display: flex !important;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 700;
  color: #6B5E80;
}

.secondary-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.secondary-nav-links a {
  font-size: 0.875rem;
  font-weight: 700;
  color: #6B5E80;
}

.secondary-nav-links a:hover {
  color: #2A1E48;
}

.language-menu {
  position: relative;
  flex: 0 0 auto;
}

.language-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #E7DFFC;
  border-radius: 999px;
  background: #FFFFFF;
  color: #5F5475;
  cursor: pointer;
  list-style: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary:hover,
.language-menu[open] summary {
  border-color: #CDBDE8;
  background: #F7F3FC;
  color: #2A1E48;
}

.language-menu-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 70;
  display: grid;
  min-width: 9.75rem;
  padding: 0.35rem;
  border: 1px solid #E7DFFC;
  border-radius: 0.75rem;
  background: #FFFFFF;
  box-shadow: 0 18px 40px rgba(42, 30, 72, 0.14);
}

.language-menu-link {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  color: #5F5475;
  font-size: 0.82rem;
  font-weight: 750;
  white-space: nowrap;
}

.language-menu-link:hover,
.language-menu-link.is-active {
  background: #F1ECF8;
  color: #2A1E48;
}

.language-switcher-mobile {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #F1ECF8;
}

.language-switcher-mobile .language-menu-panel {
  left: 0;
  right: auto;
}

.theme-callout {
  background: #F0E8FA;
  border: 1px solid #E5D8F2;
  color: #2A1E48;
  border-radius: 1rem;
}

.theme-callout h3 {
  color: #2A1E48;
}

.theme-callout p {
  color: #6B5E80;
}

.theme-callout a {
  color: #6E45C9;
  font-weight: 700;
}

.theme-callout a:hover {
  text-decoration: underline;
}

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.5rem;
  min-height: 2.35rem;
  border-radius: 999px;
  background: #1A1730;
  color: #FFFFFF;
}

.site-nav .nav-cta:hover {
  background: #2D2550;
  color: #FFFFFF;
}

.site-nav a.bg-gray-900,
.site-nav a.text-white {
  color: #FFFFFF;
}

.nav-menu-btn {
  display: none;
}

/* Hero Gradient Background */
.hero-gradient {
  overflow: hidden;
  background:
    radial-gradient(circle at 6% 98%, rgba(232, 220, 255, 0.72) 0 8rem, rgba(255, 255, 255, 0) 24rem),
    radial-gradient(circle at 90% 6%, rgba(221, 208, 255, 0.76) 0 10rem, rgba(255, 255, 255, 0) 25rem),
    #FFFFFF;
  color: #2A1E48;
}

.hero-gradient::after {
  content: '';
  position: absolute;
  inset: 0 0 0 auto;
  width: 36%;
  background: transparent;
  z-index: 0;
}

.hero-shell {
  position: relative;
  z-index: 1;
}

.hero-layout {
  min-height: 41rem;
  justify-content: space-between;
}

.hero-copy {
  padding-bottom: 3.5rem;
  flex: 0 0 52%;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  flex: 0 0 34%;
  padding-top: 0.6rem;
  padding-bottom: 2rem;
  justify-content: center;
}

.hero-gradient h1,
.hero-gradient h2,
.hero-gradient .text-gray-900 {
  color: #111322;
}

.hero-pill {
  border: 1px solid #E7DFFC;
  box-shadow: 0 8px 30px rgba(124, 91, 196, 0.08);
}

.hero-pill-dot {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: #6E45C9;
  flex: 0 0 auto;
}

.hero-trust-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1rem;
  color: #5F5475;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-trust-list span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.hero-trust-list svg {
  width: 0.95rem;
  height: 0.95rem;
  color: #5B4FC8;
  flex: 0 0 auto;
}

/* Feature Card Icon Container */
.feature-icon {
  width: 3rem;
  height: 3rem;
  background: #EDE9F6;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #5B4FC8;
}

/* Benefit Number Labels */
.benefit-number {
  font-size: 0.7rem;
  font-weight: 700;
  color: #5B4FC8;
  letter-spacing: 0.06em;
  margin-bottom: 0.625rem;
  display: block;
}

.benefit-grid {
  border-top: 1px solid #E7E1F1;
}

.benefit-item {
  min-height: 13rem;
  padding: 2rem;
  border-right: 1px solid #E7E1F1;
  border-bottom: 1px solid #E7E1F1;
  background: #FFFFFF;
}

.benefit-item:nth-child(3n) {
  border-right: 0;
}

.benefit-item:nth-child(n + 4) {
  border-bottom: 0;
}

@media (max-width: 768px) {
  .benefit-item {
    min-height: 0;
    padding: 1.5rem;
    border-right: 0;
    border-bottom: 1px solid #E7E1F1;
  }

  .benefit-item:last-child {
    border-bottom: 0;
  }
}

/* About Section — Split Background */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 28rem;
}

@media (max-width: 768px) {
  .about-split {
    grid-template-columns: 1fr;
  }
}

.about-split-left {
  background: linear-gradient(135deg, #E7DDFF 0%, #F5F1FF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}

.about-split-right {
  background: #FAF8FF;
  display: flex;
  align-items: center;
  padding: 4rem 3rem;
}

@media (max-width: 768px) {
  .about-split-right {
    padding: 2.5rem 1.5rem;
  }
}

/* Story Carousel — mobile: swipeable, desktop: 3-column grid */
.stories-carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}

.stories-carousel::-webkit-scrollbar {
  display: none;
}

/* Story Placeholder Cards */
.story-placeholder {
  background: #F5F3FF;
  border-radius: 1rem;
  min-height: 11rem;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  flex: 0 0 80%;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .stories-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .story-placeholder {
    flex: unset;
    scroll-snap-align: unset;
  }
}

/* CTA Card */
.cta-card {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.42) 0 18%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(135deg, #CDBBFA 0%, #B7A3F2 100%);
  border-radius: 1.85rem;
  padding: 5rem 2rem 4.5rem;
  text-align: center;
  color: #111322;
}

/* FAQ New Design — Line-separated accordion */
.faq-new-item {
  border-bottom: 1px solid #E5E2EF;
}

.faq-new-item:first-child {
  border-top: 1px solid #E5E2EF;
}

.faq-toggle-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1.5px solid #D1D5DB;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  line-height: 1;
  color: #374151;
}

.faq-question.active .faq-toggle-icon {
  background: #5B4FC8;
  border-color: #5B4FC8;
  color: white;
}

.faq-question .faq-minus-icon {
  display: none;
}

.faq-question .faq-plus-icon {
  display: block;
}

.faq-question.active .faq-minus-icon {
  display: block;
}

.faq-question.active .faq-plus-icon {
  display: none;
}

/* =============================================
   CSS Phone Mockup — exact match to designer
   Colors sourced from designer's HTML file:
   Frame: #2A1E48 | Accent: #7C5BC4 | Text: #2A1E48
   ============================================= */

.phone-hero-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-top: 0;
  /* Extra right margin so streak badge has room */
  padding-right: 1.5rem;
  transform: scale(0.84);
  transform-origin: center top;
}

/* Outer phone frame — dark purple, not black */
.phone-outer {
  width: 270px;
  background: #2A1E48;
  border-radius: 42px;
  padding: 10px;
  box-shadow:
    0 40px 80px rgba(124, 91, 196, 0.30),
    0 15px 40px rgba(42, 30, 72, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  position: relative;
  /* Allow AI card and streak badge to overflow */
  overflow: visible;
}

/* Screen */
.phone-inner {
  border-radius: 33px;
  overflow: hidden;
  background: #FBF8FE;
  min-height: 540px;
  display: flex;
  flex-direction: column;
}

/* Purple header: status bar + nav bar */
.phone-header {
  background: linear-gradient(180deg, #6840B5 0%, #7C5BC4 100%);
  flex-shrink: 0;
}

.phone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px 3px;
  color: white;
}

.phone-statusbar-time {
  font-size: 10px;
  font-weight: 700;
}

.phone-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 14px 12px;
  color: white;
}

.phone-navbar-back {
  font-size: 22px;
  font-weight: 300;
  opacity: 0.9;
  line-height: 1;
}

.phone-navbar-title {
  font-size: 12px;
  font-weight: 700;
}

.phone-navbar-date {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  opacity: 0.9;
}

/* Content area — top padding reserves space for the floating AI card */
.phone-content {
  flex: 1;
  overflow: hidden;
  padding: 10px 12px 5px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* AI Insights card — floats OUTSIDE left edge of phone frame */
.phone-ai-card {
  position: absolute;
  top: 82px;
  left: -42px;
  width: 155px;
  background: white;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(60, 40, 100, 0.14);
  z-index: 10;
}

.phone-ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
}

.phone-ai-icon {
  width: 20px;
  height: 20px;
  background: #EDE9FE;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #7C5BC4;
  flex-shrink: 0;
}

.phone-ai-badge {
  display: none;
  font-size: 7px;
  font-weight: 700;
  color: #7C5BC4;
  background: #EDE9FE;
  padding: 2px 8px;
  border-radius: 8px;
}

.phone-prompt-card {
  background: #FBE7EF;
  border-radius: 10px;
  padding: 9px 12px 10px;
}

.phone-prompt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  color: #7C5BC4;
  font-size: 9px;
  font-weight: 800;
}

.phone-prompt-card p {
  font-size: 8.5px;
  font-style: italic;
  font-weight: 600;
  color: #7C5BC4;
  line-height: 1.55;
}

/* Mood section */
.phone-mood-section {
  flex-shrink: 0;
}

.phone-mood-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-top: 6px;
}

.phone-mood-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.phone-mood-emoji {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: white;
  border: 1.5px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.phone-mood-emoji.selected {
  background: #EDE9FE;
  border-color: #7C5BC4;
  border-width: 2px;
}

.phone-mood-label {
  font-size: 6.5px;
  color: #9CA3AF;
  text-align: center;
  line-height: 1.2;
}

.phone-mood-label.selected-label {
  color: #7C5BC4;
  font-weight: 700;
}

/* Title input */
.phone-title-section {
  flex-shrink: 0;
}

.phone-title-input {
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  padding: 8px 10px;
  background: white;
  margin-top: 5px;
}

.phone-description-section {
  flex-shrink: 0;
}

.phone-description-input {
  min-height: 46px;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  padding: 7px 10px;
  background: white;
  margin-top: 5px;
}

/* Bottom nav bar */
.phone-bottom-nav {
  background: white;
  padding: 9px 18px 12px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #F3F4F6;
  flex-shrink: 0;
}

.phone-nav-active {
  background: #7C5BC4;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 9.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.phone-nav-icon {
  color: #D1D5DB;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Streak floating badge — bottom-right outside phone */
.phone-streak-badge {
  position: absolute;
  bottom: 54px;
  right: -62px;
  background: white;
  border-radius: 14px;
  padding: 8px 12px;
  box-shadow: 0 6px 24px rgba(60, 40, 100, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

/* Dark Download Buttons */
.download-btn-dark {
  background: #1A1730;
  color: white;
  border-radius: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  min-width: 12.25rem;
  min-height: 4.6rem;
  justify-content: center;
}

.download-btn-dark:hover {
  background: #2D2550;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.download-btn-disabled {
  background: #564B72;
  opacity: 0.72;
}

.download-btn-disabled:hover {
  background: #564B72;
}

.store-button-wrap {
  position: relative;
  display: inline-block;
}

.soon-badge {
  position: absolute;
  top: -0.78rem;
  right: -0.68rem;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 4.15rem;
  height: 1.55rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 91, 196, 0.28);
  background: #baa9df;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 5px 14px rgba(42, 30, 72, 0.12);
  pointer-events: none;
}

.store-button-wrap.is-disabled .soon-badge {
  display: inline-flex;
}

@media (max-width: 640px) {
  .hero-trust-list {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.7rem;
  }

  .hero-trust-list span {
    gap: 0.22rem;
  }

  .hero-trust-list svg {
    width: 0.78rem;
    height: 0.78rem;
  }

  .app-download-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.625rem !important;
    align-items: stretch !important;
    width: 100%;
  }

  .app-download-row .download-btn,
  .app-download-row .store-button-wrap {
    width: 100%;
  }

  .app-download-row .download-btn-dark {
    min-width: 0;
    min-height: 3.55rem;
    padding: 0.65rem 0.7rem !important;
    border-radius: 0.85rem;
    gap: 0.5rem !important;
  }

  .app-download-row .icon-md {
    width: 1.18rem;
    height: 1.18rem;
  }

  .app-download-row .text-xs {
    font-size: 0.58rem;
    line-height: 1;
  }

  .app-download-row .text-sm {
    font-size: 0.78rem;
    line-height: 1.15;
  }

  .soon-badge {
    top: -0.48rem;
    right: -0.1rem;
    min-width: 2.7rem;
    height: 1.08rem;
    padding: 0 0.42rem;
    font-size: 0.58rem;
    box-shadow: 0 4px 10px rgba(42, 30, 72, 0.1);
  }

  .site-footer {
    padding-top: 2rem !important;
    padding-bottom: 1.5rem !important;
  }

  .site-footer .max-w-6xl {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1.35rem 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-grid h4 {
    margin-bottom: 0.55rem !important;
    font-size: 0.66rem;
  }

  .footer-grid ul {
    display: grid;
    gap: 0.35rem;
  }

  .footer-grid li,
  .footer-grid a,
  .footer-grid p {
    font-size: 0.84rem !important;
    line-height: 1.35;
  }

  .footer-grid a {
    white-space: nowrap;
  }

  .footer-grid ul.space-y-3 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0 !important;
  }

  .site-footer .border-t {
    padding-top: 1rem !important;
    align-items: flex-start !important;
  }

  #download {
    padding-top: 2.5rem !important;
    padding-bottom: 2.75rem !important;
  }

  .cta-card {
    border-radius: 1.25rem;
    padding: 2.35rem 1rem 2rem;
  }

  .cta-card h2 {
    margin-bottom: 0.75rem !important;
  }

  .cta-card p {
    margin-bottom: 1.5rem !important;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none !important;
  }

  .secondary-nav-links {
    justify-content: flex-end;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
  }

  .secondary-nav-links a {
    font-size: 0.8125rem;
  }

  .site-nav-inner {
    min-height: 3.25rem;
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
  }

  .nav-menu-btn {
    display: block;
  }

  .hero-gradient::after {
    width: 100%;
    top: 50%;
    opacity: 0.78;
  }

  .hero-layout {
    min-height: auto;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-pill {
    display: flex;
    width: max-content;
    max-width: 100%;
    margin: 0.75rem auto 1.5rem;
  }

  #features {
    padding-top: 3.25rem !important;
    padding-bottom: 3.5rem !important;
  }

  #features .section-label {
    margin-bottom: 0.7rem;
  }

  #features h2 {
    max-width: 20rem;
    margin-bottom: 1.6rem !important;
    font-size: 1.85rem;
    line-height: 1.16;
  }

  #features .grid {
    gap: 0.8rem !important;
  }

  .feature-card {
    position: relative;
    display: grid;
    grid-template-columns: 2.75rem 1fr;
    gap: 0.2rem 0.85rem;
    align-items: start;
    padding: 1rem !important;
    border: 1px solid #ECE5F7;
    border-radius: 1rem !important;
    box-shadow: 0 10px 28px rgba(42, 30, 72, 0.06);
  }

  .feature-card:hover {
    transform: none;
    box-shadow: 0 10px 28px rgba(42, 30, 72, 0.06);
  }

  .feature-card .feature-icon {
    grid-row: 1 / span 2;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 0;
    border-radius: 0.85rem;
  }

  .feature-card h3 {
    margin-bottom: 0.15rem !important;
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .feature-card p {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  #why-journal {
    padding-top: 3.4rem !important;
    padding-bottom: 3.6rem !important;
    background: #FBF8FE;
  }

  #why-journal .flex.flex-col {
    gap: 1rem !important;
    margin-bottom: 1.4rem !important;
  }

  #why-journal .section-label {
    margin-bottom: 0.7rem;
  }

  #why-journal h2 {
    max-width: 20.5rem;
    font-size: 1.85rem;
    line-height: 1.16;
  }

  #why-journal .md\:w-1\/2:last-child {
    align-items: flex-start;
  }

  #why-journal .md\:w-1\/2:last-child p {
    max-width: 21rem;
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .benefit-grid {
    display: grid;
    gap: 0.75rem;
    border-top: 0;
  }

  .benefit-item {
    min-height: 0;
    padding: 1rem 1rem 1.05rem;
    border: 1px solid #ECE5F7;
    border-radius: 1rem;
    background: #FFFFFF;
    box-shadow: 0 10px 28px rgba(42, 30, 72, 0.05);
  }

  .benefit-item:nth-child(3n),
  .benefit-item:nth-child(n + 4),
  .benefit-item:last-child {
    border: 1px solid #ECE5F7;
  }

  .benefit-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    min-height: 1.55rem;
    margin-bottom: 0.55rem;
    border-radius: 999px;
    background: #F1ECF8;
    color: #5B4FC8;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
  }

  .benefit-item h3 {
    margin-bottom: 0.2rem !important;
    font-size: 0.96rem;
    line-height: 1.25;
  }

  .benefit-item p {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  #about {
    background: #FBF8FE;
  }

  .about-split {
    gap: 0;
  }

  .about-split-left {
    padding: 3rem 1.5rem 1.25rem;
    background:
      radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.8) 0 5rem, rgba(255, 255, 255, 0) 12rem),
      linear-gradient(180deg, #EFE8FB 0%, #FBF8FE 100%);
  }

  .about-split-left .max-w-xs {
    max-width: 15.5rem;
  }

  .about-split-left img {
    margin-bottom: 0.65rem !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 18px 45px rgba(42, 30, 72, 0.14);
  }

  .about-split-left p {
    font-size: 0.72rem;
    font-weight: 700;
    color: #6B5E80;
  }

  .about-split-right {
    padding: 0 1.5rem 3.6rem;
    background: #FBF8FE;
  }

  .about-split-right > div {
    max-width: none;
    padding: 1.25rem;
    border: 1px solid #ECE5F7;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 32px rgba(42, 30, 72, 0.06);
  }

  .about-split-right .section-label {
    margin-bottom: 0.65rem;
  }

  .about-split-right h2 {
    margin-bottom: 0.9rem !important;
    font-size: 1.45rem;
    line-height: 1.22;
  }

  .about-split-right p {
    margin-bottom: 0.75rem !important;
    font-size: 0.84rem;
    line-height: 1.62;
  }

  .about-split-right p:last-child {
    margin-bottom: 0 !important;
  }

  #stories {
    padding-top: 3.4rem !important;
    padding-bottom: 3.5rem !important;
    background: #FFFFFF;
  }

  #stories .text-center {
    margin-bottom: 1.5rem !important;
    text-align: left;
  }

  #stories .section-label {
    margin-bottom: 0.7rem;
  }

  #stories h2 {
    margin-bottom: 0.7rem !important;
    font-size: 1.85rem;
    line-height: 1.16;
  }

  #stories p {
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 1.1rem !important;
    max-width: 21rem;
    font-size: 0.88rem;
    line-height: 1.6;
  }

  #stories a {
    padding: 0.72rem 1.05rem !important;
    font-size: 0.82rem;
  }

  .stories-carousel {
    gap: 0.8rem;
    margin-right: -1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 0.25rem;
  }

  .story-placeholder {
    position: relative;
    flex-basis: 82%;
    min-height: 8.5rem;
    padding: 1rem;
    border: 1px solid #ECE5F7;
    border-radius: 1rem;
    background:
      radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.9) 0 3rem, rgba(255, 255, 255, 0) 7rem),
      #F5F1FF;
    box-shadow: 0 10px 28px rgba(42, 30, 72, 0.06);
  }

  .story-placeholder::before {
    content: '"';
    position: absolute;
    top: 0.65rem;
    left: 0.9rem;
    color: rgba(91, 79, 200, 0.28);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
  }

  .story-placeholder p {
    position: relative;
    margin-bottom: 0 !important;
    color: #6B5E80;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.45;
  }

  #faq {
    padding-top: 3.4rem !important;
    padding-bottom: 3.6rem !important;
  }

  #faq .flex.flex-col {
    gap: 1.4rem !important;
  }

  #faq .section-label {
    margin-bottom: 0.7rem;
  }

  #faq h2 {
    margin-bottom: 0.7rem !important;
    font-size: 1.85rem;
    line-height: 1.16;
  }

  #faq .md\:w-2\/5 > p {
    max-width: 20rem;
    font-size: 0.86rem;
    line-height: 1.55;
  }

  #faq .md\:w-3\/5 {
    display: grid;
    gap: 0.55rem;
  }

  .faq-new-item,
  .faq-new-item:first-child {
    overflow: hidden;
    border: 1px solid #E8DFF6;
    border-radius: 0.9rem;
    background: #F8F4FC;
    box-shadow: none;
  }

  .faq-new-item:has(.faq-question.active) {
    border-color: #D8C8F0;
    background: #F4EFFB;
  }

  .faq-question {
    padding: 0.78rem 0.85rem !important;
  }

  .faq-question h3 {
    flex: 1;
    color: #2A1E48;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    line-height: 1.34;
  }

  .faq-toggle-icon {
    width: 1.55rem;
    height: 1.55rem;
    border: 0;
    background: #FFFFFF;
    color: #5B4FC8;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(42, 30, 72, 0.06);
  }

  .faq-answer {
    padding: 0 0.9rem 0.95rem !important;
    color: #5F5475;
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .hero-visual {
    align-self: center;
    padding-bottom: 0;
  }

  .phone-hero-wrap {
    padding-right: 1.25rem;
    transform: scale(0.82);
    transform-origin: top center;
    margin-bottom: -3.5rem;
  }

  .phone-streak-badge {
    right: -26px;
  }
}
