/* ==========================================================================
   Hypha LP - components & layout
   Breakpoints:  PC >= 1000px  |  TAB 500-999px  |  SP <= 499px
   Naming: BEM. Colors/fonts come from theme.css variables only.
   ========================================================================== */

:root {
  --gutter: 24px;
  --container-max: 920px;
  --section-gap: 80px;
  --header-h: 65px;
}

.container {
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--container-max); /* "none" is valid here (not inside min()) */
  margin-inline: auto;
}

/* ---------- Typography helpers ---------- */
.section__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.3;
  margin-bottom: 24px;
}

.section {
  margin-top: var(--section-gap);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 16px;
}

.card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  min-width: 200px;
  padding: 0 40px;
  border: 0;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-cta);
  color: var(--color-base);
}
.btn--primary:hover {
  background: var(--cta-hover);
}

.btn--secondary {
  display: flex;
  min-width: 100px;
  height: 38px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 4px;
  color: var(--color-text);
  border: 1.5px solid var(--color-input-border);
  background-color: var(--color-base);
  padding: 16px;
}
.btn--secondary:hover {
  color: var(--color-secondary-hover);
  border: 1.5px solid var(--color-accent);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: var(--header-h);
  background: var(--color-base);
  border-bottom: 1px solid var(--color-border);
  padding: 0 24px;
}

.site-header__logo img {
  width: 168px;
  height: 48px;
}

/* ==========================================================================
   Hero
   Height = browser window height (same spec as temporary-top).
   Background = canvas animation (hypha-hero-bg.js / hypha-hero-bg.css).
   ========================================================================== */
.hero {
  --text-gap: 80px; /* hero bottom -> bottom of the text block */
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh; /* excludes the mobile address bar (falls back to 100vh) */
  padding: var(--header-h) 80px var(--text-gap); /* top: header height */
  overflow: hidden;
  background: var(--color-base);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 80px;
  background: linear-gradient(to top, var(--color-base), var(--color-base) 60%, transparent);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__title,
.hero__sub-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 60px;
  line-height: 1.3;
  /* Not in the comp: soft base-color halo so the title stays readable when the hero glow gets strong */
  text-shadow:
    0 0 8px color-mix(in srgb, var(--color-base) 70%, transparent),
    0 0 24px color-mix(in srgb, var(--color-base) 60%, transparent),
    0 0 48px color-mix(in srgb, var(--color-base) 50%, transparent);
}

.hero__sub-title {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 16px;
}

.hero__title-line {
  display: block;
}

.hero__lead {
  margin-top: 24px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 2px;
}

.hero__lead-line {
  display: block;
}

.hero__cta {
  margin-top: 24px;
  min-width: 250px;
}

/* ==========================================================================
   About
   ========================================================================== */
.section.about {
  margin-top: 40px;
}

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

.about__item {
  min-height: 144px;
}

.about__text {
  margin-top: 16px;
}

/* ==========================================================================
   Spec / Pricing
   ========================================================================== */
.spec__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.spec__item {
  min-height: 138px;
}

.spec__details {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec__vram {
  display: flex;
}

.spec__vram dt {
  width: 50px;
}

.spec__price {
  font-size: 16px;
}

.spec__price-value {
  font-weight: 700;
  font-size: 24px;
  color: var(--color-main);
}

/* ==========================================================================
   Flow ("What Happens After You Apply")
   ========================================================================== */
.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.flow::before {
  content: "";
  position: absolute;
  top: 19px;
  left: calc((100% - 32px) / 6);
  right: calc((100% - 32px) / 6);
  height: 2px;
  background: var(--color-main);
}

.flow__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.flow__badge {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  background: var(--color-base);
  border: 2px solid var(--color-main);
  border-radius: 4px;
  color: var(--color-main);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
}

.flow__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.flow__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
}

.flow__image {
  display: grid;
  place-items: center;
  width: 248px;
  height: 140px;
}

.flow__image img {
  width: 248px;
  height: 140px;
  object-fit: contain;
}

.flow__text {
  width: 100%;
}

/* ==========================================================================
   Request form
   ========================================================================== */
