/* =========================================
   AI LIFE PLANNER — MODERN UI V5
   COMPLETE RESPONSIVE STYLESHEET
   Designed for desktop + mobile
========================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;

  background:
    radial-gradient(
      circle at 15% 0%,
      rgba(92, 124, 255, 0.12),
      transparent 32%
    ),
    radial-gradient(
      circle at 90% 10%,
      rgba(0, 190, 255, 0.08),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      #f6f8fc 0%,
      #ffffff 48%,
      #f5f8ff 100%
    );

  color: #172033;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* =========================================
   GENERAL
========================================= */

.hidden {
  display: none !important;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

p,
li,
h1,
h2,
h3,
h4,
h5,
span,
strong {
  overflow-wrap: anywhere;
}

/* =========================================
   APP
========================================= */

#app {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 35px 20px 70px;
}

/* =========================================
   HERO
========================================= */

.hero {
  text-align: center;
  padding: 65px 20px 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.4px;

  color: #172033;

  margin-bottom: 20px;

  padding: 8px 14px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.72);

  border: 1px solid rgba(220, 226, 238, 0.9);

  box-shadow:
    0 8px 25px rgba(30, 45, 80, 0.06);

  backdrop-filter: blur(12px);
}

.hero h1 {
  max-width: 820px;
  margin: 0 auto 20px;

  font-size: clamp(40px, 7vw, 68px);

  line-height: 1.02;

  letter-spacing: -3px;

  font-weight: 900;

  color: #121a2b;

  text-wrap: balance;
}

.hero p {
  max-width: 680px;
  margin: 0 auto;

  color: #657084;

  font-size: 18px;

  line-height: 1.7;
}

/* =========================================
   FORM CARD
========================================= */

.card {
  width: 100%;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.98),
      rgba(248,250,255,0.96)
    );

  border: 1px solid rgba(224, 229, 239, 0.95);

  border-radius: 30px;

  padding: 38px;

  box-shadow:
    0 30px 80px rgba(26, 39, 64, 0.09),
    0 5px 20px rgba(26, 39, 64, 0.04);

  backdrop-filter: blur(18px);
}

/* =========================================
   FORM
========================================= */

.field {
  margin-bottom: 25px;
}

.field label {
  display: block;

  margin-bottom: 9px;

  font-size: 14px;

  font-weight: 800;

  color: #303a4d;
}

.form-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 18px;
}

input,
textarea,
select {
  width: 100%;
  max-width: 100%;

  border: 1px solid #dce2ec;

  border-radius: 15px;

  background:
    rgba(255, 255, 255, 0.96);

  padding: 15px 16px;

  color: #172033;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #9aa3b2;
}

input:hover,
textarea:hover,
select:hover {
  border-color: #c6cfdf;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #7185ff;

  background: #ffffff;

  box-shadow:
    0 0 0 4px rgba(113, 133, 255, 0.12),
    0 8px 25px rgba(40, 60, 100, 0.05);
}

textarea {
  resize: vertical;

  min-height: 115px;
}

/* =========================================
   CHIPS
========================================= */

.chips {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;
}

.chip {
  appearance: none;
  -webkit-appearance: none;

  border: 1px solid #dfe4ec;

  background:
    rgba(255,255,255,0.95);

  color: #3c4658;

  border-radius: 999px;

  padding: 10px 16px;

  font-size: 14px;

  font-weight: 700;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;

  user-select: none;

  -webkit-user-select: none;

  touch-action: manipulation;

  position: relative;

  z-index: 2;
}

.chip:hover {
  transform: translateY(-2px);

  border-color: #aeb9ff;

  box-shadow:
    0 8px 20px rgba(40, 60, 100, 0.08);
}

.chip:active {
  transform: scale(0.97);
}

.chip:focus-visible {
  outline: none;

  border-color: #7185ff;

  box-shadow:
    0 0 0 4px rgba(113, 133, 255, 0.15);
}

/* Selected chip */

.chip.active {
  background:
    linear-gradient(
      135deg,
      #007bff,
      #365cff
    ) !important;

  color: #ffffff !important;

  border-color: #0056b3 !important;

  box-shadow:
    0 8px 20px rgba(0, 123, 255, 0.28) !important;

  transform: translateY(-1px);
}

