/* ============================================================
   BEARING LANE — Navy & Teal Precision Palette
   ============================================================ */

:root {
  --paper:      #2F4156; /* Client background */
  --paper-2:    #202E3F; /* Slightly darker shade for tinted sections and cards */
  --ink:        #F5EFEB; /* Client text */
  --ink-soft:   #A9B7C6; /* Softened slate for secondary text */
  --line:       rgba(245, 239, 235, 0.12); /* Subtle lines matching the text color */
  --line-soft:  rgba(245, 239, 235, 0.06);
  --blue:       #2DD4BF; /* Teal accent matches logo */
  --blue-deep:  #0D9488;
  --blue-light: #202D3D; /* Dark hover tint */
  --bone:       #F5EFEB;
  --bone-soft:  rgba(245, 239, 235, 0.65);
  --line-light: rgba(245, 239, 235, 0.15);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Theme-aware variables for custom UI elements */
  --card-glass: rgba(32, 46, 63, 0.7);
  --card-border: rgba(245, 239, 235, 0.15);
  --cal-bg: rgba(255, 255, 255, 0.03);
  --cal-border: rgba(245, 239, 235, 0.1);
  --input-bg: rgba(255, 255, 255, 0.05);
  --input-focus-bg: rgba(255, 255, 255, 0.08);
  --input-border: rgba(245, 239, 235, 0.15);
  --slot-bg: rgba(255, 255, 255, 0.04);
  --slot-border: rgba(245, 239, 235, 0.1);
  --hover-tint: rgba(255, 255, 255, 0.1);
  --results-bg: #202E3F;
  --results-border: var(--ink);
  --results-shadow: rgba(0, 0, 0, 0.2);
  --active-bg: #1A2533;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { 
  scroll-behavior: smooth; 
  scroll-padding-top: calc(var(--nav-h) + 12px); 
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 450;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Paper Grain Overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: multiply;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Typography ---------- */

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow--light { color: var(--bone-soft); }

em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 340;
  letter-spacing: 0.005em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:active { transform: scale(0.97); }

.btn__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
  transition: transform 0.35s var(--ease);
}
.btn:hover .btn__dot { transform: scale(1.7); }

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--blue); color: var(--paper); }

.btn--bone { background: var(--blue); color: var(--paper); }
.btn--bone:hover { background: var(--blue-deep); color: var(--paper); }

.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--blue); }

.btn--sm { padding: 12px 20px; font-size: 13.5px; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line-soft); }

.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand { display: inline-flex; align-items: center; }
.nav__mark { height: 60px; width: auto; object-fit: contain; }

.nav__links { display: flex; gap: 34px; }
.nav__links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--nav-h) + clamp(48px, 9vh, 110px));
}

.hero__mark {
  position: absolute;
  top: clamp(60px, 10vh, 130px);
  right: clamp(-140px, -8vw, -60px);
  width: clamp(340px, 42vw, 640px);
  opacity: 0.06;
  animation: spin 140s linear infinite;
  pointer-events: none;
  user-select: none;
  filter: brightness(0) invert(1);
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero .container { position: relative; z-index: 1; }
.hero .eyebrow { margin-bottom: clamp(24px, 4vh, 44px); }

.hero__title {
  font-family: var(--font-display);
  font-weight: 370;
  font-size: clamp(44px, 7.8vw, 110px);
  line-height: 0.99;
  letter-spacing: -0.024em;
  text-wrap: balance;
}
.hero__line { display: block; }
.hero__title em { color: var(--blue); }

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
  margin-top: clamp(40px, 7vh, 76px);
}

.hero__sub {
  max-width: 48ch;
  font-size: clamp(15.5px, 1.35vw, 17.5px);
  color: var(--ink-soft);
}