.form-card {
  position: relative;
  padding: 44px 40px 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

/* Light effect on top of the form card ("tech neon" look).
   .form-card__light  the line itself. Boots from the center (highlight flash + main color spreads),
                      then stays lit with a slow breathing glow. Never erases.
   With JS (.is-armed / .is-lit) the effect starts when the card scrolls into view. */
.form-card__light {
  /* Box is taller than the 4px line so the neon glow is not clipped */
  --light-glow: 10px;
  --wave-cycle: 4s; /* highlight wave loop */
  position: absolute;
  top: calc(var(--light-glow) * -1);
  left: 0;
  right: 0;
  height: calc(4px + var(--light-glow) * 2);
  pointer-events: none;
}

.form-card__light::before,
.form-card__light::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: var(--light-glow);
  height: 4px;
  border-radius: 4px 4px 0 0;
}

/* Main color (#6FF0D8) + neon glow */
.form-card__light::before {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--color-main) 0%, transparent) 0%,
    var(--color-main) 25%,
    var(--color-main) 75%,
    color-mix(in srgb, var(--color-main) 0%, transparent) 100%
  );
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 3px color-mix(in srgb, var(--color-main) 90%, transparent))
    drop-shadow(0 0 8px color-mix(in srgb, var(--color-main) 60%, transparent));
}

/* Highlight (#D2F4F9) at the center */
.form-card__light::after {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--color-highlight) 0%, transparent) 0%,
    var(--color-highlight) 50%,
    color-mix(in srgb, var(--color-highlight) 0%, transparent) 100%
  );
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 4px var(--color-highlight));
}

/* Waiting for the card to scroll into view */
.form-card.is-armed .form-card__light::before,
.form-card.is-armed .form-card__light::after {
  opacity: 0;
}

.form-card.is-lit .form-card__light::before {
  animation: light-wave-main var(--wave-cycle) infinite both;
}

.form-card.is-lit .form-card__light::after {
  animation: light-wave var(--wave-cycle) infinite both;
}

/* Wave loop (3s). Both layers are fully dark at 0% / 100%, so the loop restarts from "no light".
   The light fades in softly while it already starts to spread (no sudden pop). */

/* Main color: rises a beat behind the highlight, spreads to both edges, dims, then fades out. */
@keyframes light-wave-main {
  0% {
    opacity: 0;
    transform: scaleX(0.08);
    animation-timing-function: cubic-bezier(0.3, 0, 0.4, 1);
  }
  8% {
    opacity: 0.35;
    transform: scaleX(0.14);
    animation-timing-function: cubic-bezier(0.2, 0.6, 0.3, 1);
  }
  45% {
    opacity: 1;
    transform: scaleX(1);
    animation-timing-function: ease-in-out;
  }
  72% {
    opacity: 0.3;
    transform: scaleX(1);
    animation-timing-function: ease-in-out;
  }
  90%,
  100% {
    opacity: 0;
    transform: scaleX(1);
  }
}

/* Highlight: glows up softly at the center while it starts to widen, then spreads out and fades. */
@keyframes light-wave {
  0% {
    opacity: 0;
    transform: scaleX(0.06);
    filter: brightness(1.4) drop-shadow(0 0 3px var(--color-highlight));
    animation-timing-function: cubic-bezier(0.3, 0, 0.4, 1);
  }
  10% {
    opacity: 1;
    transform: scaleX(0.12);
    filter: brightness(2) drop-shadow(0 0 6px var(--color-highlight));
    animation-timing-function: cubic-bezier(0.15, 0.7, 0.3, 1);
  }
  52% {
    opacity: 0.55;
    transform: scaleX(1);
    filter: brightness(1.3) drop-shadow(0 0 4px var(--color-highlight));
    animation-timing-function: ease-out;
  }
  72%,
  100% {
    opacity: 0;
    transform: scaleX(1);
    filter: brightness(1) drop-shadow(0 0 4px var(--color-highlight));
  }
}

/* Slow breathing while lit */
@keyframes light-breathe {
  0%,
  100% {
    opacity: 0.88;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .form-card.is-lit .form-card__light::before,
  .form-card.is-lit .form-card__light::after {
    animation: none;
  }
}

.form-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.3;
  text-align: center;
}

.form-card__title-line {
  display: inline;
}