/* =========================================
   PRIMARY BUTTON
========================================= */

.primary-button {
  width: 100%;

  border: none;

  border-radius: 16px;

  padding: 17px 20px;

  background:
    linear-gradient(
      135deg,
      #172033 0%,
      #263452 100%
    );

  color: #ffffff;

  font-weight: 850;

  font-size: 15px;

  box-shadow:
    0 14px 30px rgba(23, 32, 51, 0.18);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease,
    filter 0.2s ease;

  touch-action: manipulation;
}

.primary-button:hover {
  transform: translateY(-2px);

  filter: brightness(1.04);

  box-shadow:
    0 18px 35px rgba(23, 32, 51, 0.23);
}

.primary-button:active {
  transform: translateY(0);

  box-shadow:
    0 8px 18px rgba(23, 32, 51, 0.16);
}

.primary-button:focus-visible {
  outline: none;

  box-shadow:
    0 0 0 4px rgba(113, 133, 255, 0.18),
    0 14px 30px rgba(23, 32, 51, 0.18);
}

/* =========================================
   REVIEW SCREEN
========================================= */

#review {
  width: 100%;

  min-height: 100vh;

  padding: 40px 20px;

  display: flex;

  align-items: center;

  justify-content: center;
}

.review-card {
  width: 100%;

  max-width: 680px;

  background:
    rgba(255,255,255,0.97);

  border: 1px solid #e4e9f1;

  border-radius: 30px;

  padding: 38px;

  box-shadow:
    0 30px 80px rgba(26, 39, 64, 0.12);
}

.review-card h2 {
  font-size: 34px;

  line-height: 1.15;

  margin-bottom: 24px;

  letter-spacing: -1px;
}

#summary {
  background:
    linear-gradient(
      145deg,
      #f7f9fc,
      #eef3fb
    );

  border: 1px solid #e5eaf2;

  border-radius: 20px;

  padding: 22px;

  color: #455065;

  margin-bottom: 25px;
}

#summary b {
  color: #172033;

  font-size: 20px;
}

.review-actions {
  display: grid;

  grid-template-columns: 120px 1fr;

  gap: 12px;
}

.review-actions > button:first-child {
  border: 1px solid #dfe4ec;

  background: #ffffff;

  border-radius: 15px;

  font-weight: 750;

  color: #3c4658;

  min-height: 54px;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.review-actions > button:first-child:hover {
  transform: translateY(-1px);

  background: #f7f9fc;

  border-color: #cbd3e1;
}

/* =========================================
   PLAN SCREEN
========================================= */

#plan {
  width: 100%;

  min-height: 100vh;

  padding: 25px 18px 80px;
}

.plan-container {
  width: 100%;

  max-width: 1120px;

  margin: 0 auto;
}

/* =========================================
   PLAN HEADER
========================================= */

.plan-header {
  text-align: center;

  padding: 45px 20px 30px;

  position: relative;
}

.plan-header .price {
  position: absolute;

  top: 15px;

  right: 20px;

  background:
    linear-gradient(
      135deg,
      #eef4ff,
      #e6efff
    );

  color: #006fdd;

  padding: 7px 15px;

  border-radius: 99px;

  font-weight: 850;

  font-size: 14px;

  border: 1px solid #d9e5ff;

  box-shadow:
    0 7px 18px rgba(50, 90, 160, 0.08);
}

#planTitle {
  font-size: clamp(34px, 5vw, 54px);

  line-height: 1.08;

  letter-spacing: -2px;

  margin-bottom: 15px;

  font-weight: 900;

  color: #121a2b;

  text-wrap: balance;
}

#planIntro {
  max-width: 720px;

  margin: 0 auto;

  color: #697386;

  font-size: 17px;
}

/* =========================================
   PLAN TABS
========================================= */

.plan-tabs {
  display: grid;

  grid-template-columns:
    repeat(6, minmax(0, 1fr));

  gap: 10px;

  margin: 15px auto 25px;

  max-width: 1100px;
}

