.dashboard-content {
  padding: 0px;
}

.landing {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.landing-content-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-card);
  padding: 40px 120px;
}

.landing-container {
  padding: 20px 120px;
}

.landing-content-inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.top-heading-section {
  max-width: 45%;
  padding-right: 20px;
}

.top-heading-section h1 {
  font-size: 32px;
  font-weight: 500px;
  margin-bottom: 10px;
  font-family: "Playfair Display", serif;
  color: var(--text-primary);
}

.top-heading-section p {
  font-size: 24px;
  font-weight: 200px;
  font-style: italic;
  margin-bottom: 20px;
  font-family: "Roboto", sans-serif;
  color: var(--text-body);
}

.center-text p {
  font-size: 20px;
  font-weight: 400;
  gap: 2px;
  color: var(--text-body);
  font-style: italic;
  font-family: "Roboto", sans-serif;
}

.center-text {
  text-align: center;
  margin-top: 20px;
}

.top-button-group {
  margin-top: 80px;
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.get-started-btn {
  display: flex;
  width: 250px;
  height: 48px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--btn-primary-bg);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: "Roboto";
  font-size: 16px;
}

.learn-more-btn {
  background-color: transparent;
  font-size: 16px;
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  border: none;
  font-family: "Roboto";
  display: flex;
  align-items: center;
}

.arrow-img {
  width: 25px;
  height: 25px;
}

.created-by-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 40px;
  gap: 40px;
  margin-bottom: 40px;
}

.created-by-section p {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 10px;
  text-align: center;
  font-family: "Playfair Display", serif;
  color: var(--text-body);
}

.created-by-section img {
  margin-top: 20px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
}

.family-image-section img {
  width: 598px;
  height: 379.734px;
  border-radius: 10px;
}

.family-image-section video {
  width: 598px;
  height: 379.734px;
  border-radius: 10px;
  object-fit: cover;
}

.glance-section {
  text-align: center;
  margin-top: 30px;
}

.glance-section h2 {
  font-size: 32px;
  margin-top: 5px;
  font-weight: 500;
  color: var(--text-primary);
  font-family: "Playfair Display", serif;
}

.glance-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
}

.glance-item:nth-child(1) {
  margin-left: 50px;
}

.glance-item.selected .card {
  border: 2px solid #2563eb !important;
  border-radius: 16px !important;
}

.glance-item.selected .card-front,
.glance-item.selected .card-back {
  border: none;
}

