:root {
  --ink: #2d2d2d;
  --ink-soft: #5a5146;
  --yellow: #ffe16a;
  --yellow-deep: #f8c52d;
  --cream: #fff8e7;
  --paper: #ffffff;
  --lake: #1fb7b4;
  --lake-dark: #08736f;
  --coral: #ff6e58;
  --rose: #ffd2ca;
  --mint: #c8f3d1;
  --blue: #6bb7ff;
  --line: rgba(45, 45, 45, 0.14);
  --shadow: 0 26px 70px rgba(45, 45, 45, 0.2);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, var(--yellow) 0 36rem, #f9fff9 36rem 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 82px;
  padding: 16px 34px;
  background: rgba(255, 225, 106, 0.86);
  border-bottom: 1px solid rgba(45, 45, 45, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  color: var(--ink);
  font-size: 1.34rem;
  font-weight: 950;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--cream);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 950;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  gap: 4px;
  justify-self: center;
  min-height: 58px;
  padding: 6px;
  border: 1px solid rgba(45, 45, 45, 0.12);
  border-radius: 8px;
  background: rgba(255, 248, 231, 0.78);
  box-shadow: 0 10px 30px rgba(45, 45, 45, 0.07);
}

.nav-chip,
.status-pill,
.tab-btn,
.text-btn {
  min-height: 44px;
  border-radius: 8px;
  border: 2px solid transparent;
  color: var(--ink);
  font-weight: 900;
}

.nav-chip {
  padding: 0 20px;
  background: transparent;
}

.nav-chip.is-active,
.tab-btn.is-active {
  background: var(--ink);
  color: var(--cream);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  min-width: 150px;
  padding: 0 16px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(45, 45, 45, 0.08);
  color: var(--lake-dark);
}

.hero {
  position: relative;
  min-height: 850px;
  padding: 72px 34px 62px;
  background:
    radial-gradient(circle at 68% 20%, rgba(255, 255, 255, 0.34), transparent 22rem),
    linear-gradient(180deg, var(--yellow) 0%, #ffdf5c 100%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 38px,
    var(--lake) 38px 76px,
    var(--coral) 76px 114px,
    var(--cream) 114px 152px
  );
}

.hero-word {
  position: absolute;
  top: 160px;
  right: 30px;
  left: 43vw;
  z-index: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  color: rgba(45, 45, 45, 0.97);
  font-size: 10.8rem;
  font-weight: 950;
  line-height: 0.78;
  letter-spacing: 0;
  pointer-events: none;
  user-select: none;
}

.hero-word span:last-child {
  align-self: flex-end;
}

.cockpit-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(560px, 1.2fr);
  gap: 34px;
  max-width: 1240px;
  min-width: 0;
  margin: 0 auto;
  min-height: 680px;
  align-items: end;
}

.title-panel {
  align-self: end;
  min-width: 0;
  max-width: 540px;
  padding-bottom: 28px;
}

.panel,
.badi-card,
.criteria-panel,
.signup-panel,
.subscriber-panel,
.automation-panel,
.mail-preview,
.session-item {
  border: 2px solid rgba(45, 45, 45, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.hero-stack {
  position: relative;
  min-height: 660px;
}

.badi-card {
  position: absolute;
  left: 12%;
  top: 10px;
  width: 430px;
  height: 620px;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  transform: rotate(-5deg);
}

.badi-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 56%;
  display: block;
  filter: saturate(1.06) contrast(1.02);
}

.badi-card figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: var(--paper);
  font-size: 1.32rem;
  font-weight: 950;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.36);
}

.weather-panel,
.next-panel {
  position: absolute;
  padding: 22px;
  backdrop-filter: blur(14px);
}

.weather-panel {
  right: 0;
  top: 82px;
  width: 335px;
  min-height: 300px;
  transform: rotate(5deg);
  z-index: 2;
}

