/* =========================================================
   FIXIT SHARED DESIGN TOKENS
========================================================= */

:root {
  --green: #0c594b;
  --green-dark: #083d34;
  --green-deep: #062f29;
  --green-soft: #e8f3f0;
  --orange: #f19a3a;

  --background: #f3f6f7;
  --white: #ffffff;
  --ink: #17232e;
  --muted: #687680;
  --line: #d9e1e4;

  --radius-small: 10px;
  --radius-medium: 16px;
  --radius-large: 24px;

  --shadow-small: 0 8px 24px rgba(20, 37, 54, 0.07);
  --shadow-large: 0 20px 60px rgba(20, 37, 54, 0.12);
}


/* =========================================================
   BASE
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body.dialog-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}


/* =========================================================
   SHARED BRAND AND BUTTONS
========================================================= */

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.gear-logo {
  display: grid;
  place-items: center;
  min-width: 46px;
  height: 42px;
  color: var(--ink);
  font-size: 23px;
  letter-spacing: -7px;
  transform: translateX(-3px);
}

.brand-text {
  display: grid;
}

.brand-text strong {
  font-size: 19px;
  letter-spacing: 0.13em;
}

.brand-text small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 12px 19px;
  border: 0;
  border-radius: var(--radius-small);
  background: var(--green);
  color: var(--white);
  font-weight: 800;
}

.button:hover {
  background: var(--green-dark);
}

.button-small {
  min-height: 38px;
  padding: 9px 14px;
  font-size: 13px;
}

.button-accent {
  background: var(--orange);
  color: #17352e;
}

.button-accent:hover {
  background: #ffa748;
}


/* =========================================================
   PUBLIC WEBSITE HEADER
========================================================= */

.public-page {
  background: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;

  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 72px;
  padding: 0 max(5vw, 22px);

  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 23px;

  font-size: 13px;
  font-weight: 750;
}

.site-header nav > a:not(.button):hover {
  color: var(--green);
}

.menu-button {
  display: none;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 24px;
}


/* =========================================================
   APP-LIKE ERROR SEARCH
========================================================= */

.error-hero {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 72px);
  padding: 48px 20px 80px;
  background:
    radial-gradient(circle at top, #f9fbfb 0, #ffffff 48%),
    var(--white);
}

.error-app {
  position: relative;
  width: min(560px, 100%);
  min-height: 610px;
  padding: 70px 28px 44px;
  text-align: center;
}

.info-button {
  position: absolute;
  top: 3px;
  left: 3px;

  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  border: 0;
  background: transparent;
  color: #111;
  font-size: 23px;
}

.fixit-logo {
  margin: 0 auto 17px;
}

.fixit-gears {
  height: 50px;
  font-size: 55px;
  line-height: 1;
  letter-spacing: -16px;
  transform: translateX(-8px);
}

.fixit-word {
  margin-top: 7px;
  font-size: 39px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.16em;
}

.error-app h1 {
  margin: 11px 0 4px;
  color: #454545;
  font-size: clamp(16px, 3vw, 19px);
  font-weight: 850;
}

.error-count {
  margin: 0 0 7px;
  color: #767676;
  font-size: 16px;
  font-weight: 650;
}

.error-search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 7px;
}

.error-search-form input {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  border: 1.5px solid #333;
  border-radius: 6px;
  outline: none;
}

.error-search-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(12, 89, 75, 0.12);
}

.search-button {
  min-width: 90px;
  border: 0;
  border-radius: 6px;
  background: #202e29;
  color: var(--white);
  font-weight: 800;
}

.search-button:hover {
  background: var(--green);
}

.search-examples {
  margin: 8px 0 24px;
  color: #333;
  font-size: 10px;
}

.popular-errors h2 {
  margin: 0 0 8px;
  color: #555;
  font-size: 14px;
  font-weight: 650;
}