.form-card__intro {
  margin-top: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.form-card__intro .u-br {
  display: inline;
}

.form__step[hidden] {
  display: none;
}

.field {
  margin-bottom: 24px;
}

.field__label,
.field__legend {
  display: block;
  padding: 0;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}

.field__required {
  color: var(--color-error);
}

.field__control {
  width: 100%;
  max-width: 400px;
}

.field__control--full {
  max-width: none;
}

.field__hint {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.3;
}

.field__error {
  margin-top: 8px;
  color: var(--color-error);
  font-size: 14px;
  line-height: 1.3;
}

.field__error[hidden] {
  display: none;
}

.input,
.select,
.textarea {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-input-border);
  border-radius: 4px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--color-placeholder);
}

.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6' viewBox='0 0 12 6'%3E%3Cpath d='M0 0h12L6 6z' fill='%23d2f4f9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.select option {
  background: var(--color-surface);
  color: var(--color-text);
}

.textarea {
  height: auto;
  min-height: 74px;
  padding: 14px 16px;
  resize: vertical;
}

/* Focus state: no extra ring - only the field's own border changes color */
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible,
.dropdown__button:focus-visible,
.dropdown__search:focus-visible {
  outline: 0;
  border-color: var(--color-main);
}

/* Custom dropdown (JS-enhanced <select data-dropdown>) */
.dropdown {
  position: relative;
}

.dropdown__button {
  position: relative;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  background-image: none; /* caret is drawn by ::after so it can rotate */
}

/* Caret: points down when closed, rotates 180deg clockwise to point up when open */
.dropdown__button::after {
  content: "";
  position: absolute;
  top: calc(50% - 3px);
  right: 16px;
  width: 12px;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6' viewBox='0 0 12 6'%3E%3Cpath d='M0 0h12L6 6z' fill='%23d2f4f9'/%3E%3C/svg%3E") no-repeat center / 12px 6px;
  transition: transform 0.3s ease-in;
}

.dropdown__button[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .dropdown__button::after {
    transition: none;
  }
}

.dropdown__button[aria-expanded="true"] {
  border-color: var(--color-main);
}

.dropdown__value.is-placeholder {
  color: var(--color-placeholder);
}

.dropdown__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  max-height: 342px;
  background: var(--color-surface);
  border: 1px solid var(--color-input-border);
  border-radius: 4px;
  overflow: hidden;
}

.dropdown__panel[hidden] {
  display: none;
}

.dropdown__search {
  flex: none;
  height: 42px;
  margin: 10px;
  padding: 0 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-input-border);
  border-radius: 4px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
}

.dropdown__search::placeholder {
  color: var(--color-placeholder);
}

.dropdown__list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.dropdown__name {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dropdown__dial {
  flex: none;
  margin-left: 6px;
}

/* Panel opened from the phone field: same width as the field, 10px below it */
.phone .dropdown__panel {
  left: -1px;
  right: -1px;
  top: calc(100% + 11px);
}

.dropdown__option,
.dropdown__empty {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 10px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
}

.dropdown__option {
  color: var(--color-text-sub);
  cursor: pointer;
}

.dropdown__option.is-active {
  background: color-mix(in srgb, var(--color-main) 14%, transparent);
  color: var(--color-text);
}

.dropdown__option.is-selected {
  color: var(--color-main);
}

.dropdown__empty {
  color: var(--color-placeholder);
}

.dropdown__empty[hidden],
.dropdown__option[hidden] {
  display: none;
}

/* Radios */
.radios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.radio {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
}

.radio__input {
  position: absolute;
  opacity: 0;
  width: 20px;
  height: 20px;
  margin: 0;
}

.radio__mark {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px; /* centers the 20px mark on the 24px text line */
  border: 1.5px solid var(--color-input-border);
  border-radius: 50%;
}

.radio__input:checked + .radio__mark {
  border-color: var(--color-main);
}

.radio__input:checked + .radio__mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--color-main);
}

.radio__input:focus-visible + .radio__mark {
  outline: 0;
  border-color: var(--color-main);
}

/* Name row (step 2) */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
}

/* Phone */
.phone {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  background: var(--color-surface);
  border: 1px solid var(--color-input-border);
  border-radius: 4px;
}

.phone:focus-within {
  outline: 0;
  border-color: var(--color-main);
}

