:root {
  --ink: #24352f;
  --muted: #60746b;
  --paper: #fbf8ef;
  --panel: #fffdf6;
  --moss: #4b7258;
  --moss-dark: #31543d;
  --coral: #d86f52;
  --gold: #e9b85c;
  --sky: #8fb6c4;
  --line: rgba(36, 53, 47, 0.14);
  --shadow: 0 18px 45px rgba(64, 79, 59, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(233, 184, 92, 0.22), transparent 26rem),
    linear-gradient(135deg, #f8f0dc 0%, #eef3e8 47%, #eaf2f5 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
}

.header-logout {
  margin-left: auto;
  white-space: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.5625rem;
  font-weight: 800;
  text-decoration: none;
}

.brand sup {
  margin-left: 2px;
  font-size: 0.42em;
}

.brand-mark {
  width: 34px;
  height: 38px;
  background: url("assets/sprout-icon.svg?v=7") center / contain no-repeat;
}

.nav-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.72);
  backdrop-filter: blur(14px);
}

.nav-tabs a {
  min-width: 88px;
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.nav-tabs a.active {
  color: var(--panel);
  background: var(--moss-dark);
}

.account-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.84);
  box-shadow: var(--shadow);
}

.account-panel p {
  margin: 0;
  color: var(--muted);
}

.account-privacy {
  margin-top: 4px !important;
  color: var(--moss-dark) !important;
  font-size: 0.9rem;
  font-weight: 700;
}

.account-kicker {
  margin-bottom: 3px !important;
  color: var(--coral) !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.auth-form + .auth-form {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.auth-form h3 {
  margin: 0 0 4px;
  color: var(--moss-dark);
  font-size: 1rem;
}

.auth-form input {
  min-height: 44px;
  padding: 10px 12px;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
}

.password-field input {
  min-width: 0;
}

.password-toggle {
  min-width: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--moss-dark);
  background: white;
  font-size: 0.86rem;
  font-weight: 800;
}

.password-toggle:hover {
  background: #edf3e8;
}

.terms-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 9px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.terms-check input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 2px;
  accent-color: var(--moss-dark);
}

.terms-check a {
  color: var(--moss-dark);
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 4px;
}

.page {
  display: none;
  padding-top: 36px;
}

.page.active {
  display: block;
}

.hero-grid,
.auth-landing {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 28px;
}

.auth-landing {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
}

.auth-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: auto;
}

.auth-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.5;
}

.auth-copy.centered {
  max-width: none;
  text-align: center;
}

.home-actions {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.home-action-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  color: var(--ink);
  text-decoration: none;
}

.home-action-card:hover .home-action-bubble {
  border-color: rgba(75, 114, 88, 0.38);
  background: #fffdf6;
  transform: translateY(-1px);
}

.home-action-icon {
  justify-self: center;
  width: 72px;
  height: 78px;
}

.home-action-sprout {
  background: url("assets/sprout-icon.svg?v=7") center / contain no-repeat;
}

.home-action-flower {
  position: relative;
  width: 68px;
  height: 78px;
}

.home-action-flower::before {
  content: "";
  position: absolute;
  left: 30px;
  bottom: 3px;
  width: 8px;
  height: 43px;
  border-radius: 999px;
  background: #4b7258;
}

.home-action-flower::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #d7b7e8;
  box-shadow:
    0 21px 0 #c99fdf,
    21px 10px 0 #b986d3,
    -21px 10px 0 #c79adb,
    0 10px 0 8px #e7bf62;
}

.home-action-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--moss-dark);
  background: rgba(255, 253, 246, 0.84);
  box-shadow: var(--shadow);
  font-weight: 800;
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.eyebrow,
.prompt-label {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: 4rem;
}

#home-title {
  text-align: center;
}

h2 {
  font-size: 3.6rem;
}

.prompt-panel,
.form-panel {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.84);
  box-shadow: var(--shadow);
}

.prompt-panel {
  width: 100%;
  max-width: none;
}