#popularErrorList {
  display: grid;
  gap: 2px;
  max-width: 360px;
  margin: 0 auto;
}

.popular-error {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  padding: 11px 13px;

  border: 0;
  background: transparent;
  color: #111;

  font-size: 11px;
  text-align: left;
}

.popular-error:hover {
  border-radius: 8px;
  background: #f0f3f2;
}

.popular-error span:last-child {
  font-size: 18px;
}

.search-message {
  max-width: 420px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.search-message.warning {
  color: #86570f;
}

.search-message.error {
  color: #a2363e;
}

.search-message.loading {
  color: var(--green);
}

.match-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  text-align: left;
}

.match-button {
  display: grid;
  gap: 3px;
  padding: 12px 14px;

  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);

  color: var(--ink);
  text-align: left;
}

.match-button:hover {
  border-color: var(--green);
  background: var(--green-soft);
}

.match-button span {
  color: var(--muted);
  font-size: 12px;
}


/* =========================================================
   ERROR RESULT
========================================================= */

.error-result-section {
  scroll-margin-top: 88px;
  padding: 25px 20px 85px;
  background: #eef2f2;
}

.error-result-card {
  width: min(760px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #cbd2d4;
  background: var(--white);
  box-shadow: var(--shadow-large);
}

.error-result-top,
.error-result-solution {
  min-height: 190px;
  padding: 30px;
}

.error-result-top {
  display: grid;
  gap: 22px;
}

.error-field h3,
.error-result-solution h3 {
  margin: 0 0 4px;
  color: #111;
  font-size: 16px;
}

.error-field p,
.error-result-solution p {
  margin: 0;
  color: #454545;
  font-size: 16px;
  line-height: 1.55;
  white-space: pre-line;
}

.error-result-solution {
  border-top: 2px solid #bfc4c6;
  background: #e3e3e3;
}

.error-result-actions {
  display: flex;
  justify-content: center;
  padding: 17px 20px 22px;
  background: var(--white);
}

.close-result-button {
  min-width: 210px;
  min-height: 42px;
  border: 0;
  border-radius: 5px;
  background: #202e29;
  color: var(--white);
  font-weight: 850;
}

.close-result-button:hover {
  background: var(--green);
}


/* =========================================================
   PUBLIC CONTENT SECTIONS
========================================================= */

.content-section {
  padding: 90px max(6vw, 24px);
  background: var(--white);
}

.content-section-soft {
  background: #edf4f2;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-label {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.section-heading h2 {
  margin: 10px 0 13px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
}

.feature-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--white);
  box-shadow: var(--shadow-small);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 23px;
  font-weight: 900;
}

.feature-grid h3 {
  margin: 17px 0 8px;
  font-size: 20px;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.section-action {
  margin-top: 36px;
  text-align: center;
}

.bottom-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  padding: 58px max(6vw, 24px);
  background: var(--green-dark);
  color: var(--white);
}

.bottom-callout span {
  color: #b8dbd1;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.bottom-callout h2 {
  max-width: 810px;
  margin: 8px 0 0;
  font-size: clamp(27px, 3.4vw, 40px);
}

.public-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;

  padding: 38px max(6vw, 24px);
  background: var(--green-deep);
  color: #bed4ce;
}

.public-footer .brand-text small {
  color: #a8c5bd;
}

.public-footer .gear-logo {
  color: var(--white);
}

.public-footer p {
  max-width: 730px;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}


/* =========================================================
   DIALOG
========================================================= */

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;

  display: grid;
  place-items: center;

  padding: 22px;
  background: rgba(5, 22, 19, 0.72);
}

.dialog-card {
  position: relative;
  width: min(460px, 100%);
  padding: 31px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-large);
}

.dialog-card h2 {
  margin-top: 0;
}

.dialog-card p {
  color: var(--muted);
  line-height: 1.65;
}

.dialog-close {
  position: absolute;
  top: 8px;
  right: 12px;

  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 29px;
}