.phone__cc {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: clamp(150px, 45%, 240px);
  height: 100%;
  padding: 0 16px;
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.phone__cc:focus-visible {
  outline: 0; /* the whole phone field already switches its border color (.phone:focus-within) */
}

.phone__caret {
  flex: none;
  margin-left: auto;
  width: 12px;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6' viewBox='0 0 12 6'%3E%3Cpath d='M0 0h12L6 6z' fill='%23d2f4f9'/%3E%3C/svg%3E") no-repeat center;
  transition: transform 0.3s ease-in;
}

.phone__cc[aria-expanded="true"] .phone__caret {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .phone__caret {
    transition: none;
  }
}

.phone__divider {
  flex: none;
  align-self: stretch;
  width: 1px;
  margin: 0;
  background: var(--color-input-border);
  opacity: 0.6;
}

.phone__label {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  min-width: 0;
}

.phone__name {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
}

.phone__dial {
  flex: none;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
}

.phone__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 16px;
  background: transparent;
  border: 0;
  border-radius: 0 4px 4px 0;
  font-weight: 500;
  font-size: 16px;
}

.phone__input:focus {
  outline: 0;
}

.phone__input::placeholder {
  color: var(--color-placeholder);
}

/* Progress */
.progress {
  margin-top: 0;
}

.progress__label {
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
}

.progress__track {
  height: 12px;
  background: var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 50%;
  background: var(--color-main);
  border-radius: 12px;
}

.form__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
}

.form__actions--split {
  justify-content: space-between;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

.faq__item + .faq__item {
  border-top: 0;
}

.faq__item:first-child {
  border-radius: 4px 4px 0 0;
}

.faq__item:last-child {
  border-radius: 0 0 4px 4px;
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__icon {
  flex: none;
  width: 20px;
  height: 20px;
  background: url("../images/icon-open.png") center / 20px 20px no-repeat;
}

.faq__item[open]:not(.is-closing) .faq__icon {
  background-image: url("../images/icon-close.png");
}

.faq__answer {
  padding: 0 16px 16px;
  color: var(--color-text-sub);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
}

/* ==========================================================================
   Charts (bubble charts; data/JS: assets/js/bubble-charts.js)
   ========================================================================== */
.charts__body {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.chart__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 16px;
}
.charts__body .chart__title:first-child {
  margin-top: 0px;
}

.chart {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 20px;
}

.chart__canvas-wrap {
  position: relative;
  height: 320px;
}

.charts__note {
  margin: 8px 0 20px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-sub);
  max-width: 760px;
}

.charts__badge {
  margin-top: 16px;
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--color-base);
  background: var(--color-main);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
}

.charts__badge[hidden] {
  display: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: var(--section-gap);
  padding: 36px 0 24px;
  background: var(--color-footer-bg);
}

.site-footer__inner {
  width: min(100% - 80px, 1000px);
  margin-inline: auto;
}

.site-footer__row {
  display: grid;
  grid-template-columns: 311px 1px 1fr;
  column-gap: 40px;
  min-height: 151px;
}

.site-footer__brand img {
  width: 168px;
  height: 48px;
}

.site-footer__tagline {
  margin-top: 0;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.site-footer__contact {
  margin-top: 16px;
  padding-left: 14px;
}

.site-footer__contact-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
}

.site-footer__contact-mail {
  font-size: 14px;
  line-height: 1.5;
}

