/* AutoFront Client Care — care palette (green + blue), responsive */

:root {
  --green: #0e9f6e;
  --green-dark: #0a7a55;
  --green-soft: #e7f6ef;
  --blue: #0b5cab;
  --blue-dark: #08447e;
  --blue-soft: #e8f0fa;
  --ink: #0f2338;
  --ink-muted: #5b6b7c;
  --surface: #ffffff;
  --alt: #f4f8fa;
  --line: #dee7ee;
  --amber: #b45309;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(15, 35, 56, 0.08);
  --wrap: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Source Serif 4", Georgia, serif;
  line-height: 1.18;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--blue); }
img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand-mark { display: block; width: 34px; height: 34px; }
.brand-name { font-family: "Source Serif 4", Georgia, serif; font-size: 1.08rem; }
.nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--ink-muted); text-decoration: none; font-size: 0.94rem; font-weight: 500; }
.nav a:hover, .nav a:focus { color: var(--blue); }

/* buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.97rem; text-decoration: none; cursor: pointer; font-family: inherit;
}
.button.primary { background: linear-gradient(120deg, var(--green), var(--blue)); color: #fff; box-shadow: var(--shadow); }
.button.secondary { background: var(--surface); color: var(--blue); border-color: var(--line); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button.compact { padding: 9px 16px; font-size: 0.88rem; }

/* landing */
.hero { padding: 70px 0 58px; background: linear-gradient(180deg, var(--green-soft) 0%, rgba(255, 255, 255, 0) 65%); }
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 46px; align-items: center; }
.hero-media img { display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue-dark);
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.lede { font-size: 1.1rem; color: var(--ink-muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.trust-line { margin-top: 20px; font-size: 0.9rem; color: var(--ink-muted); }

.section { padding: 64px 0; }
.section.alt { background: var(--alt); }
.section-head { max-width: 46em; margin-bottom: 36px; }
.section-head p { color: var(--ink-muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px; margin-bottom: 14px;
  background: var(--green-soft); color: var(--green-dark); font-weight: 700;
}

.step { position: relative; padding-left: 54px; }
.step-number {
  position: absolute; left: 0; top: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(120deg, var(--green), var(--blue)); color: #fff; font-weight: 700;
}
.step p { color: var(--ink-muted); margin-bottom: 0; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 0.85rem; color: var(--ink-muted);
}

.report-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.report-head { padding: 20px 26px; background: linear-gradient(120deg, var(--blue-dark), var(--green-dark)); color: #fff; }
.report-head h3 { margin: 0; color: #fff; }
.report-head p { margin: 6px 0 0; font-size: 0.9rem; opacity: 0.92; }
.report-body { padding: 6px 26px 20px; }
.report-row { display: flex; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.report-row:last-child { border-bottom: 0; }
.report-who { flex: 0 0 32%; font-weight: 600; }
.report-what { flex: 1; color: var(--ink-muted); font-size: 0.95rem; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.tag.green { background: var(--green-soft); color: var(--green-dark); }
.tag.blue { background: var(--blue-soft); color: var(--blue-dark); }
.tag.amber { background: #fdf3e7; color: var(--amber); }

.video-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--blue-dark), var(--green-dark));
  color: #fff; text-align: center; padding: 26px;
}
.video-placeholder h3 { color: #fff; margin: 0; }
.video-placeholder p { margin: 0 0 10px; font-size: 0.95rem; opacity: 0.92; max-width: 36em; }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.02rem; }
.faq details p { margin: 12px 0 0; color: var(--ink-muted); }

.cta-band { background: linear-gradient(120deg, var(--green), var(--blue)); color: #fff; border-radius: var(--radius-lg); padding: 46px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.92); max-width: 42em; margin: 0 auto 22px; }
.cta-band .hero-actions { justify-content: center; margin-top: 0; }
.cta-band .button.secondary { background: #fff; border-color: #fff; color: var(--blue-dark); }
.cta-band .button.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.6); }

/* pricing */
.pricing-intro { text-align: center; max-width: 46em; margin: 0 auto 30px; }
.pricing-block { text-align: center; }
.plan-grid { text-align: left; }
.billing-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.billing-toggle { display: inline-flex; margin-bottom: 32px; }
.billing-tab {
  display: inline-block; padding: 10px 22px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  font-weight: 600; font-size: 0.92rem; color: var(--ink-muted);
}
.tab-first { border-radius: 999px 0 0 999px; }
.tab-last { border-radius: 0 999px 999px 0; border-left: 0; }
.billing-tab .save { color: var(--green-dark); font-weight: 700; }
#bill-monthly:checked ~ .billing-toggle label[for="bill-monthly"],
#bill-annual:checked ~ .billing-toggle label[for="bill-annual"] { background: var(--blue); border-color: var(--blue); color: #fff; }
#bill-annual:checked ~ .billing-toggle label[for="bill-annual"] .save { color: #fff; }
#bill-monthly:focus-visible ~ .billing-toggle label[for="bill-monthly"],
#bill-annual:focus-visible ~ .billing-toggle label[for="bill-annual"] { outline: 2px solid var(--green); outline-offset: 2px; }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.plan-grid-annual { display: none; }
#bill-annual:checked ~ .plan-grid-monthly { display: none; }
#bill-annual:checked ~ .plan-grid-annual { display: grid; }
.plan-extras { margin-top: 44px; }

.plan-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px;
}
.plan-card.featured { border-color: var(--green); box-shadow: var(--shadow); }
.plan-name { font-family: "Source Serif 4", Georgia, serif; font-size: 1.28rem; margin-bottom: 4px; }
.plan-for { color: var(--ink-muted); font-size: 0.92rem; margin-bottom: 18px; }
.price { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; }
.price small { font-size: 0.88rem; font-weight: 500; color: var(--ink-muted); }
.plan-list { list-style: none; padding: 0; margin: 18px 0 24px; }
.plan-list li { padding: 7px 0 7px 26px; position: relative; font-size: 0.94rem; color: var(--ink-muted); }
.plan-list li::before {
  content: ""; position: absolute; left: 0; top: 14px; width: 12px; height: 7px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg);
}
.plan-action { margin-top: auto; }

/* free trial band + demo video link */
.plan-feature {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--green-soft); border: 1px solid var(--green);
  border-radius: var(--radius-lg); padding: 22px 26px; margin-bottom: 34px;
}
.plan-feature h3 { margin: 0 0 4px; }
.plan-feature p { margin: 0; color: var(--ink-muted); font-size: 0.95rem; max-width: 46em; }
.plan-feature .plan-action { margin: 0; }
.video-link { display: block; }
.video-link img { display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* onboarding */
.onb-progress { display: flex; gap: 8px; margin-bottom: 8px; }
.onb-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-muted); font-size: 0.85rem; font-weight: 600;
}
.onb-step-current { background: linear-gradient(120deg, var(--green), var(--blue)); border-color: transparent; color: #fff; }
.onb-progress-label { color: var(--ink-muted); font-size: 0.86rem; margin-bottom: 20px; }
.onb-list { padding-left: 20px; margin: 0 0 1em; color: var(--ink-muted); }
.onb-list li { padding: 4px 0; }
.onb-note {
  margin-top: 18px; padding: 14px 16px; background: var(--alt);
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink-muted); font-size: 0.93rem;
}
.onb-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.onb-actions form { margin: 0; }

.plan-was { color: var(--ink-muted); font-size: 0.95rem; margin-bottom: 8px; }
.plan-was s { text-decoration: line-through; }
.plan-save { margin-bottom: 10px; }

/* app */
.app-shell { min-height: 100vh; background: var(--alt); }
.app-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.app-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.app-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.app-nav a { color: var(--ink-muted); text-decoration: none; font-weight: 500; font-size: 0.94rem; }
.app-nav a.active { color: var(--blue); font-weight: 600; }
.app-account { display: flex; align-items: center; gap: 12px; font-size: 0.87rem; color: var(--ink-muted); }
.app-account form { margin: 0; }
.app-main { padding: 34px 0 70px; }
.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: 1.85rem; margin-bottom: 6px; }
.page-head p { color: var(--ink-muted); margin: 0; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2 { font-size: 1.22rem; margin: 0; }
.panel-head p { margin: 4px 0 0; color: var(--ink-muted); font-size: 0.92rem; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-muted); }
.stat-value { font-size: 1.45rem; font-weight: 700; margin-top: 6px; }

