:root {
  color-scheme: light;
  --ink: #20231d;
  --muted: #66695c;
  --quiet: #898371;
  --line: #ded4bf;
  --line-strong: #c8b894;
  --paper: #fffdf7;
  --wash: #f4efe5;
  --card: rgba(255, 254, 249, 0.94);
  --olive: #2f432f;
  --olive-strong: #223321;
  --olive-soft: #eef2e8;
  --gold: #a87a25;
  --gold-soft: #eee1c3;
  --error: #9f2f2f;
  --shadow: 0 18px 42px rgba(52, 43, 28, 0.09);
  --soft-shadow: 0 10px 26px rgba(52, 43, 28, 0.06);
  --sans: Arial, Helvetica, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.96), rgba(244, 239, 229, 0.98)),
    radial-gradient(circle at 50% -12rem, rgba(238, 225, 195, 0.44), transparent 34rem);
}

button,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 24px 28px 10px;
}

.brand-link,
.footer-brand {
  display: inline-flex;
  align-items: center;
  color: rgba(102, 105, 92, 0.68);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-link:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid rgba(168, 122, 37, 0.36);
  outline-offset: 4px;
}

.page-shell {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 18px 22px 58px;
}

.hero {
  max-width: 820px;
  margin: 0 auto 32px;
  text-align: center;
}

.product-kicker {
  margin: 0 0 16px;
  color: var(--olive);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.product-kicker::after {
  display: block;
  width: 48px;
  height: 1px;
  margin: 16px auto 0;
  background: rgba(168, 122, 37, 0.36);
  content: '';
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.45rem, 6.2vw, 4.8rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-subheadline {
  max-width: 680px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.22rem);
  line-height: 1.55;
}

/* Legacy class retained in case cached markup references it. */
.brand-meaning {
  display: none;
}

.app-panel {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 30px;
  border: 1px solid rgba(200, 184, 148, 0.62);
  border-radius: 16px;
  background: rgba(255, 254, 249, 0.9);
  box-shadow: var(--shadow);
}

.lens-form {
  display: grid;
  gap: 18px;
}

.lens-form label {
  font-size: 1.04rem;
  font-weight: 800;
}

textarea {
  width: 100%;
  min-height: 180px;
  padding: 18px 20px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  box-shadow: inset 0 1px 4px rgba(52, 43, 28, 0.05);
}

textarea::placeholder {
  color: var(--quiet);
}

textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(168, 122, 37, 0.16);
  outline: none;
}

.actions {
  display: flex;
  justify-content: center;
}

button {
  min-width: min(100%, 300px);
  min-height: 54px;
  padding: 14px 26px;
  border: 0;
  border-radius: 9px;
  color: #fffef8;
  background: #2f432f;
  box-shadow: 0 8px 18px rgba(47, 67, 47, 0.18);
  cursor: pointer;
  font-weight: 800;
}

button:hover {
  background: #253825;
  box-shadow: 0 10px 22px rgba(47, 67, 47, 0.22);
}

button:focus-visible {
  outline: 3px solid rgba(168, 122, 37, 0.48);
  outline-offset: 3px;
}

button:disabled {
  cursor: wait;
  opacity: 0.74;
}

.note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
  text-align: center;
}

.note-icon {
  display: none;
  flex: 0 0 auto;
}

.loading-panel,
.error {
  width: min(100%, 730px);
  margin: 26px auto 0;
}

.loading-panel {
  padding: 22px;
  border: 1px solid rgba(200, 184, 148, 0.7);
  border-radius: 18px;
  background: rgba(255, 254, 249, 0.82);
  box-shadow: var(--soft-shadow);
  text-align: center;
}

.loading-orbit {
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  border: 3px solid rgba(168, 122, 37, 0.2);
  border-top-color: var(--olive);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

.loading-steps {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.loading-steps span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(238, 225, 195, 0.45), rgba(238, 225, 195, 0.9), rgba(238, 225, 195, 0.45));
}

.loading-steps span:nth-child(2) {
  width: 84%;
  margin: 0 auto;
}

.loading-steps span:nth-child(3) {
  width: 64%;
  margin: 0 auto;
}

.error {
  padding: 16px 18px;
  border: 1px solid rgba(159, 47, 47, 0.28);
  border-radius: 14px;
  color: var(--error);
  background: rgba(159, 47, 47, 0.06);
  box-shadow: var(--soft-shadow);
  text-align: center;
  line-height: 1.55;
}

