@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Space+Grotesk:wght@400;500;700&display=swap");
:root {
  --bg: #f4ede3;
  --bg-strong: #ead9c6;
  --surface: rgba(255, 250, 242, 0.88);
  --surface-solid: #fffaf2;
  --surface-dark: #1f2530;
  --surface-dark-soft: #293241;
  --line: rgba(74, 52, 31, 0.16);
  --text: #201a17;
  --muted: #6a5f58;
  --accent: #b5512c;
  --accent-strong: #8c381c;
  --accent-soft: #f7d5bf;
  --success-soft: #dce9dd;
  --shadow: 0 24px 60px rgba(46, 28, 18, 0.12);
  --shadow-soft: 0 14px 34px rgba(46, 28, 18, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --page-width: min(1160px, calc(100% - 2rem));
}

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

html {
  scroll-behavior: smooth;
}

@keyframes heroCardMainFloat {
  0%, 100% {
    transform: rotate(-5deg) translateY(0);
  }
  50% {
    transform: rotate(-6deg) translateY(-10px);
  }
}
@keyframes heroCardAccentFloat {
  0%, 100% {
    transform: rotate(8deg) translateY(0);
  }
  50% {
    transform: rotate(6deg) translateY(-12px);
  }
}
@keyframes livePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.18);
    opacity: 0.65;
  }
}
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  background: radial-gradient(circle at top left, rgba(181, 81, 44, 0.18), transparent 28rem), radial-gradient(circle at right 15% top 8%, rgba(32, 88, 102, 0.12), transparent 24rem), linear-gradient(180deg, #fbf6ee 0%, var(--bg) 42%, #efe4d5 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 82%);
  opacity: 0.35;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
summary {
  font: inherit;
}

.page-shell {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.site-header,
.hero-section,
.experience-section,
.content-section,
.cta-band,
.site-footer {
  width: var(--page-width);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand img {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.8);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.brand-copy {
  display: grid;
  gap: 0.15rem;
}

.brand-copy strong {
  font-size: 1.02rem;
  letter-spacing: 0.18em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
}

.header-panel {
  display: contents;
}

.nav-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mobile-nav-toggle {
  display: none;
}

.mobile-nav-label {
  font-weight: 700;
}

.mobile-nav-bars {
  display: grid;
  gap: 4px;
}

.mobile-nav-bars span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.nav-link,
.nav-group summary,
.install-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 48px;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-link,
.nav-group summary {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
}

.nav-link:hover,
.nav-group summary:hover,
.nav-group[open] summary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(181, 81, 44, 0.18);
  transform: translateY(-1px);
}

.nav-group {
  position: relative;
}

.nav-group summary {
  cursor: pointer;
  list-style: none;
  gap: 0.55rem;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
}

.nav-group[open] summary::after {
  transform: rotate(-135deg) translateY(-1px);
}

/* Details panels keep the dropdowns lightweight while still feeling animated. */
.nav-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  display: grid;
  gap: 0.35rem;
  min-width: 220px;
  padding: 0.7rem;
  border: 1px solid rgba(181, 81, 44, 0.16);
  border-radius: 22px;
  background: rgba(255, 250, 243, 0.98);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateX(-50%) translateY(10px) scale(0.97);
  transform-origin: top center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-group[open] .nav-menu {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.nav-menu a {
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--text);
  background: rgba(181, 81, 44, 0.1);
  outline: none;
}

.install-link {
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 14px 30px rgba(181, 81, 44, 0.22);
}

.install-link:hover,
.install-link:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.site-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(46, 28, 18, 0.12);
}

.brand:hover img,
.brand:focus-visible img {
  transform: rotate(-4deg) scale(1.04);
  box-shadow: 0 12px 24px rgba(46, 28, 18, 0.16);
}

main {
  padding: 3.5rem 0 2rem;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0 4.5rem;
}

.hero-copy h1,
.section-heading h2,
.steps-panel h3 {
  margin: 0;
  color: var(--text);
  line-height: 0.98;
}

.hero-copy h1 {
  max-width: 11ch;
  font-family: "Instrument Serif", serif;
  font-size: clamp(3.4rem, 7vw, 6.7rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 56ch;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 0.65rem;
  overflow: hidden;
  min-height: 54px;
  padding: 0.95rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  left: -140%;
  width: 48%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-18deg);
  transition: left 420ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button:hover::after,
.button:focus-visible::after {
  left: 160%;
}

.button-icon,
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.button-icon {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 180ms ease;
}

.button:hover .button-icon,
.button:focus-visible .button-icon {
  transform: translateY(-1px) scale(1.06);
}

.button-icon svg,
.social-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 16px 30px rgba(181, 81, 44, 0.22);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(181, 81, 44, 0.18);
}

.button-premium {
  color: #2a170d;
  border-color: rgba(255, 255, 255, 0.48);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.06)), linear-gradient(135deg, #f5d996 0%, #e9ba6d 42%, #c56734 100%);
  box-shadow: 0 18px 36px rgba(181, 81, 44, 0.24);
}

.button-premium:hover,
.button-premium:focus-visible {
  box-shadow: 0 22px 42px rgba(181, 81, 44, 0.28);
}

.button-compact {
  min-height: 48px;
  flex-shrink: 0;
  min-width: fit-content;
  padding-inline: 1.15rem;
}

