:root {
  --bg: #f3ede2;
  --paper: rgba(255, 251, 245, 0.88);
  --line: rgba(44, 56, 69, 0.14);
  --ink: #1f2b36;
  --muted: #5f6f7d;
  --accent: #0e8a87;
  --accent-soft: rgba(14, 138, 135, 0.12);
  --warm: #d76a2d;
  --warm-soft: rgba(215, 106, 45, 0.14);
  --shadow: 0 30px 80px rgba(38, 38, 34, 0.12);
  --hero-shadow: 0 20px 60px rgba(31, 43, 54, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-sm: 999px;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(14, 138, 135, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(215, 106, 45, 0.18), transparent 28%),
    linear-gradient(180deg, #f5efe5 0%, #efe4d4 100%);
  font-family: "Avenir Next", "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.72;
}

code {
  font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
  font-size: 0.92em;
  background: rgba(31, 43, 54, 0.06);
  border-radius: 0.45rem;
  padding: 0.12rem 0.36rem;
}

a {
  color: inherit;
  text-decoration-color: rgba(14, 138, 135, 0.42);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: rgba(14, 138, 135, 0.88);
}

.page-shell {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.page-glow {
  position: fixed;
  z-index: 0;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.45;
  pointer-events: none;
}

.page-glow-left {
  top: 80px;
  left: -80px;
  background: rgba(14, 138, 135, 0.18);
}

.page-glow-right {
  top: 180px;
  right: -80px;
  background: rgba(215, 106, 45, 0.16);
}

.hero,
.content-grid,
.page-footer {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 251, 245, 0.9), rgba(252, 247, 238, 0.72)),
    linear-gradient(180deg, rgba(14, 138, 135, 0.08), rgba(215, 106, 45, 0.04));
  box-shadow: var(--hero-shadow);
  backdrop-filter: blur(16px);
}

.eyebrow,
.summary-label,
.panel-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  padding: 0.44rem 0.82rem;
  background: rgba(31, 43, 54, 0.08);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
}

.status-chip-muted {
  background: var(--accent-soft);
  color: #0d5f61;
}

.hero h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 1px solid rgba(31, 43, 54, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.82rem 1.18rem;
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.language-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 138, 135, 0.34);
}

.language-toggle.is-active {
  background: linear-gradient(135deg, var(--ink), #294253);
  border-color: transparent;
  color: #fffaf3;
  box-shadow: 0 16px 30px rgba(31, 43, 54, 0.16);
}

.utility-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 43, 54, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.82rem 1.18rem;
  background: rgba(255, 255, 255, 0.28);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.utility-link:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 138, 135, 0.34);
  background: rgba(255, 255, 255, 0.48);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.info-rail {
  display: grid;
  gap: 18px;
  align-self: start;
  position: sticky;
  top: 20px;
}

.summary-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 243, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.summary-card h2,
.summary-card p {
  margin-top: 0;
}

.summary-card h2 {
  margin-bottom: 10px;
  font-size: 1.22rem;
}

.summary-card-warning {
  background: linear-gradient(135deg, rgba(255, 247, 238, 0.88), rgba(255, 240, 228, 0.72));
  border-color: rgba(215, 106, 45, 0.18);
}

.fact-list,
.link-list,
.policy-section ul,
.policy-section ol {
  padding-left: 1.25rem;
}

.fact-list li,
.policy-section li {
  margin: 0.45rem 0;
}

.summary-value {
  margin-bottom: 8px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.summary-note {
  color: var(--muted);
}

.policy-sheet {
  min-width: 0;
}

.policy-panel {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.panel-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.policy-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.policy-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.policy-section h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.policy-section p,
.policy-section ul,
.policy-section ol {
  margin: 0 0 12px;
}

.policy-section ul ul,
.policy-section ol ul {
  margin-top: 8px;
}

.placeholder {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 0.5rem;
  background: var(--warm-soft);
  color: #8e4118;
  font-weight: 700;
}

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

.support-card {
  padding: 18px;
  border: 1px solid rgba(31, 43, 54, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(255, 248, 239, 0.8)),
    rgba(255, 255, 255, 0.6);
  box-shadow: 0 14px 36px rgba(31, 43, 54, 0.06);
}

.support-card-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.support-card h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.support-card p {
  margin: 0;
}

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

.qa-item {
  border: 1px solid rgba(31, 43, 54, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  padding: 14px 16px;
}

.qa-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.qa-item summary::-webkit-details-marker {
  display: none;
}

.qa-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
}

.qa-item[open] summary::after {
  content: "−";
}

.qa-item p {
  margin: 12px 0 0;
}

.page-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 18px;
  margin-top: 24px;
  padding: 20px 4px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

[hidden] {
  display: none !important;
}

.hero,
.summary-card,
.policy-panel {
  animation: rise-in 540ms ease both;
}

.summary-card:nth-child(2) {
  animation-delay: 60ms;
}

.summary-card:nth-child(3) {
  animation-delay: 120ms;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

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

  .info-rail {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 18px 14px 40px;
  }

  .hero,
  .policy-panel {
    padding: 22px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 13vw, 3.4rem);
  }

  .info-rail {
    grid-template-columns: 1fr;
  }

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

  .page-footer {
    padding-top: 12px;
  }
}