.site-footer__divider {
  align-self: start;
  height: 147px;
  margin-top: 4px;
  background: var(--color-border);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 28px;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.site-footer__link::after {
  content: "";
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M4.5 2.5L8 6l-3.5 3.5' stroke='%23f0f5f9' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

.site-footer__copy {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}

.site-footer__legal {
  margin-top: 8px;
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-text-sub);
}

/* ==========================================================================
   TAB  (500px - 999px)
   ========================================================================== */
@media (max-width: 999px) {
  :root {
    --gutter: 24px;
    --container-max: none;
    --section-gap: 60px;
  }

  .site-header {
    padding: 0 16px;
  }

  /* Fluid headings: linear between the comps at 440px (SP) and 768px (TAB), then fixed.
     Above 768px = comp value (PC and TAB share the same sizes). Below 440px = SP value. */
  .hero__title {
    font-size: clamp(40px, 0.823rem + 6.098vw, 60px); /* 40px @440 -> 60px @768 */
  }

  .hero__sub-title {
    font-size: 24px
  }

  .section__title,
  .form-card__title {
    font-size: clamp(30px, 1.037rem + 3.049vw, 40px); /* 30px @440 -> 40px @768 */
  }

  .hero {
    padding-right: 24px;
    padding-left: 24px;
  }

  .hero::after {
    height: 60px;
  }

  .hero__title-line,
  .hero__lead-line {
    display: inline;
  }

  .u-br-pc {
    display: none;
  }

  .about__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__item:nth-child(-n + 2) {
    min-height: 144px;
  }

  .about__item {
    min-height: 0;
  }

  /* Flow becomes vertical */
  .flow {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .flow::before {
    display: none;
  }

  .flow__item {
    display: block;
    padding-left: 64px;
    text-align: left;
    min-height: 140px;
  }

  .flow__item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 19px;
    width: 2px;
    height: calc(100% + 16px);
    background: var(--color-main);
  }

  .flow__badge {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
  }

  .flow__body {
    display: grid;
    grid-template-columns: 1fr 140px;
    grid-template-areas:
      "title image"
      "text image";
    column-gap: 24px;
    row-gap: 16px;
    align-items: start;
    align-content: start;
    padding-top: 5px;
  }

  .flow__title {
    grid-area: title;
  }

  .flow__image {
    grid-area: image;
    width: 140px;
    margin-top: -5px;
  }

  .flow__image img {
    width: 140px;
    height: 140px;
  }

  .flow__text {
    grid-area: text;
  }

  .form-card {
    padding: 28px 24px 24px;
  }

  .field-row {
    column-gap: 16px;
  }

  .site-footer {
    padding: 24px 0 24px;
  }

  .site-footer__inner {
    width: min(100% - 48px, 1000px);
  }

  .site-footer__row {
    min-height: 151px;
    grid-template-columns: 214px 1px 1fr;
    column-gap: 24px;
  }
}

/* ==========================================================================
   SP  (<= 499px)
   ========================================================================== */
@media (max-width: 499px) {
  :root {
    --gutter: 16px;
    --container-max: none;
    --header-h: 56px;
  }

  .site-header__logo img {
    width: 140px;
    height: 40px;
  }

  .hero {
    --text-gap: 60px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero__sub-title {
    font-size: 20px
  }

  .hero__lead {
    font-size: 20px;
  }

  .hero__cta {
    display: flex;
    width: 100%;
  }

  .about__list,
  .spec__list {
    grid-template-columns: 1fr;
  }

  .about__item:nth-child(-n + 2) {
    min-height: 0;
  }

  /* Flow: image sits between title and text */
  .flow__body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "image"
      "text";
    row-gap: 16px;
  }

  .flow__image {
    justify-self: center;
    margin-top: 0;
  }

  .flow__item {
    min-height: 0;
  }

  .form-card {
    padding: 28px 16px 24px;
  }

  .form-card__title-line {
    display: block;
  }

  .form-card__intro .u-br {
    display: none;
  }

  .field__control {
    max-width: none;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .textarea {
    min-height: 116px;
  }

  .form__actions,
  .form__actions--split {
    flex-direction: column;
    gap: 16px;
  }

  .form__actions .btn {
    width: 100%;
  }

  /* Phone: on SP the trigger shows only the dial code (e.g. +81) in 1/3 of the field */
  .phone__cc {
    width: calc(100% / 3);
    gap: 6px;
    padding: 0 10px 0 12px;
  }

  .phone__label {
    flex: 1 1 auto;
  }

  .phone__name,
  .phone__paren {
    display: none;
  }

  .charts {
    display: none;
  }

  /* Footer stacks */
  .site-footer {
    padding: 16px 0 24px;
  }

  .site-footer__inner {
    width: calc(100% - 32px);
  }

  .site-footer__row {
    display: block;
    min-height: 0;
  }

  .site-footer__tagline {
    margin-top: 0;
  }

  .site-footer__divider {
    display: block; /* it is a <span>: without this the width/height are ignored */
    width: 100%;
    height: 1px;
    margin: 24px 0 23px; /* comp: line y=191, links y=215 */
  }

  .site-footer__links {
    padding: 0 0 0 14px; /* comp: links start at x=30 (16 + 14), same as the tagline */
  }

  .site-footer__copy {
    margin-top: 24px;
  }
}