.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero__note {
  flex-basis: 100%;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.hero__rule {
  display: flex;
  gap: clamp(20px, 4vw, 56px);
  padding-block: 22px;
  margin-top: clamp(44px, 8vh, 90px);
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero__scroll { margin-left: auto; }

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  padding-block: 14px;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: ticker 36s linear infinite;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker__track i { font-style: normal; color: #2DD4BF; font-size: 11px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { 
  padding-block: clamp(88px, 13vw, 160px); 
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.section--tint { 
  background: var(--paper-2); 
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

.section__head { margin-bottom: clamp(48px, 7vw, 88px); }
.section__head .eyebrow { margin-bottom: 22px; }

.section__title {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.section__title em { color: var(--blue); }

/* ---------- Steps (Approach) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 56px);
}

.step {
  padding-top: 26px;
  border-top: 1px solid var(--ink);
}

.step__num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 320;
  font-size: clamp(48px, 5.4vw, 72px);
  line-height: 1;
  color: var(--blue);
}

.step__title {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: clamp(22px, 2.2vw, 26px);
  letter-spacing: -0.01em;
  margin: 20px 0 12px;
}

.step__body { font-size: 15px; color: var(--ink-soft); max-width: 34ch; }

/* ---------- Services ---------- */

.services { border-top: 1px solid var(--line); }

.service {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: start;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(26px, 3.4vw, 40px) clamp(8px, 1.6vw, 20px);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background-color 0.4s var(--ease), padding-left 0.4s var(--ease);
}
.service:hover {
  background: var(--blue-light);
  padding-left: clamp(16px, 2.4vw, 32px);
}
.service::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: -1px;
  width: 3px;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.service:hover::after { transform: scaleY(1); }

.service__title, .service__body, .service__num, .service__tag {
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.service:hover .service__title { color: var(--blue); }
.service:hover .service__body { color: var(--ink); }
.service:hover .service__num { color: #5EEAD4; }
.service:hover .service__tag { color: var(--ink); border-color: var(--blue); }

.service__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 340;
  font-size: 15px;
  color: var(--blue);
  padding-top: 6px;
}

.service__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.014em;
  line-height: 1.15;
}

.service__body {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 58ch;
}

.service__tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  margin-top: 8px;
  white-space: nowrap;
}

/* ---------- Estimator Section ---------- */

.estimator__wrapper {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.estimator__group {
  margin-bottom: 40px;
}
.estimator__group-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 6px;
}
.estimator__group-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.estimator__options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.estimator__card {
  display: block;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  position: relative;
}
.estimator__card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.estimator__card.active {
  background: var(--active-bg);
  border-color: var(--blue);
  box-shadow: 0 10px 30px rgba(45, 212, 191, 0.08);
}

.estimator__card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.estimator__card-icon {
  font-size: 20px;
}
.estimator__card-label {
  font-size: 16px;
  font-weight: 600;
}
.estimator__card-text {
  font-size: 14px;
  color: var(--ink-soft);
  padding-left: 32px;
}

.estimator__tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.estimator__tab {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 16px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 6px;
  font-family: var(--font-body);
  transition: all 0.3s var(--ease);
}
.estimator__tab:hover {
  border-color: var(--ink);
}
.estimator__tab.active {
  background: var(--active-bg);
  border-color: var(--blue);
  box-shadow: 0 10px 24px rgba(45, 212, 191, 0.06);
}
.estimator__tab strong {
  font-size: 14px;
  color: var(--ink);
}
.estimator__tab span {
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.3;
}

.estimator__results {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  background: var(--results-bg);
  border: 1px solid var(--results-border);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 20px 50px var(--results-shadow);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.estimator__results-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.estimator__metric {
  margin-bottom: 24px;
}
.estimator__metric-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.estimator__price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: var(--blue);
}
.estimator__duration {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
}

.estimator__deliverables {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-bottom: 30px;
}
.estimator__deliverables-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.estimator__deliverables-list li {
  font-size: 13.5px;
  color: var(--ink-soft);
  position: relative;
  padding-left: 18px;
}
.estimator__deliverables-list li::before {
  content: "✳";
  color: var(--blue);
  position: absolute;
  left: 0;
  font-size: 10px;
  top: 1px;
}

.estimator__disclaimer {
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 14px;
  text-align: center;
}

/* ---------- About & Story ---------- */

.about__story {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  margin-bottom: clamp(64px, 8vw, 104px);
}

.about__lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.35;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

.about__body {
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 56ch;
  align-self: center;
}

.founders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}

.founder {
  padding-top: 26px;
  border-top: 1px solid var(--ink);
}

.founder__monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 360;
  font-size: 25px;
  letter-spacing: 0.03em;
  margin-bottom: 22px;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
              border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.founder:hover .founder__monogram {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--bone);
  transform: rotate(-8deg);
}

.founder__name {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: clamp(21px, 2vw, 25px);
  letter-spacing: -0.01em;
}

.founder__role {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 8px 0 14px;
}

.founder__bio {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------- FAQ Section ---------- */

.faq__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  max-width: 880px;
  margin-inline: auto;
}

.faq__item {
  border-bottom: 1px solid var(--line);
  padding-block: 20px;
}

.faq__question {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 400;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none; /* remove default arrow */
}
.faq__question::-webkit-details-marker {
  display: none; /* remove safari default arrow */
}

.faq__icon {
  width: 16px; height: 16px;
  position: relative;
  display: inline-block;
  margin-left: 16px;
  transition: transform 0.4s var(--ease);
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.4s var(--ease);
}
/* Horizontal line */
.faq__icon::before {
  top: 7px; left: 0; right: 0; height: 2px;
}
/* Vertical line */
.faq__icon::after {
  top: 0; bottom: 0; left: 7px; width: 2px;
}

details[open] .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  padding-top: 14px;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 72ch;
  line-height: 1.6;
}

/* ---------- Contact & Scheduler Section ---------- */

.cta {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  color: var(--ink);
  padding: clamp(100px, 14vw, 180px) 0 clamp(100px, 15vw, 200px);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 78% 0%, rgba(45, 212, 191, 0.25), transparent 65%),
    radial-gradient(60% 50% at 8% 100%, rgba(13, 148, 136, 0.2), transparent 70%);
  pointer-events: none;
}

