:root{
  --bg: #141729;         /* Dark background */
  --text: #ffffff;       /* White text */
  --muted: #9199CA;      /* Light muted text */
  --accent: #76ADCB;     /* Buttons / highlights */
  --container-max: 980px;
  --radius: 8px;
  --gap: 1rem;
  --btn-padding: 0.75rem 1.25rem;
}

body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color:var(--text);
  background:var(--bg);
  line-height:1.45;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  padding-bottom:3rem;
}

/* Container */
.container{
  max-width:var(--container-max);
  margin:0 auto;
  padding:1rem;
}

/* Header */
.site-header{
  border-bottom:1px solid #9199CA;
  background:transparent;
  position:sticky;
  top:0;
  z-index:100;
  backdrop-filter: blur(4px);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--gap);
  padding:0.75rem 1rem;
}
.brand{
  text-decoration:none;
  color:var(--text);
}
.brand strong{font-size:1.05rem;display:block}
.brand .tagline{font-size:0.8rem;color:var(--muted);display:block;margin-top:0.15rem}

/* Navigation */
.nav-link {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px 0;
  border-radius: 25px;
  background-color: #1E2238;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.nav-link.active {
  background-color: var(--accent);
  color: #fff;
}

/* Hero */
.hero{
  padding:2rem 0 1.5rem;
  text-align:center;
}
.lede{color:var(--muted);max-width:60ch;margin:0.5rem auto 1rem}
.actions{display:flex;gap:1rem;justify-content:center;margin-top:1rem;flex-wrap:wrap}
.btn{
  display:inline-block;
  text-decoration:none;
  text-align:center;
  border-radius:var(--radius);
  padding:var(--btn-padding);
  font-weight:600;
  color:var(--accent);
  border:2px solid var(--accent);
}
.btn-primary{
  background:var(--accent);
  color:#ffffff;
}
.btn-outline{
  background:transparent;
  color:var(--accent);
  border:2px solid var(--accent);
}

/* Sections */
.how-it-works, .overview{margin-top:1.5rem;padding:1.5rem 0;border-top:1px solid #9199CA33}
.how-it-works ol, .overview ol{margin:0;padding-left:1.25rem;color:var(--muted)}

/* Form page layout */
.form-page{padding:1rem 0 2rem}
.form-page h1{margin-top:0}
.iframe-wrapper{
  margin-top:1rem;
  border:1px solid #9199CA33;
  padding:0.5rem;
  border-radius:6px;
  background:#1E2238;
}
.iframe-wrapper iframe{
  width:100%;
  min-height:520px;
  border:0;
  border-radius:6px;
  display:block;
}

/* Small notes */
.small{font-size:0.85rem;color:var(--muted)}
.note{margin-top:0.75rem}

/* Footer */
.site-footer{
  border-top:1px solid #9199CA33;
  margin-top:2rem;
  background:transparent;
  padding:1rem 0;
}
.footer-inner{display:flex;flex-direction:column;gap:0.35rem;align-items:center;text-align:center;color:var(--muted)}

/* Utilities */
ul{margin-top:0}
.form-fallback{margin-top:0.75rem}
.actions .btn{min-width:200px}

/* Accessibility: focus states */
a:focus, button:focus, input:focus, textarea:focus{
  outline:3px solid rgba(118,173,203,0.4);
  outline-offset:2px;
}

/* Progress page pillars and goals */
.pillar{
  margin-top:1.5rem;
}

.pillar h3{
  margin-bottom:0.75rem;
  color:var(--accent);
}

.progress-bar{
  background:#1E2238;
  border-radius:var(--radius);
  overflow:hidden;
  margin:.5rem 0;
  height:12px;
}

.progress-fill{
  height:100%;
  background:var(--accent);
  width:0%;
  transition: width 0.3s ease;
}

/* Goals list */
.goal{
  display:flex;
  align-items:center;
  gap:0.75rem;
  padding:0.5rem 0;
  cursor:pointer;
  position:relative;
  border-bottom:1px solid #9199CA33;
}

.goal span{
  flex:1;
}

.goal .check{
  font-size:1.25rem;
  color:#4CAF50;
}

.goal .unchecked{
  font-size:1.25rem;
  color:var(--muted);
}

/* Delete button hidden by default, appears on hover */
.goal button.delete-btn{
  position:absolute;
  right:0;
  background:red;
  color:white;
  border:none;
  padding:2px 6px;
  border-radius:4px;
  cursor:pointer;
  opacity:0;
  transition:opacity 0.2s;
}

.goal:hover button.delete-btn{
  opacity:1;
}

/* Input for adding new goals */
#addGoalSection{
  display:flex;
  gap:0.5rem;
  margin-bottom:1rem;
}

#addGoalSection input{
  flex:1;
  border-radius:var(--radius);
  border:1px solid #9199CA33;
  background:#1E2238;
  color:var(--text);
  padding:var(--btn-padding);
}

#addGoalSection button{
  border-radius:var(--radius);
  padding:var(--btn-padding);
  background:var(--accent);
  color:#fff;
  border:none;
  font-weight:600;
  cursor:pointer;
  transition:all 0.2s ease;
}

#addGoalSection button:hover{
  transform:translateY(-2px);
  background:#5e99b5;
}

/* Smaller screens */
@media (max-width:640px){
  .header-inner{padding:0.5rem 0.75rem}
  .brand strong{font-size:1rem}
  .actions .btn{min-width:0;width:100%}
  .lede{max-width:100%}
  .footer-inner{padding:0 0.5rem}
}
