@font-face {
  font-family: "Barlow Condensed Local";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/barlow-condensed-700.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible Local";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/atkinson-hyperlegible-400.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible Local";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/atkinson-hyperlegible-700.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --ink: #171a17;
  --muted: #575e58;
  --line: #cfd4ce;
  --page: #eef1ef;
  --soft: #f6f7f3;
  --white: #ffffff;
  --green: #187244;
  --green-dark: #0e4d2d;
  --gold: #e1a32c;
  --forest: #103c2b;
  --petrol: #245d66;
  --petrol-deep: #173f46;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible Local", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body,
button {
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-family: "Barlow Condensed Local", sans-serif;
  font-weight: 700;
  line-height: 0.98;
}

h1 {
  max-width: 720px;
  font-size: 5.6rem;
}

h2 {
  font-size: 3.6rem;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: -200px;
  left: 12px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus-visible {
  top: 12px;
}

:focus-visible {
  outline: 3px solid #f4bd55;
  outline-offset: 3px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid #477663;
  background: var(--forest);
  color: var(--white);
}

.nav-shell {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 174px;
  height: auto;
  filter: brightness(0) invert(1);
}

.brand-market {
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  padding-left: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.desktop-nav ul,
.mobile-menu ul {
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-nav a,
.mobile-menu a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"],
.mobile-menu a:hover,
.mobile-menu a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.45em;
}

.mobile-menu {
  display: none;
}

.route-intro {
  padding: 164px 0 72px;
  background: var(--petrol-deep);
  color: var(--white);
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.58fr);
  gap: 72px;
  align-items: end;
}

.route-label {
  margin-bottom: 16px;
  color: #f2d8a5;
  font-weight: 700;
}

.intro-copy {
  padding-top: 24px;
  border-top: 2px solid rgba(255, 255, 255, 0.86);
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
}

.chooser {
  min-height: 720px;
  padding: 72px 0 88px;
  background: var(--white);
}

.chooser-reset {
  margin: 0 0 28px auto;
}

.quiet-button,
.text-button {
  min-height: 48px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
}

.quiet-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.text-button:hover,
.quiet-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.guided-entry {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 22px;
  border: 1px solid #d6b15d;
  border-radius: 4px;
  padding: 28px 30px;
  background: #fff8e8;
}

.guided-entry h3 {
  font-size: 1.35rem;
}

.guided-entry p {
  margin-top: 6px;
  color: var(--muted);
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0 20px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.button-gold {
  background: var(--gold);
  color: var(--ink);
}

.button-outline {
  border-color: #7d8680;
  background: var(--white);
  color: var(--ink);
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

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

.product-choice {
  min-height: 278px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) minmax(220px, 0.42fr);
  gap: 36px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.product-choice-image {
  width: 230px;
  height: 230px;
  display: grid;
  place-items: center;
}

.product-choice-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-choice-label {
  margin-bottom: 15px;
  color: var(--product-colour);
  font-size: 0.84rem;
  font-weight: 700;
}

.product-choice h3 {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.product-choice h3 img {
  width: 250px;
  max-width: 74%;
  height: auto;
}

.product-choice h3 > span:not(.sr-only) {
  padding-bottom: 3px;
  color: var(--product-colour);
  font-size: 1.22rem;
  font-weight: 700;
}

.product-choice-copy > p:last-child {
  max-width: 570px;
  margin-top: 18px;
  color: var(--muted);
}

.product-choice-action {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.product-choice-action p {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}

.product-choice-action p span {
  color: var(--muted);
  font-size: 0.82rem;
}

.product-choice-action .text-button {
  align-self: flex-start;
  color: var(--product-colour);
  text-align: left;
}

.guided-flow,
.guidance-result {
  min-height: 540px;
  scroll-margin-top: 112px;
  border-top: 1px solid var(--line);
  padding-top: 44px;
}

.flow-progress {
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 700;
}

.flow-heading {
  max-width: 760px;
  margin-top: 12px;
  font-family: "Barlow Condensed Local", sans-serif;
  font-size: 3.4rem;
  line-height: 1;
}

.flow-options {
  max-width: 820px;
  display: grid;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  border: 0;
}

.flow-option {
  position: relative;
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 18px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.flow-option:hover,
.flow-option:focus-visible {
  border-color: var(--green-dark);
  background: #f3f8f5;
}

.flow-option::after {
  margin-left: auto;
  color: var(--green-dark);
  content: "\2192";
}

.flow-option span {
  font-weight: 700;
}

.flow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.uncertain-result {
  max-width: 820px;
  min-height: 460px;
  display: grid;
  align-content: center;
  padding: 56px 0;
}

.uncertain-mark {
  width: 330px;
  max-width: 70vw;
  margin-bottom: 30px;
}

.uncertain-result h2 {
  color: var(--petrol);
}

.uncertain-result > p {
  max-width: 650px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.05rem;
}

.specialist-band {
  padding: 62px 0;
  background: var(--forest);
  color: var(--white);
}

.specialist-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.specialist-layout h2 {
  font-size: 3rem;
}

.specialist-layout p {
  max-width: 660px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.76);
}

footer {
  padding: 46px 0;
  background: var(--petrol-deep);
  color: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(360px, 1fr) auto;
  gap: 48px;
  align-items: start;
}

.footer-mark {
  width: 160px;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-copy {
  max-width: 300px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
}

.footer-label {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-links a,
.footer-phone {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 700;
}

.footer-monju {
  width: min(100%, 260px);
  display: grid;
  justify-items: start;
  justify-self: end;
  gap: 3px;
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
  text-decoration: none;
}

.footer-monju-name {
  margin-bottom: 6px;
  color: var(--white);
  font-family: "Barlow Condensed Local", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.footer-monju-discipline {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  font-weight: 700;
}

.footer-monju-url {
  color: var(--gold);
  font-weight: 700;
}

.footer-monju-url,
.footer-monju-region {
  font-size: 0.86rem;
  line-height: 1.35;
}

.footer-monju-url:hover {
  text-decoration: underline;
}

.footer-monju-legal {
  margin-top: 8px;
  padding-top: 8px;
  display: grid;
  gap: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.35;
}

@media (max-width: 1040px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    position: relative;
    display: block;
  }

  .mobile-menu summary {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 4px;
    padding: 0 14px;
    font-size: 0.88rem;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .menu-lines {
    width: 18px;
    height: 13px;
    display: grid;
    align-content: space-between;
  }

  .menu-lines span {
    height: 2px;
    background: currentColor;
  }

  .menu-current::before {
    content: "/ ";
    opacity: 0.62;
  }

  .mobile-menu nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(320px, calc(100vw - 32px));
    border: 1px solid #477663;
    border-radius: 4px;
    padding: 12px 18px;
    background: var(--forest);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  }

  .mobile-menu ul {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .mobile-menu a {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .mobile-menu li:last-child a {
    border-bottom: 0;
  }

  .product-choice {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .product-choice-image {
    width: 200px;
    height: 200px;
    grid-row: span 2;
  }

  .product-choice-action {
    grid-column: 2;
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 14px 0 0;
  }

  .product-choice-action p {
    margin: 0;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 32px, var(--max-width));
  }

  .nav-shell {
    min-height: 72px;
    gap: 12px;
  }

  .brand-mark {
    width: 132px;
  }

  .brand-market {
    display: none;
  }

  .mobile-menu summary {
    padding-inline: 12px;
  }

  .route-intro {
    padding: 124px 0 48px;
  }

  .intro-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  h1 {
    font-size: 4rem;
  }

  h2,
  .flow-heading {
    font-size: 2.8rem;
  }

  .chooser {
    padding: 54px 0 66px;
  }

  .guided-entry {
    align-items: stretch;
    flex-direction: column;
    gap: 22px;
    padding: 24px 20px;
  }

  .guided-entry .button {
    width: 100%;
  }

  .product-choice {
    grid-template-columns: 126px minmax(0, 1fr);
    gap: 18px;
    padding: 24px 0;
  }

  .product-choice-image {
    width: 126px;
    height: 150px;
  }

  .product-choice-copy {
    align-self: center;
  }

  .product-choice h3 {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .product-choice h3 img {
    width: 190px;
    max-width: 100%;
  }

  .product-choice h3 > span:not(.sr-only) {
    padding-bottom: 0;
    font-size: 1rem;
  }

  .product-choice-copy > p:last-child {
    margin-top: 12px;
    font-size: 0.9rem;
  }

  .product-choice-action {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .product-choice-action p {
    flex-direction: row;
    justify-content: space-between;
  }

  .guided-flow,
  .guidance-result {
    min-height: 500px;
    padding-top: 34px;
  }

  .flow-option {
    min-height: 64px;
  }

  .flow-actions .button {
    width: 100%;
  }

  .result-actions .button,
  .result-actions .quiet-button {
    width: 100%;
  }

  .specialist-layout {
    align-items: stretch;
    flex-direction: column;
  }

  .specialist-layout .button {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-monju {
    justify-self: start;
  }

}

@media (max-width: 390px) {
  h1 {
    font-size: 3.5rem;
  }

  h2,
  .flow-heading {
    font-size: 2.5rem;
  }

  .product-choice {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
  }

  .product-choice-image {
    width: 104px;
    height: 132px;
  }
}

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