:root {
  --p: #5b3d88;
  --p-dark: #3e2861;
  --p-light: #ede9f5;
  --p-xlight: #f7f5fb;
  --text: #1f1a2d;
  --text-2: #5b5870;
  --text-3: #8b87a3;
  --border: #e4deef;
  --bg: #ffffff;
  --bg-2: #f6f4fb;
  --gold: #c9871d;
  --gold-soft: #fff2dc;
  --sky: #1e75a8;
  --sky-soft: #e8f4fb;
  --mint: #1b8b5a;
  --mint-soft: #e5f7ef;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --shadow: 0 22px 60px rgba(54, 35, 90, 0.14);
  --hero-grad: linear-gradient(135deg, #5b3d88 0%, #6d4ca0 58%, #8a72b7 100%);
}


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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(123, 90, 190, 0.18), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(52, 107, 210, 0.14), transparent 20%),
    linear-gradient(180deg, #f8f6fc 0%, #f3f0f7 34%, #fcfbfe 100%);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 108px;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

body::before {
  inset: -140px auto auto -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(91, 61, 136, 0.16), transparent 70%);
}

body::after {
  inset: 90px -80px auto auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(201, 135, 29, 0.14), transparent 68%);
}

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

main,
header,
footer,
nav,
section,
article,
div {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(94, 71, 138, 0.12);
  background: rgba(248, 245, 252, 0.74);
  box-shadow: none;
}


.header-inner {
  max-width: 1240px;
  min-height: 86px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, #48306f, #7c5aac);
  box-shadow: 0 14px 28px rgba(78, 54, 123, 0.26);
}

.logo-mark.sky {
  background: linear-gradient(135deg, #1e75a8 0%, #5b3d88 100%);
  box-shadow: 0 10px 24px rgba(30, 117, 168, 0.22);
}

.logo-mark .material-icons-outlined {
  font-size: 24px;
}

.logo-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.logo-name {
  color: var(--p-dark);
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo-sub {
  display: block;
  margin-top: 3px;
  color: var(--text-3);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-transform: uppercase;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 15px;
  border-radius: 999px;
  border: 1px solid rgba(82, 101, 171, 0.2);
  background: rgba(255, 255, 255, 0.88);
  color: #295bb7;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 25px rgba(40, 34, 77, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.lang-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(82, 101, 171, 0.3);
  background: #fff;
  color: #214e9d;
  box-shadow: 0 12px 24px rgba(40, 34, 77, 0.12);
}


.page-main {
  padding-top: 22px;
}

.hero {
  overflow: hidden;
  margin-top: 28px;
  padding: 34px;
  border: 1px solid rgba(77, 56, 121, 0.1);
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(219, 206, 244, 0.9), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 243, 255, 0.96) 46%, rgba(239, 245, 255, 0.96) 100%);
  color: var(--text);
  box-shadow: 0 30px 90px rgba(29, 20, 49, 0.18);
}

.hero.hero-sky {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.26), transparent 34%),
    linear-gradient(135deg, #2f5f87 0%, #4d5da2 50%, #5b3d88 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto auto -120px -110px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 60, 139, 0.18), transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 26px;
  width: auto;
  height: auto;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: none;
  pointer-events: none;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(91, 61, 136, 0.08);
  color: var(--p);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kicker .material-icons-outlined {
  font-size: 17px;
}

.hero-title {
  max-width: 760px;
  margin: 0 0 12px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.8vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 700;
}

.hero-sub {
  max-width: 760px;
  margin: 0;
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.82;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(91, 61, 136, 0.1);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(248, 243, 255, 0.95), rgba(241, 246, 255, 0.96));
  color: var(--text-2);
  font-size: 0.8rem;
}

.hero-note strong {
  color: var(--text);
}

.hero-note .material-icons-outlined {
  font-size: 18px;
}

.surface,
.lang-banner,
.intro-block,
.archive-shell,
.article-shell,
.install-shell,
.seo-block,
.faq-block,
.legal-shell,
.lesson-shell,
.reference-shell,
.life-shell,
.verse-shell {
  margin: 24px 0 0;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(40, 25, 65, 0.05);
}


.lang-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(245, 239, 253, 0.9));
}

.lang-banner:hover {
  border-color: var(--p);
}


.lang-banner-text {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.lang-banner-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #efe7fb, #f6f2fd);
  color: var(--p);
}

.lang-banner-icon .material-icons-outlined {
  font-size: 20px;
}

.lang-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--p) 0%, #7c57af 100%);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.section-head {
  margin: 0 0 18px;
}

