/* Home page (prototype refresh) and the shared Compare Tools cards (_CompareCards.cshtml).
   Brand colours reused from main.css: header #282729, CTA orange #ff5f1f, blue #4b9de7 / #175889. */

:root {
  --hw-ink: #1d2330;
  --hw-body: #4a5263;
  --hw-muted: #6e7686;
  --hw-line: #e3e6ec;
  --hw-soft: #f5f7fa;
  --hw-blue: #175889;
  --hw-blue-2: #4b9de7;
  --hw-orange: #ff5f1f;
  --hw-green: #3f8f1e;
}

/* In-page links such as the hero's "Compare with DevTools" (#compare) glide rather than jump. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- Hero ---------- */
.home2 .h2-hero {
  background: linear-gradient(160deg, #1f2a3a 0%, #17365a 55%, #175889 100%);
  color: #fff;
  padding: 64px 0 72px;
  overflow: hidden;
}
.home2 .h2-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9fd0ff;
  margin-bottom: 14px;
}
.home2 .h2-hero h1 {
  color: #fff;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 20px;
}
.home2 .h2-lead {
  color: #d5e2f0;
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 28px;
}
.home2 kbd {
  display: inline-block;
  font: 600 13px/1 Consolas, Menlo, monospace;
  color: #1d2330;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 0 #9fb3c8;
  padding: 3px 6px;
  margin: 0 1px;
  vertical-align: 1px;
}
.home2 .h2-lead-sm { font-size: 15px; color: #b9cbe0; margin-top: -14px; }
.home2 .h2-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 22px; }
.home2 .h2-ctas .button1 { border-radius: 6px; text-transform: none; font-size: 17px; }
.home2 .h2-ghost { color: #fff; font-weight: 600; font-size: 16px; }
.home2 .h2-ghost:hover { color: #9fd0ff; text-decoration: none; }
.home2 .h2-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.home2 .h2-meta li { color: #b9cbe0; font-size: 14px; padding-left: 20px; position: relative; }
.home2 .h2-meta li:before {
  content: ""; position: absolute; left: 2px; top: 5px; width: 10px; height: 6px;
  border-left: 2px solid #7fd35a; border-bottom: 2px solid #7fd35a; transform: rotate(-45deg);
}

.home2 .h2-window {
  margin: 0 0 0 auto;
  max-width: 600px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .10);
  overflow: hidden;
}
.home2 .h2-window > img { display: block; width: 100%; height: auto; }
/* Wide screens: let the screenshot extend into the right-hand margin so the grid text is readable, while the
   copy column stays aligned with the 990px site container. Keeps a 40px gap to the viewport edge and never
   grows past the 1024px capture (column ~548px + at most 240px of bleed). */
@media (min-width: 1200px) {
  .home2 .h2-window {
    max-width: none;
    margin-right: calc(-1 * min(240px, (100vw - 990px) / 2 - 40px));
  }
}

/* ---------- Sections ---------- */
.home2 .h2-section { padding: 72px 0; }
.home2 .h2-alt { background: var(--hw-soft); }
.home2 .h2-section h2 {
  color: var(--hw-ink); font-size: 30px; line-height: 1.25; font-weight: 700;
  text-align: center; margin: 0 auto 14px; max-width: 760px;
}
.home2 .h2-section h2 a { color: inherit; }
.home2 .h2-intro {
  color: var(--hw-body); font-size: 17px; line-height: 1.6; text-align: center;
  max-width: 680px; margin: 0 auto 44px;
}

/* Feature cards: each has a tinted illustration panel and its own accent colour. */
.home2 .h2-features { background: linear-gradient(180deg, #fff 0%, #f3f7fc 100%); }
.home2 .h2-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.home2 .h2-card {
  --c: #2f7fd8; --c-text: #1c5fae; --c-bg1: #e6f0fb; --c-bg2: #cfe3fa;
  background: #fff; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(29, 35, 48, .06), 0 8px 24px rgba(29, 35, 48, .07);
  border-top: 4px solid var(--c);
  transition: transform .15s, box-shadow .15s;
}
.home2 .h2-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(29, 35, 48, .06), 0 16px 36px rgba(29, 35, 48, .12); }
.home2 .h2-c-blue   { --c: #2f7fd8; --c-text: #1c5fae; --c-bg1: #e8f1fc; --c-bg2: #cfe3fa; }
.home2 .h2-c-green  { --c: #3f9b1e; --c-text: #2e7d14; --c-bg1: #edf8e7; --c-bg2: #d3eec5; }
.home2 .h2-c-purple { --c: #6c4fd0; --c-text: #5536b0; --c-bg1: #f1edfd; --c-bg2: #ddd3f8; }
.home2 .h2-c-orange { --c: #ff5f1f; --c-text: #c2410c; --c-bg1: #fff3ec; --c-bg2: #ffdccb; }
.home2 .h2-c-teal   { --c: #0e9aa7; --c-text: #0b6f78; --c-bg1: #e7f7f8; --c-bg2: #c6ecef; }
.home2 .h2-c-amber  { --c: #c98a00; --c-text: #8a5a00; --c-bg1: #fff8e3; --c-bg2: #fbe7a8; }
.home2 .h2-art {
  background: linear-gradient(135deg, var(--c-bg1) 0%, var(--c-bg2) 100%);
  padding: 14px 10px 10px;
}
.home2 .h2-art svg { display: block; width: 100%; height: auto; font-family: 'Open Sans', Arial, sans-serif;
  filter: drop-shadow(0 4px 8px rgba(29, 35, 48, .10)); }
.home2 .h2-card-body { padding: 22px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.home2 .h2-card h3 { color: var(--hw-ink); font-size: 18px; line-height: 1.35; font-weight: 700; margin: 0 0 10px; }
.home2 .h2-card p { color: var(--hw-body); font-size: 15px; line-height: 1.6; margin: 0 0 14px; }
/* --c is the decorative accent (border, artwork); --c-text is a darker shade of it with at least 4.5:1 contrast on white. */
.home2 .h2-card a { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--c-text); }

/* Steps */
.home2 .h2-steps {
  list-style: none; margin: 0 0 24px; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: none;
}
.home2 .h2-steps li { background: #fff; border-radius: 10px; padding: 26px 24px; border: 1px solid var(--hw-line); }
.home2 .h2-step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--hw-blue); color: #fff; font-weight: 700; margin-bottom: 14px;
}
.home2 .h2-steps h3 { color: var(--hw-ink); font-size: 17px; line-height: 1.35; font-weight: 700; margin: 0 0 8px; }
.home2 .h2-steps p { color: var(--hw-body); font-size: 15px; line-height: 1.6; margin: 0; }
.home2 .h2-fine { text-align: center; color: var(--hw-muted); font-size: 14px; margin: 0; }

/* Customers */
.home2 .h2-logos {
  list-style: none; margin: 18px 0 44px; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 48px;
}
.home2 .h2-logos img { filter: grayscale(1); opacity: .65; max-height: 40px; width: auto; }
.home2 .h2-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.home2 .h2-quotes blockquote {
  margin: 0; background: #fff; border-radius: 10px; border: 1px solid var(--hw-line);
  padding: 24px; display: flex; flex-direction: column;
}
.home2 .h2-quotes p { color: var(--hw-ink); font-size: 16px; line-height: 1.6; margin: 0 0 16px; }
.home2 .h2-quotes p:before { content: "\201C"; }
.home2 .h2-quotes p:after { content: "\201D"; }
.home2 .h2-quotes cite { margin-top: auto; font-style: normal; font-weight: 600; font-size: 14px; color: var(--hw-muted); }

/* ---------- Compare panels (home page and /compare/) ---------- */
/* Home page: the section sits on a dark band so the two comparisons read as one group, apart from the light sections around it. */
.home2 .h2-compare { background: linear-gradient(160deg, #1f2a3a 0%, #17365a 60%, #175889 100%); }
.home2 .h2-compare h2, .home2 .h2-compare h2 a { color: #fff; }
.home2 .h2-compare .h2-intro { color: #c9d8ea; }
.home2 .h2-compare .cmp-note { color: #b9cbe0; }
.home2 .h2-compare .cmp-card { box-shadow: 0 20px 44px rgba(0, 0, 0, .30); }

.cmp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin: 8px 0 22px; }
.cmp-card {
  --cmp: #2f7fd8; --cmp-dark: #1c5fae;
  display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(29, 35, 48, .06), 0 10px 28px rgba(29, 35, 48, .10);
}
.cmp-devtools { --cmp: #2f7fd8; --cmp-dark: #1c5fae; }
.cmp-fiddler  { --cmp: #7a55d6; --cmp-dark: #5536b0; }

.cmp-head { background: linear-gradient(135deg, var(--cmp) 0%, var(--cmp-dark) 100%); padding: 22px 26px 20px; }
.cmp-matchup { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cmp-chip { display: inline-block; font-size: 12.5px; font-weight: 700; line-height: 1; padding: 7px 11px; border-radius: 999px; }
.cmp-chip-hw { background: #fff; color: #2e7d14; }
.cmp-chip-other { background: rgba(255, 255, 255, .18); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.cmp-vs { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .75); }
.cmp-card h3 { font-size: 21px; line-height: 1.3; font-weight: 700; color: #fff; margin: 0; }

/* Two equal columns with no outer padding, so a 50/50 background gives a continuous HttpWatch column
   that runs down to the footer even when the neighbouring panel is taller. Side padding lives on the cells. */
.cmp-table { flex: 1; background: linear-gradient(90deg, #fff 50%, #f3faef 50%); }
.cmp-cols, .cmp-rows > [role="row"] { display: grid; grid-template-columns: 1fr 1fr; }
.cmp-cols { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: linear-gradient(90deg, #f4f6f9 50%, #e4f3db 50%); border-bottom: 1px solid #e3e6ec; }
.cmp-cols span { padding: 11px 14px 10px 26px; color: #6e7686; }
.cmp-cols span:last-child { color: #2e7d14; padding: 11px 26px 10px 16px; }
.cmp-rows > [role="row"] { border-bottom: 1px solid #e9ecf1; font-size: 14.5px; line-height: 1.45; }
.cmp-rows > [role="row"]:last-child { border-bottom: 0; }
.cmp-them { color: #6e7686; padding: 13px 14px 13px 46px; position: relative; }
.cmp-them:before { content: ""; position: absolute; left: 27px; top: 21px; width: 10px; height: 2px; background: #b8bfca; border-radius: 1px; }
.cmp-us { color: #1d2330; font-weight: 600; padding: 13px 26px 13px 38px; position: relative; }
.cmp-us:before {
  content: ""; position: absolute; left: 16px; top: 18px; width: 10px; height: 6px;
  border-left: 2px solid #3f9b1e; border-bottom: 2px solid #3f9b1e; transform: rotate(-45deg);
}
.cmp-link {
  display: block; padding: 15px 26px; border-top: 1px solid #e3e6ec; background: #fafbfc;
  font-size: 14.5px; font-weight: 700; color: var(--cmp-dark);
}
.cmp-link:hover { background: #f2f5f9; text-decoration: underline; }
.cmp-note { text-align: center; color: #6e7686; font-size: 14px; margin: 0; }
/* Inside the narrower detail-page layout (/compare/) stack the panels so each row stays on one or two lines. */
#main .cmp-grid { grid-template-columns: 1fr; gap: 26px; }
#main .cmp-note { text-align: left; margin-bottom: 25px; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .home2 .h2-hero { padding: 44px 0 52px; }
  .home2 .h2-hero h1 { font-size: 32px; }
  .home2 .h2-window { margin: 36px auto 0; max-width: 720px; }
  .home2 .h2-cards, .home2 .h2-quotes { grid-template-columns: repeat(2, 1fr); }
  .home2 .h2-steps { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .home2 .h2-section { padding: 48px 0; }
  .home2 .h2-section h2 { font-size: 25px; }
  .home2 .h2-cards, .home2 .h2-quotes, .cmp-grid { grid-template-columns: 1fr; }
  .cmp-head { padding: 18px 20px 16px; }
  .cmp-cols span { padding-left: 20px; }
  .cmp-cols span:last-child { padding-right: 20px; }
  .cmp-them { padding-left: 40px; }
  .cmp-them:before { left: 21px; }
  .cmp-us { padding-right: 20px; }
  .cmp-link { padding: 14px 20px; }
  .home2 .h2-logos { gap: 18px 28px; }
}
