:root {
  --bg: #eef7f8;
  --surface: #ffffff;
  --surface-strong: #f7fcfb;
  --ink: #152a2f;
  --muted: #607982;
  --line: rgba(78, 129, 143, 0.16);
  --primary: #2aa889;
  --primary-dark: #176f67;
  --amber: #5c9f9a;
  --amber-soft: #e5f6f0;
  --blue: #497fa3;
  --blue-soft: #e4f1f6;
  --danger: #7c2d32;
  --shadow: 0 18px 44px rgba(34, 83, 94, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(73, 127, 163, 0.14), transparent 28rem),
    linear-gradient(180deg, #f9fdfd 0%, var(--bg) 46%, #e8f7f2 100%);
  line-height: 1.55;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(42, 168, 137, 0.3);
  outline-offset: 3px;
}

.text-button:hover {
  color: var(--primary-dark);
}

.icon-button,
.text-button,
.modal-close {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero {
  max-width: 1180px;
  min-height: 650px;
  margin: 0 auto;
  padding: 82px 20px 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 34px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: 5.25rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy > p:not(.eyebrow),
.section-heading p,
.forum-copy p,
.member-panel p,
.modal-card p,
.footer p {
  color: var(--muted);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin-top: 22px;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-route {
  max-width: 720px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-route span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--primary-dark);
  font-size: 0.84rem;
  font-weight: 900;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.account-chip:hover,
.google-button:hover,
.filter-button:hover,
.path-tab:hover {
  transform: translateY(-2px);
}

.primary {
  background: var(--primary);
  color: #fff;
}

.primary:hover {
  background: var(--primary-dark);
}

.secondary {
  background: var(--blue-soft);
  color: var(--blue);
}

.light {
  background: #fff;
  color: var(--primary-dark);
}

.full {
  width: 100%;
}

.member-panel,
.lesson-card,
.post-form,
.post-card,
.meetup-card,
.mood-tool,
.breath-tool,
.prompt-tool,
.route-card,
.lane-grid article,
.modal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.member-panel {
  padding: 28px;
}

.panel-topline {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--primary-dark);
  font-weight: 900;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
}

.status-dot.signed-in {
  background: var(--primary);
}

.member-panel h2 {
  margin: 18px 0 8px;
  font-size: 2.1rem;
  line-height: 1.08;
}

.google-button {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  border: 1px solid rgba(78, 129, 143, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #203a40;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease;
}

.google-g {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: conic-gradient(#4285f4, #34a853, #fbbc05, #ea4335, #4285f4);
  font-weight: 900;
}

.profile-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

.profile-card span {
  display: block;
  max-width: 180px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-card .text-button {
  justify-self: start;
}

.security-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.security-links a,
.owner-line a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  color: var(--primary-dark);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.helper-text {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.dashboard-strip {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 38px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-strip article {
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.dashboard-strip strong {
  display: block;
  color: var(--primary-dark);
  font-size: 2.3rem;
  line-height: 1;
}

.dashboard-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 74px 20px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section h2,
.support-band h2,
.modal-card h2 {
  margin: 0;
  font-size: 3.15rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.mission-section {
  padding-top: 40px;
}

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

.route-card {
  min-height: 230px;
  padding: 22px;
}

.route-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

.route-card h3,
.lane-grid h3 {
  margin: 0;
  font-size: 1.35rem;
}

.route-card p,
.lane-grid p,
.promise-list p {
  color: var(--muted);
}

.path-tabs,
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.path-tab,
.filter-button {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.path-tab.active,
.filter-button.active {
  background: var(--primary);
  color: #fff;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.care-lanes {
  padding-top: 38px;
  padding-bottom: 42px;
}

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

.lane-grid article {
  min-height: 230px;
  padding: 24px;
}

.lane-grid strong {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin-bottom: 14px;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--amber-soft);
  color: #2f6662;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.lane-grid article:nth-child(2) strong {
  background: #fff2d8;
  color: #7b5821;
}

.lane-grid article:nth-child(3) strong {
  background: #ffe7e7;
  color: var(--danger);
}

.lesson-card {
  min-height: 250px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lesson-card span {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--amber-soft);
  color: #2f6662;
  font-weight: 900;
  font-size: 0.82rem;
}

.lesson-card h3,
.meetup-card h3,
.post-card h3,
.tool-header h3,
.prompt-tool h3 {
  margin: 0;
}

.lesson-card p,
.meetup-card p,
.post-card p,
.tool-layout p {
  color: var(--muted);
}

.lesson-card label {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: auto;
  color: var(--primary-dark);
  font-weight: 900;
}

.forum-section {
  padding-top: 46px;
}

.forum-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 28px;
  align-items: start;
}

.post-form {
  position: relative;
  padding: 22px;
}

.form-lock {
  display: none;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 8px;
  background: var(--amber-soft);
  color: #2f6662;
  font-weight: 900;
}

.form-lock.visible {
  display: block;
}

label {
  display: block;
  margin: 12px 0 7px;
  color: var(--ink);
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(78, 129, 143, 0.18);
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(42, 168, 137, 0.2);
  outline-offset: 0;
  border-color: var(--primary);
}

input[type="checkbox"] {
  width: auto;
}

.form-status {
  min-height: 24px;
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 800;
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.feed-header h3 {
  margin: 0;
  font-size: 1.45rem;
}

.text-button {
  min-height: 38px;
  padding: 6px 0;
  color: var(--muted);
  font-weight: 900;
}

.post-feed {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.post-card {
  padding: 20px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.post-category {
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.meetups {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meetup-grid,
.tool-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.promise-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 28px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.promise-copy {
  position: sticky;
  top: 120px;
}

.promise-list {
  display: grid;
  gap: 12px;
}

.promise-list p {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(34, 83, 94, 0.08);
  font-weight: 800;
}

.meetup-card {
  min-height: 220px;
  padding: 24px;
}

.meetup-card span {
  color: var(--amber);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.meetup-card strong {
  display: inline-flex;
  margin-top: 10px;
  color: var(--primary-dark);
}

.mood-tool,
.breath-tool,
.prompt-tool {
  padding: 22px;
}

.tool-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.tool-header span {
  min-width: 88px;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--amber-soft);
  color: #2f6662;
  text-align: center;
  font-weight: 900;
}

input[type="range"] {
  accent-color: var(--primary);
  padding: 20px 0;
}

.breath-circle {
  width: 176px;
  height: 176px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
  transition: transform 3s ease, background 300ms ease;
}

.breath-circle.expand {
  transform: scale(1.13);
  background: #d8f4ec;
  color: var(--primary-dark);
}

.support-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 70px max(20px, calc((100vw - 1180px) / 2 + 20px));
  background: var(--primary-dark);
  color: #fff;
}

.support-band > div {
  max-width: 820px;
}

.support-band .eyebrow,
.support-band p {
  color: #d9f2ec;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 31, 28, 0.58);
}

.modal-card {
  position: relative;
  width: min(100%, 480px);
  padding: 28px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 900;
}

.hidden {
  display: none !important;
}

.footer {
  padding: 28px 20px;
  text-align: center;
  background: #e7f4f6;
}

@media (max-width: 900px) {
  .hero,
  .dashboard-strip,
  .lesson-grid,
  .forum-layout,
  .meetup-grid,
  .tool-layout,
  .route-grid,
  .lane-grid,
  .promise-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .support-band {
    align-items: stretch;
    flex-direction: column;
  }

  .hero h1 {
    font-size: 3.65rem;
  }

  .section h2,
  .support-band h2,
  .modal-card h2 {
    font-size: 2.55rem;
  }

  .promise-copy {
    position: static;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 2.45rem;
  }

  .hero-actions,
  .hero-actions .button,
  .feed-header {
    width: 100%;
  }

  .hero-route span {
    flex: 1 1 140px;
    justify-content: center;
  }

  .feed-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-card {
    grid-template-columns: auto 1fr;
  }

  .profile-card .text-button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .section h2,
  .support-band h2,
  .modal-card h2 {
    font-size: 2.1rem;
  }
}