.sec-label {
  margin: 0 0 6px;
  color: var(--text-3);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.section-sub {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--text-2);
  font-size: 0.96rem;
  line-height: 1.72;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(91, 61, 136, 0.12);
  background: linear-gradient(135deg, var(--p-xlight), #fff2df);
  color: var(--p);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(48, 29, 81, 0.05);
}

.chip.sky {
  background: linear-gradient(135deg, var(--sky-soft), #fff2df);
  color: var(--sky);
}

.chip .material-icons-outlined {
  font-size: 16px;
}

.notice {
  margin-top: 14px;
  padding: 13px 15px;
  border-left: 3px solid var(--p);
  border-radius: 0 14px 14px 0;
  background: linear-gradient(135deg, var(--p-light), #f8f2ff);
  color: var(--p-dark);
  font-size: 0.86rem;
  line-height: 1.65;
}

.notice.sky {
  border-left-color: var(--sky);
  background: linear-gradient(135deg, var(--sky-soft), #f3f7ff);
  color: #214f70;
}

.notice a {
  color: var(--p);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.question-grid,
.reference-grid,
.life-grid,
.verse-grid,
.comment-list {
  display: grid;
  gap: 14px;
}

.question-grid,
.reference-grid,
.life-grid,
.verse-grid {
  margin-top: 16px;
}

.comment-list {
  gap: 10px;
}

.question-card,
.reference-card,
.life-card,
.verse-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(87, 67, 128, 0.12);
  background: linear-gradient(180deg, #ffffff, rgba(251, 249, 255, 0.96));
  box-shadow: 0 12px 26px rgba(35, 21, 58, 0.05);
}


.question-head,
.reference-head,
.life-head,
.verse-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.question-title-wrap,
.reference-title-wrap,
.life-title-wrap,
.verse-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.question-icon,
.reference-icon,
.life-icon,
.verse-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.question-icon,
.reference-icon,
.life-icon {
  background: #e7f4fb;
  color: var(--sky);
}

.verse-icon {
  background: linear-gradient(145deg, #f1e9ff, #e7f0ff);
  color: var(--p);
}

.question-icon .material-icons-outlined,
.reference-icon .material-icons-outlined,
.life-icon .material-icons-outlined,
.verse-icon .material-icons-outlined {
  font-size: 20px;
}

.question-title,
.reference-title,
.life-title,
.verse-title {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.question-badge,
.reference-badge,
.life-badge,
.verse-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(183, 138, 55, 0.14);
  color: #805e1f;
  border: 1px solid rgba(183, 138, 55, 0.18);
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comment-item {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(91, 61, 136, 0.1);
  background: rgba(255, 255, 255, 0.88);
}

.question-card .comment-item,
.reference-card .comment-item,
.life-card .comment-item {
  border-color: rgba(30, 117, 168, 0.12);
}


.comment-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--p);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.question-card .comment-label,
.reference-card .comment-label,
.life-card .comment-label {
  color: var(--sky);
}

.comment-label .material-icons-outlined {
  font-size: 16px;
}

.comment-item p,
.question-card p,
.reference-card p,
.life-card p,
.verse-card p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.75;
}

.ad-slot {
  margin: 22px 0;
  min-height: 160px;
  overflow: hidden;
  border: 1px solid rgba(91, 61, 136, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 244, 252, 0.88));
  text-align: center;
}

.ad-slot .adsbygoogle {
  display: block;
  width: 100%;
  min-height: 160px;
}

.ad-slot .adsbygoogle[data-ad-layout="in-article"] {
  min-height: 320px;
}

.ad-slot .adsbygoogle[data-ad-format="auto"] {
  min-height: 250px;
}


.archive-list,
.article-list,
.shortcut-grid,
.faq-list {
  display: grid;
  gap: 12px;
}

.archive-card,
.shortcut-link,
.faq-item,
.article-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(35, 21, 58, 0.04);
}


.archive-card,
.article-card {
  padding: 18px;
  border-radius: 20px;
}

.archive-card {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.archive-card:hover,
.shortcut-link:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 61, 136, 0.28);
  box-shadow: 0 14px 28px rgba(35, 21, 58, 0.08);
}

.archive-card.archive-sky:hover {
  border-color: rgba(30, 117, 168, 0.28);
}

.archive-card-current {
  border-color: rgba(201, 135, 29, 0.45);
  background: linear-gradient(135deg, var(--gold-soft), var(--bg));
  box-shadow: 0 18px 36px rgba(201, 135, 29, 0.16);
}

.archive-card-current:hover {
  border-color: rgba(201, 135, 29, 0.62);
  box-shadow: 0 22px 40px rgba(201, 135, 29, 0.22);
}

.archive-card-current .archive-icon {
  background: linear-gradient(135deg, var(--gold-soft), var(--bg-2));
  color: #8b5b00;
}

.archive-card-current .archive-meta {
  color: #8b5b00;
}

.archive-card-soon {
  border-style: dashed;
  background: linear-gradient(135deg, rgba(250, 248, 253, 0.98), rgba(255, 255, 255, 0.94));
}

.archive-card-head,
.article-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.archive-title-wrap,
.article-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.archive-icon,
.article-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.archive-icon {
  background: #ede2ff;
  color: var(--p);
}

.archive-icon.sky,
.article-icon.sky {
  background: #e7f4fb;
  color: var(--sky);
}

.archive-icon .material-icons-outlined,
.article-icon .material-icons-outlined {
  font-size: 20px;
}

.archive-title,
.article-title {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.archive-copy,
.article-card p,
.faq-item p,
.legal-page p,
.legal-page li {
  margin: 0;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.75;
}

.archive-meta {
  margin-top: 10px;
  color: var(--text-3);
  font-size: 0.74rem;
  font-weight: 800;
}

.archive-badge,
.article-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 800;
}

.badge-live {
  background: var(--mint-soft);
  color: #15693c;
}

.badge-current {
  background: var(--gold-soft);
  color: #8b5b00;
}

.badge-soon {
  background: var(--p-light);
  color: var(--p);
}

.badge-gold {
  background: var(--gold-soft);
  color: #8f5f06;
}


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

.shortcut-link {
  min-height: 128px;
  padding: 16px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.shortcut-link .material-icons-outlined {
  color: var(--p);
  font-size: 22px;
}

.shortcut-link strong {
  color: var(--text);
  font-size: 0.94rem;
}

.shortcut-link span:last-child {
  color: var(--text-2);
  font-size: 0.8rem;
  line-height: 1.55;
}

.install-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 246, 253, 0.92));
}

