/* Daily Anxiety Reset - Craig Gibson / The Architect Method */

:root {
  --black: #0A0A0A;
  --charcoal: #2A2A2A;
  --gold: #C9A961;
  --gold-soft: rgba(201, 169, 97, 0.12);
  --gold-mid: rgba(201, 169, 97, 0.30);
  --off-white: #F5F2EC;
  --white: #FFFFFF;
  --text: #0A0A0A;
  --text-muted: rgba(10, 10, 10, 0.62);
  --text-on-dark: #F5F2EC;
  --text-muted-on-dark: rgba(245, 242, 236, 0.66);
  --border: rgba(10, 10, 10, 0.10);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 720px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.hide { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--black);
  background: var(--gold);
  border: none;
  border-radius: var(--radius);
  padding: 1rem 2.2rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--ease) 0.2s, box-shadow var(--ease) 0.2s, background 0.2s;
  box-shadow: 0 8px 24px rgba(201, 169, 97, 0.28);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(201, 169, 97, 0.36); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn-block { display: block; width: 100%; max-width: 460px; margin: 1.5rem auto 0; }
.btn-gold { background: var(--gold); }
.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--border);
  box-shadow: none;
  font-weight: 500;
}
.btn-outline:hover { border-color: var(--gold); box-shadow: none; transform: translateY(-1px); }
.link-btn { background: none; border: none; color: var(--text-muted); font-family: var(--font-body); font-size: 0.88rem; cursor: pointer; }
.link-btn:hover { color: var(--gold); }

/* ---------- Header ---------- */
.header { border-bottom: 1px solid var(--border); background: var(--white); }
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo { height: 30px; width: auto; }
.header-tag {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.header-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 0.75rem;
}

.view { min-height: calc(100vh - 130px); }

/* ---------- Intro ---------- */
.intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 1rem;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.eyebrow-light { color: var(--gold); }
.intro h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 1.3rem;
}
.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 1.8rem;
}
.streak {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid var(--gold-mid);
  border-radius: 999px;
  padding: 0.4rem 1rem;
}
.today-line { margin-top: 0.9rem; font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Container / fields ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.nudge {
  background: var(--white);
  border: 1.5px solid var(--gold-mid);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-size: 0.96rem;
  color: var(--text);
  margin-bottom: 2rem;
}
.field { margin-bottom: 2.4rem; animation: fadeUp 0.4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.field-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}
.field-label .opt {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  vertical-align: middle;
}
.field-hint { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 1.1rem; }
.field-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.95rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.18s;
}
.field-input:focus { outline: none; border-color: var(--gold); }

/* ---------- Slider ---------- */
.slider-wrap { display: flex; align-items: center; gap: 1.4rem; }
.slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  outline: none;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(201,169,97,0.5);
  border: 3px solid var(--white);
}
.slider::-moz-range-thumb {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(201,169,97,0.5);
}
.slider-value { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; color: var(--text); white-space: nowrap; min-width: 70px; text-align: right; }
.slider-of { font-size: 1rem; color: var(--text-muted); }

/* ---------- Chips ---------- */
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.chip {
  text-align: left;
  font-family: var(--font-body);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem 1.1rem;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.12s;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.chip:hover { border-color: var(--gold-mid); background: var(--gold-soft); }
.chip.selected { border-color: var(--gold); background: var(--gold-soft); }
.chip-label { font-weight: 600; font-size: 1rem; position: relative; }
.chip.selected .chip-label::before { content: "\2713  "; color: var(--gold); font-weight: 700; }
.chip-hint { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }

.reset-row { text-align: center; margin-top: 1.4rem; }

/* ---------- Loading ---------- */
.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; padding: 2rem; text-align: center; }
.spinner {
  width: 46px; height: 46px;
  border: 3px solid var(--gold-soft);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1.4rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: var(--text-muted); font-size: 1rem; }

