/* ==========================================================================
   YardMaster — one-page presentation site
   ========================================================================== */

:root {
  --ink: #0b1f33;
  --ink-2: #3a4d61;
  --muted: #5d6f81;
  --bg: #ffffff;
  --soft: #f3f7fb;
  --line: #dde7f0;
  --brand: #0b5cab;
  --brand-dark: #084a8c;
  --brand-soft: #e8f1fa;
  --amber: #f59e0b;
  --green: #12805c;
  --red: #bf4239;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 60px -32px rgba(11, 31, 51, 0.4);
  --wrap: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.45rem); }
h3 { font-size: 1.15rem; margin-bottom: 0.5em; }

p { margin: 0 0 1em; }

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

section {
  scroll-margin-top: 84px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- Layout helpers ---------- */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow {
  max-width: 800px;
}

.section {
  padding: clamp(64px, 8vw, 108px) 0;
}

.section-soft {
  background: var(--soft);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.section-head h2 {
  margin-bottom: 0.4em;
}

.section-sub {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 0.9em;
}

.eyebrow-light {
  color: #8fc2f0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: #b9cbdd;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.92rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang-switch:hover {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
}

.site-nav a {
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--brand);
  text-decoration: none;
}

.site-nav .btn {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform: translateX(-50%);
  content: "";
}

.nav-toggle span {
  top: 50%;
  margin-top: -1px;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

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

.hero {
  background:
    radial-gradient(1100px 520px at 88% -10%, #e4effa 0%, rgba(228, 239, 250, 0) 62%),
    linear-gradient(180deg, #f7fafd 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(56px, 7vw, 104px) 24px;
}

.hero-copy h1 {
  max-width: 15ch;
}

.lead {
  color: var(--ink-2);
  font-size: 1.12rem;
  max-width: 56ch;
}

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

.hero-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Screenshot frames ---------- */

.shot-frame {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.shot-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: #eef3f8;
  border-bottom: 1px solid var(--line);
}

.shot-chrome i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c6d5e4;
}

.shot-chrome i:first-child { background: #e8a9a4; }
.shot-chrome i:nth-child(2) { background: #ecd39a; }
.shot-chrome i:nth-child(3) { background: #a8d8bf; }

.shot {
  width: 100%;
  height: auto;
}

/* ---------- Compare ---------- */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.compare-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  background: #fff;
}

.compare-card-after {
  background: var(--brand-soft);
  border-color: #bcd6ee;
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-2);
}

.mark {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 2px;
}

.mark.no {
  background: #fbe9e7;
  color: var(--red);
}

.mark.yes {
  background: #dcf2e8;
  color: var(--green);
}

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.feature:hover {
  box-shadow: 0 18px 40px -26px rgba(11, 31, 51, 0.45);
  transform: translateY(-2px);
}

.feature h3 {
  margin-bottom: 0.4em;
}

.feature p {
  color: var(--muted);
  margin: 0;
  font-size: 0.97rem;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.pill-row {
  list-style: none;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.pill-row li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: var(--ink-2);
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.steps li {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 8px;
}

.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  margin: 0 auto 16px;
  border: 4px solid var(--bg);
}

.steps h3 {
  margin-bottom: 0.35em;
}

.steps p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.steps-note {
  text-align: center;
  font-weight: 600;
  color: var(--ink-2);
  margin: clamp(36px, 5vw, 52px) 0 0;
}

/* ---------- Showcase ---------- */

.showcase {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.showcase + .showcase {
  margin-top: clamp(48px, 7vw, 88px);
}

.showcase-reverse .shot-frame {
  order: 2;
}

.showcase-copy h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
}

.showcase-copy p {
  color: var(--muted);
  margin: 0;
}

/* ---------- Reports ---------- */

.report-block {
  margin-top: clamp(48px, 7vw, 88px);
}

.report-head {
  max-width: 720px;
  margin: 0 auto clamp(28px, 4vw, 44px);
  text-align: center;
}

.report-head h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
}

.report-head p {
  color: var(--muted);
  margin: 0;
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.shot-frame figcaption {
  padding: 14px 18px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ---------- Integrations ---------- */

.integration-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #0b1f33 0%, #0b5cab 100%);
  color: #fff;
}

.integration-card h2 {
  color: #fff;
  margin-bottom: 0.4em;
}

.integration-card p {
  color: #cfe0f2;
  margin: 0;
  max-width: 62ch;
}

.integration-card .btn-primary {
  background: #fff;
  color: var(--brand-dark);
  flex: none;
}

.integration-card .btn-primary:hover {
  background: #eaf2fb;
}

/* ---------- Pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  display: flex;
  flex-direction: column;
}

.price-card h3 {
  font-size: 1.2rem;
}

.price-card-featured {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow);
}

.price-badge {
  position: absolute;
  top: -14px;
  left: clamp(28px, 4vw, 40px);
  background: var(--amber);
  color: #4a2c00;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 999px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 4px 0 12px;
}

.price-amount {
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-amount-custom {
  font-size: clamp(1.7rem, 3vw, 2.1rem);
}

.price-period {
  color: var(--muted);
  font-weight: 600;
}

.price-note {
  color: var(--muted);
  font-size: 0.96rem;
  flex: 1;
}

.price-card .btn {
  margin-top: 12px;
}

.pricing-fineprint {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 24px 0 0;
}

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

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

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 24px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 18px 28px 18px 0;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  color: var(--muted);
  margin: 0 0 20px;
}

/* ---------- Contact ---------- */

.section-dark {
  background: var(--ink);
  color: #fff;
}

.contact {
  padding: clamp(64px, 8vw, 108px) 0;
}

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

.contact-copy h2 {
  color: #fff;
}

.contact-copy p {
  color: #c3d3e2;
  max-width: 48ch;
}

.contact-links {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.contact-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8fa8bf;
  margin-bottom: 2px;
}

.contact-links a {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
}

.contact-form {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 36px);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.8);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c9d8e6;
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 92, 171, 0.15);
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--red);
}

.form-note {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 12px 0 0;
  text-align: center;
}

/* Honeypot: hidden from people, tempting to bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  color: var(--green);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 10px 0 0;
  text-align: center;
  min-height: 1.2em;
}

.form-status.is-error {
  color: var(--red);
}

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

.site-footer {
  background: #081826;
  color: #a8bccd;
  padding: 48px 0;
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  max-width: 280px;
}

.brand-light {
  color: #fff;
}

.footer-brand p {
  margin: 8px 0 0;
  color: #8fa8bf;
  font-size: 0.88rem;
}

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

.footer-nav a {
  color: #c3d3e2;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-legal {
  margin: 0;
  color: #8fa8bf;
  font-size: 0.85rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1040px) {
  .hero-inner,
  .showcase,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .showcase-reverse .shot-frame {
    order: 0;
  }

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

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

  .steps::before {
    display: none;
  }

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

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

  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    box-shadow: 0 24px 40px -30px rgba(11, 31, 51, 0.5);
  }

  .nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .btn {
    margin-top: 16px;
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .compare,
  .price-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .steps li {
    text-align: left;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0 16px;
    align-items: start;
  }

  .step-num {
    margin: 0;
    grid-row: 1 / span 2;
  }

  .steps h3 {
    margin-bottom: 0.2em;
  }

  .cta-row .btn {
    width: 100%;
  }
}

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

  .btn:hover,
  .feature:hover {
    transform: none;
  }
}
