:root {
  --ink: #263328;
  --muted: #657067;
  --green: #356247;
  --green-dark: #264d37;
  --green-soft: #e9f0e8;
  --cream: #f6f2e7;
  --paper: #fffdf8;
  --line: #d9ddd4;
  --orange: #c76d3c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  font-family:
    "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 76px;
  margin: 0;
  padding: 0 clamp(24px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(217, 221, 212, 0.6);
  box-shadow: 0 4px 20px rgba(38, 51, 40, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.trial-badge {
  padding: 8px 14px;
  border: 1px solid #bed0bf;
  border-radius: 999px;
  color: var(--green-dark);
  background: #f3f8f2;
  font-size: 14px;
  font-weight: 700;
}

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 700px;
  margin: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 70px clamp(42px, 7vw, 92px);
  border-radius: 0;
  box-shadow: none;
}

.hero-background,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-background {
  z-index: -2;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(22, 48, 32, 0.94) 0%,
      rgba(28, 57, 39, 0.86) 36%,
      rgba(27, 54, 37, 0.5) 59%,
      rgba(27, 54, 37, 0.08) 100%
    ),
    linear-gradient(0deg, rgba(20, 43, 29, 0.25), transparent 45%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
  color: white;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero .eyebrow {
  color: #e3edcf;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.26);
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  color: white;
  font-size: clamp(48px, 5.2vw, 72px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.03em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.34);
}

.lead {
  max-width: 610px;
  margin: 28px 0 34px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 19px;
  line-height: 2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-width: 252px;
  padding: 17px 24px;
  border-radius: 4px;
  background: #d16f39;
  color: white;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(25, 38, 28, 0.3);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.primary-link:hover {
  background: #b8582b;
  transform: translateY(-2px);
}

.privacy-note {
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.hero-points {
  display: flex;
  gap: 32px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
}

.hero-points span {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
}

.hero-points strong {
  color: white;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: 29px;
  font-weight: 500;
}

.how-it-works {
  margin-top: 48px;
  padding: 90px max(24px, calc((100% - 1120px) / 2));
  background: var(--cream);
}

.how-it-works > h2,
.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 500;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 50px;
  background: #d8d3c7;
}

.steps article {
  min-height: 210px;
  padding: 34px;
  background: var(--paper);
}

.steps article > span {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 700;
}

.steps h3 {
  margin: 34px 0 12px;
  font-size: 22px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
}

.diagnosis-section {
  padding: 104px max(24px, calc((100% - 920px) / 2));
  background: linear-gradient(180deg, #fffdf8 0%, #f7f5ed 100%);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 44px;
}

.section-heading > p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
}

.diagnosis-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 34px;
  padding: 50px;
  border: 2px solid #d8ded4;
  background: white;
  box-shadow: 0 20px 60px rgba(59, 71, 60, 0.08);
}

.diagnosis-form > label,
.diagnosis-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.diagnosis-form label > span:first-child,
.diagnosis-form legend {
  display: block;
  margin-bottom: 11px;
  color: var(--green-dark);
  font-size: 18px;
  font-weight: 700;
}

.diagnosis-form select,
.diagnosis-form input[type="number"] {
  width: 100%;
  height: 60px;
  padding: 0 16px;
  border: 2px solid #c7cec4;
  border-radius: 3px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
}

.diagnosis-form select:focus,
.diagnosis-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(53, 98, 71, 0.12);
}

.input-with-unit {
  position: relative;
  display: block;
}

.input-with-unit input {
  padding-right: 48px;
}

.input-with-unit b {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  font-size: 16px;
}

.region-field small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.crop-help {
  margin: -2px 0 18px;
  color: var(--muted);
  font-size: 15px;
}

.crop-category-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border-radius: 6px;
  background: #eef2eb;
}

.crop-category-tabs button {
  min-height: 58px;
  padding: 9px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}

.crop-category-tabs button small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.75;
}

.crop-category-tabs button:hover {
  background: rgba(255, 255, 255, 0.7);
}

.crop-category-tabs button.is-active {
  border-color: #b9c9b7;
  background: white;
  color: var(--green-dark);
  box-shadow: 0 3px 10px rgba(50, 75, 56, 0.1);
}

.crop-category-tabs button:focus-visible,
.selected-crops button:focus-visible {
  outline: 3px solid rgba(53, 98, 71, 0.25);
  outline-offset: 2px;
}

.crop-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}

.crop-option {
  position: relative;
  cursor: pointer;
}

.crop-option input {
  position: absolute;
  opacity: 0;
}

.crop-option span {
  display: grid !important;
  min-height: 50px;
  margin: 0 !important;
  padding: 8px 10px;
  place-items: center;
  border: 1px solid #cbd1c8;
  border-radius: 4px;
  color: #59635b !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4;
  text-align: center;
}

.crop-option input:checked + span {
  border-color: var(--green);
  background: var(--green);
  color: white !important;
  box-shadow: 0 5px 12px rgba(53, 98, 71, 0.16);
}

.crop-option input:focus-visible + span {
  outline: 3px solid rgba(53, 98, 71, 0.25);
  outline-offset: 2px;
}

