/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --cream: #F5F0E8;
  --cream-deep: #EDE5D8;
  --card: #FBF8F3;
  --ink: #1F2A33;
  --ink-soft: #33424E;
  --ink-line: #3A4753;
  --text: #4F4A42;
  --muted: #6B6358;
  --line: #E3D9C8;
  --line-strong: #D9CDBA;
  --track: #E8DFD1;
  --bronze: #8A6A3E;
  --gold: #C8A26B;
  --on-dark: #C9C2B6;
  --on-dark-muted: #A9A296;
  --error: #A33A2B;
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--bronze); }
button, input { font: inherit; }
[hidden] { display: none !important; }

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

section[id] { scroll-margin-top: 60px; }

.page { min-height: 100vh; }
.container { max-width: 1280px; margin: 0 auto; }

/* Shared pieces */

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bronze);
}
.eyebrow--gold { color: var(--gold); }
.eyebrow--small { font-size: 12px; }

.btn {
  display: inline-block;
  cursor: pointer;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  transition: background .15s;
}
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: var(--ink-soft); color: var(--cream); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: #EAE2D4; }
.btn--cream { background: var(--cream); color: var(--ink); font-weight: 700; padding: 16px 26px; }
.btn--cream:hover { background: var(--line); color: var(--ink); }
.btn--outline-light { background: transparent; color: var(--cream); border-color: var(--cream); padding: 16px 26px; }
.btn--outline-light:hover { background: var(--ink-soft); color: var(--cream); }
.btn--small { padding: 11px 20px; font-size: 15px; }
.btn--submit { font-size: 17px; font-weight: 700; padding: 17px 30px; }
.btn--submit.is-disabled, .btn--submit.is-disabled:hover { background: var(--on-dark-muted); }

