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

html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  min-height: 100%;
  font-family: var(--font-ui);
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(110% 70% at 80% -15%, rgba(19, 78, 74, 0.12) 0%, transparent 50%),
    radial-gradient(90% 55% at 0% 0%, rgba(158, 240, 210, 0.18) 0%, transparent 45%),
    linear-gradient(180deg, #f1f3f6 0%, var(--bg) 42%, #e4e7ed 100%);
  line-height: 1.45;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

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

ul,
ol {
  list-style: none;
}

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

.app {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
}

.app-shell {
  width: 100%;
  max-width: var(--max-w);
  min-height: 100dvh;
  position: relative;
  background:
    linear-gradient(180deg, rgba(19, 78, 74, 0.1) 0%, transparent 26%),
    var(--bg);
  transform-origin: top center;
  transition: transform 0.55s var(--ease), filter 0.55s var(--ease), border-radius 0.55s var(--ease);
  overflow: hidden;
}

.app-shell.is-dimmed {
  transform: scale(0.935) translateY(10px);
  filter: brightness(0.9);
  border-radius: 28px;
  pointer-events: none;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: calc(var(--safe-top) + 10px) 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(180deg, rgba(232, 234, 238, 0.96) 0%, rgba(232, 234, 238, 0.78) 72%, transparent 100%);
  backdrop-filter: blur(12px);
}

.app-main {
  padding: 4px 18px calc(28px + var(--safe-bottom));
  min-height: calc(100dvh - var(--header-h));
}

.page {
  animation: page-in 0.45s var(--ease) both;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.page-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}

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

.section {
  margin-top: 28px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-link {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

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

::-webkit-scrollbar {
  width: 0;
  height: 0;
}