.card {
  position: relative;
  width: 364px;
  height: 358px;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.card-front,
.card-back {
  text-align: center;
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  border-radius: 10px;
}

.card-front {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.card-back {
  transform: rotateY(180deg);
}

.glance-item:hover .card {
  transform: none;
}

.glance-item.flipped .card {
  transform: rotateY(180deg);
}

.glance-item {
  width: 364px;
  height: 358px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: var(--text-body);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card-content-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  border-radius: 10px;
  height: 100%;
  font-size: 24px;
  font-family: "Roboto serif";
  color: var(--text-primary);
  width: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.card-title {
  padding-bottom: 15px;
  font-size: 28px;
  font-weight: 600;
  font-family: "Playfair Display";
  color: white;
}

.card-content-feature img {
  margin-top: 30px;
}

.card-content-back {
  padding: 20px;
  font-size: 20px;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
}

.card-content img {
  margin-top: 10px;
}

.tools-360-section {
  text-align: center;
  margin-top: 50px;
  width: 100%;
  padding: 0 20px;
  margin-bottom: 50px;
}

.tools-360-section h2 {
  font-size: 32px;
  margin-bottom: 30px;
  font-weight: 500;
  color: var(--text-primary);
  font-family: "Playfair Display", serif;
}

.parallel-planning-process-section {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.scorecard-section {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.tool-card {
  width: 310px;
  background: var(--bg-card);
  border: 1px solid var(--btn-stroke);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-top {
  background: transparent;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--btn-stroke);
}

.icon-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tool-icon {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  object-fit: contain;
}

.card-body {
  padding: 15px;
  text-align: center;
  margin-bottom: 15px;
}

.card-body h3 {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 28px;
  font-family: "Playfair Display";
}

.card-body p {
  font-size: 16px;
  color: var(--text-body);
  font-weight: 400;
  margin: 0;
  line-height: 1.5;
  font-family: "Roboto";
}

.testimonial-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

@media (max-width: 1024px) {
  .landing-content-inner {
    flex-direction: column;
    align-items: center;
  }
  .family-image-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    margin-top: 15px;
  }
  .top-heading-section {
    max-width: 100%;
    padding-right: 0;
    text-align: center;
  }
  .family-image-section img {
    width: 90vw;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
  }
  .family-image-section video {
    width: 90vw;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
  }
  .top-button-group {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 0;
    margin-right: 0;
  }
  .created-by-section {
    flex-direction: column;
    gap: 20px;
    margin-top: 0px;
    margin-bottom: 20px;
  }
  .glance-items {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .glance-item {
    margin-left: 0 !important;
  }
  .parallel-planning-process-section,
  .scorecard-section {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .landing-content-section,
  .landing-container {
    padding: 30px 10px;
  }
  .glance-section {
    margin-top: 0px;
  }
  .testimonial-carousel {
    margin: 20px;
  }
}

@media (max-width: 768px) {
  .landing-content-section,
  .landing-container {
    padding: 20px 5vw;
  }
  .top-heading-section h1 {
    font-size: 24px;
  }
  .top-heading-section p {
    font-size: 18px;
  }
  .center-text p {
    font-size: 16px;
  }
  .created-by-section p {
    font-size: 20px;
  }
  .created-by-section img {
    width: 120px;
    height: 120px;
  }
  .card,
  .glance-item {
    width: 90vw;
    max-width: 340px;
    height: auto;
    min-height: 220px;
  }
  .card-title {
    font-size: 20px;
  }
  .card-content-back {
    font-size: 16px;
  }
  .tools-360-section h2,
  .glance-section h2 {
    font-size: 24px;
    font-weight: 600;
  }
  .tool-card {
    width: 90vw;
    max-width: 320px;
  }
  .testimonial-section {
    padding: 0 10px;
  }
}

@media (max-width: 640px) {
  .landing-content-section,
  .landing-container {
    padding: 10px 2vw;
  }
  .top-heading-section h1 {
    font-size: 24px;
    font-weight: 600;
  }
  .top-heading-section p {
    font-size: 14px;
  }
  .center-text p {
    font-size: 12px;
    margin-bottom: 20px;
  }
  .created-by-section p {
    font-size: 14px;
  }
  .created-by-section img {
    width: 100px;
    height: 100px;
    margin-top: 0px;
  }
  .card,
  .glance-item {
    width: 98vw;
    max-width: 92vw;
    min-height: 200px;
  }
  .card-title {
    font-size: 14px;
  }
  .card-content-back {
    font-size: 12px;
  }
  .tool-card {
    width: 98vw;
  }
  .get-started-btn,
  .learn-more-btn {
    max-width: 30%;
    font-size: 14px;
    padding: 10px 0;
  }
  .arrow-img {
    width: 18px;
    height: 18px;
  }
  .top-button-group {
    gap: 10px;
    width: 100%;
    justify-content: center;
    align-items: center;
  }
  .center-text {
    margin-top: 0px;
  }
  .tools-360-section {
    width: auto;
  }
  .card-body {
    padding: 5px;
  }
}


.subscribe-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-surface);
  padding: 48px 0 56px 0;
}

.pricing-header {
  text-align: center;
  margin-bottom: 32px;
}

.pricing-header h1 {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pricing-header p {
  color: var(--text-body);
  font-size: 1.15rem;
  margin-bottom: 0;
}

.pricing-cards {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 32px;
  width: 100%;
}

.plan-card-container {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
  min-width: 320px;
  max-width: 370px;
  margin-bottom: 25px;
}

.mobile-plan-selector {
  display: none;
  justify-content: center;
  margin-bottom: 24px;
  padding: 0 16px;
  width: 100%;
}

.mobile-plan-tabs {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 400px;
}

.mobile-plan-btn {
  background: transparent;
  color: var(--text-body);
  border: none;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  text-align: center;
  position: relative;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-plan-btn:not(:last-child) {
  border-right: 1px solid var(--border-line);
}

.mobile-plan-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
  position: relative;
}

.mobile-plan-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--btn-primary-bg);
  border-radius: 2px 2px 0 0;
}

.mobile-plan-btn:hover:not(.active) {
  background: var(--bg-surface);
  color: var(--text-primary);
}

@media (max-width: 480px) {
  .mobile-plan-tabs {
    max-width: 100%;
    margin: 0 8px;
  }
  
  .mobile-plan-btn {
    padding: 10px 8px;
    font-size: 13px;
    min-height: 40px;
  }
}

@media (max-width: 360px) {
  .mobile-plan-btn {
    padding: 8px 6px;
    font-size: 12px;
    min-height: 36px;
  }
}

.mobile-single-card {
  display: none;
  width: 100%;
  padding: 0 16px;
}

.plan-modal {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
}
.plan-modal-content {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 32px 24px;
  min-width: 320px;
  width: 380px;
  max-width: 95vw;
  box-shadow: 0 4px 32px rgba(0,0,0,0.15);
  position: relative;
}
.plan-modal-close {
  position: absolute; top: 12px; right: 18px;
  font-size: 2rem; color: #888; cursor: pointer;
}

.modal-period-btn-group {
  display: flex;
  border: 1px solid #2563eb;
  border-radius: 15px;
  overflow: hidden;
  width: fit-content;
  min-width: 240px;
  margin: 0 auto 1.5rem auto;
  background: var(--bg-card);
  padding: 0;
}

/* Fallback for browsers that don't support :has() */
.modal-period-btn-group.single-button {
  min-width: 120px;
}

.modal-period-btn-group:has(.modal-period-btn:only-child) {
  min-width: 120px;
}

.modal-period-btn {
  border: none;
  outline: none;
  background: white;
  color: #2563eb; /* blue-600 */
  font-size: 1.2rem;
  font-weight: 500;
  padding: 12px 36px;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin: 0;
  flex: 1;
  min-width: 100px;
  position: relative;
}

.modal-period-btn.selected {
  background: #2563eb; /* blue-600 */
  color: #fff;
  border: none;
}

.modal-period-btn:first-child {
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

.modal-period-btn:last-child {
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

.modal-period-btn:only-child {
  border-radius: 14px;
  margin: 0;
}

.modal-cancel-btn, .modal-upgrade-btn {
  min-width: 120px;
  padding: 0 32px;
  height: 48px;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  background: var(--bg-card);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  margin: 0 8px;
  box-shadow: none;
  outline: none;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-cancel-btn {
  color: #444;
  border-color: #666;
}

.modal-cancel-btn:hover, .modal-cancel-btn:focus {
  background: var(--bg-surface);
  color: #222;
  border-color: #444;
}

.modal-upgrade-btn {
  color: #1756b3;
  border-color: #1756b3;
}

.modal-upgrade-btn:hover, .modal-upgrade-btn:focus {
  background: var(--bg-surface);
  color: #1756b3;
  border-color: #1756b3;
}

#planModalBody h2, .plan-modal-content h2 {
  font-family: 'Playfair Display', serif;
} 

#modalPrice {
  font-family: 'Playfair Display', serif;
}

@media (min-width: 1024px) {
  .pricing-cards {
    gap: 32px;
    max-width: none;
  }
  .plan-card-container {
    min-width: 320px;
    max-width: 370px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .subscribe-section {
    padding: 32px 16px 40px 16px;
  }
  
  .pricing-header h1 {
    font-size: 1.8rem;
  }
  
  .pricing-header p {
    font-size: 1rem;
  }
  
  .pricing-cards {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 500px;
  }
  
  .plan-card-container {
    width: 100%;
    max-width: 400px;
    min-width: auto;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  .subscribe-section {
    padding: 24px 16px 32px 16px;
  }
  
  .pricing-header h1 {
    font-size: 1.6rem;
  }
  
  .pricing-header p {
    font-size: 0.95rem;
  }
  
  .pricing-cards {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 400px;
  }
  
  .plan-card-container {
    width: 100%;
    max-width: 380px;
    min-width: auto;
  }
}

@media (max-width: 639px) {
  .subscribe-section {
    padding: 20px 8px 24px 8px;
    min-height: auto;
  }
  
  .pricing-header {
    margin-bottom: 20px;
    padding: 0 16px;
  }
  
  .pricing-header h1 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
  }
  
  .pricing-header p {
    font-size: 0.85rem;
  }
  
  .pricing-cards {
    display: none;
  }
  
  .mobile-plan-selector {
    display: flex;
  }
  
  .mobile-single-card {
    display: block;
  }

  .mobile-single-card .plan-card-container {
    display: none;
    width: 100%;
    max-width: none;
    margin-bottom: 0;
  }
  
  .mobile-single-card .plan-card-container.active {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 1100px) {
  .pricing-cards {
    gap: 16px;
    max-width: 98vw;
  }
  .plan-card-container {
    min-width: 260px;
    max-width: 98vw;
  }
}

@media (max-width: 900px) {
  .pricing-cards {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .plan-card-container {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 600px) {
  .plan-modal-content {
    min-width: unset;
    width: 92vw;
    max-width: 95vw;
    padding: 12px 6px 18px 6px;
    border-radius: 8px;
  }
}

.dark-theme .arrow-img {
  filter: brightness(0) invert(1);
}

.dark-theme .plan-modal-content {
  background: #323232;
  color: #E0E0E0;
}
.dark-theme .plan-modal-close {
  color: #E0E0E0;
}
.dark-theme .modal-period-btn-group {
  background: #323232;
  border-color: #FFFFFF;
}

.dark-theme .modal-period-btn-group:has(.modal-period-btn:only-child) {
  min-width: 120px;
}

.dark-theme .modal-period-btn {
  background: #323232;
  color: #FFFFFF;
  border-radius: 0;
}

.dark-theme .modal-period-btn.selected {
  background: #336DD8;
  color: #fff;
  border: none;
}

.dark-theme .modal-period-btn:only-child {
  border-radius: 14px;
  margin: 0;
}
.dark-theme #modalPrice {
  color: #E0E0E0;
}
.dark-theme .modal-cancel-btn {
  background: #323232;
  border-color: #666;
  color: #E0E0E0;
}
.dark-theme .modal-cancel-btn:hover,
.dark-theme .modal-cancel-btn:focus {
  background: #2B2B2B;
  color: #E0E0E0;
  border-color: #888;
}
.dark-theme .modal-upgrade-btn {
  background: #323232;
  border-color: #2563eb;
  color: #2563eb;
}
.dark-theme .modal-upgrade-btn:hover,
.dark-theme .modal-upgrade-btn:focus {
  background: #2563eb;
  color: #fff;
}
.dark-theme #planModalBody h2,
.dark-theme .plan-modal-content h2 {
  color: #E0E0E0;
}
.dark-theme #modalSaveAmount {
  background: #2E7D32;
  color: #B2FFB2;
}

.dark-theme .mobile-plan-tabs {
  background: #323232;
  border-color: #555;
}

.dark-theme .mobile-plan-btn {
  background: transparent;
  color: #B0B0B0;
}

.dark-theme .mobile-plan-btn:not(:last-child) {
  border-right-color: #555;
}

.dark-theme .mobile-plan-btn.active {
  background: #2B2B2B;
  color: #E0E0E0;
}

.dark-theme .mobile-plan-btn.active::after {
  background: var(--btn-primary-bg);
}

.dark-theme .mobile-plan-btn:hover:not(.active) {
  background: #2B2B2B;
  color: #E0E0E0;
}
