:root {
  --ink: #0f1e3a;
  --ink-soft: #1f3358;
  --paper: #faf7f0;
  --panel: #ece6d6;
  --line: rgba(15, 30, 58, 0.14);
  --dark: #0a1730;
  --accent: #c89548;
  --accent-soft: #f4e8d2;
  --green-soft: #e0e6ee;
  --green: #4a7a5c;
  --muted: #5a6477;
  --white: #ffffff;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

p,
blockquote {
  margin: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 246, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(var(--max), calc(100% - 48px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  color: var(--ink);
  font-weight: 850;
  letter-spacing: 0.13em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-cta {
  color: var(--ink);
  font-weight: 760;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  padding: 0 20px;
  font-weight: 780;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #cf5f3f;
}

.hero {
  min-height: calc(100svh - 68px);
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
}

.hero-inner {
  width: min(var(--max), calc(100% - 48px));
  min-height: calc(100svh - 68px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 48px 0 64px;
}

.hero-copy {
  max-width: 820px;
  animation: rise 600ms ease both;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffb59b;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.1rem, 7vw, 6.6rem);
  line-height: 0.95;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 4.6rem);
  line-height: 0.98;
}

h3 {
  font-size: 1.16rem;
  line-height: 1.2;
}

.lead {
  max-width: 650px;
  margin: 28px 0 34px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.14rem, 1.8vw, 1.32rem);
  line-height: 1.62;
}

.section {
  padding: clamp(70px, 8vw, 108px) 0;
}

.problem {
  background: var(--paper);
}

.problem-story {
  max-width: 980px;
}

.problem-chain {
  max-width: 780px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.problem-pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.problem-pairs article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  padding: clamp(24px, 4vw, 36px);
}

.pair-label {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.problem-pairs h3 {
  font-size: clamp(1.55rem, 2.6vw, 2.45rem);
}

.problem-pairs h3 + p,
.pair-fix h4 + p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.62;
}

.pair-fix {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.pair-fix h4 {
  margin: 0;
  color: var(--green);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.15;
}

.section-intro {
  max-width: 860px;
  margin-bottom: 44px;
}

.section-intro h2 {
  max-width: 900px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.9fr);
  gap: clamp(40px, 7vw, 88px);
  align-items: start;
}

.copy {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.68;
}

.copy p + p,
.copy ul + p,
.copy p + ul {
  margin-top: 22px;
}

.copy ul,
.package-list ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.copy li,
.package-list li {
  margin: 8px 0;
}

.renewal-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}

.flow-step {
  min-height: 116px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(229, 109, 72, 0.42);
  background: var(--accent-soft);
  color: #7b3c2b;
  padding: 20px;
  text-align: center;
  font-weight: 850;
}

.flow-arrow {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.cause-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.cause-grid article {
  background: var(--white);
  padding: clamp(26px, 4vw, 38px);
}

.cause-grid span,
.method-grid span {
  color: var(--accent);
  font-weight: 850;
}

.cause-grid h3,
.method-grid h3 {
  margin: 16px 0 10px;
}

.cause-grid p,
.solution-grid p,
.solution-rows p,
.method-grid p,
.contact-grid p {
  color: var(--muted);
  line-height: 1.64;
}

.solution {
  background: var(--panel);
}

.solution-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.9fr);
  gap: clamp(40px, 7vw, 88px);
  align-items: start;
}

.solution-grid > div:first-child p {
  margin-top: 24px;
  max-width: 560px;
  font-size: 1.12rem;
}

.solution-rows {
  border-top: 1px solid var(--line);
}

.solution-rows article {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.solution-rows h3 {
  margin-bottom: 10px;
  font-size: 1.45rem;
}

.method {
  background: var(--paper);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

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

.method-grid article {
  min-height: 250px;
  background: var(--white);
  padding: 26px;
}

.capabilities,
.packages {
  background: var(--paper);
}

.package-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.package-list article {
  background: var(--white);
  padding: 24px;
}

.package-list h3 {
  margin-bottom: 10px;
}

.package-list p,
.faq-list p {
  color: var(--muted);
  line-height: 1.62;
}

.phase-label {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.phase-tabs {
  max-width: 980px;
}

.phase-tabs > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.phase-tab-list {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 28px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
}

.phase-tab-list label {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 760;
  cursor: pointer;
}

#phase-pre:checked ~ .phase-tab-list label[for="phase-pre"],
#phase-during:checked ~ .phase-tab-list label[for="phase-during"],
#phase-post:checked ~ .phase-tab-list label[for="phase-post"] {
  background: var(--ink);
  color: var(--white);
}

.phase-panel {
  display: none;
  grid-template-columns: minmax(250px, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

#phase-pre:checked ~ .pre-panel,
#phase-during:checked ~ .during-panel,
#phase-post:checked ~ .post-panel {
  display: grid;
}

.phase-summary h3 {
  font-size: clamp(1.45rem, 2.3vw, 2.2rem);
  line-height: 1.08;
}

.phase-points {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.phase-points li {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 0.58fr);
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.phase-points strong {
  color: var(--ink);
  line-height: 1.25;
}

.phase-points span {
  color: var(--muted);
  line-height: 1.58;
}

.testimonials {
  background: var(--dark);
  color: var(--white);
}

.testimonials .section-intro {
  margin-bottom: 38px;
}

.testimonial-grid {
  columns: 3 300px;
  column-gap: 22px;
}

.testimonial-grid figure {
  break-inside: avoid;
  margin: 0 0 22px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  padding: 24px;
}

.testimonial-grid img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 18px;
}

.testimonial-grid blockquote {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.58;
}

.testimonial-grid figcaption {
  margin-top: 18px;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.4;
}

.faqs {
  background: var(--panel);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 820;
}

.faq-list p {
  margin-top: 14px;
}

.contact {
  padding: clamp(70px, 8vw, 108px) 0;
  background: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(42px, 7vw, 82px);
}

.contact-grid h2 {
  margin-bottom: 20px;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 740;
}

label.full {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.legal-wrap {
  max-width: 820px;
}

.legal-wrap h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 14px;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 36px;
}

.legal-wrap h2 {
  margin-top: 40px;
  margin-bottom: 14px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.25;
}

.legal-wrap p,
.legal-wrap li {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.legal-wrap p + p {
  margin-top: 14px;
}

.legal-wrap ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.legal-wrap li + li {
  margin-top: 8px;
}

.legal-wrap a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal {
  grid-column: 1 / -1;
  margin-top: 8px;
  font-size: 0.88rem;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--ink);
}

footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 34px;
  align-items: start;
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

@media (max-width: 980px) {
  .hero-inner,
  .solution-grid,
  .section-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .method-grid,
  .method-grid.three,
  .package-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phase-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .wrap,
  .nav,
  .hero-inner {
    width: min(var(--max), calc(100% - 36px));
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding: 72px 0;
  }

  .renewal-flow,
  .cause-grid,
  .problem-pairs,
  .method-grid,
  .method-grid.three,
  .package-list,
  form,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .phase-tab-list {
    width: 100%;
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .phase-tab-list label {
    border-radius: 14px;
  }

  .phase-panel {
    padding: 24px;
    border-radius: 16px;
  }

  .phase-points li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .flow-arrow {
    text-align: center;
  }

  .flow-step {
    min-height: 92px;
  }

  .method-grid article {
    min-height: auto;
  }

  .footer-inner {
    gap: 16px;
  }
}