/* ---------- Plan ---------- */
#plan-capture { background: var(--off-white); }
.pdf-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2rem;
  background: var(--black);
}
.pdf-logo { height: 26px; }
.pdf-head-tag { color: var(--gold); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }
body.capturing .pdf-head { display: flex; }

.summary-block {
  background: var(--black);
  color: var(--text-on-dark);
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
}
.summary-date { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--gold); margin: 0.4rem 0 0.6rem; }
.summary-feeling { color: var(--text-muted-on-dark); font-size: 1.02rem; max-width: 520px; margin: 0 auto 1.8rem; }
.summary-grid { max-width: 540px; margin: 0 auto; text-align: left; display: flex; flex-direction: column; gap: 0.7rem; }
.summary-row { display: grid; grid-template-columns: 38% 1fr; gap: 0.8rem; padding: 0.7rem 0; border-top: 1px solid rgba(245,242,236,0.14); }
.summary-k { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.summary-v { color: var(--text-on-dark); font-size: 0.98rem; }

.report-section { max-width: var(--max); margin: 0 auto; padding: 3.2rem 1.5rem; border-bottom: 1px solid var(--border); }
.section-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  line-height: 1.18;
  margin-bottom: 0.9rem;
}
.section-intro { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.02rem; }

/* Plan list */
.plan-list { list-style: none; counter-reset: plan; display: flex; flex-direction: column; gap: 1.1rem; }
.plan-list li {
  counter-increment: plan;
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem 1.2rem 3.6rem;
  font-size: 1.04rem;
  color: var(--text);
  line-height: 1.55;
}
.plan-list li::before {
  content: counter(plan);
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  width: 1.7rem; height: 1.7rem;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fix first */
.fixfirst-card {
  background: var(--gold-soft);
  border: 1.5px solid var(--gold-mid);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.7rem;
}
.fixfirst-thing { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--text); margin-bottom: 0.9rem; line-height: 1.3; }
.fixfirst-step { font-size: 1rem; color: var(--text); line-height: 1.7; }

/* Reframe */
.reframe-section { background: var(--white); }
.reframe-text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.5;
  color: var(--text);
  border-left: 3px solid var(--gold);
  padding-left: 1.3rem;
}

/* CTA */
.cta-block {
  background: var(--black);
  color: var(--text-on-dark);
  text-align: center;
  padding: 4rem 1.5rem 4.5rem;
}
.cta-eyebrow { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 1rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-block h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.4vw, 2.8rem);
  line-height: 1.12;
  margin-bottom: 1.2rem;
}
.cta-sub { max-width: 540px; margin: 0 auto 2.2rem; color: var(--text-muted-on-dark); font-size: 0.98rem; }

/* Download */
.download-block { max-width: var(--max); margin: 0 auto; padding: 2.5rem 1.5rem 1rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.restart { background: none; border: none; color: var(--text-muted); font-family: var(--font-body); font-size: 0.9rem; cursor: pointer; }
.restart:hover { color: var(--gold); }

/* Footer */
.site-footer { text-align: center; padding: 2.5rem 1.5rem; color: var(--text-muted); font-size: 0.82rem; letter-spacing: 0.04em; }

body.capturing .download-block,
body.capturing .site-footer { display: none !important; }

/* In-app browser help */
.browser-help {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 50;
}
.browser-help-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 420px;
  text-align: center;
}
.browser-help-card h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 0.8rem; }
.browser-help-card p { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.95rem; }
.browser-help-how { font-size: 0.9rem; }
.browser-help-card .btn { margin-top: 0.5rem; }

@media (max-width: 520px) {
  .header-tag { display: none; }
  .header-title { font-size: 0.82rem; padding: 0 0.5rem; }
  .intro { padding: 2.5rem 1.25rem 1rem; }
  .chips { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .cta-block .btn { max-width: 360px; }
  .summary-row { grid-template-columns: 1fr; gap: 0.2rem; }
}
