/* Home page hero + tools panel rebuild — structure and copy adapted
   from the approved mockup (rightsideup-customer-toolkit mockup site).
   This content is injected client-side by home-rebuild.js because the
   CMS stores the Home page's body content in its database (no admin
   access in this engagement's scope), so a file-based reskin can't
   reach it directly — see home-rebuild.js for details. */

.rsu-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 420px;
  margin: 0 0 -70px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.rsu-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #080d12cc 0%, #080d12e6 55%, var(--rsu-background) 100%);
  z-index: 0;
}

.rsu-hero-inner {
  margin: 0 0 40px;
  min-height: 320px;
}

.rsu-hero-inner .rsu-hero-content {
  padding: 70px 8vw;
}

/* Some inner-page titles come from the CMS with inconsistent casing
   (e.g. "wAYBILL sEARCH") -- normalize to uppercase since that's the
   consistent look across the other inner pages anyway. */
.rsu-hero-inner h1 {
  text-transform: uppercase;
}

.rsu-hero-content {
  position: relative;
  z-index: 1;
  padding: 70px 8vw 120px;
  max-width: 720px;
}

.rsu-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
  color: var(--rsu-muted-light);
  margin: 0 0 18px;
}

.rsu-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rsu-brand-red-bright);
  display: inline-block;
}

.rsu-hero h1 {
  font-family: var(--rsu-font-headline);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  margin: 0 0 20px;
  color: var(--rsu-foreground);
}

.rsu-hero h1 strong {
  color: var(--rsu-brand-red-bright);
  font-weight: 600;
}

.rsu-hero-copy {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--rsu-muted-light);
  max-width: 480px;
  line-height: 1.5;
  margin: 0;
}

.rsu-tools-panel {
  position: relative;
  z-index: 2;
  background: var(--rsu-panel-solid) !important;
  border: 1px solid var(--rsu-line);
  border-radius: 20px;
  padding: 32px clamp(16px, 4vw, 40px) 40px !important;
  margin: 0 4vw 60px !important;
  display: block !important;
  float: none !important;
  width: auto !important;
  box-sizing: border-box !important;
}

.rsu-panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.rsu-panel-heading p {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--rsu-muted);
}

.rsu-panel-heading h2 {
  margin: 0;
  font-family: var(--rsu-font-headline);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 32px);
  color: var(--rsu-foreground);
}

.rsu-panel-heading span {
  color: var(--rsu-muted);
  font-size: 13px;
  white-space: nowrap;
}

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

@media all and (max-width: 900px) {
  .rsu-tools-grid {
    grid-template-columns: 1fr;
  }
}

.tool-card {
  position: relative;
  display: block;
  min-height: 260px;
  border-radius: 16px;
  overflow: hidden;
  padding: 22px;
  text-decoration: none !important;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--rsu-line);
  transition: border-color 0.2s, transform 0.2s;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #080d1233 0%, #080d12e6 75%);
  z-index: 0;
}

.tool-card:hover {
  border-color: var(--rsu-brand-red-bright);
  transform: translateY(-3px);
}

.tool-card > * {
  position: relative;
  z-index: 1;
}

.tool-card .tool-number {
  display: block;
  font-family: var(--rsu-font-headline);
  font-size: 14px;
  font-weight: 600;
  color: var(--rsu-muted-light);
  letter-spacing: 0.1em;
}

.tool-card .tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rsu-brand-red);
  margin: 14px 0 60px;
}

.tool-card .tool-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--rsu-foreground);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-card h3 {
  font-family: var(--rsu-font-headline);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--rsu-foreground) !important;
}

.tool-card p {
  color: var(--rsu-muted-light) !important;
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 18px;
  max-width: 32ch;
}

.tool-card .tool-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rsu-brand-red-bright) !important;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tool-card .tool-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.2s;
}

.tool-card:hover .tool-link svg {
  transform: translateX(4px);
}

.rsu-account-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  padding: 20px 24px;
  border: 1px solid var(--rsu-line);
  border-radius: 14px;
  background: var(--rsu-panel-soft);
}

.rsu-account-strip-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rsu-account-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--rsu-line);
  flex: 0 0 auto;
}

.rsu-account-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--rsu-foreground);
  stroke-width: 1.8;
}

.rsu-account-strip p {
  margin: 0;
  color: var(--rsu-muted);
  font-size: 13px;
}

.rsu-account-strip h3 {
  margin: 2px 0 0;
  font-family: var(--rsu-font-headline);
  font-weight: 500;
  font-size: 18px;
  color: var(--rsu-foreground);
}

.rsu-account-strip > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rsu-foreground) !important;
  border: 2px solid var(--rsu-line);
  border-radius: var(--rsu-radius-pill);
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.rsu-account-strip > a:hover {
  background: var(--rsu-brand-red);
  border-color: var(--rsu-brand-red);
}

.rsu-account-strip > a svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* "How To?" steps (Route Guide / Quick Track / Quote) — rebuilt by
   howto-rebuild.js to match the tools-panel/tool-card look, reusing
   .rsu-panel-heading. Step text is pulled from the existing CMS
   content, not hardcoded. */
.rsu-howto {
  position: relative;
  background: var(--rsu-panel-solid) !important;
  border: 1px solid var(--rsu-line);
  border-radius: 20px;
  padding: 32px clamp(16px, 4vw, 40px) 40px !important;
  margin: 0 4vw 60px !important;
  display: block !important;
  float: none !important;
  width: auto !important;
  box-sizing: border-box !important;
}

.rsu-howto-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.rsu-howto-step {
  padding: 22px;
  border: 1px solid var(--rsu-line);
  border-radius: 16px;
  background: var(--rsu-panel-soft);
  transition: border-color 0.2s, transform 0.2s;
}

.rsu-howto-step:hover {
  border-color: var(--rsu-brand-red-bright);
  transform: translateY(-3px);
}

.rsu-howto-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rsu-brand-red);
  color: var(--rsu-foreground);
  font-family: var(--rsu-font-headline);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 18px;
}

.rsu-howto-step h3 {
  font-family: var(--rsu-font-headline);
  font-weight: 500;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 8px;
  color: var(--rsu-foreground) !important;
}

.rsu-howto-step p {
  color: var(--rsu-muted-light) !important;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}