.link-btn {
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.link-btn:hover { color: var(--ink); }
.link-btn:disabled { color: #C9C0B2; cursor: default; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-title {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}
.section-title--narrow { max-width: 620px; }
.section-lead { margin: 0; font-size: 17px; line-height: 1.55; color: var(--text); max-width: 420px; }
.section-lead--center { max-width: 520px; }

.image-slot { display: block; width: 100%; height: 100%; object-fit: cover; }
.image-slot--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  background: repeating-linear-gradient(135deg, #E8DFD1 0 14px, #E3D9C8 14px 28px);
}
.image-slot--empty span { max-width: 260px; }
.developers .image-slot--empty {
  color: var(--on-dark-muted);
  background: repeating-linear-gradient(135deg, #2A3843 0 14px, #26333D 14px 28px);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: baseline; gap: 8px; }
.brand__name { font-weight: 800; font-size: 22px; letter-spacing: 0.14em; }
.brand__tag { font-weight: 500; font-size: 14px; color: var(--muted); letter-spacing: 0.04em; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }

/* Hero */

.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 32px 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 48px;
  align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.hero__title {
  margin: 0;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero__lead { margin: 0; font-size: 19px; line-height: 1.55; color: var(--text); max-width: 520px; text-wrap: pretty; }
.hero__cta { display: flex; flex-direction: column; gap: 12px; }
.hero__cta-label { font-size: 14px; font-weight: 600; color: var(--muted); }
.hero__buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  padding-top: 24px;
  margin-top: 8px;
}
.stat { display: flex; flex-direction: column; gap: 4px; padding: 0 16px; border-left: 1px solid var(--line-strong); }
.stat:first-child { padding-left: 0; border-left: none; }
.stat:last-child { padding-right: 0; }
.stat__value { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.stat__label { font-size: 14px; color: var(--muted); }

.hero__media { position: relative; height: clamp(420px, 52vw, 640px); }
.hero__badge {
  position: absolute;
  left: -20px;
  bottom: 32px;
  background: var(--card);
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 12px 32px rgba(31, 42, 51, 0.12);
}
.hero__badge-label { font-size: 13px; color: var(--muted); }
.hero__badge-value { font-size: 16px; font-weight: 700; }

/* Products */

.products { background: var(--cream-deep); padding: 88px 32px; }
.products__inner { display: flex; flex-direction: column; gap: 40px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.product-card { background: var(--card); border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 14px; }
.product-card__media { height: 200px; }
.product-card__body { padding: 0 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.product-card__name { font-size: 18px; font-weight: 700; }
.product-card__desc { font-size: 14px; line-height: 1.5; color: #5E584F; }
.product-cta {
  background: var(--ink);
  color: var(--cream);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 300px;
  transition: background .15s;
}
.product-cta:hover { background: var(--ink-soft); color: var(--cream); }
.product-cta__title { font-size: 24px; font-weight: 700; line-height: 1.2; }
.product-cta__link { font-size: 15px; font-weight: 600; color: var(--track); }

/* Developers */

.developers { background: var(--ink); color: var(--cream); padding: 96px 32px; }
.developers__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 56px;
  align-items: start;
}
.developers__copy { display: flex; flex-direction: column; gap: 28px; }
.developers__title {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
  text-wrap: balance;
}
.developers__lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--on-dark); max-width: 520px; }
.developers__media { height: 300px; margin-top: 8px; }

.b2b { display: flex; flex-direction: column; }
.b2b__point {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 28px 0;
  border-top: 1px solid var(--ink-line);
}
.b2b__n { font-family: var(--mono); font-size: 14px; color: var(--gold); padding-top: 4px; }
.b2b__text { display: flex; flex-direction: column; gap: 8px; }
.b2b__title { font-size: 21px; font-weight: 700; }
.b2b__desc { font-size: 16px; line-height: 1.6; color: var(--on-dark); }
.b2b__cta {
  border-top: 1px solid var(--ink-line);
  padding-top: 32px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.b2b__cta-note { font-size: 14px; color: var(--on-dark-muted); }

/* Talk */

.talk { width: 100%; overflow: hidden; background: var(--ink); display: flex; flex-wrap: wrap; }
.talk__media { flex: 1.5 1 560px; position: relative; min-height: clamp(420px, 46vw, 760px); }
.talk__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(31, 42, 51, 0) 70%, rgba(31, 42, 51, 0.6) 100%);
  pointer-events: none;
}
.talk__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 32% 30%; }
.talk__body { flex: 1 1 420px; display: flex; align-items: center; padding: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 64px); }
.talk__copy { max-width: 500px; display: flex; flex-direction: column; gap: 24px; color: var(--cream); }
.talk__title {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
  text-wrap: balance;
}
.talk__lead { margin: 0; font-size: 18px; line-height: 1.6; color: #D9D2C6; text-wrap: pretty; }
.talk__buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.talk__author { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--ink-line); padding-top: 20px; margin-top: 8px; }
.talk__name { font-size: 17px; font-weight: 700; }
.talk__role { font-size: 14px; color: var(--on-dark-muted); }

/* Quiz */

.quiz { padding: 96px 32px; }
.quiz__inner { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.quiz__head { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }

.quiz-card {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-shadow: 0 24px 60px rgba(31, 42, 51, 0.08);
}

.quiz-progress { display: flex; flex-direction: column; gap: 12px; }
.quiz-progress__text { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--muted); }
.quiz-progress__track { height: 6px; background: var(--track); border-radius: 999px; overflow: hidden; }
.quiz-progress__bar { height: 100%; width: 0; background: var(--ink); border-radius: 999px; transition: width .35s ease; }

.quiz-question { display: flex; flex-direction: column; gap: 24px; }
.quiz-question__head { display: flex; flex-direction: column; gap: 8px; }
.quiz-question__title {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.quiz-question__sub { font-size: 16px; color: var(--muted); }

.quiz-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.quiz-option {
  cursor: pointer;
  text-align: left;
  padding: 20px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: #FFFFFF;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 88px;
  transition: all .15s;
}
.quiz-option:hover { border-color: var(--ink); }
.quiz-option__label { font-size: 17px; font-weight: 700; }
.quiz-option__hint { font-size: 14px; color: var(--muted); }
.quiz-option.is-selected { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.quiz-option.is-selected .quiz-option__hint { color: var(--on-dark); }

.quiz-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--track);
  padding-top: 20px;
  flex-wrap: wrap;
}
.quiz-footer__estimate { font-size: 15px; color: var(--text); }
.quiz-footer__estimate span { font-weight: 700; color: var(--ink); }

.quiz-contact { display: flex; flex-direction: column; gap: 28px; }
.quiz-price {
  background: var(--ink);
  color: var(--cream);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.quiz-price__main { display: flex; flex-direction: column; gap: 6px; }
.quiz-price__label { font-size: 14px; color: var(--on-dark); }
.quiz-price__range { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.02em; }
.quiz-price__note { font-size: 14px; line-height: 1.5; color: var(--on-dark); max-width: 280px; }
.quiz-contact__title { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }

.quiz-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); }
.field input {
  font-size: 16px;
  font-weight: 400;
  padding: 15px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: #FFFFFF;
  color: var(--ink);
  outline: none;
}
.field input:focus { border-color: var(--ink); }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.quiz-channels { display: flex; flex-direction: column; gap: 10px; }
.quiz-channels__label { font-size: 14px; font-weight: 600; color: var(--text); }
.quiz-channels__list { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
}
.pill.is-selected { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.quiz-errors { font-size: 15px; font-weight: 600; color: var(--error); }
.quiz-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

.quiz-done { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.quiz-done__check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
}
.quiz-done__title { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.quiz-done__text { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text); max-width: 560px; }
.quiz-summary {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.quiz-summary__item { background: var(--card); padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.quiz-summary__key { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.quiz-summary__value { font-size: 15px; font-weight: 600; }

/* Footer */

.site-footer { border-top: 1px solid var(--line); padding: 48px 32px; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; font-size: 15px; color: var(--text); }
.site-footer__col { display: flex; flex-direction: column; gap: 8px; }
.site-footer__brand { font-weight: 800; font-size: 18px; letter-spacing: 0.14em; color: var(--ink); }
.site-footer__heading { font-weight: 700; color: var(--ink); }

/* Small screens */

@media (max-width: 860px) {
  .site-nav__link { display: none; }
}

@media (max-width: 640px) {
  .site-header__inner { padding: 14px 16px; }
  .brand__tag { display: none; }
  .hero { padding: 32px 16px 56px; gap: 32px; }
  .hero__media { height: 340px; }
  .talk__media { flex-basis: 100%; min-height: 320px; }
  .talk__body { padding: 40px 16px 56px; }
  .talk__buttons .btn { width: 100%; text-align: center; }
  .hero__badge { left: 12px; right: 12px; bottom: 12px; }
  .hero__buttons .btn { width: 100%; text-align: center; }
  .stat { padding: 0 10px; }
  .stat__value { font-size: 26px; }
  .stat__label { font-size: 13px; }
  .products, .developers, .quiz { padding: 56px 16px; }
  .site-footer { padding: 40px 16px; }
  .quiz-actions .btn--submit { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