.plan-tab {
  border: 1px solid #e2e6ed;

  background:
    rgba(255,255,255,0.92);

  color: #4b5568;

  border-radius: 17px;

  padding: 15px 10px;

  font-weight: 750;

  font-size: 14px;

  min-height: 68px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 4px;

  transition:
    all 0.2s ease;

  touch-action: manipulation;

  box-shadow:
    0 5px 15px rgba(30, 45, 80, 0.025);
}

.plan-tab:hover {
  transform: translateY(-2px);

  border-color: #aeb9ff;

  box-shadow:
    0 10px 25px rgba(30, 45, 80, 0.08);
}

.plan-tab:active {
  transform: scale(0.98);
}

.plan-tab.active {
  background:
    linear-gradient(
      135deg,
      #172033,
      #293654
    ) !important;

  color: #ffffff !important;

  border-color: #172033 !important;

  box-shadow:
    0 14px 30px rgba(23, 32, 51, 0.19) !important;

  transform: translateY(-1px);
}

.plan-tab:focus-visible {
  outline: none;

  box-shadow:
    0 0 0 4px rgba(113, 133, 255, 0.15),
    0 10px 25px rgba(30, 45, 80, 0.08);
}

/* =========================================
   PLAN CONTENT
========================================= */

.plan-content {
  width: 100%;

  background:
    rgba(255,255,255,0.97);

  border: 1px solid #e3e8f0;

  border-radius: 30px;

  padding: 34px;

  box-shadow:
    0 30px 80px rgba(26, 39, 64, 0.09);

  backdrop-filter: blur(14px);
}

.plan-section {
  animation:
    planFadeIn 0.3s ease;
}

/* =========================================
   SECTION HEADER
========================================= */

.section-title {
  display: flex;

  align-items: center;

  gap: 16px;

  margin-bottom: 22px;

  border-bottom: 1px solid #edf0f5;

  padding-bottom: 17px;
}

.section-icon {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-width: 50px;

  min-height: 50px;

  font-size: 13px;

  font-weight: 850;

  background:
    linear-gradient(
      135deg,
      #f4f6f9,
      #e9eef7
    );

  color: #303a4d;

  padding: 10px 12px;

  border-radius: 15px;

  border: 1px solid #e2e7ef;
}

.section-title h2 {
  font-size: 23px;

  font-weight: 850;

  line-height: 1.2;

  margin-bottom: 3px;
}

.section-title p {
  font-size: 13px;

  color: #697386;
}

/* =========================================
   SECTION BODY
========================================= */

.section-body {
  padding: 5px 0;

  line-height: 1.75;

  font-size: 16px;

  color: #2e3a51;
}

.section-body ul,
.section-body ol {
  padding-left: 22px;

  margin: 12px 0;
}

.section-body li {
  margin-bottom: 10px;
}

.section-body h3 {
  margin-top: 22px;

  margin-bottom: 10px;

  font-size: 20px;

  color: #172033;
}

.section-body h4 {
  margin-top: 18px;

  margin-bottom: 8px;

  font-size: 17px;

  color: #172033;
}

.section-body strong {
  color: #172033;
}

/* =========================================
   GENERATED CONTENT
   Helps AI results look like cards
========================================= */

.section-body > div {
  max-width: 100%;
}

.section-body img {
  border-radius: 18px;

  margin-top: 12px;

  margin-bottom: 15px;

  box-shadow:
    0 12px 30px rgba(25, 40, 70, 0.1);
}

.section-body a {
  color: #1769e0;

  font-weight: 700;
}

.section-body a:hover {
  text-decoration: underline;
}

/* =========================================
   DAY BY DAY
========================================= */

#daysContent {
  display: block;
}

#daysContent > * {
  max-width: 100%;
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
  width: 100%;

  max-width: 1080px;

  margin: 0 auto;

  padding: 30px 20px 35px;

  text-align: center;

  color: #7a8494;

  font-size: 13px;
}

.footer-links {
  display: flex;

  justify-content: center;

  align-items: center;

  flex-wrap: wrap;

  gap: 10px 22px;

  margin-bottom: 12px;
}

