:root {
  --bg-top: #f4f6fb;
  --bg-mid: #fbf8f4;
  --bg-bottom: #edf1fb;
  --text: #171a21;
  --muted: #596273;
  --subtle: #707b8a;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --card-radius: 28px;
  --card-shadow: 0 14px 38px rgba(22, 34, 56, 0.1), 0 3px 10px rgba(22, 34, 56, 0.05);
  --card-shadow-hover: 0 22px 54px rgba(22, 34, 56, 0.15), 0 8px 16px rgba(22, 34, 56, 0.07);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(ellipse 120% 72% at 50% -14%, rgba(255, 255, 255, 0.98), transparent 58%),
    linear-gradient(165deg, var(--bg-top) 0%, var(--bg-mid) 48%, var(--bg-bottom) 100%);
  background-attachment: fixed;
}

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

.home-shell {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(0.75rem, 2vh, 1.15rem) clamp(1rem, 3vw, 1.75rem) clamp(0.5rem, 1.2vh, 0.8rem);
  gap: clamp(0.65rem, 1.5vh, 1.1rem);
}

/* --- Site header: brand → nav → trail (trail visually light) --- */
.home-site-header {
  width: 100%;
  max-width: 56rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(0.65rem, 1.8vw, 1rem);
  padding: clamp(0.35rem, 1.2vw, 0.65rem) 0 clamp(0.15rem, 0.5vw, 0.35rem);
}

.home-brand {
  position: relative;
  z-index: 1;
  padding: 0.15rem clamp(0.5rem, 2vw, 1rem) 0;
}

.home-brand::before {
  content: "";
  position: absolute;
  inset: -10% -8% 35%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(201, 162, 39, 0.12) 0%, transparent 55%),
    radial-gradient(circle at 15% 40%, rgba(123, 107, 168, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 88% 45%, rgba(42, 122, 110, 0.08) 0%, transparent 38%);
}

