:root {
  --ink: #191714;
  --ink-soft: #3f3a34;
  --muted: #766f66;
  --line: #e5e0d8;
  --line-soft: #f0ebe4;
  --canvas: #faf9f5;
  --surface: #ffffff;
  --surface-soft: #fbfaf7;
  --navy: #0b4964;
  --blue: #2e6f8f;
  --blue-soft: #edf5f7;
  --teal: #3f7f77;
  --green: #3f7a55;
  --gold: #b8832b;
  --shadow: 0 18px 50px rgba(44, 38, 30, 0.06);
  --radius: 8px;
  --serif:
    "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif,
    serif;
  --sans:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--ink);
  font-family: var(--sans);
  font-synthesis: none;
  line-height: 1.35;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
}

body {
  background: var(--canvas);
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
  fill: none;
  flex: 0 0 auto;
  height: 1.25rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 1.25rem;
}

.icon-sprite {
  display: none;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.app-shell {
  background: var(--canvas);
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: #f4f2ec;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100vh;
  padding: 1.4rem 0.8rem;
  position: sticky;
  top: 0;
}

.brand-row {
  align-items: center;
  display: flex;
  min-height: 3rem;
  padding: 0 0.55rem 0.65rem;
}

.brand-mark,
.mobile-brand {
  color: var(--navy);
  font-size: 2.85rem;
  font-weight: 840;
  letter-spacing: -0.09em;
  line-height: 0.9;
}

.side-nav {
  display: grid;
  gap: 0.22rem;
}

.nav-item {
  align-items: center;
  border-radius: var(--radius);
  color: var(--ink-soft);
  display: flex;
  font-size: 1rem;
  font-weight: 520;
  gap: 0.85rem;
  min-height: 3.1rem;
  padding: 0 0.7rem;
}

.nav-item svg {
  color: #6f756f;
  height: 1.35rem;
  width: 1.35rem;
}

.nav-item.active {
  background: rgba(46, 111, 143, 0.11);
  color: var(--navy);
}

.nav-item.active svg {
  color: #073b7a;
}

.secondary-link {
  color: #427054;
}

.sidebar-divider {
  background: rgba(25, 23, 20, 0.1);
  height: 1px;
  margin: 0.25rem 0.55rem;
}

.workspace {
  min-width: 0;
}

.mobile-header {
  align-items: center;
  border-bottom: 0;
  display: flex;
  justify-content: space-between;
  min-height: 5.2rem;
  padding: 0 2rem;
}

.mobile-brand {
  display: none;
}

.select-button,
.text-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 540;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0 0.85rem;
}

.select-button svg {
  color: var(--navy);
}

.chevron {
  color: var(--muted);
  font-size: 1.05rem;
}

.main-page {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin: 0 auto;
  max-width: 64rem;
  padding: 2.6rem 2rem 3rem;
}

.hero-copy {
  max-width: 49rem;
}

.hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(2.35rem, 5vw, 4.35rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.hero-copy p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  font-weight: 380;
  line-height: 1.55;
  margin: 1rem 0 0;
  max-width: 44rem;
}

.composer {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(25, 23, 20, 0.14);
  border-radius: var(--radius);
  box-shadow: none;
  overflow: hidden;
  width: 100%;
}

.composer textarea {
  border: 0;
  color: var(--ink);
  display: block;
  font-size: 1.08rem;
  font-weight: 380;
  line-height: 1.55;
  min-height: 5rem;
  outline: 0;
  padding: 1.1rem 1.25rem 0.35rem;
  resize: none;
  width: 100%;
}

.composer textarea::placeholder {
  color: #8a8278;
}

.composer-tools {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0.8rem 0.8rem;
}

.tool-buttons {
  align-items: center;
  display: flex;
  gap: 0.3rem;
}

.tool-buttons button,
.send-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink-soft);
  display: inline-flex;
  height: 2.35rem;
  justify-content: center;
  width: 2.35rem;
}

.plus-icon {
  border: 1.8px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  font-size: 1.25rem;
  height: 1.45rem;
  justify-content: center;
  line-height: 1.12rem;
  width: 1.45rem;
}

.send-button {
  background: var(--navy);
  color: #fff;
  height: 2.55rem;
  width: 3rem;
}

.prompt-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.prompt-card {
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink-soft);
  display: grid;
  gap: 0.7rem;
  min-height: 5rem;
  padding: 0.7rem 0.6rem;
}

.prompt-card svg {
  color: var(--navy);
}

.prompt-card span {
  font-size: 0.83rem;
  font-weight: 560;
  line-height: 1.25;
}

.cycle-panel,
.helpful-now {
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  box-shadow: none;
}

.panel-header {
  align-items: center;
  border-bottom: 1px solid rgba(25, 23, 20, 0.12);
  display: flex;
  justify-content: space-between;
  padding: 0 0 1rem;
}

.panel-header h2,
.helpful-now h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.panel-header p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 380;
  margin: 0.2rem 0 0;
}

.text-button {
  color: var(--navy);
  min-height: 2.45rem;
  padding: 0 0.8rem;
}

.cycle-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cycle-card {
  min-height: 14.5rem;
  padding: 1rem 0;
}

.mini-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.mini-header h3 {
  font-size: 1rem;
  font-weight: 560;
  margin: 0;
}

