:root {
  color-scheme: light;
  --ink: #243036;
  --muted: #5e6d73;
  --page: #f7f3ea;
  --panel: #fffdf7;
  --green: #2f6f67;
  --green-dark: #1f514b;
  --gold: #f0c15b;
  --rose: #b85f5a;
  --blue: #477a9f;
  --line: #ddd4c2;
  --shadow: 0 18px 46px rgba(47, 66, 72, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(71, 122, 159, 0.16), transparent 34%),
    linear-gradient(315deg, rgba(240, 193, 91, 0.18), transparent 38%),
    var(--page);
}

button,
textarea {
  font: inherit;
}

button {
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  padding: 14px 22px;
  color: #fff;
  background: var(--green);
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(31, 81, 75, 0.24);
}

button:hover,
button:focus-visible {
  background: var(--green-dark);
}

button:focus-visible,
textarea:focus-visible {
  outline: 4px solid rgba(240, 193, 91, 0.88);
  outline-offset: 3px;
}

button.secondary {
  color: var(--green-dark);
  background: #e6f0eb;
  box-shadow: none;
}

button.secondary:hover,
button.secondary:focus-visible {
  background: #d5e6df;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.site-header,
main,
footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px 28px;
  align-items: end;
  padding: 32px 0 4px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--rose);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 4.8rem);
  line-height: 1;
}

h2 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  line-height: 1.12;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.intro {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.5vw, 1.35rem);
}

.comfort-panel,
.step-card,
.step-list,
.resource-band article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.92);
}

.comfort-panel {
  padding: 22px;
  box-shadow: var(--shadow);
}

.hero-visual {
  min-height: 240px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.comfort-panel strong,
.comfort-panel span,
.hero-reminder strong,
.hero-reminder span {
  display: block;
}

.comfort-panel span,
.hero-reminder span {
  margin-top: 8px;
  color: var(--muted);
}

.hero-reminder {
  grid-column: 2;
  margin-top: -10px;
  border-left: 4px solid var(--green);
  padding: 0 0 0 16px;
}

.hero-reminder strong {
  font-size: 1.08rem;
}

.hero-reminder span {
  max-width: 420px;
}

.before-begin,
.home-grid,
.resource-band {
  padding: 28px 0;
}

.before-begin {
  padding-top: 0;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading p:not(.eyebrow) {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
}

.section-heading.compact {
  margin-bottom: 14px;
}

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

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

.tool-card {
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 10px 26px rgba(47, 66, 72, 0.1);
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.tool-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 4px;
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  background: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.tool-card a:hover,
.tool-card a:focus-visible {
  background: var(--green-dark);
}

.tool-card a:focus-visible {
  outline: 4px solid rgba(240, 193, 91, 0.88);
  outline-offset: 3px;
}

.workshop-popup[hidden] {
  display: none;
}

.workshop-popup {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  width: min(420px, calc(100vw - 32px));
}

.workshop-popup-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 253, 247, 0.98);
  box-shadow: 0 18px 46px rgba(47, 66, 72, 0.22);
}

.workshop-popup-card h2 {
  font-size: 1.28rem;
  line-height: 1.2;
}

.workshop-popup-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.workshop-popup-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.workshop-popup-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  background: var(--green);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(31, 81, 75, 0.24);
}

.workshop-popup-primary:hover,
.workshop-popup-primary:focus-visible {
  background: var(--green-dark);
}

.workshop-popup-primary:focus-visible {
  outline: 4px solid rgba(240, 193, 91, 0.88);
  outline-offset: 3px;
}

.safety-reminder {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  border-left: 4px solid var(--rose);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(248, 238, 238, 0.92);
}

.safety-reminder span {
  color: var(--muted);
}

.topic-button {
  display: grid;
  min-height: 126px;
  align-content: center;
  justify-items: start;
  gap: 6px;
  width: 100%;
  text-align: left;
  background: var(--panel);
  color: var(--ink);
  border: 2px solid transparent;
  box-shadow: 0 10px 26px rgba(47, 66, 72, 0.12);
}

.topic-button:hover,
.topic-button:focus-visible,
.topic-button.active {
  color: var(--ink);
  background: #fff;
  border-color: var(--green);
}

.topic-button span:first-child {
  font-size: 2rem;
}

.topic-button span:last-child {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
}

.coach-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 22px 0 34px;
}

.step-list {
  position: sticky;
  top: 16px;
  padding: 20px;
}

.step-list ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 10px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  box-shadow: none;
}

.step-list button:hover,
.step-list button:focus-visible,
.step-list button.active {
  background: #edf5f1;
}

.step-list .marker {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 0.95rem;
  font-weight: 700;
}

.step-card {
  padding: clamp(20px, 4vw, 34px);
  box-shadow: var(--shadow);
}

.step-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.step-number,
.time-note {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.95rem;
  font-weight: 700;
}

.step-number {
  color: #fff;
  background: var(--green);
}

.time-note {
  color: #5d4110;
  background: #ffe5a4;
}

#stepSummary {
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: 1.1rem;
}

.coach-note,
.action-area,
.safety-box {
  margin-top: 16px;
  border-radius: 8px;
  padding: 18px;
}

.coach-note {
  background: #eef6f4;
}

.action-area {
  background: #fff8e7;
}

.writing-demo {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  border: 1px solid rgba(240, 193, 91, 0.72);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 253, 247, 0.78);
}

.writing-demo[hidden] {
  display: none;
}

.writing-demo label {
  margin: 0;
}

.writing-demo button {
  justify-self: start;
}

.idea-results {
  border-radius: 8px;
  background: #eef6f4;
}

.idea-results:not(:empty) {
  padding: 14px 16px;
}

.idea-results .results-intro {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-weight: 700;
}

.idea-results ol {
  margin: 0;
  padding-left: 24px;
}

.idea-results li + li {
  margin-top: 6px;
}

.safety-box {
  background: #f8eeee;
}

.coach-note p,
.action-area p,
.safety-box p {
  margin: 0;
}

label {
  display: block;
  margin: 16px 0 8px;
  font-weight: 700;
}

textarea {
  width: 100%;
  resize: vertical;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--ink);
  background: #fff;
}

.controls {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 22px;
}

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

.resource-band article {
  padding: 20px;
}

.resource-band p,
footer p {
  margin: 0;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 42px;
  text-align: center;
}

@media (max-width: 900px) {
  .site-header,
  .coach-shell {
    grid-template-columns: 1fr;
  }

  .button-grid,
  .tool-grid,
  .rule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-list {
    position: static;
  }

  .hero-visual {
    min-height: 240px;
  }

  .hero-visual img {
    min-height: 240px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 18px;
  }

  .site-header,
  main,
  footer {
    width: min(100% - 22px, 1160px);
  }

  .site-header {
    padding-top: 26px;
    padding-bottom: 10px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .hero-visual img {
    min-height: 430px;
    object-position: 66% 8%;
  }

  .hero-reminder {
    grid-column: 1;
    margin-top: 0;
    padding-left: 14px;
  }

  .button-grid,
  .tool-grid,
  .rule-grid {
    grid-template-columns: 1fr;
  }

  .controls {
    flex-direction: column-reverse;
  }

  .controls button {
    width: 100%;
  }

  .writing-demo {
    padding: 14px;
  }

  .writing-demo button {
    width: 100%;
  }

  .workshop-popup {
    right: 11px;
    bottom: 11px;
    width: calc(100vw - 22px);
  }

  .workshop-popup-card {
    padding: 18px;
  }

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

  .workshop-popup-actions button,
  .workshop-popup-primary {
    width: 100%;
  }
}
