/* ==========================================================================
   Ridgeline AI, homepage layout
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3.5rem, 8vw, 7rem);
  background: var(--paper);
  overflow: hidden;
}

/* Warm horizon wash plus a faint ruled grid, gives depth without a gradient cliche */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 68% at 76% -6%, rgba(176,113,58,.13), transparent 60%),
    radial-gradient(80% 50% at 6% 100%, rgba(68,84,106,.09), transparent 66%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(33,31,29,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(33,31,29,.05) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(105% 78% at 50% 0%, #000 12%, transparent 72%);
  -webkit-mask-image: radial-gradient(105% 78% at 50% 0%, #000 12%, transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
/* Grid and flex children default to min-width:auto, which lets wide
   intrinsic content (the nowrap switcher tabs) push the column past the
   viewport. Explicit min-width:0 lets them shrink and scroll instead. */
.hero-grid > * { min-width: 0; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 4.5rem; }
}

.hero-copy .pill { margin-bottom: 1.5rem; }

.hero h1 { margin-bottom: 0; }
.accent-word {
  font-style: italic;
  color: var(--copper);
  font-variation-settings: 'SOFT' 40, 'WONK' 1, 'opsz' 120;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}
@media (max-width: 419px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}

.hero-facts {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  font-size: .875rem;
  color: var(--muted);
}
.hero-facts li { display: flex; align-items: center; gap: .5rem; }
.hero-facts li::before {
  content: '';
  width: 15px; height: 15px;
  flex: none;
  border-radius: 50%;
  background: var(--copper-soft);
  border: 1px solid var(--copper-line);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 6.3l2 2 4-4.4' stroke='%23B0713A' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

/* --- Steps -------------------------------------------------------------- */
.steps {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
  padding: clamp(1.5rem, 3vw, 2rem);
  position: relative;
  background: rgba(255, 255, 255, .66);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  box-shadow: var(--shadow-lift);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.step:hover {
  transform: translateY(-3px);
  border-color: var(--copper-line);
  box-shadow: 0 2px 4px rgba(33,31,29,.05), 0 20px 40px -22px rgba(33,31,29,.34);
}
.steps { gap: 1rem; border-top: none; }
@media (min-width: 860px) {
  .steps { gap: 1.25rem; }
}

.step-n {
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--copper);
  line-height: 1;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.125rem;
  border-radius: 50%;
  border: 1px solid var(--copper-line);
  background: radial-gradient(circle at 50% 30%, rgba(176,113,58,.16), rgba(176,113,58,.05));
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 100;
  box-shadow: 0 8px 20px -14px rgba(176,113,58,.9);
}
.step h3 { margin-bottom: .625rem; }
.step p { color: var(--muted); font-size: .9375rem; }

/* --- Split (who we serve) ----------------------------------------------- */
.split { display: grid; gap: clamp(2.25rem, 5vw, 3.5rem); }
@media (min-width: 1000px) {
  .split { grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: 5rem; align-items: start; }
  .split-a { position: sticky; top: 108px; }
}

.verticals { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.verticals li {
  display: flex;
  gap: 1.125rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.verticals li:first-child { padding-top: 0; }
.verticals li:last-child { border-bottom: none; padding-bottom: 0; }

.verticals svg {
  width: 30px; height: 30px;
  flex: none;
  color: var(--copper);
  margin-top: 2px;
}
.verticals h3 { margin-bottom: .3125rem; }
.verticals p { font-size: .9375rem; color: var(--muted); margin: 0; }

.reach {
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.reach-grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 820px) {
  .reach-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}
.reach-grid > div { min-width: 0; }
.reach-grid h3 {
  font-size: 1.0625rem;
  margin-bottom: .5rem;
  padding-top: 1rem;
  border-top: 2px solid var(--copper);
  display: inline-block;
}
.reach-grid p {
  font-size: .9375rem;
  color: var(--muted);
  margin: 0;
}

/* --- Service 01, Concierge ----------------------------------------------- */
.band-night .deck { max-width: 52ch; }

.plans {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
}
@media (min-width: 900px) {
  .plans { grid-template-columns: 1.08fr 1fr; gap: 1.5rem; align-items: start; }
}
.plans-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 30rem;
}
@media (min-width: 900px) {
  .plans-single { grid-template-columns: minmax(0, 1fr); }
  .plan-lead { transform: none; }
}

.plan {
  background: var(--night-2);
  border: 1px solid var(--night-line);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
}

/* The lead plan is genuinely differentiated: copper edge, lift, and glow */
.plan-lead {
  position: relative;
  border-color: rgba(176,113,58,.55);
  background:
    radial-gradient(120% 62% at 50% 0%, rgba(176,113,58,.16), transparent 58%),
    var(--night-2);
  box-shadow: 0 30px 70px -34px rgba(0,0,0,.9), 0 0 0 1px rgba(176,113,58,.14);
}
.plan-lead::before {
  content: '';
  position: absolute;
  top: -1px; left: 8%; right: 8%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
}
@media (min-width: 900px) {
  .plan-lead { transform: translateY(-14px); padding-bottom: 2.75rem; }
}

.plan-top .pill { margin-bottom: 1.125rem; }
.pill-quiet {
  color: var(--night-muted);
  border-color: var(--night-line);
  background: rgba(247,245,242,.05);
}
.plan h3 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); margin-bottom: .4375rem; }
.plan-sub { color: var(--night-muted); font-size: .9375rem; margin: 0; }

.price {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin: 1.75rem 0 .75rem;
}
.price-now {
  font-family: var(--display);
  font-size: clamp(3.25rem, 7vw, 4.25rem);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--night-text);
  font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 144;
}
.price-now i { font-style: normal; font-size: .45em; vertical-align: super; color: var(--night-muted); margin-right: .0625rem; }
.price-per { font-size: .9375rem; color: var(--night-muted); }

.price-note {
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--night-muted);
  margin: 0 0 1.75rem;
  max-width: 40ch;
}
.price-note s { color: rgba(163,154,144,.7); }

.plan-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--night-line);
  display: grid;
  gap: .8125rem;
  font-size: .9375rem;
  color: var(--night-text);
  flex: 1;
}
.plan-list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  line-height: 1.5;
}
.plan-list li::before {
  content: '';
  width: 16px; height: 16px;
  flex: none;
  margin-top: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.6 6.3l2.2 2.2 4.6-5' stroke='%23C88A4E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.plan-foot {
  font-size: .75rem;
  color: var(--night-muted);
  text-align: center;
  margin: .875rem 0 0;
}

/* --- Service 02, Google Business Profile --------------------------------- */
/* Sits directly under the Concierge dark section. A hairline plus a slightly
   deeper tone keeps the two services from reading as one continuous block. */
#gbp {
  background: var(--night-2);
  border-top: 1px solid rgba(247,245,242,.08);
}
.gbp-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
}
@media (min-width: 980px) {
  .gbp-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 4rem; align-items: start; }
}