.install-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.install-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--p) 0%, #7c57af 100%);
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(91, 61, 136, 0.18);
}

.install-btn[hidden] {
  display: none;
}

.install-btn .material-icons-outlined {
  font-size: 18px;
}

.install-note {
  color: var(--text-2);
  font-size: 0.84rem;
  line-height: 1.6;
}

.article-list {
  margin-top: 16px;
}

.article-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 245, 253, 0.94));
}

.article-card.article-sky {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 253, 0.94));
}

.article-copy {
  display: grid;
  gap: 10px;
}

.article-source {
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(91, 61, 136, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 236, 0.94));
}

.article-source p {
  color: var(--text);
}

.article-source p + p {
  margin-top: 10px;
}

.article-source.sky {
  border-color: rgba(30, 117, 168, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 253, 0.94));
}

.article-highlight {
  padding: 0 0.12em;
  color: var(--text);
  font-weight: 800;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background: linear-gradient(180deg, transparent 0 38%, rgba(255, 230, 92, 0.9) 38% 88%, transparent 88% 100%);
}

.article-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--p);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.article-label.sky {
  color: var(--sky);
}

.article-label .material-icons-outlined {
  font-size: 16px;
}

.article-answer {
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(91, 61, 136, 0.08);
  background: rgba(255, 255, 255, 0.8);
}

.article-answer p + p {
  margin-top: 10px;
}

.article-answer.sky {
  border-color: rgba(30, 117, 168, 0.12);
}


.theme-verse {
  margin-top: 16px;
  padding: 16px 18px;
  border-left: 4px solid var(--p);
  border-radius: 0 16px 16px 0;
  background: linear-gradient(135deg, rgba(237, 233, 245, 0.9), rgba(255, 255, 255, 0.94));
  color: var(--p-dark);
  font-size: 0.9rem;
  line-height: 1.7;
}

.theme-verse strong {
  color: var(--p);
}

.seo-block,
.faq-block {
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}

.seo-block h2,
.faq-block h2,
.legal-page h1,
.legal-page h2 {
  margin: 0 0 12px;
  color: var(--p-dark);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.seo-block p,
.faq-block p {
  margin: 0 0 12px;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.75;
}

.seo-block p:last-child,
.faq-block p:last-child {
  margin-bottom: 0;
}

.seo-block strong,
.faq-block strong,
.legal-page strong {
  color: var(--p);
}

.faq-item {
  padding: 14px 15px;
  border-radius: 16px;
}

.faq-item:nth-child(1) {
  background: linear-gradient(135deg, #fff7ea, #fff);
}

.faq-item:nth-child(2) {
  background: linear-gradient(135deg, #eef8fd, #fff);
}

.faq-item:nth-child(3) {
  background: linear-gradient(135deg, #f6effd, #fff);
}

.faq-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.faq-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-item:nth-child(1) .faq-icon {
  background: #ffeecb;
  color: #946000;
}

.faq-item:nth-child(2) .faq-icon {
  background: #dff1fa;
  color: #1e75a8;
}

.faq-item:nth-child(3) .faq-icon {
  background: #ede2ff;
  color: var(--p);
}

.faq-icon .material-icons-outlined {
  font-size: 18px;
}

.faq-item h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 800;
}

.legal-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 246, 253, 0.92));
}