.response {
  display: grid;
  gap: 20px;
  width: min(100%, 850px);
  margin: 44px auto 0;
}

.response-section {
  padding: 26px;
  border: 1px solid rgba(200, 184, 148, 0.58);
  border-radius: 14px;
  background: rgba(255, 254, 249, 0.9);
  box-shadow: 0 8px 24px rgba(52, 43, 28, 0.055);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 15px;
}

.section-badge {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 999px;
  color: #fffef8;
  background: var(--olive);
  box-shadow: none;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 800;
}

.response-section h2,
.example-header h2,
.example-card h3 {
  margin: 0;
  font-size: 1.09rem;
  line-height: 1.25;
}

.response-section p {
  margin: 0 0 12px;
  color: #2c2f28;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.72;
}

.response-section p:last-child {
  margin-bottom: 0;
}

.scripture-card {
  background: rgba(255, 254, 249, 0.92);
}

.scripture-card p {
  padding-left: 14px;
  border-left: 3px solid rgba(168, 122, 37, 0.34);
}

.next-step-card {
  border-color: rgba(47, 67, 47, 0.32);
  background: rgba(245, 248, 240, 0.9);
}

.next-step-card .section-badge {
  background: var(--gold);
  box-shadow: none;
}

.example-response {
  width: min(100%, 720px);
  margin: 36px auto 0;
  padding: 0;
  border: 0;
  border-top: 1px solid rgba(200, 184, 148, 0.58);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.example-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-top: 18px;
}

.example-header h2 {
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 800;
}

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

.example-card {
  display: block;
  min-width: 0;
  padding: 0;
  border-left: 0;
  color: #4b4c42;
}

.example-card h3 {
  color: rgba(68, 70, 61, 0.82);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 30px 28px 36px;
  border-top: 1px solid rgba(168, 122, 37, 0.24);
  color: var(--muted);
}

.footer-copy {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.site-footer p {
  margin: 0;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-size: 0.92rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--olive);
  text-decoration: underline;
}

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

@media (max-width: 860px) {
  .site-header {
    padding: 20px 22px 8px;
  }

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

@media (max-width: 560px) {
  .site-header {
    padding: 18px 16px 6px;
  }

  .brand-link,
  .footer-brand {
    font-size: 0.68rem;
    letter-spacing: 0.11em;
  }

  .page-shell {
    padding: 8px 16px 42px;
  }

  h1 {
    font-size: clamp(2.08rem, 11.4vw, 3.15rem);
    line-height: 1.02;
  }

  .hero {
    margin-bottom: 26px;
  }

  .product-kicker {
    margin-bottom: 14px;
    font-size: 1.28rem;
  }

  .hero-subheadline {
    margin-top: 18px;
    font-size: 1.02rem;
    line-height: 1.55;
  }

  .app-panel,
  .loading-panel,
  .example-response,
  .response-section {
    border-radius: 14px;
  }

  .app-panel {
    padding: 19px;
    box-shadow: 0 12px 34px rgba(52, 43, 28, 0.08);
  }

  .lens-form {
    gap: 16px;
  }

  .lens-form label {
    font-size: 1rem;
  }

  textarea {
    min-height: 170px;
    padding: 16px;
    font-size: 1rem;
  }

  button {
    width: 100%;
  }

  .note {
    gap: 9px;
    margin-top: 22px;
    font-size: 0.93rem;
    line-height: 1.58;
    text-align: left;
  }

  .loading-panel,
  .error {
    margin-top: 22px;
  }

  .error {
    padding: 14px 15px;
    font-size: 0.94rem;
    text-align: left;
  }

  .response {
    gap: 16px;
    margin-top: 34px;
  }

  .response-section {
    padding: 19px;
  }

  .section-heading {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 13px;
  }

  .section-badge {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
    font-size: 0.88rem;
  }

  .response-section h2 {
    font-size: 1.02rem;
  }

  .response-section p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .example-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .example-response {
    margin-top: 30px;
    padding: 0;
  }

  .example-header {
    margin-bottom: 14px;
  }

  .example-card {
    padding: 0;
  }

  .site-footer {
    display: grid;
    justify-items: start;
    gap: 18px;
    padding: 24px 18px 30px;
  }

  .footer-copy {
    gap: 9px;
  }

  .footer-links {
    gap: 14px;
    font-size: 0.9rem;
  }
}
