@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --bg: #0b0b0c;
  --bg-alt: #131315;
  --surface: #18181b;
  --fg: #f7f6f2;
  --fg-muted: #9c9a94;
  --fg-faint: #5f5d58;
  --accent: #1f8fff;
  --accent-dim: #1978d8;
  --line: rgba(247, 246, 242, 0.12);
  --line-strong: rgba(247, 246, 242, 0.22);
  --radius: 2px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "IBM Plex Sans", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.mono {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.06em;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 640px) {
  section {
    padding: 64px 0;
  }
}

/* ---------- Logo ---------- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo svg {
  width: 118px;
  height: 34px;
}
.logo-word {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  display: none;
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 12, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
nav .navlinks {
  display: flex;
  gap: 32px;
}
nav a.navlink {
  font-size: 14px;
  color: var(--fg-muted);
  transition: color 0.15s ease;
}
nav a.navlink:hover {
  color: var(--fg);
}
@media (max-width: 760px) {
  nav .navlinks {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;

.no-spin {
  appearance: textfield;
  -moz-appearance: textfield;
}

.no-spin::-webkit-outer-spin-button,
.no-spin::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
  background: transparent;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #0b0b0c;
}
.btn-primary:hover {
  background: #1978d8;
}
.btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}
.btn.is-loading {
  position: relative;
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--fg);
  background: rgba(247, 246, 242, 0.04);
}
.btn-ghost:hover {
  border-color: var(--fg-muted);
  background: rgba(247, 246, 242, 0.08);
}
.btn-ghost:disabled {
  opacity: 0.6;
  color: var(--fg-muted);
  background: rgba(247, 246, 242, 0.03);
}
.btn-sm {
  padding: 10px 18px;
  font-size: 12px;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 88px;
  padding-bottom: 88px;
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  margin-bottom: 22px;
}
.hero h1 span {
  color: var(--accent);
}
.hero p.lead {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-note {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--fg-faint);
}
.hero-diagram {
  border: 1px solid var(--line);
  background: var(--bg-alt);
  aspect-ratio: 1/0.92;
  position: relative;
}
.hero-diagram svg {
  width: 100%;
  height: 100%;
}

/* ---------- Problem section ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
@media (max-width: 900px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
}
.problem-grid h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  max-width: 420px;
}
ul.bracket-list {
  list-style: none;
}
ul.bracket-list li {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--fg);
}
ul.bracket-list li:last-child {
  border-bottom: 1px solid var(--line);
}
.bracket-mark {
  flex: none;
  width: 14px;
  height: 20px;
  margin-top: 2px;
}

/* ---------- Services ---------- */
.services-head {
  max-width: 560px;
  margin-bottom: 56px;
}
.services-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 820px) {
  .service-cards {
    grid-template-columns: 1fr;
  }
}
.service-card {
  background: var(--bg);
  padding: 36px 30px;
}
.service-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  border: 1px solid var(--line-strong);
  display: inline-block;
  padding: 4px 9px;
  border-radius: var(--radius);
  margin-bottom: 22px;
}
.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--fg-muted);
  font-size: 15px;
}

/* ---------- Process ---------- */
.process-head {
  max-width: 560px;
  margin-bottom: 56px;
}
.process-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
}
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 900px) {
  .process-list {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .process-list {
    grid-template-columns: 1fr;
  }
}
.process-item {
  padding: 28px 26px 28px 0;
  border-right: 1px solid var(--line);
}
.process-list .process-item:last-child {
  border-right: none;
}
@media (max-width: 900px) {
  .process-item:nth-child(2n) {
    border-right: none;
  }
}
@media (max-width: 560px) {
  .process-item {
    border-right: none !important;
    border-bottom: 1px solid var(--line);
  }
}
.process-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}
.process-item h3 {
  font-size: 17px;
  margin-bottom: 10px;
}
.process-item p {
  font-size: 14px;
  color: var(--fg-muted);
}

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
.why-grid h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 20px;
}
.why-grid > div:first-child p {
  color: var(--fg-muted);
  font-size: 16px;
  max-width: 440px;
}
.why-points {
  list-style: none;
}
.why-points li {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.why-points li:last-child {
  border-bottom: 1px solid var(--line);
}
.why-points .num {
  font-family: "IBM Plex Mono", monospace;
  color: var(--fg-faint);
  font-size: 13px;
  flex: none;
  padding-top: 2px;
}
.why-points h4 {
  font-size: 16px;
  margin-bottom: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
}
.why-points p {
  font-size: 14px;
  color: var(--fg-muted);
}

/* ---------- Book call ---------- */
#book-call {
  background: var(--bg-alt);
}
.book-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
}
@media (max-width: 900px) {
  .book-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
.book-copy h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 18px;
}
.book-copy p {
  color: var(--fg-muted);
  font-size: 16px;
  max-width: 420px;
  margin-bottom: 28px;
}
.book-list {
  list-style: none;
  margin-top: 32px;
}
.book-list li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--fg-muted);
  padding: 10px 0;
}
.book-list li svg {
  flex: none;
  margin-top: 3px;
}