.next-panel {
  right: 112px;
  bottom: -8px;
  width: 360px;
  min-height: 284px;
  transform: rotate(-2deg);
  z-index: 3;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--lake-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 100%;
  margin-bottom: 18px;
  font-size: 4.9rem;
  line-height: 0.93;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 14px;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.lede,
.section-copy,
.decision-copy {
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.5;
}

.lede {
  max-width: 500px;
  margin-bottom: 22px;
  font-weight: 720;
}

.lede span {
  display: block;
}

.action-row,
.mini-controls,
.mail-toolbar,
.subscriber-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.btn,
.icon-btn {
  min-height: 48px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-weight: 950;
}

.btn {
  padding: 0 20px;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 6px 6px 0 var(--coral);
}

.btn-light,
.tab-btn {
  padding: 0 16px;
  background: var(--paper);
}

.btn-dark {
  width: 100%;
  background: var(--ink);
  color: var(--cream);
}

.icon-btn {
  min-width: 86px;
  padding: 0 12px;
  background: var(--mint);
}

.icon-btn:nth-child(2) {
  background: var(--rose);
}

.icon-btn:nth-child(3) {
  background: var(--cream);
}

.panel-heading {
  display: flex;
  flex-direction: column;
}

.weather-meter {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 90px;
  margin: 16px 0;
}

.weather-code {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-size: 1.48rem;
  font-weight: 950;
  text-transform: uppercase;
}

.weather-main {
  font-size: 1.52rem;
  font-weight: 950;
  line-height: 1.08;
}

.weather-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
}

.weather-facts span {
  min-height: 48px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(31, 183, 180, 0.13);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 850;
}

.decision-badge {
  display: inline-grid;
  place-items: center;
  min-height: 54px;
  width: 100%;
  margin: 12px 0 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 1.38rem;
  font-weight: 950;
  text-transform: uppercase;
}

.decision-badge.is-go {
  background: var(--mint);
}

.decision-badge.is-move {
  background: var(--rose);
}

.decision-badge.is-wait {
  background: #eaf4ff;
}

.next-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 0;
}

.next-meta div {
  min-height: 78px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 225, 106, 0.32);
}

dt {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 8px 0 0;
  font-size: 1.04rem;
  font-weight: 950;
}

.section-strip {
  padding: 74px 34px;
}

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.split,
.crew-grid,
.mail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 20px;
  align-items: start;
}

.section-strip h2 {
  max-width: 680px;
  font-size: 3rem;
}

.criteria-panel,
.signup-panel,
.subscriber-panel,
.automation-panel,
.mail-preview {
  padding: 24px;
  box-shadow: 0 18px 45px rgba(45, 45, 45, 0.1);
}

.criteria-panel {
  display: grid;
  gap: 16px;
  background:
    linear-gradient(135deg, rgba(255, 225, 106, 0.42), transparent 48%),
    var(--paper);
}

.criteria-panel label,
.signup-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-weight: 900;
}

.criteria-panel input[type="range"] {
  width: 100%;
  accent-color: var(--coral);
}

.criteria-panel output {
  justify-self: end;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 950;
}

.session-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.session-item {
  position: relative;
  min-height: 228px;
  padding: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(45, 45, 45, 0.1);
}

.session-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 9px;
  background: linear-gradient(90deg, var(--yellow-deep), var(--lake), var(--coral));
}

.session-item.is-selected {
  border-color: var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
}

.session-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
}

.session-date {
  font-size: 1.15rem;
  font-weight: 950;
}

.session-status {
  align-self: start;
  padding: 6px 9px;
  border-radius: 8px;
  background: #eef6ff;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.session-status.go {
  background: var(--mint);
  color: #063b31;
}

.session-status.move {
  background: var(--rose);
  color: #651911;
}

.session-title {
  margin: 18px 0 12px;
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1.1;
}

.session-detail {
  min-height: 54px;
  color: var(--ink-soft);
  line-height: 1.42;
}

.session-item .btn {
  width: 100%;
  margin-top: 14px;
  background: var(--cream);
}

.crew-strip {
  background:
    linear-gradient(90deg, rgba(31, 183, 180, 0.12) 0 18%, transparent 18% 100%),
    #edfdfa;
}

.signup-form {
  display: grid;
  gap: 12px;
}

.signup-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 2px solid rgba(45, 45, 45, 0.22);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.subscriber-head {
  justify-content: space-between;
  min-height: 42px;
  margin-bottom: 12px;
  font-weight: 950;
}

.text-btn {
  padding: 0 10px;
  background: transparent;
  color: #b23626;
}