.button-wide {
  width: 100%;
}

/* The image stack uses only CSS transforms so it stays stable across breakpoints. */
.hero-visual {
  position: relative;
  min-height: 560px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 10% 18% 2%;
  border-radius: 42px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.18)), linear-gradient(180deg, rgba(181, 81, 44, 0.16), rgba(32, 88, 102, 0.12));
  filter: blur(0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.hero-card {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 30px;
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.76);
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-main {
  inset: 0 8% 6% 0;
  animation: heroCardMainFloat 8s ease-in-out infinite;
}

.hero-card-accent {
  right: 0;
  bottom: 8%;
  width: min(42%, 240px);
  aspect-ratio: 0.82;
  animation: heroCardAccentFloat 7s ease-in-out infinite;
}

.hero-visual:hover .hero-card {
  box-shadow: 0 30px 72px rgba(46, 28, 18, 0.18);
}

.experience-section {
  padding: 0 0 4.5rem;
}

.experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.control-panel,
.steps-panel,
.content-section,
.cta-band,
.site-footer {
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.control-panel,
.steps-panel {
  padding: 2rem;
  border-radius: var(--radius-xl);
}

.control-panel {
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 12rem), linear-gradient(180deg, var(--surface-dark) 0%, var(--surface-dark-soft) 100%);
  color: #fef8f1;
}

.control-panel h2 {
  margin: 0 0 1.5rem;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1;
}

.pro-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.07);
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.pro-box:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12);
}

.pro-copy h3 {
  margin: 0;
  font-size: 1.1rem;
}

.pro-copy p {
  margin: 0.35rem 0 0;
  color: rgba(254, 248, 241, 0.74);
  line-height: 1.6;
}

.phone-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.95rem;
  margin-top: 1.25rem;
  padding: 0.55rem 0.55rem 0.55rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.phone-field:focus-within {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16);
}

.country-code {
  color: rgba(254, 248, 241, 0.84);
  font-weight: 700;
}

.phone-field input {
  width: 100%;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.phone-field input::placeholder {
  color: rgba(254, 248, 241, 0.52);
}

.phone-field input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 0;
}

.control-panel .button-wide {
  margin-top: 1.25rem;
}

.warning-box {
  margin-top: 1.25rem;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
}

.warning-box h4 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.warning-box p {
  margin: 0;
  color: rgba(254, 248, 241, 0.78);
  line-height: 1.7;
}

.steps-panel {
  background: var(--surface);
}

.steps-panel h3 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
}

.steps-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.step-card {
  position: relative;
  padding: 1.4rem 1.4rem 1.4rem 1.55rem;
  border: 1px solid rgba(181, 81, 44, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.step-card::before {
  content: "";
  position: absolute;
  inset: 1rem auto 1rem 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

.step-card h4 {
  margin: 0;
  font-size: 1.08rem;
}

.step-card p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(181, 81, 44, 0.24);
  box-shadow: var(--shadow-soft);
}

.cta-band {
  margin-bottom: 4.5rem;
  padding: 1.75rem 2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(181, 81, 44, 0.14), rgba(181, 81, 44, 0.02)), var(--surface-solid);
}

.cta-band-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-band a {
  position: relative;
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1;
}

.cta-band a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.18em;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0.28);
  transform-origin: left center;
  transition: transform 220ms ease;
}

.cta-band a:hover::after,
.cta-band a:focus-visible::after {
  transform: scaleX(1);
}

.cta-band small {
  color: var(--muted);
  font-size: 1rem;
}

.content-section {
  margin-bottom: 2rem;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.section-heading {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.75rem;
}

.section-heading h2 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  font-weight: 400;
}

.section-heading h2 span {
  color: var(--accent);
}