form#call-form {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 36px;
}
@media (max-width: 480px) {
  form#call-form {
    padding: 24px;
  }
}
.field {
  margin-bottom: 22px;
}
.field label {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 10px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--fg);
  padding: 13px 14px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 15px;
  border-radius: var(--radius);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--fg-faint);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea {
  resize: vertical;
  min-height: 96px;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-faint) 50%), linear-gradient(135deg, var(--fg-faint) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 480px) {
  .row-2 {
    grid-template-columns: 1fr;
  }
}

.onboarding-form .row-2.keep-row {
  grid-template-columns: 1fr 1fr;
}
form#call-form button {
  width: 100%;
  padding: 15px;
  font-size: 13px;
}
.form-status {
  margin-top: 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  display: none;
}
.form-status.show {
  display: block;
}
.form-status.ok {
  color: var(--accent);
}

/* ---------- Footer ---------- */
footer {
  padding: 48px 0;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
footer .foot-right {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--fg-faint);
  display: flex;
  gap: 24px;
}
footer .foot-right a:hover {
  color: var(--fg-muted);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.draw-line {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw 1.6s ease forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------- Workshop booking page ---------- */
.booking-hero {
  padding-top: 48px;
  padding-bottom: 72px;
}
.booking-hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .booking-hero .wrap {
    grid-template-columns: 1fr;
  }
}
.booking-hero h1 {
  font-size: clamp(34px, 4.8vw, 56px);
  margin-bottom: 18px;
  max-width: 700px;
}
.booking-hero p.lead {
  color: var(--fg-muted);
  font-size: 17px;
  max-width: 620px;
}
.signal-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  padding: 24px;
}
.signal-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.signal-card p {
  color: var(--fg-muted);
  font-size: 14px;
  margin-bottom: 14px;
}
.signal-list {
  list-style: none;
}
.signal-list li {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--fg-faint);
  padding: 6px 0;
}

.optin-flow {
  background: var(--bg-alt);
}
.optin-shell {
  max-width: 740px;
}
.optin-shell h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  margin-bottom: 12px;
}
.optin-shell > p {
  color: var(--fg-muted);
  margin-bottom: 30px;
  max-width: 620px;
}
.optin-form {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 28px;
}
@media (max-width: 560px) {
  .optin-form {
    padding: 20px;
  }
}
.optin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}
@media (max-width: 560px) {
  .optin-row {
    grid-template-columns: 1fr;
  }
}
.optin-row .btn {
  min-height: 50px;
}
.batch-label {
  font-size: 12px;
  color: var(--fg-faint);
  margin-bottom: 18px;
}
.form-batch {
  display: grid;
  gap: 2px;
}
.batch-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}
@media (max-width: 560px) {
  .batch-actions {
    justify-content: stretch;
  }
  .batch-actions .btn {
    width: 100%;
  }
}

.vsl-section {
  border-top: 1px solid var(--line);
}
.vsl-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  max-width: 900px;
}
.vsl-shell h2 {
  font-size: clamp(28px, 3.5vw, 40px);
}
.vsl-shell p {
  color: var(--fg-muted);
}
.video-shell {
  border: 0;
  background: transparent;
  aspect-ratio: 16/9;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.video-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.video-fallback {
  color: var(--fg-faint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.vsl-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.small-note {
  color: var(--fg-faint);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

/* ---------- Onboarding page ---------- */
.onboarding-page {
  min-height: 100vh;
  background: radial-gradient(circle at top right, rgba(31, 143, 255, 0.14), transparent 40%), var(--bg);
}

.onboarding-hero {
  padding-top: 44px;
  padding-bottom: 88px;
}

.onboarding-wrap {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 34px;
  align-items: start;
}

@media (max-width: 980px) {
  .onboarding-wrap {
    grid-template-columns: 1fr;
  }
}

.onboarding-copy h1 {
  font-size: clamp(30px, 4.2vw, 52px);
  margin-bottom: 14px;
}

.onboarding-copy p.lead {
  color: var(--fg-muted);
  font-size: 16px;
  max-width: 520px;
}

.onboarding-form {
  display: grid;
  gap: 18px;
}

.onboarding-panel {
  border: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 24px;
}

@media (max-width: 560px) {
  .onboarding-panel {
    padding: 18px;
  }
}

.onboarding-panel h2 {
  font-size: 22px;
  margin-bottom: 18px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.section-head h2,
.section-head label {
  margin: 0;
}

.inline-help {
  color: var(--fg-faint);
  font-size: 12px;
  margin-bottom: 10px;
}

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

.dynamic-item {
  border: 1px solid var(--line);
  background: rgba(11, 11, 12, 0.52);
  padding: 14px;
}

.dynamic-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.field-no-gap {
  margin-bottom: 10px;
}

.row-tight {
  gap: 12px;
}

.field-whatsapp {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  padding: 11px 12px;
  min-height: 47px;
}

.radio-pill input {
  accent-color: var(--accent);
}

.child-item {
  border-left: 2px solid var(--accent);
}

.child-title {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

#onboarding-form > .btn {
  width: 100%;
  padding: 15px;
}

.is-hidden {
  display: none;
}