.run-list { list-style: none; padding: 0; margin: 0; }
.run-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.run-list li:last-child { border-bottom: 0; }
.run-title { font-weight: 600; text-decoration: none; }
.run-meta { color: var(--ink-muted); font-size: 0.87rem; margin-top: 5px; }
.run-summary { color: var(--ink-muted); font-size: 0.93rem; margin-top: 6px; }

.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.status.completed { background: var(--green-soft); color: var(--green-dark); }
.status.failed { background: #fdf3e7; color: var(--amber); }
.status.running { background: var(--blue-soft); color: var(--blue-dark); }

.empty { padding: 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-muted); background: var(--surface); }
.empty p:last-child { margin-bottom: 0; }
.connection-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.connection-row:last-child { border-bottom: 0; }

.run-form { display: grid; gap: 14px; }
.run-submit { justify-self: start; }

/* footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.78); padding: 50px 0 32px; font-size: 0.92rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer .brand-name { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 4px 0; }
.footer-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.82rem; color: rgba(255, 255, 255, 0.62); }

/* responsive */
@media (max-width: 900px) {
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.6rem; }
  .hero { padding: 44px 0 40px; }
  .hero .container { grid-template-columns: 1fr; gap: 30px; }
  .grid-3, .grid-2, .plan-grid, .stat-row, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 22px; }
  .section { padding: 46px 0; }
  .report-row { flex-direction: column; gap: 4px; }
  .report-who { flex-basis: auto; }
  .cta-band { padding: 32px 22px; }
  .nav { gap: 14px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 1.75rem; }
  .site-header .container { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .hero-actions .button { width: 100%; }
  .app-header .container { flex-wrap: wrap; }
}
