:root {
  --bg: #050706;
  --panel: #0d1110;
  --panel-2: #121817;
  --panel-3: #18201e;
  --text: #f7fbf8;
  --muted: #9aa7a1;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #39ff88;
  --accent-soft: rgba(57, 255, 136, 0.14);
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(57, 255, 136, 0.15), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(57, 255, 136, 0.08), transparent 22rem),
    linear-gradient(180deg, #050706 0%, #09100e 48%, #050706 100%);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(180deg, black, transparent 72%);
  pointer-events: none;
  position: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(5, 7, 6, 0.82);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 18px clamp(18px, 5vw, 72px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand,
.header-cta,
.button,
.feature,
.mini-card,
.legal-back {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.brand {
  align-items: center;
  display: flex;
  font-weight: 900;
  gap: 10px;
}

.brand-mark {
  align-items: center;
  background: var(--accent);
  border-radius: 12px;
  color: #041008;
  display: inline-flex;
  font-weight: 950;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a:hover,
.footer a:hover,
.contact-links a:hover {
  color: var(--accent);
}

.header-cta {
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 800;
  padding: 10px 16px;
}

.section {
  margin: 0 auto;
  max-width: 1160px;
  padding: 82px clamp(18px, 5vw, 72px);
  position: relative;
  width: 100%;
}

.hero {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  min-height: 760px;
  padding-top: 96px;
}

.hero > *,
.split > *,
.waitlist > *,
.contact > * {
  min-width: 0;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  line-height: 0.92;
  margin-bottom: 24px;
  max-width: min(820px, 100%);
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.hero-text,
.section-copy,
.waitlist-copy p,
.proof p {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
  max-width: 100%;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 20px;
}

.button {
  align-items: center;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
}

.button.primary {
  background: var(--accent);
  color: #041008;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  color: var(--text);
}

.button.full {
  width: 100%;
}

.button:hover,
.brand:hover,
.header-cta:hover,
.feature:hover,
.mini-card:hover,
.legal-back:hover {
  transform: translateY(-2px);
}

.trust-line {
  color: var(--muted);
  max-width: 680px;
}

.hero-card {
  display: flex;
  justify-content: center;
}

.phone-frame {
  background: linear-gradient(180deg, rgba(18, 24, 23, 0.96), rgba(8, 10, 10, 0.96));
  border: 1px solid var(--line);
  border-radius: 38px;
  box-shadow: var(--shadow), 0 0 70px rgba(57, 255, 136, 0.12);
  max-width: 390px;
  padding: 22px;
  width: 100%;
}

.phone-top,
.barber-preview,
.booking-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.phone-top {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 26px;
}

.phone-top strong,
.rating,
.total strong {
  color: var(--accent);
}

.barber-preview {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  gap: 14px;
  justify-content: flex-start;
  padding: 16px;
}

.avatar {
  align-items: center;
  background: var(--accent);
  border-radius: 18px;
  color: #041008;
  display: flex;
  flex: 0 0 auto;
  font-weight: 950;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.barber-preview h2 {
  font-size: 1.15rem;
  margin: 0 0 4px;
}

.barber-preview p,
.booking-row span,
.card p,
.form-note,
.legal-card p,
.legal-card li {
  color: var(--muted);
}

.rating {
  margin-left: auto;
  font-weight: 900;
}

.route-line {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.route-line span {
  background: linear-gradient(90deg, var(--accent), rgba(57, 255, 136, 0.05));
  border-radius: 999px;
  display: block;
  height: 8px;
}

.route-line span:nth-child(2) {
  width: 76%;
}

.route-line span:nth-child(3) {
  width: 54%;
}

.booking-row {
  border-top: 1px solid var(--line);
  padding: 16px 2px;
}

.proof {
  padding-bottom: 28px;
  padding-top: 28px;
}

.proof p {
  background: var(--accent-soft);
  border: 1px solid rgba(57, 255, 136, 0.28);
  border-radius: 24px;
  margin: 0;
  padding: 24px;
}

.section-heading {
  margin-bottom: 28px;
  max-width: 780px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

.grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card,
.mini-card,
.waitlist-form,
.legal-card {
  background: rgba(18, 24, 23, 0.78);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.card {
  min-height: 240px;
  padding: 24px;
}

.step {
  color: var(--accent);
  display: block;
  font-weight: 950;
  margin-bottom: 42px;
}

.split,
.waitlist,
.contact {
  align-items: center;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
}

.reverse {
  direction: rtl;
}

.reverse > * {
  direction: ltr;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  font-weight: 850;
  gap: 12px;
  padding: 18px;
}

.feature span {
  background: var(--accent);
  border-radius: 999px;
  height: 10px;
  width: 10px;
}

.mini-card {
  align-items: center;
  color: var(--text);
  display: flex;
  font-weight: 900;
  min-height: 120px;
  padding: 20px;
}

.waitlist {
  align-items: start;
}

.waitlist-form {
  display: grid;
  gap: 14px;
  padding: 24px;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

input,
select {
  background: #090d0c;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  min-height: 52px;
  outline: none;
  padding: 0 14px;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.form-note.success {
  color: var(--accent);
}

.form-note.error {
  color: #ff9b9b;
}

.hidden-field {
  display: none;
}

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

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--accent);
  font-weight: 900;
  padding: 18px;
}

.footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  padding: 28px clamp(18px, 5vw, 72px);
}

.footer span {
  color: var(--text);
  font-weight: 900;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.stripe-return-shell {
  align-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(55, 255, 123, 0.16), transparent 34%),
    linear-gradient(135deg, #030503 0%, #101512 100%);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 28px;
}

.stripe-return-card {
  background: rgba(14, 18, 16, 0.92);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  max-width: 760px;
  padding: clamp(28px, 7vw, 64px);
}

.stripe-return-card h1 {
  max-width: 720px;
}

.stripe-return-card p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.stripe-return-note {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

.legal-page {
  min-height: 100vh;
  padding: 42px clamp(18px, 5vw, 72px);
}

.legal-shell {
  margin: 0 auto;
  max-width: 860px;
}

.legal-back {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  font-weight: 900;
  margin-bottom: 32px;
  padding: 10px 16px;
}

.legal-card {
  padding: clamp(24px, 5vw, 52px);
}

.legal-card h1 {
  font-size: clamp(2.4rem, 7vw, 4.8rem);
}

.legal-card ul {
  padding-left: 20px;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero,
  .split,
  .waitlist,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .grid.four,
  .grid.five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 12px;
  }

  .header-cta {
    display: none;
  }

  .section {
    padding-bottom: 56px;
    padding-left: 22px;
    padding-right: 22px;
    padding-top: 56px;
    max-width: 100vw;
    overflow: hidden;
  }

  .hero {
    display: block;
    max-width: calc(100vw - 44px);
    padding-top: 58px;
    width: calc(100vw - 44px);
  }

  .hero-card {
    margin-top: 48px;
  }

  h1 {
    font-size: clamp(2.7rem, 12vw, 3.35rem);
    line-height: 0.98;
    max-width: calc(100vw - 44px);
  }

  .hero-text,
  .section-copy,
  .waitlist-copy p,
  .proof p {
    font-size: 1.02rem;
  }

  .hero-text,
  .trust-line {
    max-width: calc(100vw - 44px);
    overflow-wrap: anywhere;
  }

  .cta-row,
  .button {
    max-width: calc(100vw - 44px);
    width: 100%;
  }

  .button {
    min-width: 0;
    padding-left: 18px;
    padding-right: 18px;
  }

  .phone-frame {
    border-radius: 28px;
    padding: 18px;
  }

  .phone-top,
  .barber-preview,
  .booking-row {
    min-width: 0;
  }

  .rating {
    margin-left: 6px;
  }

  .grid.four,
  .grid.five {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: auto;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