.cta .container { position: relative; z-index: 1; }
.cta .eyebrow { color: color-mix(in srgb, var(--bone) 55%, var(--blue)); margin-bottom: 26px; }

.cta__title {
  font-family: var(--font-display);
  font-weight: 360;
  font-size: clamp(36px, 5.6vw, 74px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.cta__title em { color: color-mix(in srgb, var(--bone) 40%, #2DD4BF); }

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: clamp(36px, 5vw, 56px);
}
.cta__note { font-size: 13px; letter-spacing: 0.03em; color: var(--bone-soft); }

.cta__alt {
  margin-top: 48px;
  font-size: 14.5px;
  color: var(--bone-soft);
  text-align: center;
}
.cta__alt a {
  color: var(--bone);
  border-bottom: 1px solid var(--line-light);
  transition: border-color 0.3s var(--ease);
}
.cta__alt a:hover { border-bottom-color: var(--bone); }

.cta__word {
  position: absolute;
  left: 50%;
  bottom: clamp(-40px, -3vw, -14px);
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(120px, 21vw, 330px);
  letter-spacing: 0.06em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 237, 242, 0.14);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

/* Scheduler UI */
.scheduler__wrapper {
  background: var(--card-glass);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 48px);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-top: 36px;
  position: relative;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.scheduler__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

/* Scheduler inputs */
.scheduler__inputs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.input__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.input__group label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-soft);
}
.input__group input, .input__group textarea {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--bone);
  border-radius: 8px;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 15px;
  transition: all 0.3s var(--ease);
}
.input__group input:focus, .input__group textarea:focus {
  outline: none;
  border-color: #2DD4BF;
  background: var(--input-focus-bg);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

.input__group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact__submit {
  background: rgba(45, 212, 191, 0.2);
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 13.5px;
}

.scheduler__badge {
  display: none; /* Shown dynamically when active */
  align-items: center;
  justify-content: space-between;
  background: rgba(45, 212, 191, 0.2);
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 13.5px;
}
.scheduler__badge button {
  background: none;
  border: none;
  color: var(--bone);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.scheduler__calendar-section label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-soft);
  margin-bottom: 12px;
}

