/* ===== Reset & base ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;line-height:1.6;color:#2e2e38;background:#fcfaf7;min-height:100vh;display:flex;flex-direction:column}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
ul{list-style:none}
button{cursor:pointer;font:inherit;border:none;background:none}

/* ===== Skip link ===== */
.skip-link{position:absolute;left:-9999px;top:0;z-index:1000;background:#4a4a5a;color:#fff;padding:.5rem 1rem;border-radius:0 0 6px 0;font-weight:600}
.skip-link:focus{left:0}

/* ===== Container ===== */
.container{width:min(100% - 2rem, 1100px);margin-inline:auto}
.section-padding{padding:3rem 0}
.bg-soft{background:#f3efe8}

/* ===== Header ===== */
.site-header{background:#fff;border-bottom:1px solid #e7e1d8;position:sticky;top:0;z-index:100;backdrop-filter:blur(6px);background:rgba(255,255,255,.92)}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:.75rem 0}
.logo{display:flex;align-items:center;gap:.5rem;font-weight:700;font-size:1.2rem;color:#5b4b3a}
.logo-text{letter-spacing:-0.02em}
.main-nav ul{display:flex;gap:1.5rem}
.main-nav a{font-weight:500;padding:.25rem 0;border-bottom:2px solid transparent;transition:border-color .2s}
.main-nav a:hover,.main-nav a.active{border-bottom-color:#c4a882}

/* ===== Hero ===== */
.hero{background:linear-gradient(135deg,#f9f4ec 0%,#efe4d6 100%)}
.hero-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:center}
.hero-text h1{font-size:clamp(2rem,5vw,3rem);line-height:1.2;color:#3c3428;margin-bottom:1rem}
.hero-text h1 em{font-style:italic;color:#8b7355}
.hero-subtitle{font-size:1.15rem;color:#5f5344;max-width:42ch;margin-bottom:1.75rem}
.btn-primary{display:inline-block;background:#8b7355;color:#fff;padding:.75rem 1.75rem;border-radius:40px;font-weight:600;font-size:1rem;transition:background .2s,transform .1s;box-shadow:0 4px 12px rgba(139,115,85,.25)}
.btn-primary:hover{background:#6f5b42}
.btn-primary:active{transform:scale(.97)}
.btn-primary:disabled{background:#c4b8a8;box-shadow:none;cursor:not-allowed;transform:none}
.btn-secondary{display:inline-block;background:transparent;color:#5b4b3a;padding:.75rem 1.75rem;border-radius:40px;font-weight:600;font-size:1rem;border:1.5px solid #c4b8a8;transition:border-color .2s,background .2s}
.btn-secondary:hover{background:#f3efe8;border-color:#8b7355}

/* Hero blobs */
.hero-visual{position:relative;height:240px}
.emotion-blob{position:absolute;border-radius:50%;opacity:.7;filter:blur(30px)}
.blob-1{width:160px;height:160px;background:#e8c8a0;top:10px;left:20px}
.blob-2{width:130px;height:130px;background:#c4d7b2;bottom:20px;right:10px}
.blob-3{width:100px;height:100px;background:#d4b8c4;top:60px;right:50px}

/* ===== How it works ===== */
.steps-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.5rem;margin-top:2rem}
.step-card{background:#fff;padding:1.75rem;border-radius:20px;box-shadow:0 6px 18px rgba(0,0,0,.04);transition:transform .2s}
.step-card:hover{transform:translateY(-3px)}
.step-number{width:42px;height:42px;background:#efe4d6;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.2rem;color:#5b4b3a;margin-bottom:1rem}
.step-card h3{font-size:1.15rem;margin-bottom:.5rem;color:#3c3428}
.step-card p{color:#5f5344;font-size:.95rem}

/* ===== Check-in tool ===== */
.tool-intro{color:#6b5e4f;margin-bottom:1.5rem}
.app-container{background:#fff;border-radius:24px;padding:2rem;box-shadow:0 8px 28px rgba(0,0,0,.06)}
.app-step{display:none}
.app-step.active{display:block}
.app-step h3{font-size:1.3rem;color:#3c3428;margin-bottom:.35rem}
.step-hint{color:#6b5e4f;margin-bottom:1.25rem;font-size:.95rem}

/* Emotion wheel */
.emotion-wheel{display:flex;flex-wrap:wrap;gap:.65rem;margin-bottom:1.5rem}
.emotion-chip{background:#f3efe8;border:2px solid transparent;padding:.55rem 1.1rem;border-radius:40px;font-size:.95rem;font-weight:500;color:#4a3e32;transition:all .2s;user-select:none}
.emotion-chip:hover{border-color:#c4a882;background:#fdf8f2}
.emotion-chip.selected{background:#8b7355;color:#fff;border-color:#8b7355}
.selected-emotions{min-height:1.5rem;font-size:.9rem;color:#6b5e4f;margin-bottom:1.25rem}

/* Intensity list */
.intensity-list{display:flex;flex-direction:column;gap:1.25rem;margin-bottom:1.75rem}
.intensity-item{display:flex;flex-direction:column;gap:.35rem}
.intensity-label{display:flex;justify-content:space-between;font-weight:600;color:#3c3428}
.intensity-slider{-webkit-appearance:none;width:100%;height:8px;background:#e7e1d8;border-radius:8px;outline:none}
.intensity-slider::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;background:#8b7355;border-radius:50%;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.15)}
.trigger-input{width:100%;padding:.6rem .9rem;border:1.5px solid #e7e1d8;border-radius:12px;font-size:.95rem;background:#fdfcf9;transition:border-color .2s}
.trigger-input:focus{border-color:#8b7355;outline:none;box-shadow:0 0 0 3px rgba(139,115,85,.1)}

/* Step actions */
.step-actions{display:flex;gap:1rem;flex-wrap:wrap;margin-top:1.5rem}

/* Summary */
.summary-card{background:#f9f4ec;padding:1.5rem;border-radius:16px;margin-bottom:1.25rem;font-size:1rem;line-height:1.7}
.coping-card{background:#f0f4ea;padding:1.5rem;border-radius:16px;margin-bottom:1.25rem}
.coping-card h4{color:#4a5e3a;margin-bottom:.5rem}
.coping-card ul{padding-left:1.2rem;list-style:disc;color:#3c4d2e}
.disclaimer-note{font-size:.8rem;color:#9b8e7e;margin-top:1.5rem;font-style:italic}

/* ===== Why reflect ===== */
.benefits-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.5rem;margin-top:2rem}
.benefit-item{display:flex;align-items:flex-start;gap:1rem;background:#fff;padding:1.5rem;border-radius:18px;box-shadow:0 4px 14px rgba(0,0,0,.03)}
.benefit-item svg{flex-shrink:0;color:#8b7355}

/* ===== Footer ===== */
.site-footer{background:#2e2e38;color:#d4cec2;padding:1.5rem 0;margin-top:auto}
.footer-inner{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem}
.footer-inner a{color:#e7dcc8;text-decoration:underline;text-underline-offset:3px}
.footer-inner nav ul{display:flex;gap:1.5rem}

/* ===== About / Legal pages ===== */
.page-content{max-width:700px;padding:2rem 0 3rem}
.page-content h1{font-size:2rem;color:#3c3428;margin-bottom:1.5rem}

/* ===== Responsive ===== */
@media(max-width:700px){
  .hero-grid{grid-template-columns:1fr}
  .hero-visual{height:160px;margin-top:1rem}
  .header-inner{flex-wrap:wrap;gap:.5rem}
  .app-container{padding:1.25rem}
  .steps-grid{grid-template-columns:1fr}
  .benefits-grid{grid-template-columns:1fr}
  .footer-inner{flex-direction:column;text-align:center}
}
@media(max-width:400px){
  .emotion-wheel{gap:.4rem}
  .emotion-chip{padding:.45rem .8rem;font-size:.85rem}
}

/* ===== Focus states ===== */
:focus-visible{outline:2px solid #8b7355;outline-offset:2px}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