.suggestion-text {
  min-height: 92px;
  margin: 0;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.primary-button,
.secondary-button,
.icon-button,
.text-button {
  border: 0;
  border-radius: 8px;
  font-weight: 800;
}

.primary-button {
  min-height: 46px;
  padding: 0 18px;
  color: white;
  background: var(--moss-dark);
}

.primary-button:hover,
.nav-tabs a.active:hover {
  background: #284633;
}

.secondary-button {
  min-height: 46px;
  padding: 0 16px;
  color: var(--moss-dark);
  border: 1px solid var(--line);
  background: white;
}

.secondary-button:hover {
  background: #edf3e8;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--moss-dark);
  background: #edf3e8;
  font-size: 1.25rem;
}

.text-button {
  min-height: 40px;
  padding: 0 12px;
  color: var(--moss-dark);
  background: transparent;
}

.text-button:hover {
  background: rgba(75, 114, 88, 0.1);
}

.sun-window {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(36, 53, 47, 0.1);
  background:
    linear-gradient(180deg, rgba(30, 45, 37, 0.02), rgba(30, 45, 37, 0.2)),
    url("assets/garden-banner.svg?v=3");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.sun-window::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 253, 246, 0.1), transparent 42%, rgba(36, 53, 47, 0.16)),
    radial-gradient(circle at 22% 18%, rgba(255, 253, 246, 0.22), transparent 32rem);
  pointer-events: none;
}

.sun-window::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 53, 47, 0.04) 1px, transparent 1px);
  background-size: 6px 6px;
  opacity: 0.08;
  pointer-events: none;
}

.sun {
  display: none;
}

.hill {
  display: none;
}

.hill-back {
  display: none;
}

.sprout {
  display: none;
}


.sprout::before,
.sprout::after {
  content: "";
  position: absolute;
  top: 22px;
  width: 54px;
  height: 28px;
  border-radius: 100% 0 100% 0;
  background: #dbe8b1;
}

.sprout::before {
  right: 7px;
  transform: rotate(-18deg);
}

.sprout::after {
  left: 7px;
  transform: scaleX(-1) rotate(-18deg);
}

.sprout-one {
  left: 20%;
}

.sprout-two {
  left: 48%;
  bottom: 78px;
  transform: scale(1.18);
}

.sprout-three {
  right: 17%;
  transform: scale(0.86);
}

.today-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 20px;
}

.today-strip .empty-state {
  grid-column: 1 / -1;
}

.mini-card,
.seed-card,
.journal-card,
.streak-card,
.prompt-item,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.78);
}

.mini-card {
  padding: 16px;
}

.mini-card strong,
.seed-card strong,
.journal-card strong,
.prompt-item strong {
  display: block;
  margin-bottom: 7px;
}

.mini-card p,
.seed-card p,
.journal-card p,
.prompt-item p,
.empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 22px;
}

.section-heading.split {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 18px;
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.form-panel {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: none;
  margin-top: 34px;
  margin-bottom: 24px;
}

.form-panel.compact {
  max-width: 660px;
}

label {
  color: var(--moss-dark);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: white;
  outline: none;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--moss);
  box-shadow: 0 0 0 4px rgba(75, 114, 88, 0.14);
}

.mood-scale {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 2px;
  padding: 0;
  border: 0;
}

.mood-scale legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--moss-dark);
  font-weight: 800;
}

