[hidden] {
  display: none !important;
}

.app-header {
  z-index: 40;
}

.app-header .header-inner {
  width: 100%;
  max-width: none;
  min-height: 74px;
  padding-inline: 24px;
}

.header-brand-group,
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.app-header .menu-toggle {
  display: none;
  flex: 0 0 auto;
  border-color: rgba(215, 237, 156, 0.3);
}

.app-header .main-nav {
  flex: 1;
  justify-content: center;
  gap: 10px;
}

.app-header .main-nav button {
  padding: 9px 13px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #d9e0d9;
  font: 600 0.82rem/1.2 var(--display);
  cursor: pointer;
}

.app-header .main-nav button:hover,
.app-header .main-nav button.active {
  background: rgba(215, 237, 156, 0.1);
  color: var(--lime);
}

.app-header .account-dropdown-wrap {
  position: relative;
}

.app-header .account-trigger {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 5px 13px 5px 6px;
  border: 1px solid rgba(215, 237, 156, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #e7ece5;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.app-header .account-trigger:hover,
.app-header .account-trigger[aria-expanded="true"] {
  border-color: rgba(215, 237, 156, 0.62);
  background: rgba(215, 237, 156, 0.1);
  color: #fff;
}

.account-avatar {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(215, 237, 156, 0.22);
  border-radius: 50%;
  background: rgba(215, 237, 156, 0.11);
  color: var(--lime);
}

.account-avatar svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.account-trigger-copy {
  display: grid;
  gap: 1px;
}

.account-label {
  color: #f5f7f1;
  font: 700 0.79rem/1.15 var(--display);
}

.account-caption {
  color: #9faa9d;
  font: 500 0.62rem/1.15 var(--sans);
}

.account-caret {
  width: 14px;
  height: 14px;
  margin-left: 2px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform 160ms ease;
}

.account-trigger[aria-expanded="true"] .account-caret {
  transform: rotate(180deg);
}

.app-header .account-menu {
  position: absolute;
  top: calc(100% + 11px);
  right: 0;
  z-index: 60;
  display: none;
  width: min(304px, calc(100vw - 24px));
  min-width: 260px;
  padding: 8px;
  border: 1px solid rgba(23, 37, 30, 0.11);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 18px 45px rgba(13, 24, 17, 0.22);
  color: var(--ink);
}

.app-header .account-menu.open {
  display: grid;
  gap: 5px;
  animation: accountMenuIn 150ms ease both;
}

.app-header .account-menu-link {
  display: grid;
  min-height: 62px;
  grid-template-columns: 40px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.app-header .account-menu-link:hover {
  transform: translateX(2px);
  border-color: #e2e8d8;
  background: #f5f6ef;
  color: var(--forest-deep);
}

.account-menu-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--forest-deep);
  color: var(--lime);
}

.account-menu-icon-member {
  background: #edf1e4;
  color: var(--forest);
}

.account-menu-icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.account-menu-copy {
  display: grid;
  gap: 3px;
}

.account-menu-copy strong {
  color: var(--forest-deep);
  font: 700 0.82rem/1.2 var(--display);
}

.account-menu-copy small {
  color: var(--muted);
  font: 500 0.68rem/1.2 var(--sans);
}

.account-menu-arrow {
  color: #81916f;
  font-size: 0.85rem;
  transition: transform 150ms ease;
}

.account-menu-link:hover .account-menu-arrow {
  transform: translate(2px, -2px);
}

@keyframes accountMenuIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-header .header-actions > .button {
  min-height: 42px;
  padding-inline: 17px;
  font-size: 0.82rem;
}

.app-shell {
  display: grid;
  min-height: calc(100vh - 74px);
  grid-template-columns: 252px minmax(0, 1fr);
  background: var(--cream);
}

.app-sidebar {
  position: sticky;
  top: 74px;
  display: flex;
  height: calc(100vh - 74px);
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  padding: 25px 14px 18px;
  background: var(--forest-deep);
  color: #e7ece5;
}

.sidebar-section-title {
  padding: 0 11px 11px;
  color: #81917e;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.side-nav {
  display: grid;
  gap: 4px;
  margin-bottom: 25px;
}

.side-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 11px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #c5d0c4;
  font: 600 0.83rem/1.25 var(--display);
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.side-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.side-item.active {
  border-color: rgba(215, 237, 156, 0.18);
  background: rgba(215, 237, 156, 0.11);
  color: var(--lime);
}

.side-icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: #cbd6c3;
  font-size: 0.82rem;
}

.side-item.active .side-icon {
  background: rgba(215, 237, 156, 0.14);
  color: var(--lime);
}

.sidebar-card {
  padding: 16px;
  border: 1px solid rgba(215, 237, 156, 0.16);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.045);
}

.sidebar-card h3 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 0.9rem;
}

.sidebar-card p {
  margin: 0 0 13px;
  color: #aeb9ad;
  font-size: 0.75rem;
  line-height: 1.55;
}

