:root {
  --ink: #14212b;
  --ink-soft: #3a4a56;
  --paper: #f2f5f7;
  --paper-deep: #e4eaef;
  --line: #c5d0d9;
  --accent: #1a6b63;
  --accent-hover: #14554f;
  --white: #ffffff;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --max: 42rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(26, 107, 99, 0.12), transparent 55%),
    linear-gradient(165deg, var(--paper) 0%, var(--paper-deep) 45%, #d8e2e9 100%);
  background-attachment: fixed;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

.site-header {
  padding: var(--pad);
  padding-bottom: 0;
}

.site-header-home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-header-home .brand {
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.header-nav {
  display: flex;
  gap: 1.25rem;
  opacity: 0;
  animation: rise 0.7s ease 0.2s forwards;
}

.header-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.header-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.brand {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  opacity: 0;
  animation: rise 0.7s ease 0.1s forwards;
}

.brand:hover {
  color: var(--ink);
}

.brand span {
  color: var(--accent);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  padding-block: clamp(3rem, 12vh, 6rem);
}

main.home {
  justify-content: flex-start;
  gap: clamp(3.5rem, 10vh, 5.5rem);
  padding-block: clamp(2rem, 6vh, 3.5rem) clamp(3rem, 10vh, 5rem);
  max-width: 52rem;
  margin: 0 auto;
  width: 100%;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.hero-home {
  max-width: none;
  min-height: min(62vh, 34rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  padding-bottom: 0.5rem;
}

.hero-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  animation: rise 0.7s ease 0.2s forwards;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ink);
  opacity: 0;
  animation: rise 0.75s ease 0.25s forwards;
}

.hero-home h1 {
  font-size: clamp(2.15rem, 6.5vw, 3.35rem);
  max-width: 16ch;
}

.hero p,
.hero-lead {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 1.125rem;
  color: var(--ink-soft);
  opacity: 0;
  animation: rise 0.75s ease 0.4s forwards;
}

.hero-home .hero-lead {
  margin: 0;
  max-width: 34rem;
  font-size: 1.2rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.75rem;
  opacity: 0;
  animation: rise 0.75s ease 0.55s forwards;
}

.btn-ghost {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-ghost:hover {
  color: var(--accent-hover);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.home-section h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.5vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-lede {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature-list li {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  animation: rise 0.7s ease forwards;
}

.feature-list li:nth-child(1) { animation-delay: 0.15s; }
.feature-list li:nth-child(2) { animation-delay: 0.28s; }
.feature-list li:nth-child(3) { animation-delay: 0.4s; }

.feature-list h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.feature-list p {
  margin: 0;
  max-width: 38rem;
  color: var(--ink-soft);
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.15rem;
  align-items: start;
  opacity: 0;
  animation: rise 0.7s ease forwards;
}

.step-list li:nth-child(1) { animation-delay: 0.15s; }
.step-list li:nth-child(2) { animation-delay: 0.28s; }
.step-list li:nth-child(3) { animation-delay: 0.4s; }

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-top: 0.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  background: rgba(255, 255, 255, 0.45);
}

.step-list h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.step-list p {
  margin: 0;
  color: var(--ink-soft);
}

.home-cta {
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.home-cta .hero-actions {
  margin-top: 0.25rem;
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  opacity: 0;
  animation: rise 0.6s ease 0.15s forwards;
}

.page h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 5vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page .lede {
  margin: 0 0 2rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.page h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page p,
.page li {
  color: var(--ink-soft);
}

.page ul {
  padding-left: 1.25rem;
}

.page li + li {
  margin-top: 0.4rem;
}

.meta {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.summary {
  margin: 0 0 1.75rem;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.55);
}

.summary h2 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.summary p {
  margin: 0;
}

.placeholder-note {
  margin: 0;
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.support-action {
  margin-top: 1.75rem;
}

.btn-mail {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
  border: none;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-mail:hover {
  color: var(--white);
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.page.page-wide {
  max-width: 48rem;
}

.faq-section + .faq-section {
  margin-top: 2.5rem;
}

.faq-section > h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1.15rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item .faq-answer {
  padding: 0 1.15rem 1.1rem;
  border-top: 1px solid var(--line);
}

.faq-item .faq-answer > :first-child {
  margin-top: 0.9rem;
}

.faq-item .faq-answer > :last-child {
  margin-bottom: 0;
}

.faq-item .faq-answer p,
.faq-item .faq-answer li {
  color: var(--ink-soft);
}

.faq-item .faq-answer ul {
  padding-left: 1.25rem;
}

.faq-item .faq-answer li + li {
  margin-top: 0.35rem;
}

.faq-item .faq-answer table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0.85rem 0;
}

.faq-item .faq-answer th,
.faq-item .faq-answer td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.faq-item .faq-answer th {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.faq-item .faq-answer code {
  font-size: 0.9em;
}

.faq-item .faq-answer blockquote {
  margin: 0.85rem 0;
  padding: 0.65rem 0.9rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink-soft);
}

.faq-item .faq-answer .footnote {
  font-size: 0.85rem;
}

.site-footer {
  padding: var(--pad);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  opacity: 0;
  animation: rise 0.7s ease 0.55s forwards;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.site-footer .copy {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .header-nav,
  .hero-kicker,
  .hero h1,
  .hero p,
  .hero-lead,
  .hero-actions,
  .feature-list li,
  .step-list li,
  .page,
  .site-footer {
    opacity: 1;
    animation: none;
  }

  .btn-mail:hover,
  .btn-ghost:hover {
    transform: none;
  }
}