.mood-scale label {
  display: grid;
  place-items: center;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.mood-scale input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mood-icon {
  display: block;
  width: 46px;
  height: 46px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.mood-angry {
  background-image: url("assets/mood-angry.svg");
}

.mood-sad {
  background-image: url("assets/mood-sad.svg");
}

.mood-neutral {
  background-image: url("assets/mood-neutral.svg");
}

.mood-okay {
  background-image: url("assets/mood-okay.svg");
}

.mood-happy {
  background-image: url("assets/mood-happy.svg");
}
.mood-scale small {
  color: var(--muted);
  font-weight: 800;
}

.mood-scale label:has(input:checked) {
  border-color: var(--moss);
  background: #edf3e8;
  box-shadow: inset 0 0 0 2px rgba(75, 114, 88, 0.18);
}

.garden-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.seed-card,
.journal-card,
.prompt-item {
  padding: 18px;
}

.seed-visual {
  width: 92px;
  height: 104px;
  margin-bottom: 14px;
  background: url("assets/sprout-icon.svg?v=7") center / contain no-repeat;
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  color: var(--moss-dark);
  background: white;
  font-weight: 800;
  text-decoration: none;
}

.small-button.fill {
  color: white;
  border-color: var(--moss);
  background: var(--moss);
}

.prompt-list,
.journal-list {
  display: grid;
  gap: 12px;
  max-width: none;
}

.streak-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.streak-card strong {
  display: block;
  color: var(--moss-dark);
  font-size: 1.55rem;
  line-height: 1;
}

.streak-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.streak-card .prompt-label {
  color: var(--moss-dark);
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
}

.journal-card.completed {
  border-color: rgba(75, 114, 88, 0.36);
  background: rgba(240, 247, 231, 0.82);
}

.support-layout {
  max-width: none;
}

.verified-layout {
  max-width: none;
}

.privacy-layout {
  max-width: none;
}

.support-message,
.disclaimer-message,
.verified-message,
.policy-content {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.78);
}

.support-message {
  padding: 24px;
  box-shadow: var(--shadow);
}

.support-message p {
  margin: 0;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 650;
  line-height: 1.58;
}

.support-message p + p {
  margin-top: 18px;
}

.support-message a {
  color: var(--moss-dark);
  font-weight: 900;
}

.verified-message {
  display: grid;
  gap: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.verified-message p {
  margin: 0;
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 650;
  line-height: 1.55;
}

.verified-message .primary-button {
  width: fit-content;
  text-decoration: none;
}

.disclaimer-message {
  margin-top: 16px;
  padding: 18px;
  background: rgba(255, 253, 246, 0.54);
}

.disclaimer-message p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.disclaimer-message h3 {
  margin: 0 0 8px;
  color: var(--moss-dark);
  font-size: 0.95rem;
}

.danger-zone {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(160, 62, 45, 0.28);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.72);
}

.danger-zone h3 {
  margin: 0 0 8px;
  color: #8d392b;
  font-size: 0.95rem;
}

.danger-zone p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.danger-button {
  min-height: 42px;
  margin-top: 14px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  color: white;
  background: #9f3f31;
  font-weight: 800;
}

.danger-button:hover {
  background: #843328;
}

.danger-status {
  margin-top: 10px !important;
  color: #8d392b !important;
  font-weight: 700;
}

.policy-content {
  padding: 24px;
}

.policy-content h3 {
  margin: 24px 0 8px;
  color: var(--moss-dark);
  font-size: 1.05rem;
}

.policy-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.policy-content p + p {
  margin-top: 12px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  justify-content: center;
  padding-top: 34px;
}

.footer-brand {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.footer-brand sup {
  margin-left: 2px;
  font-size: 0.58rem;
}

.site-footer a {
  color: var(--moss-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.meta {
  margin-top: 12px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mood-note {
  margin-top: 10px;
  display: flex;
  align-items: center;
}

.mood-icon-small {
  width: 34px;
  height: 34px;
}

.reflection-label {
  display: block;
  margin-top: 16px;
  margin-bottom: 8px;
  color: var(--moss-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.reflection-input {
  min-height: 92px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 28px;
  text-align: center;
}

.empty-mark {
  width: 48px;
  height: 56px;
  margin-bottom: 12px;
  background: url("assets/sprout-icon.svg?v=7") center / contain no-repeat;
}

@media (max-width: 820px) {
  .app-shell {
    width: min(100% - 22px, 760px);
    padding-top: 12px;
  }

  .topbar,
  .account-panel,
  .section-heading.split {
    align-items: stretch;
    flex-direction: column;
  }

  .account-panel {
    display: flex;
  }

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

  .auth-actions {
    grid-template-columns: 1fr;
  }

  .nav-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-radius: 8px;
  }

  .nav-tabs a {
    min-width: 0;
    padding: 10px 8px;
    border-radius: 6px;
    font-size: 0.84rem;
  }

  .page {
    padding-top: 30px;
  }

  .hero-grid,
  .auth-landing,
  .today-strip {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .auth-intro,
  .sun-window {
    min-height: auto;
  }

  .sun-window {
    min-height: 330px;
    order: -1;
  }

  .auth-landing .sun-window {
    order: 0;
  }

  .button-row {
    align-items: stretch;
  }

  .primary-button {
    flex: 1;
  }

  .secondary-button {
    flex: 1;
  }

  h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .suggestion-text {
    font-size: 1.5rem;
  }

  .mood-scale {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .streak-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

.garden-review-heading {
  margin-top: 36px;
}