.subscriber-list {
  display: grid;
  gap: 10px;
  min-height: 208px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.subscriber-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 10px;
  border: 2px solid rgba(45, 45, 45, 0.12);
  border-radius: 8px;
  background: var(--paper);
}

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 950;
  text-transform: uppercase;
}

.subscriber-list strong,
.subscriber-list span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subscriber-list span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.remove-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(45, 45, 45, 0.16);
  border-radius: 8px;
  background: #fff4f3;
  color: #781d14;
  font-weight: 950;
}

.mail-strip {
  background:
    linear-gradient(135deg, rgba(255, 225, 106, 0.48), transparent 38%),
    linear-gradient(315deg, rgba(31, 183, 180, 0.24), transparent 42%),
    #fff8ec;
}

.automation-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.automation-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 82px;
  padding: 12px;
  border: 2px solid rgba(45, 45, 45, 0.12);
  border-radius: 8px;
  background: var(--paper);
}

.automation-list li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 950;
}

.automation-list strong {
  display: block;
  margin-bottom: 5px;
}

.automation-list span {
  color: var(--ink-soft);
  line-height: 1.4;
}

.mail-preview {
  display: grid;
  gap: 14px;
}

.mail-toolbar {
  min-height: 46px;
}

.mail-paper {
  min-height: 430px;
  padding: 24px;
  border: 2px solid rgba(45, 45, 45, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 110, 88, 0.1) 0 8px, transparent 8px 100%),
    var(--paper);
}

.mail-subject {
  margin: 0 0 14px;
  font-size: 1.35rem;
  font-weight: 950;
}

.mail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.mail-meta span {
  padding: 6px 9px;
  border-radius: 8px;
  background: #eef9ff;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 850;
}

.mail-body {
  white-space: pre-wrap;
  color: var(--ink-soft);
  line-height: 1.6;
}

@media (max-width: 1120px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .topnav,
  .status-pill {
    justify-self: start;
  }

  .hero-word {
    left: 34vw;
    font-size: 8.4rem;
  }

  .cockpit-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 760px;
  }

  .title-panel {
    width: 100%;
    max-width: 620px;
  }

  .hero-stack {
    min-height: 720px;
  }

  .badi-card {
    left: 4%;
  }

  .weather-panel {
    right: 3%;
  }

  .next-panel {
    right: 10%;
  }

  .split,
  .crew-grid,
  .mail-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  body {
    background: linear-gradient(180deg, var(--yellow) 0 44rem, #f9fff9 44rem 100%);
  }

  .topbar {
    position: static;
    padding: 14px 16px;
  }

  .topnav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .nav-chip {
    padding: 0 14px;
  }

  .status-pill {
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding: 34px 16px 48px;
  }

  .hero-word {
    display: none;
  }

  .cockpit-grid {
    min-height: auto;
    gap: 20px;
    max-width: calc(100vw - 32px);
  }

  .title-panel {
    width: calc(100vw - 32px);
    max-width: none;
    padding: 12px 0 20px;
  }

  .lede {
    max-width: calc(100vw - 32px);
  }

  h1 {
    font-size: 2.58rem;
    line-height: 1;
  }

  h2,
  .section-strip h2 {
    font-size: 1.72rem;
  }

  .hero-stack {
    min-height: auto;
    display: grid;
    gap: 14px;
  }

  .badi-card,
  .weather-panel,
  .next-panel {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: auto;
    transform: none;
  }

  .badi-card {
    height: 430px;
  }

  .weather-panel,
  .next-panel,
  .signup-panel,
  .subscriber-panel,
  .automation-panel,
  .mail-preview,
  .criteria-panel {
    padding: 18px;
  }

  .weather-facts,
  .next-meta,
  .session-list {
    grid-template-columns: 1fr;
  }

  .section-strip {
    padding: 48px 16px;
  }
}

@media (max-width: 460px) {
  .brand {
    font-size: 1.1rem;
  }

  .hero-word {
    font-size: 3.3rem;
  }

  h1 {
    font-size: 2rem;
  }

  .weather-meter {
    grid-template-columns: 1fr;
  }

  .weather-code {
    width: 100%;
  }

  .subscriber-list li {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }
}