.section-heading p {
  max-width: 68ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.tool-card {
  display: grid;
  align-content: start;
  position: relative;
  overflow: hidden;
  gap: 0.9rem;
  min-height: 100%;
  padding: 1.5rem;
  border: 1px solid rgba(181, 81, 44, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(181, 81, 44, 0.1), transparent 45%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.tool-card:hover,
.tool-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(181, 81, 44, 0.28);
  box-shadow: var(--shadow-soft);
  outline: none;
}

.tool-card:hover::before,
.tool-card:focus-visible::before {
  opacity: 1;
}

.tool-card h4 {
  margin: 0;
  font-size: 1.16rem;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.tool-card span {
  align-self: end;
  margin-top: 0.45rem;
  color: var(--accent);
  font-weight: 700;
}

.tool-card span::after {
  content: " ->";
  display: inline-block;
  margin-left: 0.1rem;
  transition: transform 180ms ease;
}

.tool-card:hover span::after,
.tool-card:focus-visible span::after {
  transform: translateX(4px);
}

.tool-card-accent {
  background: linear-gradient(180deg, rgba(181, 81, 44, 0.08), rgba(255, 255, 255, 0.8)), rgba(255, 255, 255, 0.74);
}

.faq-list {
  display: grid;
  gap: 0.95rem;
}

.faq-item {
  overflow: hidden;
  border: 1px solid rgba(181, 81, 44, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(181, 81, 44, 0.22);
}

.faq-item[open] {
  border-color: rgba(181, 81, 44, 0.24);
  box-shadow: var(--shadow-soft);
}

.faq-item summary {
  position: relative;
  padding: 1.25rem 3.8rem 1.25rem 1.3rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

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

.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.3rem;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateY(-50%);
}

.faq-item summary::after {
  transform: translateY(-50%) rotate(90deg);
  transition: transform 180ms ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(0deg);
}

.faq-item p {
  margin: 0;
  padding: 0 1.3rem 1.3rem;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer {
  margin-bottom: 2rem;
  padding: 2rem;
  border-radius: calc(var(--radius-xl) + 4px);
  color: rgba(254, 248, 241, 0.9);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 16rem), linear-gradient(180deg, #1e232d 0%, #141922 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 1.5rem;
}

.brand-footer {
  margin-bottom: 1rem;
}

.brand-footer .brand-copy span,
.footer-description,
.footer-column a,
.footer-meta,
.social-links a {
  color: rgba(254, 248, 241, 0.7);
  overflow-wrap: anywhere;
}

.footer-description {
  max-width: 28ch;
  margin: 0 0 1rem;
  line-height: 1.8;
}

.footer-telegram {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.footer-column h4 {
  margin: 0.1rem 0 0.2rem;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-column a:hover,
.footer-column a:focus-visible,
.social-links a:hover,
.social-links a:focus-visible {
  color: #fff;
  outline: none;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  min-width: 0;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.social-icon {
  width: 1rem;
  height: 1rem;
}

.social-links a:hover,
.social-links a:focus-visible,
.footer-telegram:hover,
.footer-telegram:focus-visible {
  transform: translateY(-2px);
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.footer-meta {
  margin: 1.8rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
}

body.bomber-modal-open {
  overflow: hidden;
}

.progress-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.progress-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.progress-modal[hidden] {
  display: none;
}

.progress-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 33, 0.68);
  backdrop-filter: blur(12px);
}

.progress-modal__dialog {
  position: relative;
  display: grid;
  gap: 1.15rem;
  width: min(100%, 34rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: clamp(1.15rem, 4vw, 1.8rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  color: #fef8f1;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.09), transparent 12rem), linear-gradient(180deg, var(--surface-dark) 0%, var(--surface-dark-soft) 100%);
  box-shadow: var(--shadow);
}

.progress-modal__media {
  display: grid;
  place-items: center;
  min-height: 12rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.07);
}

.progress-modal__media img {
  width: min(100%, 18rem);
  max-height: 14rem;
  object-fit: contain;
  object-position: center;
}

.progress-modal__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.progress-modal__stat {
  display: grid;
  gap: 0.45rem;
  min-height: 7rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
}

.progress-modal__label {
  color: rgba(254, 248, 241, 0.72);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress-modal__value {
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 700;
  line-height: 1;
}

.progress-modal__close {
  width: 100%;
}

.progress-modal__encrypted {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
}

.progress-modal__encrypted code {
  display: block;
  width: 100%;
  padding: 0.85rem 0.9rem;
  overflow-wrap: anywhere;
  border-radius: var(--radius-sm);
  color: #fff8ef;
  background: rgba(0, 0, 0, 0.16);
}

.progress-modal__encrypted.is-error code {
  color: #ffe0d6;
}

.progress-modal__premium {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(245, 217, 150, 0.18), rgba(197, 103, 52, 0.08)), rgba(255, 255, 255, 0.07);
}

.progress-modal__premium h3 {
  margin: 0;
  font-size: 1.08rem;
}

.progress-modal__premium p {
  margin: 0.35rem 0 0;
  color: rgba(254, 248, 241, 0.74);
  line-height: 1.55;
}

.progress-modal__premium-button {
  min-height: 46px;
  padding-inline: 1.1rem;
}

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

html[data-theme=dark] .progress-modal__backdrop {
  background: rgba(3, 8, 14, 0.78);
}

@media (max-width: 520px) {
  .progress-modal {
    align-items: end;
    padding: 0.75rem;
  }
  .progress-modal__dialog {
    width: 100%;
    border-radius: var(--radius-lg);
  }
  .progress-modal__stats {
    grid-template-columns: 1fr, 1fr;
  }
  .progress-modal__premium {
    grid-template-columns: 1fr;
  }
  .progress-modal__premium-button {
    width: 100%;
  }
  .progress-modal__media {
    min-height: 7rem;
  }
  .progress-modal__media img {
    width: auto;
    height: 5rem;
  }
}
/* Legal pages use the same visual system but swap the hero for a denser reading layout. */
.legal-main {
  width: var(--page-width);
  margin-inline: auto;
  padding: 3.5rem 0 2rem;
}

.legal-hero {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top right, rgba(181, 81, 44, 0.14), transparent 12rem), var(--surface);
  box-shadow: var(--shadow-soft);
}

.legal-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 42px;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(181, 81, 44, 0.12);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(181, 81, 44, 0.1);
  font-weight: 700;
}

.legal-hero h1 {
  margin: 0;
  max-width: 12ch;
  font-family: "Instrument Serif", serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 0.96;
}

.legal-hero p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.legal-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(181, 81, 44, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.legal-sidebar,
.legal-content {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.legal-sidebar {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.4rem;
  position: sticky;
  top: 6.5rem;
  height: fit-content;
}

.legal-sidebar h2,
.legal-content h2 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1;
}

.legal-sidebar p,
.legal-card p,
.legal-card li,
.legal-callout p {
  color: var(--muted);
  line-height: 1.8;
}

.legal-quicklinks {
  display: grid;
  gap: 0.75rem;
}

.legal-quicklinks a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(181, 81, 44, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.legal-quicklinks a:hover,
.legal-quicklinks a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(181, 81, 44, 0.22);
  box-shadow: var(--shadow-soft);
  outline: none;
}

.legal-content {
  padding: 1.5rem;
}

.legal-stack {
  display: grid;
  gap: 1rem;
}

.legal-card {
  padding: 1.35rem 1.4rem;
  border: 1px solid rgba(181, 81, 44, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
}

.legal-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.15rem;
}

.legal-card p,
.legal-card ul {
  margin: 0;
}

.legal-card ul {
  padding-left: 1.1rem;
}

.legal-card li + li {
  margin-top: 0.55rem;
}

.legal-callout {
  margin-top: 1rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(181, 81, 44, 0.14);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(181, 81, 44, 0.08), rgba(255, 255, 255, 0.82)), rgba(255, 255, 255, 0.76);
}

.legal-callout h3 {
  margin: 0 0 0.55rem;
  font-size: 1.02rem;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1rem;
}

/* The disclaimer page reuses the homepage section language: hero, cards, and CTA band. */
.legal-page-main {
  display: grid;
  gap: 2rem;
}

.legal-home-hero {
  align-items: start;
  padding-bottom: 2.5rem;
}

.legal-home-copy h1 {
  max-width: 8ch;
}

.legal-home-copy p {
  max-width: 58ch;
}

.legal-hero-panel {
  align-self: stretch;
}

.legal-home-section {
  margin-bottom: 0;
}

.legal-summary-grid,
.legal-topic-grid {
  display: grid;
  gap: 1rem;
}

.legal-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.legal-summary-card,
.legal-topic-card {
  padding: 1.4rem;
  border: 1px solid rgba(181, 81, 44, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.legal-summary-card:hover,
.legal-topic-card:hover {
  transform: translateY(-3px);
  border-color: rgba(181, 81, 44, 0.24);
  box-shadow: var(--shadow-soft);
}

.legal-summary-card h3,
.legal-topic-card h3,
.legal-support-copy h2 {
  margin: 0;
}

.legal-summary-card h3,
.legal-topic-card h3 {
  font-size: 1.12rem;
}

.legal-summary-card p,
.legal-topic-card p,
.legal-topic-card li,
.legal-support-copy p {
  color: var(--muted);
  line-height: 1.75;
}

.legal-summary-card p,
.legal-topic-card p,
.legal-support-copy p {
  margin: 0.65rem 0 0;
}

.legal-topic-card ul {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
}

.legal-topic-card li + li {
  margin-top: 0.5rem;
}

.legal-topic-card-list {
  background: linear-gradient(180deg, rgba(181, 81, 44, 0.08), rgba(255, 255, 255, 0.82)), rgba(255, 255, 255, 0.74);
}

.legal-support-band {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.legal-support-copy {
  max-width: 42rem;
}

.legal-support-copy h2 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
}

/* The tools landing page keeps the home page rhythm with a hero, tool grid, and support CTA. */
.tools-page-main {
  display: grid;
  gap: 2rem;
}

.tools-home-hero {
  align-items: start;
  padding-bottom: 2.5rem;
}

.tools-home-copy h1 {
  max-width: 8ch;
}

.tools-home-copy p {
  max-width: 58ch;
}

.tool-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.tool-stat-card {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(181, 81, 44, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.tools-hero-panel {
  align-self: stretch;
}

.tools-home-section {
  margin-bottom: 0;
}

.tools-landing-grid,
.tool-note-grid {
  display: grid;
  gap: 1rem;
}

.tools-landing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-note-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-note-card {
  padding: 1.4rem;
  border: 1px solid rgba(181, 81, 44, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tool-note-card:hover {
  transform: translateY(-3px);
  border-color: rgba(181, 81, 44, 0.24);
  box-shadow: var(--shadow-soft);
}

.tool-note-card h3,
.tools-support-copy h2 {
  margin: 0;
}

.tool-note-card p,
.tools-support-copy p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.tools-support-band {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.tools-support-copy {
  max-width: 42rem;
}

.tools-support-copy h2 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
}

/* The simulation dashboard keeps the same hero/card language as the home page. */
.simulation-dashboard-main {
  display: grid;
  gap: 2rem;
}

.stats-home-hero {
  align-items: start;
  padding-bottom: 2.5rem;
}

.stats-home-copy h1 {
  max-width: 8ch;
}

.stats-home-copy p {
  max-width: 58ch;
}

.stats-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.stats-tag {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(181, 81, 44, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.live-snapshot-panel {
  align-self: stretch;
}

.live-snapshot-panel > p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.live-snapshot-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.live-snapshot-item {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(181, 81, 44, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
}

.live-snapshot-item span,
.live-stat-card span,
.live-delta,
.live-table-card td,
.live-feed-item p,
.live-trend-card p,
.trend-meta {
  color: var(--muted);
}

.live-snapshot-item strong,
.live-stat-card strong {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1;
}

.stats-tag-live,
.snapshot-refresh {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.live-indicator {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #d26e45 0%, #b5512c 100%);
  box-shadow: 0 0 0 6px rgba(181, 81, 44, 0.12);
  animation: livePulse 1.6s ease-in-out infinite;
}

.live-panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.snapshot-refresh {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
}

.simulation-control-section {
  margin-bottom: 0;
}

.simulation-control-card {
  display: grid;
  gap: 1rem;
}

.simulation-field-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.simulation-field {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid rgba(181, 81, 44, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
}

.simulation-field span,
.simulation-target-preview {
  color: var(--muted);
}

.simulation-field select {
  width: 100%;
  min-height: 50px;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(181, 81, 44, 0.16);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
}

.simulation-field select:focus {
  outline: 2px solid rgba(181, 81, 44, 0.16);
  outline-offset: 2px;
}

.simulation-timer {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: 0.08em;
  line-height: 1;
}

.simulation-field-stop .button {
  width: 100%;
  justify-content: center;
}

.simulation-target-preview {
  margin: 0;
  line-height: 1.75;
}

.simulation-target-preview strong {
  color: var(--text);
}

.live-stats-grid,
.live-dashboard-grid,
.live-trend-grid {
  display: grid;
  gap: 1rem;
}

.live-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.live-dashboard-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.live-trend-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.live-stat-card,
.live-table-card,
.live-feed-card,
.live-trend-card {
  padding: 1.4rem;
  border: 1px solid rgba(181, 81, 44, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.live-stat-card:hover,
.live-table-card:hover,
.live-feed-card:hover,
.live-trend-card:hover {
  transform: translateY(-3px);
  border-color: rgba(181, 81, 44, 0.24);
  box-shadow: var(--shadow-soft);
}

.live-stat-card h3,
.live-table-card h3,
.live-feed-card h3,
.live-trend-card h3,
.stats-support-copy h2 {
  margin: 0;
}

.live-stat-card h3,
.live-table-card h3,
.live-feed-card h3,
.live-trend-card h3 {
  font-size: 1.12rem;
}

.live-stat-card p,
.live-table-card p,
.live-feed-card p,
.live-trend-card p,
.stats-support-copy p {
  margin: 0.55rem 0 0;
  line-height: 1.75;
}

.live-stat-card strong {
  display: block;
  margin-top: 0.9rem;
}

.live-delta {
  display: inline-flex;
  margin-top: 0.55rem;
  font-size: 0.92rem;
}

.live-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

.live-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.live-table th,
.live-table td {
  padding: 0.9rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid rgba(181, 81, 44, 0.1);
}

.live-table th {
  color: var(--text);
  font-size: 0.95rem;
}

.live-table tbody tr {
  transition: background-color 180ms ease;
}

.live-table tbody tr:hover {
  background: rgba(181, 81, 44, 0.04);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.status-pill-running {
  color: #205a46;
  background: rgba(61, 161, 116, 0.14);
}

.status-pill-queued {
  color: #8a5a19;
  background: rgba(216, 164, 72, 0.18);
}

.status-pill-complete {
  color: #7f3e22;
  background: rgba(181, 81, 44, 0.16);
}

.live-feed-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.live-feed-item {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(181, 81, 44, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.68);
}

.live-feed-item strong,
.trend-row strong {
  display: block;
}

.live-feed-item time {
  display: inline-flex;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.trend-list {
  display: grid;
  gap: 0.95rem;
  margin-top: 1rem;
}

.trend-row {
  display: grid;
  gap: 0.45rem;
}

.trend-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.trend-bar {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(181, 81, 44, 0.08);
}

.trend-bar span {
  display: block;
  width: var(--trend-width, 50%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.trend-bar-soft span {
  background: linear-gradient(135deg, #d69d46 0%, #b5512c 100%);
}

.stats-support-band {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.stats-support-copy {
  max-width: 42rem;
}

.stats-support-copy h2 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
}

/* The donations page turns the old gallery into the current card-based homepage theme. */
.donations-page-main {
  display: grid;
  gap: 2rem;
}

.donations-home-hero {
  align-items: start;
  padding-bottom: 2.5rem;
}

.donations-home-copy h1 {
  max-width: 9ch;
}

.donations-home-copy p {
  max-width: 58ch;
}

.donation-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.donation-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(181, 81, 44, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.donations-hero-panel {
  align-self: stretch;
}

.donation-summary-grid,
.donation-ngo-grid,
.donation-receipt-grid,
.donation-gallery-grid {
  display: grid;
  gap: 1rem;
}

.donation-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

.donation-gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.donation-summary-card,
.donation-ngo-card,
.donation-receipt-card,
.donation-gallery-card {
  overflow: hidden;
  border: 1px solid rgba(181, 81, 44, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.donation-summary-card:hover,
.donation-ngo-card:hover,
.donation-receipt-card:hover,
.donation-gallery-card:hover {
  transform: translateY(-3px);
  border-color: rgba(181, 81, 44, 0.24);
  box-shadow: var(--shadow);
}

.donation-summary-card,
.donation-ngo-card {
  padding: 1.4rem;
}

.donation-summary-card span,
.donation-ngo-card span,
.donation-gallery-copy p,
.donation-receipt-copy p,
.donation-status,
.donation-modal-copy p {
  color: var(--muted);
}

.donation-summary-card strong {
  display: block;
  margin-top: 0.7rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1;
}

.donation-summary-card h3,
.donation-ngo-card h3,
.donation-gallery-copy h3,
.donation-receipt-copy h3,
.donation-support-copy h2,
.donation-modal-copy h3 {
  margin: 0;
}

.donation-summary-card p,
.donation-ngo-card p,
.donation-support-copy p {
  margin: 0.65rem 0 0;
  line-height: 1.75;
  color: var(--muted);
}

.donation-ngo-card a,
.donation-receipt-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  color: var(--accent-strong);
  font-weight: 700;
}

.donation-ngo-card a::after,
.donation-receipt-link::after {
  content: "->";
  transition: transform 180ms ease;
}

.donation-ngo-card:hover a::after,
.donation-receipt-card:hover .donation-receipt-link::after {
  transform: translateX(3px);
}

.donation-receipt-button,
.donation-gallery-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.donation-receipt-button:focus-visible,
.donation-gallery-button:focus-visible,
.donation-modal-close:focus-visible {
  outline: 2px solid rgba(181, 81, 44, 0.28);
  outline-offset: 4px;
}

.donation-receipt-image,
.donation-gallery-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 260ms ease;
}

.donation-receipt-card:hover .donation-receipt-image,
.donation-gallery-card:hover .donation-gallery-image {
  transform: scale(1.03);
}

.donation-receipt-copy,
.donation-gallery-copy {
  padding: 1.1rem 1.2rem 1.2rem;
}

.donation-receipt-copy p,
.donation-gallery-copy p {
  margin: 0.55rem 0 0;
  line-height: 1.7;
}

.donation-receipt-amount {
  display: inline-flex;
  margin-top: 0.75rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: #7f3e22;
  font-weight: 700;
  background: rgba(181, 81, 44, 0.1);
}

.donation-status {
  margin: 1rem 0 0;
  font-size: 0.98rem;
}

.donation-gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.donation-support-band {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.donation-support-copy {
  max-width: 42rem;
}

.donation-support-copy h2 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
}

.donation-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(17, 14, 12, 0.76);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.donation-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.donation-modal-dialog {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: calc(var(--radius-xl) + 4px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)), rgba(26, 22, 18, 0.94);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.donation-modal-close {
  position: sticky;
  top: 0.5rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.donation-modal-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: start;
}

.donation-modal-image {
  width: 100%;
  border-radius: calc(var(--radius-lg) + 2px);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
}

.donation-modal-copy {
  padding: 0.6rem 0.4rem 0.4rem;
  color: #fff;
}

.donation-modal-copy p {
  margin: 0.7rem 0 0;
  line-height: 1.75;
}

/* Contact and about pages extend the same hero/card rhythm used across the themed routes. */
.contact-page-main,
.about-page-main {
  display: grid;
  gap: 2rem;
}

.contact-home-hero,
.about-home-hero {
  align-items: start;
  padding-bottom: 2.5rem;
}

.contact-home-copy h1,
.about-home-copy h1 {
  max-width: 8ch;
}

.contact-home-copy p,
.about-home-copy p {
  max-width: 58ch;
}

.contact-meta-row,
.about-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.contact-meta-pill,
.about-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(181, 81, 44, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.contact-hero-panel,
.about-hero-panel {
  align-self: stretch;
}

.contact-grid,
.about-story-grid,
.about-value-grid,
.about-stat-grid,
.contact-social-grid {
  display: grid;
  gap: 1rem;
}

.contact-grid,
.about-story-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
}

.about-value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-social-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-form-card,
.contact-info-card,
.contact-note-card,
.contact-social-card,
.about-card,
.about-value-card,
.about-stat-card {
  padding: 1.4rem;
  border: 1px solid rgba(181, 81, 44, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form-card:hover,
.contact-info-card:hover,
.contact-note-card:hover,
.contact-social-card:hover,
.about-card:hover,
.about-value-card:hover,
.about-stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(181, 81, 44, 0.24);
  box-shadow: var(--shadow-soft);
}

.contact-form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-field {
  display: grid;
  gap: 0.55rem;
}

.contact-field-full {
  grid-column: 1/-1;
}

.contact-field span,
.contact-channel p,
.contact-form-note,
.contact-social-card p,
.about-card p,
.about-value-card p,
.about-stat-card p {
  color: var(--muted);
}

.contact-field span {
  font-weight: 700;
}

.contact-field input,
.contact-field textarea,
.contact-field select {
  width: 100%;
  min-height: 52px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(181, 81, 44, 0.16);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
}

.contact-field textarea {
  min-height: 170px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus,
.contact-field select:focus {
  outline: 2px solid rgba(181, 81, 44, 0.16);
  outline-offset: 2px;
}

.contact-form-note {
  margin: 1rem 0 0;
  line-height: 1.75;
}

.contact-info-stack {
  display: grid;
  gap: 1rem;
}

.contact-channel-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.contact-channel {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(181, 81, 44, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.contact-channel strong,
.contact-social-card h3,
.about-card h3,
.about-value-card h3,
.about-stat-card h3,
.contact-support-copy h2,
.about-support-copy h2 {
  margin: 0;
}

.contact-channel a,
.contact-social-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  color: var(--accent-strong);
  font-weight: 700;
}

.contact-social-card a::after,
.contact-channel a::after {
  content: "->";
  transition: transform 180ms ease;
}

.contact-social-card:hover a::after,
.contact-channel:hover a::after {
  transform: translateX(3px);
}

.contact-social-card p,
.about-card p,
.about-value-card p,
.about-stat-card p {
  margin: 0.65rem 0 0;
  line-height: 1.75;
}

.contact-social-card .social-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-strong);
  background: rgba(181, 81, 44, 0.1);
}

.contact-social-card .social-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.about-card {
  background: linear-gradient(180deg, rgba(181, 81, 44, 0.08), rgba(255, 255, 255, 0.82)), rgba(255, 255, 255, 0.74);
}

.about-stat-card strong {
  display: block;
  margin-top: 0.7rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1;
}

.contact-support-band,
.about-support-band {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.contact-support-copy,
.about-support-copy {
  max-width: 42rem;
}

.contact-support-copy h2,
.about-support-copy h2 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
}

/* The protect page adds a defensive tool flow while staying in the same shared theme. */
.protect-page-main {
  display: grid;
  gap: 2rem;
}

.protect-home-hero {
  align-items: start;
  padding-bottom: 2.5rem;
}

.protect-home-copy h1 {
  max-width: 9ch;
}

.protect-home-copy p {
  max-width: 58ch;
}

.protect-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.protect-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(181, 81, 44, 0.12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.protect-hero-panel {
  align-self: stretch;
}

.protect-action-grid,
.protect-step-grid,
.protect-stat-grid,
.protect-tip-grid,
.protect-faq-grid {
  display: grid;
  gap: 1rem;
}

.protect-action-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
}

.protect-step-grid,
.protect-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.protect-faq-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.protect-form-card,
.protect-note-card,
.protect-step-card,
.protect-stat-card,
.protect-tip-card,
.protect-faq-card {
  padding: 1.4rem;
  border: 1px solid rgba(181, 81, 44, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.protect-form-card:hover,
.protect-note-card:hover,
.protect-step-card:hover,
.protect-stat-card:hover,
.protect-tip-card:hover,
.protect-faq-card:hover {
  transform: translateY(-3px);
  border-color: rgba(181, 81, 44, 0.24);
  box-shadow: var(--shadow-soft);
}

.protect-form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.protect-field {
  display: grid;
  gap: 0.55rem;
}

.protect-field-full {
  grid-column: 1/-1;
}

.protect-field span,
.protect-form-note,
.protect-note-card p,
.protect-step-card p,
.protect-stat-card p,
.protect-tip-card p,
.protect-faq-card p {
  color: var(--muted);
}

.protect-field span {
  font-weight: 700;
}

.protect-field input,
.protect-field select,
.protect-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(181, 81, 44, 0.16);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
}

.protect-field input:focus,
.protect-field select:focus,
.protect-field textarea:focus {
  outline: 2px solid rgba(181, 81, 44, 0.16);
  outline-offset: 2px;
}

.protect-form-note {
  margin: 1rem 0 0;
  line-height: 1.75;
}

.protect-note-stack {
  display: grid;
  gap: 1rem;
}

.protect-note-card h3,
.protect-step-card h3,
.protect-stat-card h3,
.protect-tip-card h3,
.protect-faq-card h3,
.protect-support-copy h2 {
  margin: 0;
}

.protect-note-card p,
.protect-step-card p,
.protect-stat-card p,
.protect-tip-card p,
.protect-faq-card p,
.protect-support-copy p {
  margin: 0.65rem 0 0;
  line-height: 1.75;
}

.protect-stat-card strong {
  display: block;
  margin-top: 0.7rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1;
}

.protect-support-band {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.protect-support-copy {
  max-width: 42rem;
}

.protect-support-copy h2 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
}

@media (max-width: 1080px) {
  .hero-section,
  .experience-grid,
  .footer-grid,
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .simulation-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .donation-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .donation-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-grid,
  .about-story-grid {
    grid-template-columns: 1fr;
  }
  .about-stat-grid,
  .contact-social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .protect-action-grid {
    grid-template-columns: 1fr;
  }
  .protect-step-grid,
  .protect-stat-grid,
  .protect-faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1023px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: stretch;
    border-radius: 28px;
  }
  .brand {
    justify-content: flex-start;
  }
  /* The mobile menu uses a checkbox so it can open and close without JavaScript. */
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 48px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(181, 81, 44, 0.16);
    border-radius: 999px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
  }
  .nav-toggle-input:checked + .mobile-nav-toggle .mobile-nav-bars span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav-toggle-input:checked + .mobile-nav-toggle .mobile-nav-bars span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle-input:checked + .mobile-nav-toggle .mobile-nav-bars span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  .header-panel {
    display: grid;
    grid-column: 1/-1;
    gap: 0.85rem;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 220ms ease, opacity 220ms ease, margin-top 220ms ease;
  }
  .nav-toggle-input:checked + .mobile-nav-toggle + .header-panel {
    max-height: 38rem;
    margin-top: 1rem;
    opacity: 1;
  }
  .site-nav {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }
  .nav-link,
  .nav-group,
  .nav-group summary,
  .header-panel .install-link {
    width: 100%;
  }
  .nav-menu {
    position: static;
    min-width: 0;
    margin-top: 0.55rem;
    transform: none;
  }
  .nav-group[open] .nav-menu {
    transform: none;
  }
}
@media (max-width: 820px) {
  main {
    padding-top: 2.5rem;
  }
  .contact-form-grid,
  .contact-social-grid,
  .about-value-grid,
  .about-stat-grid,
  .protect-form-grid,
  .protect-step-grid,
  .protect-stat-grid,
  .protect-tip-grid,
  .protect-faq-grid,
  .donation-summary-grid,
  .donation-ngo-grid,
  .donation-receipt-grid,
  .donation-gallery-grid,
  .legal-summary-grid,
  .legal-topic-grid,
  .live-stats-grid,
  .live-dashboard-grid,
  .live-trend-grid,
  .tools-landing-grid,
  .tool-note-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }
  .legal-sidebar {
    position: static;
  }
  .hero-section,
  .contact-home-hero,
  .about-home-hero,
  .protect-home-hero,
  .donations-home-hero,
  .legal-home-hero,
  .stats-home-hero,
  .tools-home-hero,
  .experience-grid,
  .tool-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-section {
    gap: 2rem;
    padding-top: 2rem;
  }
  .hero-copy h1 {
    max-width: 100%;
  }
  .hero-visual {
    min-height: 430px;
  }
  .hero-card-main {
    inset: 0 10% 4% 0;
  }
  .hero-card-accent {
    width: min(46%, 220px);
  }
  .cta-band-copy {
    align-items: flex-start;
    flex-direction: column;
  }
  .legal-support-band {
    align-items: flex-start;
    flex-direction: column;
  }
  .tools-support-band {
    align-items: flex-start;
    flex-direction: column;
  }
  .stats-support-band {
    align-items: flex-start;
    flex-direction: column;
  }
  .donation-support-band {
    align-items: flex-start;
    flex-direction: column;
  }
  .contact-support-band,
  .about-support-band {
    align-items: flex-start;
    flex-direction: column;
  }
  .protect-support-band {
    align-items: flex-start;
    flex-direction: column;
  }
  .donation-modal-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  :root {
    --page-width: calc(100% - 1.25rem);
  }
  .site-header,
  .content-section,
  .cta-band,
  .site-footer,
  .legal-hero,
  .legal-sidebar,
  .legal-content,
  .control-panel,
  .steps-panel {
    padding: 1.25rem;
  }
  .site-header {
    justify-items: stretch;
  }
  .brand {
    justify-content: center;
  }
  .hero-copy h1 {
    font-size: clamp(2.7rem, 15vw, 4rem);
  }
  .legal-home-copy h1,
  .contact-home-copy h1,
  .about-home-copy h1,
  .protect-home-copy h1,
  .donations-home-copy h1,
  .stats-home-copy h1,
  .tools-home-copy h1,
  .legal-support-copy h2 {
    max-width: 100%;
  }
  .tools-support-copy h2 {
    max-width: 100%;
  }
  .stats-support-copy h2 {
    max-width: 100%;
  }
  .donation-support-copy h2 {
    max-width: 100%;
  }
  .contact-support-copy h2,
  .about-support-copy h2 {
    max-width: 100%;
  }
  .protect-support-copy h2 {
    max-width: 100%;
  }
  .live-panel-toolbar {
    align-items: stretch;
  }
  .live-panel-toolbar .button {
    width: 100%;
  }
  .simulation-field-grid {
    grid-template-columns: 1fr;
  }
  .donation-modal {
    padding: 0.75rem;
  }
  .donation-modal-dialog {
    padding: 0.75rem;
  }
  .hero-copy p,
  .section-heading p,
  .legal-hero p,
  .step-card p,
  .faq-item p,
  .warning-box p {
    line-height: 1.65;
  }
  .hero-actions,
  .legal-actions,
  .cta-band-copy,
  .social-links {
    width: 100%;
  }
  .hero-actions .button,
  .legal-actions .button {
    width: 100%;
  }
  .hero-visual {
    min-height: 360px;
  }
  .hero-card-main {
    right: 4%;
    transform: rotate(-3deg);
  }
  .hero-card-accent {
    width: 42%;
    bottom: 6%;
    transform: rotate(5deg);
  }
  .pro-box {
    align-items: flex-start;
    flex-direction: column;
  }
  .phone-field {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.45rem 0.45rem 0.45rem 0.85rem;
  }
  .country-code {
    font-size: 0.95rem;
  }
  .phone-field {
    border-radius: var(--radius-lg);
  }
  .phone-field input {
    padding-left: 0.95rem;
  }
}
@media (max-width: 460px) {
  .brand {
    align-items: flex-start;
    justify-content: flex-start;
  }
  .brand img {
    width: 50px;
    height: 50px;
  }
  .brand-copy strong {
    font-size: 0.92rem;
    letter-spacing: 0.14em;
  }
  .hero-visual {
    min-height: 310px;
  }
  .hero-card-accent {
    width: 46%;
  }
  .section-heading h2,
  .steps-panel h3,
  .control-panel h2,
  .cta-band a {
    line-height: 1.05;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}