.gbp-copy .deck { max-width: 58ch; }

.gbp-includes {
  list-style: none;
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--night-line);
}
@media (min-width: 620px) {
  .gbp-includes { grid-template-columns: 1fr 1fr; }
}
.gbp-includes li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--night-line);
}
@media (min-width: 620px) {
  .gbp-includes li { padding: 1.5rem 1.5rem 1.5rem 0; }
  .gbp-includes li:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--night-line); }
}
.gbp-includes h3 { font-size: 1rem; margin-bottom: .375rem; color: var(--night-text); }
.gbp-includes p { font-size: .875rem; color: var(--night-muted); margin: 0; }

.gbp-card {
  background: var(--night-2);
  border: 1px solid var(--night-line);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3.5vw, 2.25rem);
  box-shadow: 0 30px 70px -34px rgba(0,0,0,.9);
}
@media (min-width: 980px) {
  .gbp-card { position: sticky; top: 108px; }
}
.gbp-card .pill { margin-bottom: 1.5rem; }
.price-gbp { margin-top: 0; }
.price-now-light { color: var(--night-text); }
.gbp-card .price-per { color: var(--night-muted); }
.gbp-card .price-note { color: var(--night-muted); }
.gbp-card .btn-ink { background: var(--copper); color: #FFF; }
.gbp-card .btn-ink:hover { background: var(--copper-deep); }
.gbp-card .plan-foot { color: var(--night-muted); }

/* --- Service 03, custom work door ----------------------------------------- */
.custom-door { text-align: center; }
.custom-door .deck { margin-inline: auto; max-width: 52ch; }
.custom-door .btn { margin-top: 2rem; }

/* --- Founder ------------------------------------------------------------ */
.founder { text-align: left; }
.pull {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.6vw, 2.375rem);
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: -.022em;
  color: var(--ink);
  margin: 0;
  padding: 0;
  border: 0;
  max-width: 22ch;
  text-wrap: balance;
  font-variation-settings: 'SOFT' 20, 'WONK' 1, 'opsz' 120;
}
@media (min-width: 760px) { .pull { max-width: 26ch; } }

.founder-meta {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
  max-width: 60ch;
}
.founder-meta p { color: var(--ink-2); }
.founder-meta strong { font-weight: 600; color: var(--ink); }

/* --- Closer ------------------------------------------------------------- */
.closer {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  overflow: hidden;
  text-align: center;
}
.closer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(72% 100% at 50% 0%, rgba(176,113,58,.14), transparent 70%);
  pointer-events: none;
}
.closer .shell { position: relative; z-index: 1; }
.closer h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
.closer .deck { margin-inline: auto; max-width: 48ch; }
.closer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-top: 2.25rem;
}
@media (max-width: 419px) {
  .closer-cta { flex-direction: column; align-items: stretch; }
  .closer-cta .btn { width: 100%; }
}
