@import url("./base.css");

:root {
  --ink: #123f34;
  --ink-2: #1b5043;
  --paper: #f3f7f2;
  --white: #ffffff;
  --acid: #d3df83;
  --acid-dark: #769346;
  --signal: #2b725d;
  --danger: #b42318;
  --line: #4f7569;
  --muted: #586d66;
  --on-dark: #f9fcfa;
  --phone-cta: #ffb000;
  --phone-cta-active: #e89a00;
  --line-cta: #06c755;
  --line-cta-ink: #052f16;
}

.hero {
  background: #edf4ef;
}

.hero::before {
  background:
    radial-gradient(circle at 90% 4%, rgba(211, 223, 131, 0.36), transparent 30%),
    linear-gradient(125deg, transparent 0 66%, rgba(18, 63, 52, 0.055) 66% 69%, transparent 69%);
}

.hero-media::after {
  display: none;
}

.hero-media {
  position: relative;
  z-index: 0;
  top: auto;
  right: auto;
  width: 100%;
  height: 180px;
  margin: 0 -6px 12px 0;
  opacity: 0.88;
  filter: none;
  mask-image: none;
  pointer-events: none;
}

.hero-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  align-items: end;
  gap: 4px;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  filter: drop-shadow(0 14px 24px rgba(18, 63, 52, 0.11));
}

.hero-grid {
  background-image:
    linear-gradient(rgba(18, 63, 52, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 63, 52, 0.55) 1px, transparent 1px);
}

.area-chip {
  color: #315d50;
}

.hero-lead {
  color: #2e574b;
}

.hero-facts {
  gap: 22px;
  background: transparent;
  border: 0;
}

.hero-facts p,
.hero-facts p:first-child,
.hero-facts p + p {
  min-height: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
}