/* =========================================================
   AUTHENTICATION PAGES
========================================================= */

.auth-page {
  min-height: 100vh;
  padding: 35px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
}

.auth-brand {
  color: var(--white);
}

.auth-brand .brand-text small {
  color: #c3ddd6;
}

.auth-card {
  width: min(480px, 100%);
  margin: 60px auto;
  padding: 34px;

  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-large);
}

.auth-card h1 {
  margin: 10px 0;
}

.auth-card > p {
  color: var(--muted);
  line-height: 1.5;
}

.auth-card form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.auth-card label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
}

.auth-card input,
.auth-card select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #cad6da;
  border-radius: 10px;
}

.center {
  text-align: center;
}

.center a {
  color: var(--green);
  font-weight: 800;
}

.demo-note {
  margin-top: 20px;
  padding: 13px;
  border-radius: 10px;
  background: #f1f6f4;
  color: var(--muted);
  font-size: 12px;
}


/* =========================================================
   CUSTOMER PORTAL
========================================================= */

.shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.shell aside {
  position: sticky;
  top: 0;
  z-index: 20;

  display: flex;
  flex-direction: column;

  width: 260px;
  height: 100vh;
  padding: 27px 20px;

  background: linear-gradient(#104138, #082f2a);
  color: var(--white);
}

.shell aside .brand {
  padding: 0 8px 28px;
}

.shell aside .brand > i {
  display: grid;
  place-items: center;

  width: 43px;
  height: 43px;

  border-radius: 13px;
  background: var(--orange);
  color: #16372f;

  font-size: 22px;
  font-style: normal;
  font-weight: 900;
}

.shell aside .brand b {
  font-size: 21px;
  letter-spacing: 0.08em;
}

.shell aside .brand small,
.user small {
  display: block;
  color: #b7cec8;
}

.nav {
  width: 100%;
  margin: 3px 0;
  padding: 13px 14px;

  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #c9ddd7;

  text-align: left;
}

.nav:hover,
.nav.active {
  background: rgba(255, 255, 255, 0.11);
  color: var(--white);
}

.wallet {
  margin-top: auto;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}

.wallet small {
  color: #bbd0cb;
}

.wallet strong {
  display: block;
  margin: 5px 0 13px;
  font-size: 28px;
}

.shell aside footer {
  padding: 18px 8px 0;
  color: #afc8c1;
  font-size: 12px;
}

.shell aside footer span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #50d187;
}

.shell main {
  min-width: 0;
  padding: 0 34px 45px;
}

.shell main > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
}

.shell h1 {
  margin: 4px 0 0;
  font-size: 28px;
}

.eyebrow {
  color: #658178;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.pale {
  color: #b7dcd2;
}

.user {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: right;
  font-size: 13px;
}

.user > i {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  border-radius: 50%;
  background: #dceae6;
  color: var(--green);

  font-style: normal;
  font-weight: 850;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.shell .hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 28px;

  min-height: 278px;
  padding: 38px;

  border-radius: 24px;
  background: linear-gradient(135deg, #0c574a, #093b34);
  color: var(--white);
  box-shadow: var(--shadow-small);
}

.shell .hero h2 {
  margin: 12px 0;
  font-size: 38px;
  line-height: 1.05;
}

.shell .hero p {
  max-width: 640px;
  color: #d7e8e3;
  line-height: 1.65;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.flow b {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 13px;
}

.flow span {
  color: #f6ad5b;
  font-weight: 900;
}

.primary,
.light {
  padding: 12px 17px;
  border: 0;
  border-radius: 11px;
  font-weight: 850;
}

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

.primary:hover {
  background: var(--green-dark);
}

.orange {
  background: var(--orange);
  color: #18372f;
}

.light {
  background: #edf3f2;
  color: var(--green);
}

.full {
  width: 100%;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 18px 0;
}

.stats article,
.panel,
.cards article,
.prices article,
.balancecard {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-small);
}

.stats article {
  padding: 20px;
}

.stats span,
.stats small {
  display: block;
  color: var(--muted);
}

.stats strong {
  display: block;
  margin: 8px 0;
  font-size: 31px;
}

.grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
}

