:root {
  --someido-gold: #c9a84c;
  --someido-gold-light: #e0c46c;
  --someido-line: #06c755;
  --someido-cream: #f0ead6;
  --someido-warm: #211f17;
  --someido-slate: #191e27;
  --someido-green: #15211b;
}

body {
  background: #0f1311;
}

.someido-purchase-consultation {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 1rem;
  border-top: 1px solid #5c5034;
  border-bottom: 1px solid #5c5034;
  background: linear-gradient(135deg, #211f17 0%, #171a18 52%, #15211b 100%);
  color: var(--someido-cream);
}

.someido-purchase-glow {
  position: absolute;
  top: -7rem;
  right: -6rem;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: rgba(201, 168, 76, 0.08);
  filter: blur(56px);
  pointer-events: none;
}

.someido-purchase-grid {
  position: relative;
  display: grid;
  width: min(72rem, 100%);
  margin: 0 auto;
  gap: 1.5rem;
}

.someido-purchase-heading > p {
  margin: 0 0 0.75rem;
  color: var(--someido-gold);
  font-family: Arial, sans-serif;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.25em;
}

.someido-purchase-heading h2 {
  margin: 0;
  color: var(--someido-cream);
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(1.55rem, 5.8vw, 2.35rem);
  font-weight: 600;
  line-height: 1.4;
}

.someido-purchase-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.someido-purchase-tags span {
  display: inline-flex;
  padding: 0.42rem 0.75rem;
  border: 1px solid rgba(201, 168, 76, 0.48);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  color: #e0c46c;
  font-size: 0.76rem;
  line-height: 1.35;
}

.someido-purchase-tags span + span {
  border-color: rgba(143, 182, 157, 0.42);
  color: #a9cbb5;
}

.someido-purchase-copy {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.2);
  color: #d1d5d3;
  font-size: 0.88rem;
  line-height: 1.95;
}

.someido-purchase-copy p {
  margin: 0;
}

.someido-purchase-copy p + p {
  margin-top: 1rem;
}

.someido-purchase-copy .someido-purchase-note {
  margin-top: 1.25rem;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(143, 182, 157, 0.3);
  border-radius: 0.75rem;
  background: #132019;
  color: #dde8e0;
}

@media (min-width: 1024px) {
  .someido-purchase-consultation {
    padding: 4rem 2rem;
  }

  .someido-purchase-grid {
    grid-template-columns: 0.82fr 1.45fr;
    align-items: start;
    gap: 3rem;
  }

  .someido-purchase-copy {
    padding: 2rem;
    font-size: 1rem;
  }
}

body[data-someido-route="home"] #root > div > section:first-of-type h1 > span:first-child {
  white-space: nowrap;
  font-size: clamp(1.25rem, 4.7vw, 3rem) !important;
}

body[data-someido-route="home"] #root > div > section:first-of-type h1 > span:nth-child(2) {
  white-space: nowrap;
  font-size: clamp(1.2rem, 6.15vw, 3.75rem) !important;
}

.someido-email-nav,
.someido-line-nav {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.55rem 0.85rem !important;
  border-radius: 999px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none;
  white-space: nowrap;
}

.someido-email-nav {
  border: 1px solid rgba(201, 168, 76, 0.75) !important;
  background: #211f17 !important;
  color: #e2c96e !important;
}

.someido-email-nav:hover,
.someido-gold-hover:hover {
  background: var(--someido-gold-light) !important;
  color: #171717 !important;
}

.someido-line-nav {
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: var(--someido-line) !important;
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.someido-line-nav:hover,
.someido-line-float:hover {
  background: #05aa49 !important;
}

.someido-line-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: var(--someido-line);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.48);
}

.someido-stage-chip {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 0.7rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  color: #d8d8d3;
  font-size: 0.68rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

/* Homepage: each large block gets its own dark tone. */
body[data-someido-route="home"] #root > div > section:nth-of-type(2) {
  background: #111614 !important;
  border-top: 1px solid #2b3530;
}

body[data-someido-route="home"] #root > div > section:nth-of-type(3) {
  background: #171a20 !important;
  border-top: 1px solid #303742;
  border-bottom: 1px solid #303742;
}

body[data-someido-route="home"] #root > div > section:nth-of-type(3) a:nth-child(3n+1) {
  background: #18201c !important;
  border-color: #3c4b43 !important;
}

body[data-someido-route="home"] #root > div > section:nth-of-type(3) a:nth-child(3n+2) {
  background: #18201c !important;
  border-color: #3c4b43 !important;
}

body[data-someido-route="home"] #root > div > section:nth-of-type(3) a:nth-child(3n) {
  background: #18201c !important;
  border-color: #3c4b43 !important;
}

