:root {
  --ink: #172438;
  --muted: #5f6e7d;
  --green: #0f6b56;
  --green-bright: #31b780;
  --mint: #eaf7f2;
  --line: #dbe5e1;
  --paper: #ffffff;
  --canvas: #f5f8f7;
  --warm: #f5b857;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(20, 51, 42, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: #084c3d; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(219, 229, 225, 0.88);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner,
.home-hero,
.link-section,
.support-band,
.page-hero,
.legal-shell,
.delete-layout,
.notice-grid,
.not-found {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 35px;
  height: 35px;
  overflow: hidden;
  border-radius: 11px;
  background: var(--green);
  box-shadow: 0 8px 18px rgba(15, 107, 86, 0.2);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  content: "";
  position: absolute;
  left: 8px;
  width: 19px;
  height: 3px;
  border-radius: 9px;
  background: white;
  transform: rotate(-34deg);
}

.brand-mark::before { top: 9px; }
.brand-mark span { top: 16px; }
.brand-mark::after { top: 23px; }

.primary-nav { display: flex; align-items: center; gap: 7px; }

.primary-nav a {
  padding: 9px 13px;
  color: #4d5d6b;
  border-radius: 10px;
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a.active { color: var(--green); background: var(--mint); }

.home-hero {
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
  padding-block: 74px 84px;
}

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

h1, h2, h3 { margin-top: 0; line-height: 1.12; letter-spacing: -0.035em; }

.home-hero h1 {
  max-width: 650px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 6.5vw, 6.1rem);
  font-weight: 800;
}

.hero-copy > p {
  max-width: 625px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 760;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button.primary { color: white; background: var(--green); box-shadow: 0 12px 26px rgba(15, 107, 86, 0.2); }
.button.primary:hover { color: white; background: #0a5948; }
.button.secondary { color: var(--ink); border-color: var(--line); background: white; }
.button.secondary:hover { color: var(--green); box-shadow: 0 10px 22px rgba(20, 51, 42, 0.08); }
.button.full { width: 100%; }

.road-card {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border-radius: 36px;
  background: #dff3ed;
  box-shadow: var(--shadow);
}

.road-sky { position: absolute; inset: 0; background: linear-gradient(160deg, #b9e4d6 0%, #edf8f4 56%, #d1eadf 100%); }
.road-sun { position: absolute; top: 54px; right: 54px; width: 74px; height: 74px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 18px rgba(245, 184, 87, 0.16); }
.road-shape { position: absolute; right: -45px; bottom: -185px; left: -45px; height: 430px; border-radius: 50% 50% 0 0; background: var(--green); transform: rotate(-4deg); }
.road-shape::before { content: ""; position: absolute; top: -1px; left: 42%; width: 76px; height: 430px; background: #203349; transform: skewX(-9deg); }
.road-shape span { position: absolute; top: 30px; left: calc(42% + 34px); width: 7px; height: 210px; background: repeating-linear-gradient(to bottom, white 0 24px, transparent 24px 48px); transform: skewX(-9deg); }
.road-caption { position: absolute; top: 60px; left: 48px; display: flex; flex-direction: column; font-size: 1rem; }
.road-caption strong { font-size: 1.55rem; letter-spacing: -0.03em; }
.road-caption span { color: var(--muted); }

.link-section { padding-block: 84px 105px; }
.section-heading { max-width: 680px; margin: 0 auto 42px; text-align: center; }
.section-heading.left { margin-inline: 0; text-align: left; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3rem); }

.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.resource-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.resource-card:hover { color: var(--ink); border-color: #b9d8cc; box-shadow: var(--shadow); transform: translateY(-5px); }
.card-number { color: var(--green); font-size: 0.77rem; font-weight: 850; letter-spacing: 0.11em; }
.resource-card h3 { margin: 44px 0 14px; font-size: 1.55rem; }
.resource-card p { margin: 0; color: var(--muted); }
.card-link { margin-top: auto; padding-top: 30px; color: var(--green); font-weight: 800; }

.support-band {
  margin-bottom: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 44px 50px;
  color: white;
  border-radius: 28px;
  background: var(--green);
}
.support-band h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.eyebrow.light { margin-bottom: 8px; color: #bcebdc; }
.light-button { color: var(--green); background: white; }
.light-button:hover { color: #084c3d; background: #f3fbf8; }

.page-hero { padding-block: 72px 54px; }
.compact-hero { max-width: 920px; margin-inline: auto; text-align: center; }
.compact-hero h1 { margin-bottom: 18px; font-size: clamp(2.7rem, 6vw, 4.7rem); }
.compact-hero > p { max-width: 760px; margin: 0 auto; color: var(--muted); font-size: 1.16rem; }

.legal-shell { position: relative; max-width: 1120px; display: grid; grid-template-columns: minmax(0, 790px) 240px; align-items: start; gap: 48px; padding-bottom: 110px; }
.legal-document { padding: clamp(28px, 5vw, 58px); border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 20px 55px rgba(20, 51, 42, 0.06); }
.legal-document > h1:first-child { display: none; }
.legal-document > p:nth-child(2) { margin-top: 0; color: var(--green); font-size: 0.9rem; font-weight: 800; }
.legal-document h2 { margin: 52px 0 18px; padding-top: 7px; color: var(--ink); font-size: 1.55rem; }
.legal-document h3 { margin: 32px 0 12px; font-size: 1.18rem; }
.legal-document p, .legal-document li { color: #3f4e5d; }
.legal-document li + li { margin-top: 7px; }
.legal-document ul, .legal-document ol { padding-left: 24px; }
.legal-document strong { color: var(--ink); }
.legal-document table { width: 100%; margin: 24px 0; border-collapse: collapse; font-size: 0.91rem; }
.legal-document th, .legal-document td { padding: 13px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-document th { background: var(--mint); }
.legal-aside { position: sticky; top: 106px; padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.legal-aside p { margin: 10px 0; color: var(--muted); font-size: 0.92rem; }
.legal-aside a { overflow-wrap: anywhere; font-weight: 760; }
.aside-label { color: var(--green); font-size: 0.73rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }

.delete-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr); align-items: start; gap: 26px; padding-bottom: 30px; }
.steps-panel, .request-card { padding: clamp(28px, 4vw, 45px); border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.steps-list { margin: 0; padding: 0; list-style: none; }
.steps-list li { display: grid; grid-template-columns: 44px 1fr; gap: 17px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps-list li > span { width: 36px; height: 36px; display: grid; place-items: center; color: var(--green); border-radius: 50%; background: var(--mint); font-weight: 850; }
.steps-list strong { display: block; margin-bottom: 3px; font-size: 1.02rem; }
.steps-list p { margin: 0; color: var(--muted); }
.request-card { color: white; border: 0; background: var(--green); box-shadow: var(--shadow); }
.request-card .aside-label { color: #bcebdc; }
.request-card h2 { margin: 13px 0 18px; font-size: 1.75rem; }
.request-card p { color: #d9f1e9; }
.request-card small { display: block; margin-top: 17px; color: #bcebdc; }
.request-card .button { margin-top: 14px; color: var(--green); background: white; box-shadow: none; }
.notice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-block: 30px 105px; }
.notice-card { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.notice-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.notice-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.not-found { min-height: 620px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.not-found h1 { margin-bottom: 12px; font-size: clamp(2.6rem, 6vw, 4.8rem); }
.not-found p { margin: 0 0 28px; color: var(--muted); }

.site-footer { color: #d7e3e0; background: var(--ink); }
.footer-inner { min-height: 240px; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 25px 60px; padding-block: 52px; }
.footer-brand { color: white; }
.footer-inner p { margin: 10px 0 0; color: #9fb1bc; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-inner nav a { color: #d7e3e0; text-decoration: none; }
.footer-inner nav a:hover { color: white; }
.copyright { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.86rem; }

:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; }

@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; padding-top: 56px; }
  .road-card { min-height: 380px; }
  .resource-grid, .notice-grid { grid-template-columns: 1fr; }
  .resource-card { min-height: 260px; }
  .legal-shell { grid-template-columns: 1fr; }
  .legal-aside { position: static; }
  .delete-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .header-inner { min-height: 66px; width: min(100% - 24px, 1180px); }
  .brand > span:last-child { display: none; }
  .primary-nav { gap: 1px; overflow-x: auto; }
  .primary-nav a { padding: 8px 9px; font-size: 0.78rem; white-space: nowrap; }
  .header-inner,
  .footer-inner,
  .home-hero,
  .link-section,
  .support-band,
  .page-hero,
  .legal-shell,
  .delete-layout,
  .notice-grid,
  .not-found { width: min(100% - 24px, 1180px); }
  .home-hero { min-height: auto; padding-block: 48px 60px; gap: 45px; }
  .home-hero h1 { font-size: clamp(3rem, 16vw, 4.5rem); }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .road-card { min-height: 330px; border-radius: 26px; }
  .road-caption { top: 36px; left: 30px; }
  .road-sun { top: 37px; right: 34px; width: 58px; height: 58px; }
  .link-section { padding-block: 60px 70px; }
  .support-band { margin-bottom: 70px; padding: 31px 27px; flex-direction: column; align-items: flex-start; }
  .support-band .button { width: 100%; }
  .page-hero { padding-block: 53px 38px; }
  .compact-hero h1 { font-size: 2.75rem; }
  .legal-shell { padding-bottom: 70px; }
  .legal-document { padding: 24px 20px; border-radius: 17px; }
  .legal-document h2 { margin-top: 42px; font-size: 1.34rem; }
  .legal-document table { display: block; overflow-x: auto; }
  .steps-panel, .request-card { padding: 27px 22px; }
  .notice-grid { padding-bottom: 72px; }
  .footer-inner { grid-template-columns: 1fr; }
  .copyright { grid-column: auto; }
}

@media print {
  .site-header, .site-footer, .legal-aside, .page-hero { display: none; }
  body { background: white; font-size: 11pt; }
  .legal-shell { display: block; width: 100%; padding: 0; }
  .legal-document { padding: 0; border: 0; box-shadow: none; }
  .legal-document > h1:first-child { display: block; }
  a { color: inherit; }
}