/* Calendar Element */
.calendar {
  background: var(--cal-bg);
  border: 1px solid var(--cal-border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.calendar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.calendar__btn {
  background: none;
  border: none;
  color: var(--bone);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 4px;
  transition: background-color 0.25s var(--ease);
}
.calendar__btn:hover {
  background: var(--hover-tint);
}
.calendar__month {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
}
.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(232, 237, 242, 0.4);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s var(--ease);
  color: var(--bone);
  border: none;
  background: none;
}
.calendar__day:hover:not(.calendar__day--disabled):not(.calendar__day--active) {
  background: var(--hover-tint);
}
.calendar__day--disabled {
  opacity: 0.2;
  cursor: not-allowed;
}
.calendar__day--active {
  background: var(--blue);
  color: var(--paper);
  font-weight: 700;
}

/* Time Slots */
.slots__section label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-soft);
  margin-bottom: 12px;
}
.slots__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  min-height: 86px;
}
.slot__empty-msg {
  grid-column: 1 / -1;
  font-size: 13.5px;
  color: rgba(232, 237, 242, 0.4);
  text-align: center;
  padding-block: 28px;
  border: 1px dashed var(--slot-border);
  border-radius: 8px;
}
.slot__btn {
  background: var(--slot-bg);
  border: 1px solid var(--slot-border);
  color: var(--bone);
  padding: 12px 6px;
  font-size: 13.5px;
  font-family: var(--font-body);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.slot__btn:hover:not(.slot__btn--active) {
  border-color: var(--bone);
  background: var(--hover-tint);
}
.slot__btn--active {
  background: #2DD4BF;
  border-color: #2DD4BF;
  color: var(--paper);
  font-weight: 600;
}
.slot__btn--disabled {
  background: rgba(255, 255, 255, 0.01) !important;
  border-color: rgba(232, 237, 242, 0.05) !important;
  color: rgba(232, 237, 242, 0.2) !important;
  cursor: not-allowed !important;
  text-decoration: line-through;
  pointer-events: none;
}

.scheduler__footer {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(232, 237, 242, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Success View */
.scheduler__success {
  text-align: center;
  padding: clamp(24px, 4vw, 48px) 0;
  max-width: 600px;
  margin-inline: auto;
  animation: fadeIn 0.5s var(--ease);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.success__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #2DD4BF;
  color: var(--ink);
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-weight: bold;
}
.success__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 12px;
}
.success__lead {
  font-size: 15.5px;
  color: var(--bone-soft);
  margin-bottom: 36px;
}
.success__receipt {
  background: var(--cal-bg);
  border: 1px solid var(--cal-border);
  border-radius: 12px;
  padding: 24px;
  text-align: left;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.receipt__row {
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 10px;
}
.receipt__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.receipt__row span {
  color: var(--bone-soft);
}
.receipt__row strong {
  color: var(--bone);
}

.success__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn--bone-color {
  border-color: rgba(232, 237, 242, 0.3) !important;
  color: var(--bone) !important;
}
.btn--bone-color:hover {
  border-color: var(--bone) !important;
}

/* ---------- Footer ---------- */

.footer { padding-top: clamp(64px, 9vw, 110px); }

.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.footer__mark { height: 50px; width: auto; margin-bottom: 20px; object-fit: contain; }
.footer__brand p { font-size: 14.5px; color: var(--ink-soft); }

.footer__col h4 {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.footer__col a, .footer__col p {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 10px;
  width: fit-content;
}
.footer__col a { border-bottom: 1px solid transparent; transition: border-color 0.25s var(--ease); }
.footer__col a:hover { border-bottom-color: var(--ink); }

.footer__base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 26px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.footer__base span:last-child { font-family: var(--font-display); font-style: italic; }

/* ---------- Reveal Animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker__track, .hero__mark { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .estimator__wrapper {
    grid-template-columns: 1fr;
  }
  .estimator__results {
    position: static;
    margin-top: 20px;
  }
  .scheduler__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .steps, .founders { grid-template-columns: 1fr; gap: 36px; }
  .about__story { grid-template-columns: 1fr; }
  .step__body { max-width: 60ch; }
  .service { grid-template-columns: 44px 1fr; }
  .service__tag { grid-column: 2; justify-self: start; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .hero__rule span:nth-child(2), .hero__rule span:nth-child(3) { display: none; }
}

@media (max-width: 580px) {
  .estimator__tabs {
    grid-template-columns: 1fr;
  }
  .slots__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .hero__cta .btn { width: 100%; justify-content: center; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* Logo visibility adjustments on dark-slate background */
.nav__mark,
.footer__mark {
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.2)) brightness(1.2);
}
