
*,
*::before,
*::after{box-sizing:border-box;}

body{
  margin:0;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.landing-body{
  background:radial-gradient(circle at top,#e3f4eb 0,#fffaf3 55%,#fdf6ea 100%);
  color:#183027;
}

.app-body{
  background:radial-gradient(circle at top,#e3f4eb 0,#fffaf3 55%,#fdf6ea 100%);
  color:#183027;
}

.page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.landing-header{
  padding:16px 20px 10px;
  max-width:960px;
  margin:0 auto;
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
}

.logo-dot{
  width:26px;
  height:26px;
  border-radius:18px;
  background:radial-gradient(circle at 25% 20%,#ffffff 0,#d9f4e4 40%,#2f7d5b 100%);
  box-shadow:0 6px 14px rgba(30,96,67,.35);
}

.logo-title{
  font-weight:700;
  letter-spacing:.03em;
  text-transform:uppercase;
  font-size:.92rem;
}

.logo-sub{
  font-size:.8rem;
  color:#5f7268;
}

.hero{
  max-width:960px;
  margin:0 auto;
  padding:18px 20px 20px;
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);
  gap:22px;
  align-items:center;
}

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

.hero-title{
  font-size:clamp(1.9rem,3.1vw,2.4rem);
  margin:0 0 10px;
}

.hero-subtitle{
  font-size:.98rem;
  color:#5f7268;
  margin:0 0 14px;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-bottom:12px;
}

.btn-primary{
  border-radius:999px;
  border:none;
  padding:11px 22px;
  font-size:.95rem;
  font-weight:600;
  cursor:pointer;
  background:linear-gradient(135deg,#2f7d5b,#46a477);
  color:#fff;
  box-shadow:0 8px 22px rgba(28,104,72,.35);
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transform:translateY(0);
  transition:transform .18s ease, box-shadow .18s ease;
}

.btn-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 26px rgba(28,104,72,.45);
}

.hero-note{
  font-size:.8rem;
  color:#7a8b80;
}

.hero-bullets{
  list-style:none;
  padding-left:0;
  margin:6px 0 0;
  font-size:.9rem;
  color:#5f7268;
}

.hero-bullets li{
  margin-bottom:4px;
}

.hero-bullets li::before{
  content:"•";
  display:inline-block;
  width:1em;
  color:#2f7d5b;
}

.card{
  background:rgba(255,255,255,.96);
  border-radius:20px;
  padding:16px 16px 18px;
  box-shadow:0 14px 26px rgba(35,82,60,.18);
  border:1px solid rgba(255,255,255,.9);
  position:relative;
  overflow:hidden;
}

.hero-card::before{
  content:"";
  position:absolute;
  width:140px;
  height:140px;
  border-radius:50%;
  background:radial-gradient(circle,#e9f7ee 0,#cfeedd 55%,#b5e0cb 100%);
  top:-60px;
  right:-40px;
  opacity:.8;
}

.hero-card::after{
  content:"";
  position:absolute;
  width:90px;
  height:40px;
  border-radius:999px;
  background:#ffe5c2;
  bottom:-18px;
  left:30px;
  opacity:.7;
}

.hero-card h3{
  margin:0 0 8px;
}

.hero-card p{
  margin:0 0 6px;
  color:#5f7268;
}

.about-section{
  max-width:960px;
  margin:0 auto;
  padding:0 20px 24px;
}

.about-section h2{
  font-size:1.2rem;
  margin-bottom:8px;
}

.about-section p{
  font-size:.95rem;
  color:#5f7268;
  max-width:720px;
}

.how-to-list{
  list-style:disc;
  padding-left:22px;
  font-size:.9rem;
  color:#5f7268;
  margin-top:6px;
}

.how-to-list li{
  margin-bottom:4px;
}

.about-section h3{
  margin-top:14px;
  margin-bottom:6px;
  font-size:1rem;
}

.about-section ul{
  list-style:disc;
  padding-left:22px;
  font-size:.9rem;
  color:#5f7268;
}

.about-section ul li{
  margin-bottom:4px;
}

.gratitude-line{
  font-style:italic;
}

.disclaimer{
  font-size:.85rem;
  color:#5f7268;
  background:rgba(255,255,255,.95);
  border-radius:16px;
  padding:12px 14px;
  margin-top:14px;
  border-left:4px solid #f7c58a;
  box-shadow:0 6px 14px rgba(164,121,60,.15);
}

.landing-footer{
  border-top:1px solid rgba(0,0,0,.04);
  padding:14px 20px 18px;
  font-size:.8rem;
  color:#7a8b80;
  text-align:center;
  background:rgba(255,255,255,.92);
}

/* -------- APP STYLES -------- */

.app{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.app-header{
  padding:16px 20px 8px;
  text-align:center;
}

.app-header h1{
  margin:0;
  font-size:1.5rem;
}

.tagline{
  margin:4px 0 0;
  font-size:.9rem;
  color:#5f7268;
}

.small-muted{
  font-size:.8rem;
  color:#7a8b80;
}

main{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:10px 12px 20px;
}

.progress-bar-wrapper{
  width:100%;
  max-width:640px;
  margin-bottom:10px;
}

.progress-label{
  font-size:.78rem;
  color:#6a8074;
  margin-bottom:4px;
}

.progress-track{
  width:100%;
  height:6px;
  border-radius:999px;
  background:#e3f2e9;
  overflow:hidden;
}

.progress-fill{
  height:100%;
  width:20%;
  border-radius:999px;
  background:linear-gradient(90deg,#2f7d5b,#46a477);
  transition:width .25s ease;
}

.screen{
  display:none;
  width:100%;
  max-width:640px;
  background:rgba(255,255,255,.98);
  border-radius:20px;
  padding:18px 16px 20px;
  box-shadow:0 14px 30px rgba(40,104,72,.20);
  position:relative;
  overflow:hidden;
}

.screen::before{
  content:"";
  position:absolute;
  width:160px;
  height:160px;
  border-radius:50%;
  background:radial-gradient(circle,#e9f7ee 0,#cfeedd 55%,#b5e0cb 100%);
  top:-80px;
  right:-60px;
  opacity:.7;
}

.screen::after{
  content:"";
  position:absolute;
  width:120px;
  height:40px;
  border-radius:999px;
  background:#ffe3c1;
  bottom:-18px;
  left:30px;
  opacity:.6;
}

.screen > *{
  position:relative;
  z-index:1;
}

.screen.active{
  display:block;
  animation:fadeSlideIn .25s ease-out;
}

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

.screen h2{
  margin-top:0;
  margin-bottom:6px;
  font-size:1.2rem;
}

.screen p{
  margin-top:4px;
  margin-bottom:10px;
  font-size:.95rem;
}

.thought-box textarea,
.field textarea{
  width:100%;
  border-radius:10px;
  border:1px solid #c3d9cc;
  padding:8px;
  font-family:inherit;
  resize:vertical;
}

.thought-box textarea:focus,
.field textarea:focus,
select:focus{
  outline:none;
  border-color:#2f7d5b;
  box-shadow:0 0 0 2px rgba(47,125,91,.18);
}

.field{margin:10px 0;}

.field-label{
  display:block;
  font-size:.85rem;
  margin-bottom:4px;
}

.field-hint{
  margin-top:2px;
}

select{
  width:100%;
  padding:7px 8px;
  border-radius:8px;
  border:1px solid #c3d9cc;
  font-family:inherit;
  background:#f9fcfa;
}

.actions{
  display:flex;
  justify-content:space-between;
  gap:8px;
  margin-top:16px;
  flex-wrap:wrap;
}

button{font-family:inherit;}

.primary{
  border-radius:999px;
  border:none;
  padding:9px 18px;
  font-size:.9rem;
  font-weight:600;
  cursor:pointer;
  background:linear-gradient(135deg,#2f7d5b,#46a477);
  color:#fff;
  box-shadow:0 8px 20px rgba(28,104,72,.35);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  transition:transform .18s ease,box-shadow .18s ease;
}

.primary:hover{
  transform:translateY(-1px);
  box-shadow:0 11px 24px rgba(28,104,72,.45);
}

.secondary{
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  padding:8px 14px;
  font-size:.85rem;
  cursor:pointer;
  background:rgba(255,255,255,.95);
  color:#183027;
}

.small-btn{
  margin-top:8px;
  padding-inline:12px;
}

.category-group{
  margin-bottom:8px;
}

.category-label{
  font-weight:600;
  font-size:.9rem;
  margin-bottom:4px;
}

.category-options{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  font-size:.85rem;
}

.category-options label{
  background:#f4faf6;
  border-radius:999px;
  padding:4px 10px;
  border:1px solid #d2e6d9;
}

.category-options input{
  margin-right:4px;
}

.current-thought{
  border-radius:999px;
  padding:7px 11px;
  font-size:.9rem;
  color:#214435;
  background:linear-gradient(90deg,#e1f3e7,#f9fdfb);
  border:1px solid #c7e3d1;
}

.result-banner{
  margin-top:8px;
  margin-bottom:10px;
  display:flex;
  align-items:flex-start;
  gap:10px;
}

.result-illustration{
  width:52px;
  height:52px;
  border-radius:18px;
  background:conic-gradient(from 210deg,#e9f7ee,#cfeedd,#e6f9f0,#c4e4ff);
  position:relative;
  flex-shrink:0;
}

.result-illustration::before,
.result-illustration::after{
  content:"";
  position:absolute;
  border-radius:999px;
  background:#fffdf8;
}

.result-illustration::before{
  width:26px;
  height:10px;
  bottom:9px;
  left:50%;
  transform:translateX(-50%);
  opacity:.9;
}

.result-illustration::after{
  width:12px;
  height:12px;
  top:10px;
  right:9px;
  box-shadow:0 0 0 4px rgba(255,255,255,.7);
}

.result-banner.result-irrational .result-illustration{
  background:conic-gradient(from 200deg,#ffe1e1,#ffd1d1,#ffecec,#ffc6c6);
}

.result-banner.result-short .result-illustration{
  background:conic-gradient(from 200deg,#fff0d8,#ffe5bf,#fff6dd,#ffd9a0);
}

.result-banner.result-long .result-illustration{
  background:conic-gradient(from 200deg,#dff7e8,#c5ecd5,#e7faf0,#b7e2c7);
}

.result-title{
  font-weight:600;
  margin-bottom:4px;
}

.result-text{
  margin:0;
  font-size:.92rem;
  color:#5f7268;
}

.result-banner.result-irrational{
  border-left:4px solid #d64545;
}

.result-banner.result-short{
  border-left:4px solid #e59b31;
}

.result-banner.result-long{
  border-left:4px solid #2f7d5b;
}

.app-footer{
  padding:10px 16px 14px;
  text-align:center;
}

.link-button{
  background:none;
  border:none;
  color:#2f7d5b;
  text-decoration:underline;
  font-size:.85rem;
  cursor:pointer;
}

@media (max-width:600px){
  .screen{
    border-radius:0;
    box-shadow:none;
    max-width:100%;
  }
  .progress-bar-wrapper{
    max-width:100%;
  }
}