.sidebar-card button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--lime);
  font: 700 0.76rem/1.2 var(--display);
  cursor: pointer;
}

.sidebar-backdrop {
  display: none;
}

.workspace {
  min-width: 0;
  background: var(--cream);
}

.app-main {
  width: 100%;
  max-width: 1680px;
  min-height: calc(100vh - 74px);
  margin-inline: auto;
  padding: 34px clamp(22px, 3vw, 48px) 76px;
}

.app-main > .hero {
  overflow: hidden;
  border-radius: 6px;
}

.app-main .hero-inner {
  min-height: 500px;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(26px, 3.5vw, 58px);
  padding-block: 48px;
}

.app-main .hero-visual {
  min-height: 430px;
  margin-right: 0;
}

.subscription-cta {
  min-height: 50px;
  padding-inline: 25px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(215, 237, 156, 0.18);
  letter-spacing: 0.01em;
}

.subscription-cta:hover {
  box-shadow: 0 12px 25px rgba(215, 237, 156, 0.26);
}

.app-main .hero-image,
.app-main .hero-visual::before {
  clip-path: none;
}

.app-main .hero-stamp {
  right: 18px;
}

.app-main .section,
.app-main .community {
  padding-block: 78px;
}

.app-main .vision {
  padding-block: 0 78px;
}

.app-main .journey {
  padding-block: 0;
  background: transparent;
}

.app-main .journey-panel {
  border-radius: 5px;
}

.app-main button.text-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #4c623b;
  font: 700 0.82rem/1.25 var(--sans);
  cursor: pointer;
}

.app-main .intro-grid {
  padding-block: 18px;
}

.app-main .program-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-main .program-card,
.app-main .program-card + .program-card {
  min-height: 250px;
}

.app-main .program-card:nth-child(3) {
  padding-left: 25px;
  border-left: 1px solid var(--line);
}

.app-main .program-card:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.app-main .program-card:nth-child(even) {
  padding-right: 25px;
  padding-left: 25px;
}

.app-view {
  min-height: 65vh;
  padding: 12px 0 20px;
  animation: viewEnter 220ms ease both;
}

.app-view-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.app-view-header h1 {
  max-width: 880px;
  margin: 10px 0 0;
  color: var(--forest-deep);
  font-size: clamp(2.6rem, 5vw, 4.7rem);
  font-weight: 700;
  letter-spacing: -0.085em;
  line-height: 0.98;
}

.app-view-header p {
  max-width: 370px;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.9rem;
}

.app-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-block: 24px;
}

.app-content-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.app-content-card:hover {
  transform: translateY(-3px);
  border-color: #bac99a;
  box-shadow: 0 14px 28px rgba(23, 37, 30, 0.07);
}

.app-content-card h2,
.app-content-card h3 {
  color: var(--forest-deep);
}

.app-content-card p {
  color: var(--muted);
}

.app-content-card p:last-child {
  margin-bottom: 0;
}

.app-content-card img {
  width: 100%;
  height: 250px;
  margin-bottom: 18px;
  object-fit: cover;
}

.social-photo-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-block: 24px;
}

.social-photo-row img {
  width: 100%;
  height: 210px;
  border-radius: 4px;
  object-fit: cover;
}

.app-content-card .program-number {
  display: block;
  margin-bottom: 13px;
}

.app-scripture-quote {
  margin: 20px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  color: var(--forest);
  font: italic 1rem/1.5 var(--serif);
}

.app-scripture-quote cite {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font: 600 0.73rem/1.4 var(--sans);
}

.app-view .feature-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  color: var(--muted);
}