.home-brand__title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  background: linear-gradient(
    118deg,
    var(--llm-sacral-gold, #c9a227) 0%,
    #c77a8f 38%,
    var(--llm-sacral-indigo, #3d4f7a) 72%,
    var(--llm-sacral-teal, #2a7a6e) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-brand__tagline {
  margin: 0.45rem 0 0;
  font-size: clamp(0.92rem, 1.75vw, 1.12rem);
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(
    90deg,
    var(--llm-sacral-teal, #2a7a6e) 0%,
    var(--llm-sacral-saffron, #c76b2e) 42%,
    var(--llm-sacral-lavender, #7b6ba8) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-trail-util {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding-top: 0.15rem;
}

.home-trail-util .lifeloveme-trace-nav,
.home-trail-util .lifeloveme-back-nav {
  padding: 0.2rem 0 0;
  justify-content: center;
}

.home-trail-util .lifeloveme-trace-nav-row {
  justify-content: center;
}

.home-trail-util .lifeloveme-back-button,
.home-trail-util .lifeloveme-trace-back,
.home-trail-util .lifeloveme-trace-menu-toggle {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.24rem 0.6rem;
  color: rgba(42, 51, 72, 0.88);
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(26, 34, 56, 0.1);
  box-shadow: none;
}

.top-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(89, 98, 115, 0.92);
}

.top-nav a {
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 34, 56, 0.08);
  background: rgba(255, 255, 255, 0.55);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.top-nav a:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border-color: rgba(61, 79, 122, 0.15);
  box-shadow: 0 2px 10px rgba(22, 34, 56, 0.06);
}

.top-nav a[aria-current="page"] {
  background: linear-gradient(
    135deg,
    rgba(201, 162, 39, 0.14),
    rgba(61, 90, 128, 0.1)
  );
  color: var(--text);
  border-color: rgba(201, 162, 39, 0.22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.hero {
  text-align: center;
  width: 100%;
  max-width: 900px;
  padding: 0.2rem 0.75rem 0.45rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 100%);
}

.subtitle {
  margin: 0.35rem auto 0;
  max-width: 760px;
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  line-height: 1.46;
  color: var(--muted);
}

.supporting {
  margin: 0.25rem 0 0;
  font-size: clamp(0.8rem, 1.1vw, 0.9rem);
  font-weight: 600;
  color: var(--subtle);
}

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

.home-ask {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 1.15rem 1.25rem 1.2rem;
  border-radius: var(--card-radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 246, 255, 0.92) 100%);
  border: 1px solid rgba(22, 34, 56, 0.08);
  box-shadow: var(--card-shadow);
}

.home-ask__title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5a4a7a;
  text-align: center;
}

.home-ask__lede {
  margin: 0.5rem 0 0.85rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.home-wellness-library {
  margin: -0.25rem 0 0.85rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.home-wellness-library a {
  font-weight: 600;
  color: var(--accent, #2d6a5a);
  text-decoration: none;
}

.home-wellness-library a:hover {
  text-decoration: underline;
}

.home-life-helpers {
  margin: -0.15rem 0 0.65rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.home-life-helpers a {
  font-weight: 600;
  color: var(--accent, #2d6a5a);
  text-decoration: none;
}

.home-life-helpers a:hover {
  text-decoration: underline;
}

.home-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin: 0 0 0.85rem;
}

.home-quick-nav__btn {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--accent, #2d6a5a);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.home-quick-nav__btn--secondary {
  color: var(--accent, #2d6a5a);
  background: #fff;
  border-color: rgba(45, 106, 90, 0.35);
}

.home-quick-nav__btn:hover {
  filter: brightness(0.96);
}

.home-ask__form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 520px) {
  .home-ask__form {
    flex-direction: row;
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: center;
  }
  .home-ask__input {
    flex: 1 1 12rem;
    min-width: 0;
  }
  .home-ask__submit {
    flex: 0 0 auto;
  }
}

.home-ask__input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid rgba(22, 34, 56, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
}

.home-ask__input::placeholder {
  color: #8e96a3;
}

.home-ask__input:focus {
  outline: none;
  border-color: rgba(67, 97, 200, 0.45);
  box-shadow: 0 0 0 3px rgba(67, 97, 200, 0.12);
}

.home-ask__submit {
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(180deg, #3d5a9e 0%, #2f4780 100%);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(47, 71, 128, 0.28);
  transition: transform 0.15s ease, filter 0.2s ease;
}

.home-ask__submit:hover {
  filter: brightness(1.05);
}

.home-ask__submit:active {
  transform: scale(0.98);
}

.home-ask__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin: 0.65rem 0 0;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.home-ask__chip {
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.3;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(47, 71, 128, 0.22);
  background: rgba(255, 255, 255, 0.65);
  color: var(--text, #1a2233);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.home-ask__chip:hover {
  background: rgba(47, 71, 128, 0.08);
  border-color: rgba(47, 71, 128, 0.35);
}

.home-ask__chip:focus-visible {
  outline: 2px solid rgba(47, 71, 128, 0.45);
  outline-offset: 2px;
}

.home-ask__examples {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: center;
  color: var(--subtle);
}

.home-ask--allow-overflow {
  overflow: visible;
}

.home-ask__status {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted, #5c6675);
  text-align: center;
}

.home-ask__status--error {
  color: #8b2942;
  font-weight: 600;
}

.home-ask__results {
  margin-top: 0.85rem;
  width: 100%;
  text-align: left;
}

.home-ask__results--primary {
  min-height: 0.5rem;
}

/* Local memory (Ask LifeLoveMe — browser only) */
.home-lfm-memory {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(22, 34, 56, 0.08);
  text-align: left;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.home-lfm-memory__privacy {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  line-height: 1.45;
}

.home-lfm-memory__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.home-lfm-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 10px;
  border: 1px solid rgba(22, 34, 56, 0.12);
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
  cursor: pointer;
}

.home-lfm-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.home-lfm-btn--danger {
  color: #8b2942;
  border-color: rgba(139, 41, 66, 0.25);
}

.home-lfm-error {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #8b2942;
}

.home-lfm-recent-wrap {
  margin-top: 0.5rem;
}

.home-lfm-memory__title {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.home-lfm-block {
  margin-bottom: 0.55rem;
}

.home-lfm-block__label {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.home-lfm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.home-lfm-chip {
  max-width: 100%;
  padding: 0.28rem 0.55rem;
  font-size: 0.74rem;
  font-family: inherit;
  text-align: left;
  border-radius: 999px;
  border: 1px solid rgba(67, 97, 200, 0.22);
  background: rgba(67, 97, 200, 0.08);
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-lfm-chip:hover {
  background: rgba(67, 97, 200, 0.14);
}

.home-lfm-chip--route {
  border-color: rgba(22, 34, 56, 0.12);
  background: rgba(255, 255, 255, 0.55);
}

.home-lfm-chip--route:hover {
  background: rgba(255, 255, 255, 0.85);
}

.home-lfm-empty {
  margin: 0;
  font-size: 0.75rem;
}

.home-ask__hint {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.ask-cards {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ask-card {
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 34, 56, 0.08);
  box-shadow: 0 6px 18px rgba(22, 34, 56, 0.06);
}

.ask-card__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.ask-card__desc {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

.ask-card__examples-label {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ask-card__examples {
  margin: 0 0 0.65rem;
  padding-left: 1.15rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text);
}

.ask-card__examples li {
  margin-bottom: 0.2rem;
}

.ask-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ask-card__btn {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 650;
  font-family: inherit;
  border-radius: 12px;
  background: linear-gradient(180deg, #3d5a9e 0%, #2f4780 100%);
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 3px 10px rgba(47, 71, 128, 0.22);
  transition: filter 0.15s ease, transform 0.12s ease;
}

.ask-card__btn:hover {
  filter: brightness(1.06);
}

.ask-card__btn:active {
  transform: scale(0.98);
}

.ask-card__btn--ghost {
  background: rgba(22, 34, 56, 0.08);
  color: var(--text) !important;
  box-shadow: none;
  font-weight: 600;
}

.ask-card__btn--recommended {
  font-size: 0.92rem;
  padding: 0.6rem 1.1rem;
  background: linear-gradient(180deg, #2a7a6e 0%, #2a5f4e 100%);
  box-shadow: 0 4px 14px rgba(42, 95, 78, 0.28);
}

.ask-card--onboarding .ask-card__btn--recommended::before {
  content: "Start here · ";
  font-weight: 700;
  opacity: 0.92;
}

.ask-card__btn--secondary-primary {
  background: rgba(42, 95, 78, 0.12);
  color: var(--llm-sacral-teal, #2a7a6e) !important;
  box-shadow: none;
  font-weight: 650;
  border: 1px solid rgba(42, 95, 78, 0.22);
}

.ask-card__footnote {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.ask-card__more {
  width: 100%;
  margin-top: 0.35rem;
}

.ask-card__more-summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted, #5c6675);
  list-style: none;
}

.ask-card__more-summary::-webkit-details-marker {
  display: none;
}

.ask-card__more-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding-left: 0.15rem;
}

.ask-card__more-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.42rem 0.8rem;
  font-size: 0.84rem;
  font-weight: 650;
  color: #1a4d44;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(42, 95, 78, 0.35);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(22, 34, 56, 0.06);
}

.ask-card__more-link:hover {
  background: rgba(42, 95, 78, 0.08);
  text-decoration: none;
}

.ask-card__more-link:focus-visible {
  outline: 2px solid var(--llm-sacral-teal, #2a7a6e);
  outline-offset: 2px;
}

.ask-card--onboarding .ask-card__actions {
  flex-direction: column;
  align-items: stretch;
}

.ask-card--onboarding .ask-card__actions .ask-card__btn,
.ask-card--onboarding .ask-card__actions .ask-card__btn--secondary-primary {
  justify-content: center;
  text-align: center;
}

/* Create personal page — inline on Home (not Workbench) */
.llm-create-page-panel {
  margin-top: 1rem;
}

.llm-create-page {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(42, 95, 78, 0.08);
  border: 1px solid rgba(42, 95, 78, 0.15);
}

.llm-create-page__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: var(--llm-sacral-teal, #2a7a6e);
}

.llm-create-page__lede {
  margin: 0 0 0.85rem;
  line-height: 1.5;
}

.llm-create-page__field span {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.llm-create-page__choice {
  border: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.llm-create-page__radio {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1rem;
  cursor: pointer;
}

.llm-create-page__field input {
  width: 100%;
  max-width: 22rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(42, 95, 78, 0.25);
  font: inherit;
}

.llm-create-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.llm-create-page__btn {
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(42, 95, 78, 0.25);
  background: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.llm-create-page__btn--primary {
  background: linear-gradient(180deg, #2a7a6e 0%, #2a5f4e 100%);
  color: #fff;
  border: none;
}

.llm-create-page__notice {
  margin: 0.75rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(180, 120, 40, 0.1);
  border: 1px solid rgba(180, 120, 40, 0.28);
}

.llm-create-page__notice-text {
  margin: 0 0 0.65rem;
  line-height: 1.5;
  color: var(--text);
}

.llm-create-page__notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.llm-create-page__setup-help {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(42, 95, 78, 0.15);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text);
}

.llm-create-page__setup-help p {
  margin: 0 0 0.35rem;
}

.llm-create-page__setup-steps {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}

.llm-create-page__setup-steps li {
  margin-bottom: 0.35rem;
}

.llm-create-page__sample {
  margin: 0.85rem 0 0;
}

.llm-create-page__sample-link {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.8rem;
  font-size: 0.84rem;
  font-weight: 650;
  color: #1a4d44;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(42, 95, 78, 0.35);
  border-radius: 10px;
}

.llm-create-page__sample-link:hover {
  background: rgba(42, 95, 78, 0.08);
}

.ask-card__btn[data-llm-ask-create-personal-page] {
  cursor: pointer;
  border: none;
  font: inherit;
}

.ask-card__btn--disabled,
.ask-card__btn--disabled:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.ask-card__ranked {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.ask-card__tier-label {
  margin: 0.15rem 0 0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ask-card__tier-label--best {
  color: #1f6b42;
}

.ask-card__tier-label--strong {
  color: #8a6a1a;
}

.ask-card__tier-label--related {
  color: var(--muted);
}

.ask-card__tier-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ask-card__dest {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ask-card__timestamp {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--subtle);
}

.ask-card__dest-reason {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted);
}

.ask-card__btn--rank-best {
  background: linear-gradient(180deg, #2f8f57 0%, #247347 100%);
  box-shadow: 0 3px 10px rgba(36, 115, 71, 0.22);
}

.ask-card__btn--rank-strong {
  background: linear-gradient(180deg, #c9a227 0%, #a8841a 100%);
  color: #1a1a1a !important;
  box-shadow: 0 3px 10px rgba(168, 132, 26, 0.18);
}

.ask-card__btn--rank-related {
  background: rgba(22, 34, 56, 0.1);
  color: var(--text) !important;
  box-shadow: none;
}

.ask-card__example-chips {
  margin-bottom: 0.55rem;
}

.home-quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 0.55rem;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0.15rem 0 0.25rem;
}

.home-quick__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(23, 26, 33, 0.88);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 34, 56, 0.08);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(22, 34, 56, 0.06);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-quick__link:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(22, 34, 56, 0.1);
}

.home-quick__ico {
  font-size: 1rem;
  line-height: 1;
}

.home-modules {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.15rem 0 0.35rem;
}

.home-modules__grid {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 14px;
}

.home-module-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 420px;
  text-decoration: none;
  color: inherit;
  border-radius: var(--card-radius);
  padding: 24px 26px;
  min-height: 0;
  box-shadow: var(--card-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  cursor: pointer;
}

.home-module-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}

.home-module-card--upanishads {
  background: linear-gradient(150deg, #f0eef8 0%, #e4e9f7 45%, #d8e4f3 100%);
  color: #1f2d4a;
  border: 1px solid rgba(32, 45, 74, 0.1);
}

.home-module-card__icon {
  width: 52px;
  height: 52px;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.65rem;
}

.home-module-card__title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.home-module-card__subtitle {
  margin: 0.45rem 0 0;
  font-size: clamp(0.82rem, 1.06vw, 0.92rem);
  line-height: 1.48;
  color: rgba(31, 45, 74, 0.82);
  max-width: 38ch;
}

.home-module-card__btn {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #3d5a80 0%, #5c4d7d 100%);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(61, 90, 128, 0.35);
}

.home-module-card:hover .home-module-card__btn {
  filter: brightness(1.05);
}

.home-communities {
  max-width: 1180px;
  margin: 0 auto 1.25rem;
  padding: 1.15rem 1.25rem;
}

.home-communities h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.home-communities__lede {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.home-communities__link {
  display: inline-block;
  font-weight: 700;
  color: #2a5f4e;
  text-decoration: none;
}

.home-communities__link:hover {
  text-decoration: underline;
}

.top-nav a:focus-visible,
.home-quick__link:focus-visible,
.home-ask__submit:focus-visible,
.home-ask__input:focus-visible,
.footer-link:focus-visible,
.pillar-card:focus-visible,
.home-module-card:focus-visible {
  outline: 2px solid rgba(67, 97, 200, 0.55);
  outline-offset: 2px;
}

.pillar-grid {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  border-radius: 28px;
  padding: 28px;
  min-height: 260px;
  box-shadow: var(--card-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  cursor: pointer;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

.life-card {
  background: linear-gradient(150deg, #e6f8f1 0%, #c8efe1 45%, #a5dfd3 100%);
  color: #0d4137;
}

.love-card {
  background: linear-gradient(150deg, #fff1ee 0%, #fbdcd3 48%, #f4c5b7 100%);
  color: #4b2826;
}

.me-card {
  background: linear-gradient(150deg, #eff2ff 0%, #dfe5fc 48%, #cdd6f6 100%);
  color: #232b54;
}

.pillar-icon {
  width: 56px;
  height: 56px;
  font-size: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.pillar-card h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.pillar-card p {
  margin: 0.5rem 0 0;
  font-size: clamp(0.82rem, 1.06vw, 0.92rem);
  line-height: 1.48;
  max-width: 36ch;
}

.pillar-card span {
  margin-top: auto;
  padding-top: 0.95rem;
  font-size: clamp(0.76rem, 0.95vw, 0.84rem);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.home-footer {
  width: 100%;
  max-width: 1180px;
  text-align: center;
  color: var(--subtle);
  font-size: clamp(0.68rem, 0.9vw, 0.76rem);
  line-height: 1.3;
}

.footer-links {
  margin-top: 0.35rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.footer-link {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(23, 26, 33, 0.72);
  text-decoration: none;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(20, 28, 40, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.top-nav--secondary {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.92;
}

.top-nav--secondary a {
  padding: 0.3rem 0.55rem;
}

.top-nav__about {
  opacity: 0.82;
  font-weight: 500;
}

.home-ask--primary {
  max-width: 42rem;
  padding: 1.35rem 1.35rem 1.4rem;
  margin-top: 0.15rem;
}

.home-ask--primary .home-ask__title {
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  letter-spacing: 0.08em;
}

.home-ask__helper {
  margin: 0.35rem 0 0;
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  font-weight: 650;
  line-height: 1.45;
  color: var(--text);
  text-align: center;
}

.home-ask--primary .home-ask__lede {
  margin-top: 0.45rem;
  font-size: 0.82rem;
}

.home-ask--primary .home-ask__input {
  font-size: 1.05rem;
  padding: 0.72rem 0.95rem;
}

.home-ask--primary .home-ask__submit {
  padding: 0.72rem 1.25rem;
  font-size: 0.95rem;
}

.home-gateways {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.25rem 0 0.5rem;
}

.home-gateways__intro {
  text-align: center;
  margin: 0 auto 0.85rem;
  max-width: 40rem;
  font-size: 0.84rem;
  line-height: 1.45;
}

.home-gateways__intro a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.pillar-grid--four {
  grid-template-columns: repeat(4, 1fr);
}

.practice-card {
  background: linear-gradient(150deg, #f3f0ff 0%, #e8e2fb 45%, #ddd5f5 100%);
  color: #2a2348;
}

@media (max-width: 1100px) {
  .pillar-grid--four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .pillar-grid--four {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .pillar-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 520px;
    flex: none;
  }

  .pillar-card {
    min-height: 0;
    padding: 22px;
  }

  .home-shell {
    gap: 0.9rem;
  }
}

/* --- Value proposition (June 7 messaging) --- */
.home-value-prop {
  width: 100%;
  max-width: 56rem;
  text-align: left;
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1.1rem, 3vw, 1.5rem);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--card-shadow);
}

.home-value-prop__motto {
  margin: 0 0 0.5rem;
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
  font-weight: 700;
  line-height: 1.35;
  color: #0c3d6e;
}

.home-value-prop__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  font-weight: 650;
  line-height: 1.3;
}

.home-value-prop__lede {
  margin: 0 0 0.65rem;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.5;
}

.home-value-prop__pillars {
  margin: 0 0 0.65rem;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.home-value-prop__pillars li {
  margin: 0.2rem 0;
}

.home-value-prop__tagline {
  margin: 0 0 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: #eef4fc;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
}

.home-value-prop__links {
  margin: 0;
  font-size: 0.88rem;
}

.home-value-prop__links a {
  color: #0a5cad;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
  .ask-card {
    background: rgba(32, 36, 48, 0.94);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .ask-card__title {
    color: #f2f4f8;
  }

  .ask-card__desc,
  .ask-card__more-summary {
    color: rgba(242, 244, 248, 0.78);
  }

  .ask-card__more-link,
  .llm-create-page__sample-link {
    color: #d8f5ef;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(143, 212, 200, 0.4);
  }

  .ask-card__more-link:hover,
  .llm-create-page__sample-link:hover {
    background: rgba(143, 212, 200, 0.16);
  }

  .ask-card__btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #f2f4f8 !important;
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  .llm-create-page {
    background: rgba(42, 95, 78, 0.18);
    border-color: rgba(143, 212, 200, 0.22);
  }

  .llm-create-page__notice {
    background: rgba(180, 120, 40, 0.16);
    border-color: rgba(220, 170, 80, 0.35);
  }

  .llm-create-page__notice-text,
  .llm-create-page__setup-help {
    color: #f2f4f8;
  }
}
