/* Bertumbuh UI v0.4 — calm, editorial, action-first */
:root {
  --bg: #f7f5ef;
  --surface: #fbfaf6;
  --surface-2: #efede6;
  --ink: #243129;
  --muted: #747c76;
  --line: rgba(36,49,41,.10);
  --leaf: #647c69;
  --leaf-deep: #314b3a;
  --leaf-soft: #e7eee8;
  --sun-soft: #f5ead8;
  --rose-soft: #f3e6e1;
  --shadow: 0 12px 36px rgba(39,49,42,.055);
  --radius-xl: 26px;
  --radius-lg: 20px;
}

body { background: var(--bg); }

.app-shell { grid-template-columns: 224px minmax(0,1fr); }
.sidebar {
  padding: 28px 18px;
  background: rgba(247,245,239,.86);
  border-right: 1px solid rgba(36,49,41,.065);
  backdrop-filter: blur(18px);
}
.brand { margin-bottom: 36px; padding: 0 7px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 13px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.brand strong { font-size: 12px; letter-spacing: .15em; }
.brand small { font-size: 10px; }
.nav-list { gap: 3px; }
.nav-list a {
  padding: 11px 12px; border-radius: 12px;
  font-size: 13px; font-weight: 650;
}
.nav-list a:hover, .nav-list a.active { background: rgba(49,75,58,.065); }
.sidebar-note {
  padding: 15px; border: 0; border-radius: 16px;
  background: rgba(49,75,58,.055);
}
.sidebar-note p { font-size: 11px; }
.sidebar-note strong { font-size: 13px; }

.main-shell { max-width: 1160px; padding: 34px 44px 90px; }
.topbar { margin-bottom: 32px; align-items: center; }
.topbar h1 { font-size: clamp(31px,3.6vw,45px); }
.eyebrow { margin-bottom: 6px; font-size: 9px; letter-spacing: .17em; opacity: .72; }
.date-chip {
  padding: 7px 11px; border: 0; background: rgba(49,75,58,.055);
  font-size: 10px;
}

/* Utility actions are secondary, not part of daily mental load. */
.utility-trigger {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; border-radius: 11px; background: transparent;
  color: var(--muted); cursor: pointer; font-weight: 800; letter-spacing: .08em;
}
.utility-wrap { position: relative; }
.utility-menu {
  position: absolute; z-index: 40; right: 0; top: 42px; min-width: 156px;
  display: none; padding: 7px; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(251,250,246,.98); box-shadow: 0 18px 44px rgba(31,42,35,.12);
}
.utility-wrap.open .utility-menu { display: grid; }
.utility-menu .ghost-button { display: block; width: 100%; text-align: left; padding: 9px 10px; font-size: 11px; }

.card { box-shadow: none; border-color: rgba(36,49,41,.075); }
.hero-grid { grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr); gap: 14px; margin-bottom: 30px; }
.north-card {
  min-height: 235px; padding: 30px 32px;
  background: linear-gradient(145deg,#304b3a,#405e49);
  border: 0; box-shadow: 0 18px 44px rgba(39,62,47,.11);
}
.north-card::after { opacity: .65; }
.north-card blockquote { font-size: clamp(21px,2.25vw,29px); line-height: 1.35; }
.north-footer { font-size: 10px; }
.move-card {
  padding: 27px; border: 0; background: #f2e8d8;
  box-shadow: none;
}
.move-card .kicker { color: #8a7557; opacity: 1; }
.move-card .move-text { font-size: 17px; line-height: 1.5; }
.move-empty { font-size: 13px; line-height: 1.65; }
.primary-button, .soft-button, .ghost-button { border-radius: 11px; font-size: 11px; }
.primary-button { padding: 11px 15px; }

.section { margin-top: 34px; }
.section-heading { margin-bottom: 14px; }
.section-heading h2 { font-size: 22px; }
.section-heading p { font-size: 11px; line-height: 1.55; }
.text-link { font-size: 11px; }

/* Lists should read like guidance, not a table. */
.weekly-list { gap: 0 !important; border-top: 1px solid var(--line); }
.weekly-item,
.weekly-list.compact .weekly-item {
  padding: 13px 2px !important; border: 0 !important; border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important; background: transparent !important;
}
.weekly-item.done { opacity: .55; }
.weekly-check {
  width: 28px !important; height: 28px !important; border-radius: 50% !important;
  background: transparent !important;
}
.weekly-item.done .weekly-check { background: var(--leaf-deep) !important; }
.weekly-item p { font-size: 12px !important; line-height: 1.55 !important; }
.weekly-bet { font-size: 8px !important; }
.mini-link { font-size: 9px !important; }

.anchor-grid { gap: 8px; }
.anchor {
  padding: 14px; border: 0; border-radius: 15px;
  background: rgba(49,75,58,.045);
}
.anchor.done { background: var(--leaf-soft); }
.anchor h4 { font-size: 12px; }
.anchor p { font-size: 10px; }
.check-button { border-radius: 50%; border-color: rgba(36,49,41,.12); }

/* Big Bets: fewer cards per row, more readable content. */
.bet-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.bet-card {
  min-height: 184px; padding: 20px 21px; border: 0;
  background: rgba(251,250,246,.78); box-shadow: inset 0 0 0 1px rgba(36,49,41,.075);
}
.bet-card:hover { box-shadow: inset 0 0 0 1px rgba(49,75,58,.18), 0 12px 28px rgba(39,49,42,.05); }
.bet-icon { width: 34px; height: 34px; background: rgba(49,75,58,.055); }
.bet-card h3 { margin-top: 15px; font-size: 19px; }
.bet-card p { font-size: 11px; line-height: 1.6; }
.bet-card footer { font-size: 10px; padding-top: 14px; }
.bet-card footer span:first-child { display: none; }
.status-dot { background: rgba(49,75,58,.055); }

/* Intro panels become page intros, not giant cards. */
.intro-panel {
  padding: 5px 0 24px; border: 0; border-radius: 0;
  background: transparent; box-shadow: none;
}
.intro-panel .display { max-width: 780px; font-size: clamp(31px,4.2vw,47px); line-height: 1.17; }
.intro-panel .lead { max-width: 670px; margin-bottom: 0; font-size: 14px; }

/* Direction: already-known truth is displayed as a statement, not as a pre-filled form. */
.route-direction .intro-panel { display: none; }
.direction-story { max-width: 900px; padding-top: 4px; }
.direction-story-head { margin-bottom: 48px; }
.direction-story .story-kicker {
  display: block; margin-bottom: 14px; color: var(--leaf);
  font-size: 9px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase;
}
.direction-story h2 {
  max-width: 840px; margin: 0;
  font-family: Georgia,"Times New Roman",serif;
  font-size: clamp(30px,4.4vw,50px); line-height: 1.22; letter-spacing: -.035em; font-weight: 500;
}
.direction-story .life-direction {
  max-width: 760px; margin: 24px 0 0; color: var(--muted);
  font-size: 16px; line-height: 1.78;
}
.direction-story-grid {
  display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 38px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.story-block h3 {
  margin: 0 0 14px; font-family: Georgia,serif; font-size: 18px; font-weight: 500;
}
.story-values { display: flex; flex-wrap: wrap; gap: 7px; }
.story-value {
  padding: 7px 10px; border-radius: 999px; background: rgba(49,75,58,.065);
  color: var(--leaf-deep); font-size: 10px; font-weight: 720;
}
.story-guardrails { list-style: none; margin: 0; padding: 0; }
.story-guardrails li {
  position: relative; padding: 10px 0 10px 19px; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 12px; line-height: 1.6;
}
.story-guardrails li::before { content: "—"; position: absolute; left: 0; color: var(--leaf); }
.direction-edit-action { margin-top: 34px; }
.direction-edit-action button {
  border: 0; padding: 0; background: transparent; color: var(--leaf-deep);
  cursor: pointer; font-size: 11px; font-weight: 800;
}
.direction-grid.direction-editing { grid-template-columns: minmax(0,1fr) 300px; margin-top: 26px; }
.direction-grid.direction-editing .form-card {
  border: 0; background: rgba(251,250,246,.65); box-shadow: inset 0 0 0 1px rgba(36,49,41,.07);
}
.direction-grid:not(.direction-editing) { display: none !important; }
.direction-grid.direction-editing .textarea {
  background: transparent; border: 0; border-bottom: 1px solid rgba(36,49,41,.14); border-radius: 0;
  padding: 10px 0; resize: none;
}
.direction-grid.direction-editing .textarea:focus { box-shadow: none; border-bottom-color: var(--leaf-deep); }

/* Playbook: less nested-card look. */
.season-hero {
  padding: 36px 38px; border-radius: 24px;
  background: linear-gradient(145deg,#304b3a,#405e49); box-shadow: 0 18px 44px rgba(39,62,47,.10);
}
.playbook-group { margin-top: 30px !important; }
.group-head { margin-bottom: 5px !important; }
.group-label { background: transparent !important; padding: 0 !important; color: var(--leaf) !important; font-size: 8px !important; }
.playbook-bet {
  padding: 24px 0 !important; border: 0 !important; border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important; background: transparent !important;
}
.playbook-bet + .playbook-bet { margin-top: 0 !important; }
.metric-grid { gap: 6px !important; }
.metric-card {
  padding: 11px 12px !important; border: 0 !important; border-radius: 12px !important;
  background: rgba(49,75,58,.05) !important;
}
.metric-card span { font-size: 8px !important; }
.metric-card strong { font-size: 10px !important; }

/* Review form still needs inputs, but they should feel like a journal. */
.review-grid { gap: 24px; }
.review-grid > .form-card:first-child {
  padding: 0; border: 0; background: transparent;
}
.review-grid > .form-card:first-child .textarea {
  min-height: 84px; padding: 11px 0; border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; background: transparent; resize: vertical;
}
.review-grid > .form-card:first-child .textarea:focus { box-shadow: none; border-bottom-color: var(--leaf-deep); }
.review-entry { border: 0; background: rgba(49,75,58,.04); }

/* Dialog = focused reading surface. */
.bet-dialog { background: rgba(26,33,28,.24); backdrop-filter: blur(5px); }
.dialog-frame { border: 0 !important; box-shadow: 0 30px 80px rgba(24,31,26,.18) !important; }
.detail-block { border-color: var(--line) !important; }

@media (max-width: 920px) {
  .app-shell { grid-template-columns: 1fr; }
  .main-shell { padding: 26px 24px 96px; }
  .hero-grid { grid-template-columns: 1fr; }
  .route-today .move-card { order: -1; }
  .north-card { min-height: 200px; }
  .direction-story-grid { grid-template-columns: 1fr; gap: 28px; }
  .direction-grid.direction-editing { grid-template-columns: 1fr; }
  .bet-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  body { background: #f8f6f1; }
  .main-shell { padding: 18px 17px calc(92px + env(safe-area-inset-bottom)); }
  .topbar { margin-bottom: 23px; align-items: center; }
  .topbar h1 { font-size: 31px; }
  .topbar .eyebrow { display: none; }
  .date-chip { font-size: 9px; padding: 6px 9px; }
  .hero-grid { gap: 10px; margin-bottom: 28px; }
  .move-card { padding: 23px 21px; border-radius: 20px; }
  .north-card { min-height: 0; padding: 24px 22px; border-radius: 20px; }
  .north-card blockquote { font-size: 20px; line-height: 1.38; }
  .north-card::after { width: 180px; height: 180px; right: -80px; top: -80px; }
  .north-footer { margin-top: 24px; }
  .section { margin-top: 31px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 21px; }
  .section-heading p { max-width: 275px; }
  .section-heading .text-link { display: none; }
  .anchor-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bet-grid { grid-template-columns: 1fr; }
  .bet-card { min-height: 0; padding: 18px; }
  .bet-card footer { padding-top: 14px; }
  .intro-panel { padding: 2px 1px 15px; }
  .intro-panel .display { font-size: 31px; }
  .intro-panel .lead { font-size: 13px; }
  .direction-story-head { margin-bottom: 36px; }
  .direction-story h2 { font-size: 31px; line-height: 1.27; }
  .direction-story .life-direction { margin-top: 20px; font-size: 14px; line-height: 1.75; }
  .direction-story-grid { padding-top: 23px; gap: 26px; }
  .season-hero { padding: 26px 22px !important; border-radius: 20px !important; }
  .season-hero h2 { font-size: 31px !important; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .review-grid { grid-template-columns: 1fr !important; }
  .utility-menu { position: fixed; right: 14px; top: 59px; }
  .mobile-nav {
    background: rgba(250,249,245,.94) !important;
    backdrop-filter: blur(18px); border-top-color: rgba(36,49,41,.07) !important;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-nav a { font-size: 16px !important; }
  .mobile-nav small { font-size: 8px !important; }
  .dialog-frame { border-radius: 24px 24px 0 0 !important; }
}