body[data-someido-route="home"] #root > div > section:nth-of-type(4) {
  background: #181711 !important;
  border-top: 1px solid #3d3826;
  border-bottom: 1px solid #3d3826;
}

body[data-someido-route="home"] #contact {
  background: linear-gradient(135deg, #18231d, #111713) !important;
  border-color: #3e5b49 !important;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.34);
}

body[data-someido-route="home"] #root > div > section:nth-of-type(4) ol > li[data-stage="consult"] {
  background: var(--someido-warm) !important;
  border-color: #5a4c2c !important;
}

body[data-someido-route="home"] #root > div > section:nth-of-type(4) ol > li[data-stage="shipping"] {
  background: var(--someido-slate) !important;
  border-color: #435169 !important;
}

body[data-someido-route="home"] #root > div > section:nth-of-type(4) ol > li[data-stage="appraisal"] {
  background: var(--someido-green) !important;
  border-color: #3d5d4c !important;
}

body[data-someido-route="home"] #root > div > section:nth-of-type(5) {
  background: #111a17 !important;
  border-top: 1px solid #2e453a;
}

body[data-someido-route="home"] #root > div > section:nth-of-type(6) {
  background: #101318 !important;
  border-top: 1px solid #303846;
}

/* Request flow: three paired stages are visually grouped without using red. */
body[data-someido-route="flow"] main > section:nth-of-type(3) {
  background: #101412 !important;
}

body[data-someido-route="flow"] main > section:nth-of-type(3) article[data-stage="consult"],
body[data-someido-route="flow"] main > section:nth-of-type(2) > div > div:nth-child(1) {
  background: var(--someido-warm) !important;
  border-color: #5a4c2c !important;
}

body[data-someido-route="flow"] main > section:nth-of-type(3) article[data-stage="shipping"],
body[data-someido-route="flow"] main > section:nth-of-type(2) > div > div:nth-child(2) {
  background: var(--someido-slate) !important;
  border-color: #435169 !important;
}

body[data-someido-route="flow"] main > section:nth-of-type(3) article[data-stage="appraisal"],
body[data-someido-route="flow"] main > section:nth-of-type(2) > div > div:nth-child(3) {
  background: var(--someido-green) !important;
  border-color: #3d5d4c !important;
}

body[data-someido-route="flow"] main > section:nth-of-type(4) {
  background: #131814 !important;
  border-top: 1px solid #334139;
  border-bottom: 1px solid #334139;
}

body[data-someido-route="flow"] main > section:nth-of-type(4) > div {
  background: linear-gradient(135deg, #18261e, #201d14) !important;
  border-color: #7fa58d !important;
}

body[data-someido-route="flow"] main > section:nth-of-type(5) {
  background: #15181d !important;
}

body[data-someido-route="flow"] main > section:nth-of-type(5) article:nth-child(1) {
  background: var(--someido-warm) !important;
  border-color: #574b30 !important;
}

body[data-someido-route="flow"] main > section:nth-of-type(5) article:nth-child(2) {
  background: var(--someido-slate) !important;
  border-color: #435169 !important;
}

body[data-someido-route="flow"] main > section:nth-of-type(5) article:nth-child(3) {
  background: var(--someido-green) !important;
  border-color: #3d5d4c !important;
}

body[data-someido-route="flow"] main > section:nth-of-type(6) {
  background: linear-gradient(135deg, #1d1a12, #112018) !important;
  border-top: 1px solid #4b4934;
}

body[data-someido-route="flow"] main > section:nth-of-type(6) a[href^="https://lin.ee/"] {
  border-color: var(--someido-line) !important;
  background: var(--someido-line) !important;
  color: #fff !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}

body[data-someido-route="flow"] main > section:nth-of-type(6) a[href^="https://lin.ee/"]:hover {
  background: #05aa49 !important;
}

/* Other React pages keep the black identity with clear section boundaries. */
body[data-someido-route="services"] #root > div > section:nth-of-type(2) {
  background: #111614 !important;
}

body[data-someido-route="services"] #root > div > section:nth-of-type(2) > div > div:nth-child(4n+1) {
  background: var(--someido-warm) !important;
}

body[data-someido-route="services"] #root > div > section:nth-of-type(2) > div > div:nth-child(4n+2) {
  background: var(--someido-slate) !important;
}

body[data-someido-route="services"] #root > div > section:nth-of-type(2) > div > div:nth-child(4n+3) {
  background: var(--someido-green) !important;
}

@media (max-width: 1099px) {
  .someido-line-float {
    display: inline-flex;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  nav.fixed .hidden.md\:flex {
    display: none !important;
  }

  nav.fixed .md\:hidden {
    display: flex !important;
  }
}

@media (max-width: 767px) {
  .someido-email-nav,
  .someido-line-nav {
    width: 100%;
    min-height: 2.8rem;
    border-radius: 0.8rem !important;
    font-size: 0.84rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