.selected-crops {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 4px solid var(--green);
  background: #f4f7f2;
}

.selected-crops div {
  min-width: 0;
}

.selected-crops strong {
  display: block;
  color: var(--green-dark);
  font-size: 14px;
}

.selected-crops span {
  display: block !important;
  margin: 5px 0 0 !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.6;
}

.selected-crops button {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid #bdc8bb;
  border-radius: 4px;
  background: white;
  color: var(--green-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.diagnosis-form fieldset {
  grid-column: 1 / -1;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.choice {
  cursor: pointer;
}

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

.choice span {
  display: grid !important;
  min-height: 60px;
  margin: 0 !important;
  place-items: center;
  border: 2px solid #cbd1c8;
  border-radius: 3px;
  color: var(--muted);
  font-size: 16px !important;
  font-weight: 600 !important;
  text-align: center;
}

.choice input:checked + span {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-dark);
  box-shadow: inset 0 0 0 1px var(--green);
}

.choice input:focus-visible + span {
  outline: 3px solid rgba(53, 98, 71, 0.25);
  outline-offset: 2px;
}

.submit-button {
  grid-column: 1 / -1;
  min-height: 66px;
  margin-top: 10px;
  border: 0;
  border-radius: 3px;
  background: var(--green);
  color: white;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.submit-button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.result-section {
  padding: 0 max(24px, calc((100% - 1040px) / 2)) 110px;
  scroll-margin-top: 24px;
}

.result-placeholder {
  display: grid;
  min-height: 180px;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 1px dashed #bdc7bc;
  background: #f7f9f5;
  color: var(--muted);
  font-size: 16px;
  text-align: center;
}

.result-placeholder span {
  color: var(--green);
  font-size: 21px;
  font-weight: 800;
}

.result-placeholder p {
  margin: 0;
}

.result-card {
  border-top: 7px solid var(--green);
  background: #f2f6ef;
  box-shadow: 0 24px 60px rgba(45, 61, 48, 0.12);
  animation: reveal 420ms ease both;
}

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

.result-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 46px;
}

.result-title h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 500;
}

.result-title p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
  font-size: 17px;
}

.risk {
  min-width: 108px;
  padding: 14px;
  border: 1px solid #cbd8c9;
  background: white;
  text-align: center;
}

.risk span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 13px;
}

.risk strong {
  color: var(--green);
  font-size: 22px;
}

.risk-high strong {
  color: var(--orange);
}

.result-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr 1.25fr;
  gap: 1px;
  background: #d6dfd3;
}

.result-grid article {
  padding: 32px;
  background: white;
}

.result-grid h3,
.interest-area h3 {
  margin: 0 0 20px;
  font-size: 20px;
}

.crop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crop-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 16px;
  font-weight: 700;
}

.empty-crop-message {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.result-grid ol,
.result-grid ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.result-grid li + li {
  margin-top: 8px;
}

.result-note {
  margin: 28px 34px 0;
  padding: 15px 18px;
  border-left: 3px solid var(--orange);
  background: #fffaf2;
  color: #6e655b;
  font-size: 14px;
  line-height: 1.8;
}

.result-note strong {
  margin-right: 6px;
  color: #594d42;
}

.interest-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 32px;
  padding: 34px 46px;
  background: var(--green-dark);
  color: white;
}

.interest-area h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.interest-area p {
  margin: 0;
  color: #d9e4db;
  font-size: 15px;
  line-height: 1.7;
}

.interest-area a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border: 1px solid white;
  border-radius: 3px;
  background: white;
  color: var(--green-dark);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.thanks-message {
  margin: 0;
  padding: 18px 46px;
  background: #e4efe3;
  color: var(--green-dark);
  font-size: 15px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px max(24px, calc((100% - 1120px) / 2));
  border-top: 1px solid var(--line);
  color: #7a847c;
  font-size: 14px;
}

footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .hero {
    min-height: 670px;
    padding: 58px 42px;
  }

  .hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(22, 48, 32, 0.93) 0%,
        rgba(28, 57, 39, 0.78) 64%,
        rgba(27, 54, 37, 0.36) 100%
      ),
      linear-gradient(0deg, rgba(20, 43, 29, 0.3), transparent 50%);
  }

  .steps,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .diagnosis-form {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .crop-category-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .diagnosis-form > label,
  .diagnosis-form fieldset,
  .submit-button {
    grid-column: 1;
  }

  .result-title,
  .interest-area {
    align-items: stretch;
    flex-direction: column;
  }

  .interest-area a {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .site-header {
    width: min(100% - 28px, 1180px);
    height: 72px;
  }

  .brand {
    gap: 8px;
    font-size: 15px;
  }

  .trial-badge {
    padding: 6px 10px;
    font-size: 12px;
  }

  .hero {
    width: 100%;
    min-height: 690px;
    padding: 48px 24px;
  }

  .hero h1 {
    font-size: 42px;
    line-height: 1.38;
  }

  .lead {
    font-size: 16px;
    line-height: 1.9;
  }

  .primary-link {
    width: 100%;
  }

  .hero-background {
    object-position: 62% center;
  }

  .hero-overlay {
    background: linear-gradient(
      90deg,
      rgba(20, 45, 30, 0.94) 0%,
      rgba(24, 50, 34, 0.84) 72%,
      rgba(24, 50, 34, 0.52) 100%
    );
  }

  .hero-points {
    flex-wrap: wrap;
    gap: 14px 24px;
    margin-top: 30px;
  }

  .how-it-works,
  .diagnosis-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .steps {
    margin-top: 34px;
  }

  .steps article {
    min-height: 0;
    padding: 26px;
  }

  .steps h3 {
    margin-top: 22px;
  }

  .diagnosis-form {
    gap: 24px;
    padding: 22px 18px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .crop-category-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .selected-crops {
    align-items: stretch;
    flex-direction: column;
  }

  .selected-crops button {
    width: 100%;
  }

  .result-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .result-title {
    padding: 30px 24px;
  }

  .risk {
    width: 100%;
  }

  .result-grid article {
    padding: 26px 24px;
  }

  .result-note {
    margin: 22px 20px 0;
  }

  .interest-area,
  .thanks-message {
    padding: 26px 24px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Keep the site name aligned with the hero copy at every breakpoint. */
.site-header {
  width: 100%;
  margin: 0;
  padding-inline: clamp(42px, 7vw, 92px);
}

#page-top {
  scroll-margin-top: 0;
}

main > footer {
  display: none !important;
}

.site-footer {
  margin: 0;
  padding: 0;
  display: block;
  background: #1e3327;
  color: rgba(255, 253, 248, 0.85);
  font-size: 14px;
}

.site-footer__inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 28px;
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  padding-bottom: 44px;
}

.site-footer__title {
  display: block;
  margin-bottom: 8px;
  color: #fffdf8;
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-footer__desc {
  margin: 0;
  color: rgba(255, 253, 248, 0.72);
  font-size: 14px;
}

.site-footer__contact {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.site-footer__contact-label {
  margin: 0;
  color: rgba(255, 253, 248, 0.65);
  font-size: 13px;
}

.site-footer__contact-btn {
  min-width: 220px;
  padding: 13px 20px;
  border: 1px solid rgba(255, 253, 248, 0.45);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: transparent;
  color: #fffdf8;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.site-footer__contact-btn:hover {
  border-color: #fffdf8;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.site-footer__contact-btn:focus-visible {
  outline: 3px solid #e3edcf;
  outline-offset: 3px;
}

.site-footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 253, 248, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 253, 248, 0.6);
  font-size: 13px;
}

.site-footer__copyright {
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.site-footer__disclaimer {
  margin: 0;
  opacity: 0.85;
}

.back-to-top {
  display: none;
}

@media (max-width: 820px) {
  .site-header {
    padding-inline: 42px;
  }
}

@media (max-width: 560px) {
  .site-header {
    width: 100%;
    padding-inline: 24px;
  }

  .site-footer__inner {
    width: min(100% - 40px, 1120px);
    padding-top: 42px;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 34px;
  }

  .site-footer__contact {
    justify-items: stretch;
  }

  .site-footer__contact a {
    width: 100%;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .back-to-top {
    position: fixed;
    right: 16px;
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 50;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(38, 77, 55, 0.96);
    box-shadow: 0 8px 24px rgba(23, 45, 31, 0.3);
    color: #fffdf8;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  .back-to-top > span {
    display: block;
    transform: translateY(-1px);
    line-height: 1;
  }

  .back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .back-to-top:focus-visible {
    outline: 3px solid #e3edcf;
    outline-offset: 3px;
  }
}

.copy-result-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #b3c4b0;
  border-radius: 4px;
  background: #f0f5ee;
  color: #264d37;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.copy-result-btn:hover {
  background: #e1ebd9;
  border-color: #356247;
  transform: translateY(-1px);
}

.site-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 1000;
  transform: translateX(-50%) translateY(20px);
  padding: 14px 24px;
  border-radius: 999px;
  background: rgba(30, 51, 39, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  color: #fffdf8;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 240ms ease,
    transform 240ms ease,
    visibility 240ms ease;
}

.site-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Navigation & Hamburger Menu */
.header-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 24px;
}

.nav-menu {
  display: block;
  opacity: 1;
  visibility: visible;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  transition: color 180ms ease, background 180ms ease;
}

.nav-link:hover {
  color: var(--green-dark);
  background: rgba(53, 98, 71, 0.08);
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 110;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 240ms ease, opacity 240ms ease;
}

.hamburger-btn.is-active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger-btn.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.is-active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.how-it-works,
.diagnosis-section,
.site-footer {
  scroll-margin-top: 90px;
}

@media (max-width: 768px) {
  .header-nav {
    margin-left: 0;
    margin-right: 0;
  }

  .hamburger-btn {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(255, 253, 248, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(217, 221, 212, 0.8);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    padding: 24px 32px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .nav-link {
    font-size: 17px;
    font-weight: 700;
    display: block;
    width: 100%;
    padding: 8px 0;
  }
}