.legal-page {
  display: grid;
  gap: 18px;
}

.legal-page section {
  display: grid;
  gap: 10px;
}

.legal-page h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.08;
}

.legal-page h2 {
  margin-top: 6px;
}

.legal-meta {
  color: var(--text-3);
  font-size: 0.8rem;
  font-weight: 700;
}

.legal-page ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-2);
}

.legal-note {
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-2);
  font-size: 0.86rem;
  line-height: 1.7;
}


footer {
  margin-top: 28px;
  padding: 26px 0 10px;
  border-top: 1px solid var(--border);
  background: transparent;
}


.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-2);
  font-size: 0.94rem;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--p);
}

.footer-copy {
  margin: 12px 0 0;
  color: var(--text-3);
  font-size: 0.92rem;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 45;
  display: flex;
  gap: 6px;
  width: min(760px, calc(100% - 32px));
  padding: 8px;
  border: 1px solid rgba(79, 58, 126, 0.18);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(73, 47, 117, 0.96), rgba(46, 104, 196, 0.92));
  box-shadow: 0 20px 44px rgba(40, 30, 65, 0.24);
}


.nav-item {
  flex: 1;
  padding: 10px 8px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.79rem;
  font-weight: 800;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-item.active {
  color: #1f1840;
  background: linear-gradient(135deg, #f7d88a, #fff2c8);
  box-shadow: 0 10px 22px rgba(23, 16, 44, 0.18);
}

.nav-item.sky-active {
  color: #1f1840;
}

.nav-item .material-icons-outlined {
  display: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.lang-banner,
.surface,
.intro-block,
.archive-shell,
.article-shell,
.install-shell,
.seo-block,
.faq-block,
.legal-shell,
.lesson-shell,
.reference-shell,
.life-shell,
.verse-shell {
  animation: fadeUp 0.35s ease both;
}

.lang-banner {
  animation-delay: 0.03s;
}

.intro-block,
.archive-shell,
.article-shell,
.install-shell {
  animation-delay: 0.06s;
}

.seo-block {
  animation-delay: 0.09s;
}

.faq-block,
.legal-shell {
  animation-delay: 0.12s;
}

@media (max-width: 720px) {
  .shortcut-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 76px;
    padding: 0 18px;
  }

  .container {
    padding: 0 18px;
  }

  .logo-name {
    font-size: 1.2rem;
  }

  .logo-sub {
    font-size: 0.68rem;
  }

  .lang-btn {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .hero {
    padding: 22px;
  }

  .hero::after {
    inset: 14px;
  }

  .hero-title {
    font-size: 2.6rem;
    line-height: 0.98;
  }

  .hero-note {
    display: flex;
    align-items: flex-start;
    border-radius: 18px;
  }

  .lang-banner,
  .install-actions,
  .archive-card-head,
  .article-head,
  .faq-head,
  .question-head,
  .reference-head,
  .life-head,
  .verse-head {
    align-items: flex-start;
  }

  .question-head,
  .reference-head,
  .life-head,
  .verse-head {
    flex-direction: column;
  }

  .lang-banner {
    flex-direction: column;
  }

  .lang-banner-text {
    font-size: 0.84rem;
  }

  .lang-banner-btn {
    display: none;
  }

  .install-actions {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 118px;
  }

  footer {
    padding-bottom: 90px;
  }

  .bottom-nav {
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-item {
    border-radius: 0;
  }
}

@media (min-width: 769px) {
  header,
  .bottom-nav {
    backdrop-filter: blur(16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero,
  .lang-banner,
  .surface,
  .intro-block,
  .archive-shell,
  .article-shell,
  .install-shell,
  .seo-block,
  .faq-block,
  .legal-shell,
  .lesson-shell,
  .reference-shell,
  .life-shell,
  .verse-shell {
    animation: none;
  }
}

.surface,
.archive-shell,
.article-shell,
.install-shell,
.seo-block,
.faq-block,
.legal-shell,
.lesson-shell,
.reference-shell,
.life-shell,
.verse-shell {
  border-radius: 18px;
  border: 1px solid rgba(91, 61, 136, 0.11);
  box-shadow: 0 12px 28px rgba(39, 24, 64, 0.06);
}

.section-title {
  font-size: clamp(1.35rem, 3.3vw, 1.9rem);
}

.section-sub {
  font-size: 0.95rem;
}

.question-card,
.reference-card,
.life-card,
.verse-card,
.faq-item,
.install-card,
.path-card {
  border-radius: 14px;
}

.chip,
.week-chip,
.lang-btn,
.install-btn,
.lang-banner-btn {
  border-radius: 10px;
}