.panel {
  padding: 24px;
}

.panelhead {
  display: flex;
  justify-content: space-between;
}

.panel h3,
.heading h2 {
  margin: 5px 0;
}

.text {
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 850;
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;

  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.row:last-child {
  border-bottom: 0;
}

.row b {
  display: block;
}

.row small {
  color: var(--muted);
}

.status {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.processing {
  background: #fff0da;
  color: #875711;
}

.queued {
  background: #e8eff8;
  color: #405f78;
}

.ready {
  background: #e4f5ed;
  color: #126b4b;
}

.attention {
  background: #fde8ea;
  color: #98333b;
}

.shell ol {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.shell ol li {
  display: flex;
  gap: 12px;
  margin: 15px 0;
}

.shell ol i {
  display: grid;
  place-items: center;
  flex: 0 0 auto;

  width: 31px;
  height: 31px;

  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green);

  font-style: normal;
  font-weight: 900;
}

.shell ol p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 13px;
}

.heading {
  margin-bottom: 18px;
}

.heading h2 {
  font-size: 30px;
}

.heading p,
.note p {
  color: var(--muted);
}

.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.shell label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.shell input,
.shell select {
  width: 100%;
  padding: 13px;
  border: 1px solid #cdd8dc;
  border-radius: 11px;
  outline: none;
}

.shell input:focus,
.shell select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(12, 89, 75, 0.09);
}

.drop {
  padding: 34px;
  border: 2px dashed #b7cac5;
  border-radius: 17px;
  background: #f8fbfa;
  text-align: center;
}

.drop.drag {
  border-color: var(--green);
  background: var(--green-soft);
}

.drop > div {
  display: grid;
  place-items: center;

  width: 50px;
  height: 50px;
  margin: auto;

  border-radius: 15px;
  background: var(--green-soft);
  color: var(--green);

  font-size: 25px;
  font-weight: 900;
}

.drop h3 {
  margin: 12px 0 5px;
}

.drop p {
  margin: 0 0 14px;
  color: var(--muted);
}

#filelist {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  text-align: left;
}

#filelist span {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  font-size: 13px;
}

.cost {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin: 20px 0;
  padding: 16px;

  border-radius: 13px;
  background: #f6f8f9;
}

.cost small {
  display: block;
  color: var(--muted);
}

.cost p {
  color: var(--muted);
  font-size: 12px;
}

.table {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
}