.mini-header svg {
  background: rgba(46, 111, 143, 0.09);
  border-radius: var(--radius);
  color: var(--navy);
  height: 2.35rem;
  padding: 0.55rem;
  width: 2.35rem;
}

.compact-stats,
.stage-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.compact-stats div,
.stage-list div {
  align-items: center;
  border-bottom: 1px solid rgba(25, 23, 20, 0.08);
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.5rem;
}

.compact-stats dt,
.stage-list dt {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 380;
}

.compact-stats dd,
.stage-list dd {
  font-size: 0.9rem;
  font-weight: 620;
  margin: 0;
}

.task-list {
  display: grid;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.task-list li {
  align-items: flex-start;
  display: flex;
  gap: 0.65rem;
}

.task-dot {
  border: 1.7px solid #98a2b3;
  border-radius: 50%;
  display: inline-flex;
  height: 1rem;
  justify-content: center;
  margin-top: 0.12rem;
  width: 1rem;
}

.task-list strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 560;
  line-height: 1.25;
}

.task-list small {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  margin-top: 0.12rem;
}

.task-list .done .task-dot {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.task-list .done .task-dot svg {
  height: 0.75rem;
  stroke-width: 2.6;
  width: 0.75rem;
}

.stage-dot {
  border-radius: 50%;
  display: inline-block;
  height: 0.72rem;
  margin-right: 0.42rem;
  width: 0.72rem;
}

.stage-dot.gray {
  background: #98a2b3;
}

.stage-dot.blue {
  background: var(--blue);
}

.stage-dot.gold {
  background: #f59e0b;
}

.stage-dot.teal {
  background: var(--teal);
}

.stage-dot.green {
  background: var(--green);
}

.helpful-now {
  padding: 0;
}

.helpful-links {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 0.9rem;
}

.helpful-links a {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink-soft);
  display: flex;
  font-size: 0.92rem;
  font-weight: 520;
  gap: 0.55rem;
  min-height: 2.4rem;
  padding: 0;
}

.helpful-links svg {
  color: var(--navy);
}

.mobile-tabbar {
  display: none;
}

@media (max-width: 1180px) {
  .prompt-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .helpful-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body {
    background: var(--canvas);
    padding-bottom: 5.2rem;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .mobile-header {
    border-bottom: 0;
    min-height: auto;
    padding: 1rem 1rem 0;
  }

  .mobile-brand {
    display: block;
    font-size: 2.25rem;
  }

  .select-button {
    min-height: 2.75rem;
  }

  .main-page {
    gap: 1.2rem;
    padding: 1.55rem 1rem 1rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.25rem, 9vw, 3rem);
    line-height: 1.02;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .composer {
    box-shadow: none;
  }

  .composer textarea {
    min-height: 6.5rem;
  }

  .prompt-grid {
    border-bottom: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-bottom: 0.45rem;
  }

  .prompt-card {
    align-items: center;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: auto;
    padding: 0.45rem 0.2rem;
    text-align: center;
  }

  .prompt-card:nth-child(n + 5) {
    display: none;
  }

  .prompt-card svg {
    height: 1.85rem;
    width: 1.85rem;
  }

  .prompt-card span {
    font-size: 0.78rem;
  }

  .cycle-panel {
    border: 0;
    box-shadow: none;
  }

  .panel-header {
    border-bottom: 0;
    padding: 0.8rem 0 0;
  }

  .panel-header p {
    display: none;
  }

  .text-button {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    min-height: 2.8rem;
  }

  .cycle-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cycle-card {
    border: 0;
    border-bottom: 1px solid rgba(25, 23, 20, 0.09);
    min-height: auto;
    padding: 1rem 0;
  }

  .cycle-card:nth-child(3) {
    display: none;
  }

  .cycle-card:nth-child(2) {
    margin-top: 4.8rem;
  }

  .compact-stats div:nth-child(n + 2) {
    display: none;
  }

  .mini-header svg {
    background: rgba(63, 122, 85, 0.12);
    color: var(--green);
  }

  .helpful-now {
    border: 0;
    box-shadow: none;
    padding: 0.45rem 0 0;
  }

  .helpful-links {
    grid-template-columns: 1fr;
  }

  .mobile-tabbar {
    align-items: center;
    background: #fff;
    border-top: 1px solid rgba(25, 23, 20, 0.1);
    bottom: 0;
    box-shadow: 0 -14px 30px rgba(44, 38, 30, 0.04);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    left: 0;
    min-height: 4.5rem;
    position: fixed;
    right: 0;
    z-index: 10;
  }

  .mobile-tabbar a {
    align-items: center;
    color: var(--ink-soft);
    display: flex;
    flex-direction: column;
    font-size: 0.77rem;
    font-weight: 540;
    gap: 0.22rem;
    justify-content: center;
  }

  .mobile-tabbar a.active {
    color: var(--navy);
  }

  .mobile-tabbar svg {
    height: 1.45rem;
    width: 1.45rem;
  }

  .more-dot {
    font-size: 1.4rem;
    line-height: 1;
  }
}

@media (max-width: 480px) {
  .mobile-header {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .select-button {
    padding: 0 0.65rem;
  }

  .main-page {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}