.footer-links a {
  color: #4d596c;

  font-weight: 700;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.footer-links a:hover {
  color: #1769e0;

  transform: translateY(-1px);
}

.site-footer p {
  color: #8992a1;

  font-size: 12px;
}

/* =========================================
   SCROLLBAR
========================================= */

::-webkit-scrollbar {
  width: 9px;
}

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

::-webkit-scrollbar-thumb {
  background: #cbd2df;

  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
  background: #aeb7c8;
}

/* =========================================
   SELECTION
========================================= */

::selection {
  background: #dce7ff;

  color: #172033;
}

/* =========================================
   ANIMATIONS
========================================= */

@keyframes planFadeIn {
  from {
    opacity: 0;

    transform:
      translateY(10px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0);
  }
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

  #app {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-top: 50px;
  }

  .hero h1 {
    letter-spacing: -2px;
  }

  .plan-tabs {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

  body {
    background:
      linear-gradient(
        180deg,
        #f5f8fd 0%,
        #ffffff 100%
      );
  }

  #app {
    padding:
      15px 14px 45px;
  }

  .hero {
    padding:
      38px 8px 28px;
  }

  .brand {
    font-size: 13px;

    margin-bottom: 17px;

    padding: 7px 12px;
  }

  .hero h1 {
    font-size: 40px;

    letter-spacing: -2px;

    line-height: 1.04;

    margin-bottom: 16px;
  }

  .hero p {
    font-size: 16px;

    line-height: 1.6;
  }

  .card {
    padding: 22px 17px;

    border-radius: 23px;
  }

  .form-grid {
    grid-template-columns: 1fr;

    gap: 0;
  }

  .field {
    margin-bottom: 21px;
  }

  input,
  textarea,
  select {
    padding:
      14px 14px;

    border-radius: 13px;

    font-size: 16px;
  }

  .chips {
    gap: 8px;
  }

  .chip {
    padding:
      9px 13px;

    font-size: 13px;
  }

  .primary-button {
    padding:
      16px 17px;

    border-radius: 14px;
  }

  /* Review */

  #review {
    padding:
      20px 14px;
  }

  .review-card {
    padding:
      25px 18px;

    border-radius: 23px;
  }

  .review-card h2 {
    font-size: 29px;
  }

  #summary {
    padding: 18px;

    border-radius: 17px;
  }

  .review-actions {
    grid-template-columns: 1fr;

    gap: 10px;
  }

  .review-actions > button:first-child {
    min-height: 50px;

    order: 2;
  }

  .review-actions .primary-button {
    order: 1;
  }

  /* Plan */

  #plan {
    padding:
      10px 10px 45px;
  }

  .plan-header {
    padding:
      42px 10px 25px;
  }

  .plan-header .price {
    top: 5px;

    right: 5px;

    font-size: 12px;

    padding:
      6px 11px;
  }

  #planTitle {
    font-size: 35px;

    letter-spacing: -1.6px;
  }

  #planIntro {
    font-size: 15px;
  }

  .plan-tabs {
    grid-template-columns:
      repeat(3, 1fr);

    gap: 7px;

    margin-bottom: 17px;
  }

  .plan-tab {
    min-height: 62px;

    padding:
      11px 5px;

    border-radius: 14px;

    font-size: 11px;

    line-height: 1.25;
  }

  .plan-content {
    padding:
      21px 17px;

    border-radius: 23px;
  }

  .section-title {
    gap: 11px;

    margin-bottom: 18px;

    padding-bottom: 14px;
  }

  .section-icon {
    min-width: 43px;

    min-height: 43px;

    padding:
      8px;

    border-radius: 12px;

    font-size: 11px;
  }

  .section-title h2 {
    font-size: 19px;
  }

  .section-title p {
    font-size: 12px;
  }

  .section-body {
    font-size: 15px;

    line-height: 1.7;
  }

  /* Footer */

  .site-footer {
    padding:
      25px 15px 30px;
  }

  .footer-links {
    gap:
      8px 15px;
  }

}

/* =========================================
   VERY SMALL PHONES
========================================= */

@media (max-width: 380px) {

  .hero h1 {
    font-size: 35px;
  }

  .plan-tabs {
    gap: 6px;
  }

  .plan-tab {
    font-size: 10px;

    min-height: 58px;
  }

  .plan-content {
    padding:
      18px 14px;
  }

  .section-title h2 {
    font-size: 18px;
  }

}

/* =========================================
   REDUCED MOTION
========================================= */

@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;
  }

   }