th {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.cards,
.prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cards article,
.prices article {
  padding: 22px;
}

.cards article > i {
  display: grid;
  place-items: center;

  width: 45px;
  height: 45px;

  border-radius: 13px;
  background: var(--green-soft);
  color: var(--green);

  font-style: normal;
  font-weight: 900;
}

.cards p,
.prices p {
  color: var(--muted);
  font-size: 13px;
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.balancecard {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 18px;
  padding: 24px;

  background: linear-gradient(120deg, #ffffff, #eef7f4);
}

.balancecard span {
  display: block;
  color: var(--muted);
}

.balancecard strong {
  font-size: 30px;
}

.balancecard small {
  color: var(--muted);
}

.prices article {
  position: relative;
}

.prices span {
  color: var(--muted);
}

.prices strong {
  display: block;
  margin: 9px 0;
  font-size: 25px;
}

.prices b {
  display: block;
  margin: 18px 0;
  font-size: 22px;
}

.prices .featured {
  border: 2px solid var(--green);
  transform: translateY(-5px);
}

.prices em {
  position: absolute;
  top: 14px;
  right: 14px;

  padding: 5px 8px;
  border-radius: 99px;
  background: var(--orange);

  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.note {
  margin-top: 18px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;

  display: none;
  place-items: center;

  padding: 20px;
  background: rgba(6, 27, 24, 0.66);
}

.modal.open {
  display: grid;
}

.modal > div {
  position: relative;
  width: min(440px, 100%);
  padding: 28px;
  border-radius: 20px;
  background: var(--white);
}

.modal > div > button#close {
  position: absolute;
  top: 9px;
  right: 14px;

  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 29px;
}

.modal p {
  color: var(--muted);
}

.modal > div > small:last-child {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  text-align: center;
}

#toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 70;

  padding: 13px 18px;
  border-radius: 11px;
  background: #17372f;
  color: var(--white);

  opacity: 0;
  transform: translateY(12px);
  transition: 0.25s;
}

#toast.show {
  opacity: 1;
  transform: none;
}

.mobile {
  display: none;
}


/* =========================================================
   RESPONSIVE — PUBLIC WEBSITE
========================================================= */

@media (max-width: 850px) {
  .site-header nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;

    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;

    padding: 20px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }

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

  .site-header nav a {
    padding: 10px;
  }

  .menu-button {
    display: block;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bottom-callout,
  .public-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .error-hero {
    min-height: 690px;
    padding-top: 24px;
  }

  .error-app {
    min-height: 620px;
    padding: 60px 12px 30px;
  }

  .error-search-form {
    grid-template-columns: 1fr;
  }

  .search-button {
    min-height: 43px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding-top: 67px;
    padding-bottom: 67px;
  }

  .error-result-top,
  .error-result-solution {
    padding: 24px 20px;
  }

  .auth-page {
    padding: 20px;
  }

  .auth-card {
    margin-top: 35px;
  }
}


/* =========================================================
   RESPONSIVE — CUSTOMER PORTAL
========================================================= */

@media (max-width: 1000px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .grid,
  .shell .hero {
    grid-template-columns: 1fr;
  }

  .flow {
    justify-content: flex-start;
  }

  .cards,
  .prices {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .mobile {
    position: sticky;
    top: 0;
    z-index: 40;

    display: flex;
    align-items: center;
    justify-content: space-between;

    height: 58px;
    padding: 0 16px;

    background: #093b34;
    color: var(--white);
  }

  .mobile button {
    border: 0;
    background: transparent;
    color: var(--white);
    font-size: 23px;
  }

  .shell {
    display: block;
  }

  .shell aside {
    position: fixed;
    left: -280px;
    width: 260px;
    transition: 0.25s;
  }

  .shell aside.open {
    left: 0;
  }

  .shell main {
    padding: 0 15px 35px;
  }

  .shell main > header {
    height: 82px;
  }

  .user div {
    display: none;
  }

  .shell .hero {
    padding: 27px;
  }

  .shell .hero h2 {
    font-size: 31px;
  }

  .stats,
  .cards,
  .prices,
  .formgrid {
    grid-template-columns: 1fr;
  }

  .balancecard,
  .cost {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .prices .featured {
    transform: none;
  }
}


/* Full upgraded FIXIT error record */
.result-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px;
  background: #172d28;
  color: #ffffff;
}

.result-label {
  display: block;
  margin-bottom: 6px;
  color: #b8d7cf;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.result-header h2 {
  margin: 0;
  font-size: 34px;
}

.result-status-area {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.result-category,
.result-review-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.result-category {
  background: #eaf2ef;
  color: #1f5d50;
}

.result-review-status {
  background: #f7ead4;
  color: #825914;
}

.result-section {
  padding: 24px 30px;
  border-top: 1px solid #dce3e3;
  background: #ffffff;
}

.result-section h3 {
  margin: 0 0 8px;
  color: #163b32;
  font-size: 15px;
}

.result-section p {
  margin: 0;
  color: #4a555c;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-line;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #dce3e3;
}

.result-grid .result-section {
  border-top: 0;
}

.result-grid .result-section + .result-section {
  border-left: 1px solid #dce3e3;
}

.result-highlight {
  background: #eef6f3;
}

.result-solution {
  background: #e4efec;
}

.original-record {
  border-top: 1px solid #dce3e3;
  background: #f7f9f9;
}

.original-record summary {
  padding: 19px 30px;
  color: #315e54;
  font-weight: 850;
  cursor: pointer;
}

.original-record[open] summary {
  border-bottom: 1px solid #dce3e3;
}

.original-record-grid {
  border-top: 0;
}

.original-record-grid .result-section {
  background: #f7f9f9;
}

@media (max-width: 680px) {
  .result-header {
    flex-direction: column;
  }

  .result-status-area {
    justify-content: flex-start;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .result-grid .result-section + .result-section {
    border-top: 1px solid #dce3e3;
    border-left: 0;
  }

  .result-section,
  .result-header {
    padding-right: 20px;
    padding-left: 20px;
  }

.forgot-password-link {
  text-align: center;
  margin-top: 6px;
  margin-bottom: 0;
  font-size: 14px;
}

.forgot-password-link a {
  color: #52646d;
  text-decoration: none;
}

.forgot-password-link a:hover {
  text-decoration: underline;
}






}


/* =========================================================
   FIXIT + FIXIT FLOW PUBLIC SHOWCASE
========================================================= */
.declaration-types{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;max-width:900px;margin:-10px auto 34px}.declaration-types span{min-width:54px;padding:10px 15px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--green-dark);font-weight:850;text-align:center}.flow-visual{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:18px;max-width:1050px;margin:0 auto}.flow-visual article{min-height:185px;padding:28px 20px;border:1px solid var(--line);border-radius:var(--radius-medium);background:#fff;text-align:center;box-shadow:var(--shadow-small)}.flow-symbol{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 15px;border-radius:16px;background:var(--green-soft);color:var(--green);font-size:27px;font-weight:900}.flow-visual h3{margin:0 0 7px;font-size:20px}.flow-visual p{margin:0;color:var(--muted)}.flow-arrow{color:var(--green);font-size:30px;font-weight:900}.text-action{display:inline-block;margin:12px 16px;color:var(--green);font-weight:800;text-decoration:none}.flow-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;max-width:1120px;margin:0 auto}.flow-steps article{padding:26px;border-top:4px solid var(--green);border-radius:0 0 var(--radius-medium) var(--radius-medium);background:#fff;box-shadow:var(--shadow-small)}.flow-steps b{color:var(--green);font-size:13px;letter-spacing:.12em}.flow-steps h3{margin:12px 0 7px;font-size:21px}.flow-steps p{margin:0;color:var(--muted);line-height:1.55}.example-flow{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:18px;max-width:1000px;margin:0 auto}.example-flow>div{display:flex;min-height:150px;flex-direction:column;justify-content:center;gap:8px;padding:25px;border:1px solid var(--line);border-radius:var(--radius-medium);background:#fff;text-align:center}.example-flow>div strong{color:var(--green);font-size:12px;letter-spacing:.13em}.example-flow>div span{font-weight:750}.example-flow>b{color:var(--green);font-size:27px}.example-flow .example-engine{background:var(--green-dark);color:#fff}.example-flow .example-engine strong{color:#b8dbd1}.video-note{max-width:700px;margin:28px auto 0;color:var(--muted);text-align:center}.trial-section{display:grid;grid-template-columns:1fr 300px;align-items:center;gap:40px;padding:70px max(6vw,24px);background:var(--green-dark);color:#fff}.trial-section>div:first-child{max-width:760px}.trial-section .section-label{color:#b8dbd1}.trial-section h2{margin:10px 0 12px;font-size:clamp(32px,4vw,50px)}.trial-section p{font-size:17px;line-height:1.6}.trial-section small{color:#c9d8d4;line-height:1.5}.trial-price{display:flex;flex-direction:column;align-items:center;padding:26px;border-radius:var(--radius-medium);background:#fff;color:var(--ink);text-align:center}.trial-price>span{color:var(--muted);font-size:13px}.trial-price>strong{margin:4px 0 0;color:var(--green);font-size:48px}.trial-price>small{margin-bottom:18px;color:var(--muted)}.service-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;max-width:980px;margin:0 auto}.service-grid article{display:flex;flex-direction:column;align-items:flex-start;min-height:280px;padding:32px;border:1px solid var(--line);border-radius:var(--radius-medium);background:#fff;box-shadow:var(--shadow-small)}.service-tag{color:var(--green);font-size:12px;font-weight:900;letter-spacing:.13em}.service-grid h3{margin:12px 0 8px;font-size:27px}.service-grid p{margin:0 0 20px;color:var(--muted);line-height:1.6}.service-grid article>strong{margin-top:auto;margin-bottom:15px;color:var(--green)}.signature-line{margin:38px auto 0;text-align:center;font-size:22px;line-height:1.55}.callout-sub{margin:10px 0 0;color:#b8dbd1;font-weight:800}
@media(max-width:760px){.flow-visual,.example-flow{grid-template-columns:1fr}.flow-arrow,.example-flow>b{transform:rotate(90deg);text-align:center}.flow-visual article{min-height:0}.flow-steps{grid-template-columns:1fr 1fr}.trial-section{grid-template-columns:1fr}.trial-price{max-width:340px;width:100%;justify-self:center}.service-grid{grid-template-columns:1fr}.bottom-callout{align-items:flex-start;flex-direction:column}}
@media(max-width:480px){.flow-steps{grid-template-columns:1fr}.content-section{padding-top:64px;padding-bottom:64px}.section-heading{margin-bottom:28px}.trial-section{padding-top:58px;padding-bottom:58px}.signature-line{font-size:19px}}


/* FIXIT logo refresh — V3 */
.header-fixit-logo {
  display:block;
  width:82px;
  height:auto;
  object-fit:contain;
}
.main-fixit-logo {
  display:block;
  width:150px;
  max-width:44vw;
  height:auto;
  margin:0 auto;
  object-fit:contain;
}
.fixit-logo { margin:0 auto 17px; }
@media (max-width:780px) {
  .header-fixit-logo { width:70px; }
  .main-fixit-logo { width:142px; max-width:48vw; }
}

/* FIXIT FLOW demo video */
.flow-demo-block{max-width:1050px;margin:42px auto 0}.flow-demo-heading{max-width:720px;margin:0 auto 22px;text-align:center}.flow-demo-heading h3{margin:8px 0 8px;font-size:clamp(25px,3vw,36px);color:var(--ink)}.flow-demo-heading p{margin:0;color:var(--muted);line-height:1.6}.flow-demo-frame{overflow:hidden;border:1px solid var(--line);border-radius:20px;background:#111;box-shadow:var(--shadow-small)}.flow-demo-frame video{display:block;width:100%;height:auto;max-height:620px;background:#111}.flow-demo-cta{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px 18px;margin-top:22px;text-align:center}.flow-demo-cta strong{font-size:17px}.flow-demo-cta span{color:var(--green);font-weight:850}.flow-demo-cta .button{margin:0}@media(max-width:760px){.flow-demo-block{margin-top:32px}.flow-demo-frame{border-radius:14px}.flow-demo-cta{flex-direction:column}.flow-demo-cta .button{width:100%;max-width:330px}}

/* =========================================================
   V5 — DESKTOP BALANCE + HEADER BRAND + FLOW TEASER
========================================================= */
.header-brand{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}
.header-logo-stack{
  display:grid;
  justify-items:center;
  line-height:1;
  flex:0 0 auto;
}
.header-gear-logo{
  display:block;
  width:58px;
  height:34px;
  object-fit:cover;
  object-position:center 44%;
  mix-blend-mode:multiply;
}
.header-logo-stack strong{
  margin-top:1px;
  color:#101820;
  font-size:16px;
  font-weight:950;
  letter-spacing:.18em;
}
.header-tagline{
  max-width:155px;
  color:var(--ink);
  font-size:12px;
  font-weight:800;
  line-height:1.25;
}

@media (min-width: 851px){
  .error-hero{
    min-height:auto;
    padding:42px 28px 38px;
  }
  .error-app{
    width:min(1240px,100%);
    min-height:0;
    padding:18px 28px 18px;
  }
  .main-fixit-logo{
    max-height:112px;
    width:auto;
  }
  .error-app h1{
    margin-top:8px;
    font-size:21px;
  }
  .error-count{
    margin-bottom:12px;
    font-size:17px;
  }
  .error-search-form{
    width:min(720px,100%);
    margin:0 auto;
    grid-template-columns:minmax(0,1fr) 110px;
    gap:10px;
  }
  .error-search-form input{
    min-height:54px;
    padding:14px 18px;
    font-size:16px;
  }
  .search-button{
    min-width:110px;
    font-size:15px;
  }
  .search-examples{
    margin:9px 0 24px;
    font-size:11px;
  }
  .popular-errors h2{
    margin-bottom:13px;
    font-size:16px;
  }
  #popularErrorList{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
    max-width:1120px;
  }
  .popular-error{
    min-height:72px;
    padding:16px 18px;
    border:1px solid var(--line);
    border-radius:13px;
    background:#fff;
    box-shadow:var(--shadow-small);
    font-size:12px;
    font-weight:750;
  }
  .popular-error:hover{
    border-color:#cbd8d5;
    border-radius:13px;
    background:#f8fbfa;
    transform:translateY(-1px);
  }
}

.flow-teaser{
  display:grid;
  grid-template-columns:1.15fr .9fr auto;
  align-items:center;
  gap:22px;
  max-width:1120px;
  margin:26px auto 0;
  padding:22px 24px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(100deg,#fbfdfc,#f2f8f6);
  box-shadow:var(--shadow-small);
  text-align:left;
}
.flow-teaser-visual{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-width:0;
  color:var(--green-dark);
  font-size:12px;
  font-weight:850;
}
.flow-teaser-visual span{
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  white-space:nowrap;
}
.flow-teaser-visual b{
  color:var(--green);
  font-size:18px;
}
.flow-teaser-copy{
  display:grid;
  gap:3px;
  min-width:0;
}
.flow-teaser-label{
  color:var(--green);
  font-size:11px;
  font-weight:950;
  letter-spacing:.14em;
}
.flow-teaser-copy strong{
  font-size:20px;
  line-height:1.2;
}
.flow-teaser-copy small{
  color:var(--muted);
  font-size:12px;
  font-weight:750;
}
.flow-teaser-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  white-space:nowrap;
}
.flow-teaser-link{
  color:var(--green);
  font-size:12px;
  font-weight:850;
}

@media (max-width: 850px){
  .header-brand{gap:9px}
  .header-gear-logo{width:50px;height:30px}
  .header-logo-stack strong{font-size:14px}
  .header-tagline{max-width:112px;font-size:10px}
  .flow-teaser{
    grid-template-columns:1fr;
    gap:16px;
    margin-top:24px;
    padding:18px;
    text-align:center;
  }
  .flow-teaser-visual{
    flex-wrap:wrap;
  }
  .flow-teaser-actions{
    justify-content:center;
    flex-wrap:wrap;
  }
}

@media (max-width: 480px){
  .header-tagline{display:none}
  .flow-teaser-visual{display:none}
  .flow-teaser-copy strong{font-size:18px}
  .flow-teaser-actions .button{width:100%}
}