.app-view .plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.app-view .plan-card {
  padding: 27px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.app-view .plan-card.featured {
  border-color: #b7c493;
  background: #edf0e5;
}

.app-view .plan-price {
  margin: 10px 0 18px;
  color: var(--forest);
  font-size: 2rem;
  font-weight: 700;
}

.app-view .plan-price small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.app-view .form-grid {
  display: grid;
  max-width: 760px;
  gap: 14px;
}

.app-view .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.app-view .field label {
  display: block;
  margin-bottom: 6px;
  color: var(--forest);
  font-size: 0.83rem;
  font-weight: 700;
}

.app-view .field input,
.app-view .field select,
.app-view .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd2c8;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.app-view .field textarea {
  min-height: 120px;
  resize: vertical;
}

.app-view .form-status {
  min-height: 22px;
  color: #4a603d;
  font-size: 0.86rem;
}

.app-view .notice {
  max-width: 940px;
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  background: var(--paper);
  color: #536057;
  font-size: 0.86rem;
}

.terms-accordion {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}

.terms-accordion > summary {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  color: var(--forest-deep);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.terms-accordion > summary::-webkit-details-marker {
  display: none;
}

.terms-accordion > summary::after {
  content: "+";
  color: #647a4d;
  font-size: 1.3rem;
}

.terms-accordion[open] > summary::after {
  content: "−";
}

.terms-accordion > summary span {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.terms-accordion .app-content-card {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.site-footer {
  padding-block: 38px 20px;
}

.app-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.app-footer-links button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.app-footer-links button:hover {
  color: var(--lime);
}

.footer-bottom button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

@keyframes viewEnter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1050px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: fixed;
    z-index: 50;
    top: 74px;
    bottom: 0;
    left: 0;
    width: min(290px, 86vw);
    height: auto;
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  .app-sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-backdrop.is-visible {
    position: fixed;
    z-index: 45;
    inset: 74px 0 0;
    display: block;
    border: 0;
    background: rgba(10, 16, 12, 0.45);
  }

  .app-header .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .app-header .main-nav {
    display: none;
  }

  .app-main {
    min-height: calc(100vh - 74px);
  }
}

@media (max-width: 720px) {
  .app-header .header-inner {
    min-height: 66px;
    gap: 8px;
    padding-inline: 14px;
  }

  .header-brand-group,
  .header-actions {
    gap: 7px;
  }

  .app-header .brand {
    gap: 6px;
    font-size: 0.7rem;
    letter-spacing: 0.07em;
  }

  .app-header .brand-mark {
    width: 33px;
    height: 33px;
  }

  .app-header .menu-toggle {
    width: 38px;
    height: 38px;
  }

  .app-header .account-trigger {
    padding: 8px;
    font-size: 0.75rem;
  }

  .app-header .header-actions > .button {
    min-height: 38px;
    padding-inline: 9px;
    font-size: 0.72rem;
  }

  .app-sidebar {
    top: 66px;
  }

  .sidebar-backdrop.is-visible {
    inset: 66px 0 0;
  }

  .app-main {
    padding: 18px 14px 48px;
  }

  .app-main .hero {
    border-radius: 4px;
  }

  .app-main .hero-inner {
    min-height: 0;
    gap: 28px;
    padding: 32px 22px 0;
  }

  .app-main .hero-content h1 {
    font-size: clamp(3.2rem, 14vw, 4.6rem);
  }

  .app-main .hero-visual {
    min-height: min(100vw, 430px);
    margin: 0 -22px;
  }

  .app-main .hero-image,
  .app-main .hero-visual::before {
    inset: 0;
  }

  .app-main .hero-stamp {
    top: 14px;
    right: 14px;
    width: 78px;
    height: 78px;
  }

  .app-main .image-caption {
    right: 20px;
    bottom: 22px;
    left: 22px;
  }

  .app-main .intro-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 8px;
  }

  .app-main .intro-item {
    justify-content: flex-start;
    padding-block: 10px;
  }

  .app-main .intro-item + .intro-item {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }

  .app-main .section,
  .app-main .community {
    padding-block: 58px;
  }

  .app-main .section-heading {
    margin-bottom: 28px;
  }

  .app-main .program-grid,
  .app-content-grid,
  .app-view .plan-grid {
    grid-template-columns: 1fr;
  }

  .social-photo-row img {
    height: 145px;
  }

  .app-main .program-card,
  .app-main .program-card + .program-card,
  .app-main .program-card:nth-child(even),
  .app-main .program-card:nth-child(3) {
    min-height: 0;
    padding: 22px;
    border: 1px solid var(--line);
  }

  .app-main .program-card + .program-card {
    border-top: 0;
  }

  .app-main .vision {
    padding-bottom: 58px;
  }

  .app-main .vision-panel {
    grid-template-columns: 1fr;
  }

  .app-main .vision-photo {
    min-height: 240px;
  }

  .app-main .vision-content {
    padding: 30px 24px;
  }

  .app-main .belief {
    padding-block: 38px;
  }

  .app-main .belief-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .app-main .belief-mark {
    width: 56px;
    height: 56px;
    font-size: 1.8rem;
  }

  .app-main .photo-grid {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 170px 170px;
    gap: 8px;
  }

  .app-main .photo-card:first-child {
    grid-column: span 2;
    grid-row: auto;
  }

  .app-main .photo-card:nth-child(2) {
    grid-column: span 2;
  }

  .app-main .photo-card {
    min-height: 0;
  }

  .app-main .journey {
    padding: 0;
  }

  .app-main .journey-panel {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 22px;
  }

  .app-view-header {
    display: block;
    margin-bottom: 25px;
  }

  .app-view-header p {
    margin-top: 15px;
  }

  .app-view .form-row {
    grid-template-columns: 1fr;
  }

  .app-view .plan-card {
    padding: 22px;
  }

  .footer-main {
    gap: 25px;
  }
}

@media (max-width: 420px) {
  .app-header .header-inner {
    gap: 6px;
    padding-inline: 10px;
  }

  .app-header .brand-name {
    font-size: 0.64rem;
    letter-spacing: 0.04em;
  }

  .app-header .account-label {
    display: none;
  }

  .app-header .account-trigger-copy,
  .app-header .account-caret {
    display: none;
  }

  .app-header .account-trigger {
    width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 4px;
  }

  .app-header .account-avatar {
    width: 34px;
    height: 34px;
  }

  .app-header .account-menu {
    right: -2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
