@import url("brand-tokens.css");

:root {
  --yb-hero-overlay: linear-gradient(
    135deg,
    rgba(4, 27, 44, 0.88),
    rgba(28, 84, 114, 0.72)
  );
  --max-width: 72rem;
  --radius: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--yb-ink);
  background: var(--yb-bg);
}

a {
  color: var(--yb-primary-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--yb-primary);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--yb-dark);
  color: var(--yb-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: inherit;
  text-decoration: none;
}

.brand-with-logo {
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  width: 120px;
  height: auto;
  max-height: 130px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-pron {
  font-size: 0.75rem;
  opacity: 0.88;
  letter-spacing: 0.06em;
}

.brand-tag {
  font-size: 0.72rem;
  opacity: 0.75;
  margin-top: 0.15rem;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}

.nav-main a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.35rem 0.25rem;
}

.nav-main a:hover {
  color: var(--yb-white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--yb-primary);
  color: var(--yb-white);
}

.btn-primary:hover {
  background: var(--yb-primary-dark);
  color: var(--yb-white);
}

.btn-outline-light {
  background: transparent;
  color: var(--yb-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
  border-color: var(--yb-white);
  color: var(--yb-white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--yb-tertiary);
  border-color: var(--yb-border);
}

.btn-outline-dark:hover {
  border-color: var(--yb-tertiary);
}

.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  color: var(--yb-white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("/images/hero.jpg") center / cover no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--yb-hero-overlay);
}

.hero-content {
  position: relative;
  padding: 3rem 0 2.5rem;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffb4ce;
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.08;
  max-width: 16ch;
  margin: 0 0 1rem;
}

.hero-lead {
  max-width: 42ch;
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.hero-sub {
  max-width: 44ch;
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.badge-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--yb-white);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-link:hover {
  background: rgba(0, 0, 0, 0.5);
  color: var(--yb-white);
}

.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--yb-white);
  border-block: 1px solid var(--yb-border);
}

.section-brand {
  background: var(--yb-bg-brand);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--yb-tertiary);
  margin: 0 0 0.5rem;
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--yb-primary-dark);
  margin: 0 0 0.35rem;
}

.section-lead {
  color: var(--yb-ink-soft);
  max-width: 52ch;
  margin: 0 0 1.75rem;
}

.two-col {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  background: var(--yb-bg);
  border: 1px solid var(--yb-border);
  border-radius: var(--radius);
}

.step-num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--yb-primary);
  color: var(--yb-white);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
  color: var(--yb-tertiary);
}

.step p {
  margin: 0;
  color: var(--yb-ink-soft);
  font-size: 0.95rem;
}

.benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.benefits li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: var(--yb-white);
  border: 1px solid var(--yb-border);
  border-radius: var(--radius);
}

.benefits li::before {
  content: "✓";
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--yb-primary-soft, rgba(221, 29, 88, 0.12));
  color: var(--yb-primary-dark);
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

:root {
  --yb-primary-soft: rgba(221, 29, 88, 0.12);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .cat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cat-card {
  display: block;
  padding: 1.1rem 0.85rem;
  text-align: center;
  background: var(--yb-white);
  border: 1px solid var(--yb-border);
  border-top: 4px solid var(--yb-primary);
  border-radius: var(--radius);
  color: var(--yb-tertiary);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  line-height: 1.35;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.cat-card:hover {
  border-top-color: var(--yb-tertiary);
  color: var(--yb-primary-dark);
  transform: translateY(-2px);
}

.testimonials {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .testimonials {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.quote-card {
  padding: 1.25rem;
  background: var(--yb-white);
  border: 1px solid var(--yb-border);
  border-radius: var(--radius);
}

.quote-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--yb-tertiary);
  color: var(--yb-white);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-card cite {
  font-style: normal;
  font-weight: 700;
  color: var(--yb-tertiary);
}

.quote-card blockquote {
  margin: 0;
  color: var(--yb-ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.download-panel {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .download-panel {
    grid-template-columns: 1fr 1fr;
  }
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.phone-mock {
  padding: 1.5rem;
  background: var(--yb-dark);
  border-radius: 1.25rem;
  color: var(--yb-white);
  text-align: center;
  border: 3px solid var(--yb-border);
}

.phone-mock p {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  opacity: 0.85;
}

.ally-banner {
  padding: 2rem;
  background: var(--yb-tertiary);
  color: var(--yb-white);
  border-radius: var(--radius);
  text-align: center;
}

.ally-banner h2 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
}

.ally-banner p {
  margin: 0 0 1.25rem;
  opacity: 0.92;
  max-width: 40ch;
  margin-inline: auto;
}

.site-footer {
  background: var(--yb-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  display: block;
  padding: 0.2rem 0;
}

.footer-grid a:hover {
  color: var(--yb-white);
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.75;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 40;
  padding: 0.5rem 0.8rem;
  background: var(--yb-white);
  color: var(--yb-dark);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 3px solid var(--yb-tertiary);
  outline-offset: 3px;
}

.site-header :focus-visible,
.hero :focus-visible {
  outline-color: var(--yb-white);
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--yb-white);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font: 700 0.9rem var(--font-body);
}

@media (max-width: 767px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-main {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-main.is-open {
    display: flex;
  }
}

.about-grid,
.flow-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .about-grid,
  .flow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.about-card,
.flow-card,
.form-card {
  background: var(--yb-white);
  border: 1px solid var(--yb-border);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.about-card h3,
.flow-card h3 {
  font-family: var(--font-display);
  color: var(--yb-tertiary);
  margin: 0 0 0.5rem;
}

.about-card p,
.flow-card p,
.flow-card li {
  color: var(--yb-ink-soft);
}

.flow-card ol {
  margin: 0 0 0.8rem;
  padding-left: 1.2rem;
}

.fine,
.footer-note {
  color: var(--yb-ink-soft);
  font-size: 0.88rem;
}

.footer-note {
  color: rgba(255, 255, 255, 0.92);
  margin: 0.5rem 0;
}

.rotator-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.rotator-bar p {
  margin: 0;
  flex: 1;
  min-width: 16rem;
  color: var(--yb-ink);
  font-weight: 600;
}

.rotator-bar button {
  background: var(--yb-white);
  color: var(--yb-tertiary);
  border: 1px solid var(--yb-border);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font: 700 0.9rem var(--font-body);
}

.quote-card.is-current {
  border-color: var(--yb-primary);
  box-shadow: inset 0 0 0 2px var(--yb-primary);
}

.form-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.field {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
}

.field label {
  font-weight: 700;
  color: var(--yb-tertiary);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--yb-border);
  border-radius: 8px;
  font: 400 1rem var(--font-body);
  color: var(--yb-ink);
  background: var(--yb-bg);
}

.form-status {
  min-height: 1.4rem;
  margin: 0.75rem 0 0;
  color: var(--yb-tertiary);
  font-weight: 600;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9.5rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: var(--yb-dark);
  color: var(--yb-white);
  text-decoration: none;
  font-weight: 700;
}

.store-btn:hover {
  color: var(--yb-white);
  background: var(--yb-tertiary);
}

.mock-link {
  color: var(--yb-white);
  font-weight: 700;
}

.footer-bottom {
  opacity: 1;
  color: rgba(255, 255, 255, 0.92);
}