.hero-facts small {
  margin-bottom: 7px;
  color: #365f53;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.hero-facts b {
  font-family: "Avenir Next", "Helvetica Neue", var(--font-body);
  font-size: clamp(2.25rem, 10vw, 3rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.hero-facts p:first-child b {
  color: var(--signal);
}

.hero-facts p + p b {
  color: #6f842f;
}

.hero-facts b span {
  margin-left: 0.08em;
  font-family: var(--font-body);
  font-size: 0.38em;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero-facts > p > span {
  max-width: none;
  margin-left: 5px;
  padding: 0 0 2px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
}

.action-primary {
  color: var(--line-cta-ink);
  background: var(--line-cta);
  border: 0;
}

.action-primary:active {
  background: #05ad4a;
  border-color: #05ad4a;
}

.action-secondary {
  color: var(--ink);
  background: var(--phone-cta);
  border: 0;
}

.action-form {
  color: var(--ink);
  background: #dce9e1;
  border: 0;
}

.action-form:active {
  background: #c9dbd0;
}

#inquiry {
  scroll-margin-top: 76px;
}

.header-phone,
.hero-actions .action-secondary {
  border: 0;
  box-shadow: none;
}

.claim-disclosure {
  color: #5b726a;
}

.quick-proof {
  display: block;
  max-width: none;
  margin: 0;
  padding: 42px 0;
  color: var(--on-dark);
  background: var(--ink);
  border: 0;
}

.quick-proof > .quick-proof-inner {
  display: block;
  min-height: 0;
  padding: 0;
  text-align: left;
}

.quick-proof-heading {
  margin-bottom: 26px;
}

.quick-proof-heading > p {
  margin: 0 0 8px;
  color: var(--acid);
  font: 800 0.62rem/1 var(--font-display);
  letter-spacing: 0.14em;
}

.quick-proof-heading h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.4rem, 6.4vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.quick-proof-list {
  display: grid;
}

.quick-proof-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-proof-list article > div {
  min-width: 0;
}

.quick-proof .proof-index {
  align-self: start;
  margin: 5px 0 0;
  color: var(--acid);
  font-family: "Avenir Next", "Helvetica Neue", var(--font-body);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.proof-value {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 0 0 8px;
}

.quick-proof .proof-value strong,
.quick-proof .proof-value b {
  color: var(--white);
  font-family: "Avenir Next", "Helvetica Neue", var(--font-body);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.quick-proof .proof-value strong {
  font-size: clamp(1.65rem, 8vw, 2.35rem);
}

.quick-proof .proof-value b {
  font-size: clamp(1.15rem, 5.5vw, 1.55rem);
}

.quick-proof-list h3 {
  margin: 0 0 5px;
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
}

.quick-proof-list article > div > p:last-child {
  margin: 0;
  color: #c9d8d2;
  font-size: 0.78rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.recovery-support {
  padding: 30px 0 32px;
  color: var(--ink);
  background: #e9f0eb;
  border-top: 1px solid #c7d5cd;
}

.recovery-support .shell {
  display: grid;
  gap: 7px;
}

.recovery-support h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.5;
}

.recovery-support .shell > p:not(.recovery-support-note) {
  margin: 0;
  color: #345b4e;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.7;
}

.recovery-support-note {
  margin: 2px 0 0;
  color: #5e756d;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.6;
}

.prices {
  background:
    linear-gradient(90deg, rgba(18, 63, 52, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 40px 40px;
}

.header-phone {
  color: var(--ink);
  background: var(--phone-cta);
}

.line-brand-icon {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  object-fit: contain;
}

.comparison-note {
  margin: 16px 0 0;
  padding-top: 13px;
  color: var(--muted);
  border-top: 1px solid #b7c7c0;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.65;
}

.result-groups {
  display: grid;
  gap: 34px;
}

.result-group {
  min-width: 0;
}

.result-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 11px;
  padding-bottom: 8px;
  border-bottom: 1px solid #9aafa7;
}

.result-group-head h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 900;
}

.result-group-head span {
  color: var(--muted);
  font: 800 0.58rem/1 var(--font-display);
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.results .result-group ul {
  display: grid;
  grid-template-columns: none;
  grid-auto-columns: minmax(210px, 78%);
  grid-auto-flow: column;
  gap: 13px;
  margin-inline: -16px;
  padding: 2px 16px 17px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 16px;
  scroll-snap-type: inline proximity;
  scrollbar-color: var(--signal) #dbe6df;
  scrollbar-width: thin;
}

.results .result-group ul:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.results .result-group li {
  min-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #dce7e0;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--acid);
  scroll-snap-align: start;
}

.results .result-group li::after {
  display: none;
}

.results .result-group img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: saturate(0.94) contrast(1.03);
}

.voices,
.company {
  background: #e6eee8;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: #f2f6f3;
  border-color: #819b92;
}

.form-field select {
  width: 100%;
  min-height: 52px;
  padding: 12px 44px 12px 13px;
  color: var(--ink);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  border: 2px solid #819b92;
  border-radius: 0;
  font-size: 16px;
  line-height: 1.5;
  appearance: none;
  scroll-margin-bottom: calc(96px + var(--safe-bottom));
}

.form-field select:focus {
  background-color: var(--white);
  border-color: var(--ink);
  outline: 3px solid var(--acid-dark);
  outline-offset: 0;
}

.category-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.category-field legend {
  margin-bottom: 9px;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 900;
}

.category-field legend small {
  color: var(--muted);
  font-weight: 500;
}

.category-help {
  margin: -2px 0 10px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.category-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.category-options label {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.category-options input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
}

.category-options label > span {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-height: 48px;
  margin: 0;
  padding: 9px 7px;
  color: var(--ink);
  background: #f2f6f3;
  border: 1px solid #819b92;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.category-options label > span::before {
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  place-items: center;
  color: transparent;
  background: var(--white);
  border: 2px solid #5f7d73;
  content: "✓";
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.category-options input:checked + span {
  color: var(--white);
  background: var(--signal);
  border-color: var(--signal);
}

.category-options input:checked + span::before {
  color: var(--signal);
  border-color: var(--white);
}

.category-options input:focus-visible + span {
  outline: 3px solid var(--acid-dark);
  outline-offset: 2px;
}

.privacy-consent {
  background: #e8f0eb;
  border-color: #a9bdb5;
}

.mobile-contact-bar {
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0 0 var(--safe-bottom);
  background: transparent;
  border-top: 0;
  backdrop-filter: none;
}

.line-break .action-primary {
  color: var(--line-cta-ink);
  background: var(--line-cta);
  border: 0;
}

.contact-phone {
  align-items: center;
  color: var(--ink);
  background: var(--phone-cta);
  border: 0;
  text-align: center;
}

.contact-phone strong {
  font-family: "Avenir Next", "Helvetica Neue", var(--font-body);
  font-weight: 900;
  letter-spacing: -0.025em;
}

.mobile-contact-bar a {
  position: relative;
  isolation: isolate;
  color: var(--ink);
  background: var(--phone-cta);
  border: 0;
}

.mobile-contact-bar a > svg,
.mobile-contact-bar a > img,
.mobile-contact-bar a > span {
  position: relative;
  z-index: 1;
}

.mobile-contact-bar a + a {
  color: var(--line-cta-ink);
  background: var(--line-cta);
  border: 0;
}

.mobile-contact-bar #cta-sticky-form {
  color: var(--ink);
  background: #dce9e1;
}

.mobile-contact-bar #cta-sticky-form::after {
  display: none;
}

.mobile-contact-bar small {
  font-size: 0.54rem;
}

.mobile-contact-bar strong {
  font-size: 0.78rem;
}

@keyframes mobile-cta-shine {
  0%,
  58% {
    opacity: 0;
    transform: translateX(0) skewX(-18deg);
  }
  64% {
    opacity: 0.72;
  }
  79%,
  100% {
    opacity: 0;
    transform: translateX(680%) skewX(-18deg);
  }
}

@media (max-width: 699px) {
  .mobile-contact-bar a::after {
    position: absolute;
    z-index: 0;
    top: -45%;
    bottom: -45%;
    left: -32%;
    width: 18%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.82),
      rgba(255, 255, 255, 0.18),
      transparent
    );
    content: "";
    pointer-events: none;
    animation: mobile-cta-shine 4.4s ease-in-out infinite;
  }

  .mobile-contact-bar a + a::after {
    animation-delay: 2.2s;
  }
}

@media (min-width: 700px) {
  .hero-heading-row {
    display: block;
  }

  .hero-media {
    position: absolute;
    top: 0;
    right: 0;
    width: 46%;
    height: 560px;
    margin: 0;
  }

  .hero-actions .action-form {
    min-height: 56px;
    grid-column: 1 / -1;
  }

  .recovery-support {
    padding: 34px 0 36px;
  }

  .recovery-support .shell {
    grid-template-columns: 0.38fr 1.62fr;
    align-items: baseline;
    column-gap: 36px;
  }

  .recovery-support-note {
    grid-column: 2;
  }

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

  .quick-proof {
    padding: 58px 0 62px;
  }

  .quick-proof-heading {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    align-items: end;
    gap: 40px;
    margin-bottom: 36px;
  }

  .quick-proof-heading > p {
    margin-bottom: 7px;
  }

  .quick-proof-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quick-proof-list article {
    display: block;
    padding: 8px 28px 4px;
    border-top: 0;
  }

  .quick-proof-list article:first-child {
    padding-left: 0;
  }

  .quick-proof-list article + article {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }

  .quick-proof .proof-index {
    display: block;
    margin-bottom: 20px;
  }

  .results .result-group ul {
    grid-auto-columns: minmax(230px, 34%);
    margin-inline: 0;
    padding-inline: 2px;
  }
}

@media (min-width: 1024px) {
  .results .result-group ul {
    grid-auto-columns: minmax(250px, 29%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-contact-bar a::after {
    animation: none;
  }
}

/* Character trial: keep the original green variant intact and add guidance only. */
.character-page .flow li {
  position: relative;
  grid-template-columns: 48px minmax(0, 1fr) 82px;
  gap: 10px;
  min-height: 184px;
  overflow: hidden;
}

.character-page .flow li > span {
  align-self: start;
  margin-top: 31px;
  font-size: 3.5rem;
}

.flow-step-copy {
  min-width: 0;
  padding-block: 28px;
}

.flow-guide {
  width: 92px;
  align-self: end;
  margin: 0 -8px -16px 0;
  pointer-events: none;
}

.flow-guide img,
.contact-guide img {
  display: block;
  width: 100%;
  height: auto;
}

.character-page .flow .guide-note {
  display: inline-block;
  margin: 12px 0 0;
  padding: 5px 8px;
  color: var(--ink);
  background: var(--acid);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.4;
}

.contact-guide {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: end;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 12px 0 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-guide figure {
  width: 116px;
  align-self: end;
  margin: 0 0 -24px -8px;
}

.contact-guide > p {
  align-self: center;
  margin: 0;
  padding: 14px 0 16px;
}

.contact-guide small,
.contact-guide strong,
.contact-guide span {
  display: block;
}

.contact-guide small {
  margin-bottom: 5px;
  color: var(--acid);
  font: 800 0.61rem/1 var(--font-display);
  letter-spacing: 0.1em;
}

.contact-guide strong {
  color: var(--white);
  font-size: 0.93rem;
  line-height: 1.45;
}

.contact-guide span {
  margin-top: 5px;
  color: #c9d8d2;
  font-size: 0.69rem;
  line-height: 1.55;
}

@media (min-width: 700px) {
  .character-page .flow li {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    min-height: 390px;
    padding: 26px 22px 0;
  }

  .character-page .flow li > span {
    grid-column: 1 / -1;
    margin: 0 0 20px;
    font-size: 4.8rem;
  }

  .flow-step-copy {
    z-index: 1;
    grid-column: 1 / -1;
    padding: 0 0 190px;
  }

  .flow-guide {
    position: absolute;
    right: -8px;
    bottom: -34px;
    width: 154px;
    margin: 0;
  }

  .character-page .flow .guide-note {
    max-width: 170px;
  }

  .contact-guide {
    grid-template-columns: 136px minmax(0, 1fr);
  }

  .contact-guide figure {
    width: 142px;
  }
}

@media (min-width: 1024px) {
  .mobile-contact-bar {
    width: 500px;
  }

  .contact-guide {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .contact-guide figure {
    width: 158px;
  }
}
