/* ==========================================================================
   CleverCoat — Asset Maintenance page
   Signature: interactive Roof Lifespan Simulator + program benefits,
   cadence, and CleverIntel report band. Brand tokens from site.css.
   ========================================================================== */

/* ---- Trust stat row under hero ----------------------------------------- */
.am-trust { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 30px; }
.am-trust__item { display: flex; flex-direction: column; gap: 2px; }
.am-trust__n { font-family: var(--f-head); font-weight: 800; font-size: 1.5rem; color: #fff; letter-spacing: -.02em; }
.am-trust__l { font-family: var(--f-head); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #7699BB; }

/* ---- Simulator --------------------------------------------------------- */
.am-sim { display: grid; grid-template-columns: .92fr 1.08fr; gap: 44px; align-items: stretch; }
@media (max-width: 860px) { .am-sim { grid-template-columns: 1fr; gap: 30px; } } /* added: stack controls + chart on mobile */

.am-controls { display: flex; flex-direction: column; }
.am-field { margin-bottom: 26px; }
.am-field__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.am-field__label { font-family: var(--f-head); font-weight: 700; font-size: .95rem; color: var(--navy); }
.am-field__val { font-family: var(--f-head); font-weight: 800; font-size: 1.05rem; color: var(--teal); font-variant-numeric: tabular-nums; }
.am-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 100px;
  background: #E1E8EF; outline: none; cursor: pointer;
}
.am-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,39,63,.28); cursor: pointer;
}
.am-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--teal);
  border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,39,63,.28); cursor: pointer;
}
.am-field__hint { font-size: .82rem; color: var(--muted); margin-top: 8px; }

/* Readout stats */
.am-readouts { margin-top: auto; display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.am-stat {
  display: flex; align-items: baseline; gap: 14px;
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; background: #fff;
}
.am-stat--hero { background: var(--navy); border-color: var(--navy); }
.am-stat__n {
  font-family: var(--f-head); font-weight: 800; font-size: 2rem; letter-spacing: -.02em;
  color: var(--teal); font-variant-numeric: tabular-nums; line-height: 1; flex: 0 0 auto; min-width: 118px;
}
.am-stat--hero .am-stat__n { color: #43C88A; font-size: 2.5rem; min-width: 132px; }
.am-stat__t { font-size: .95rem; color: var(--ink-2); line-height: 1.4; }
.am-stat--hero .am-stat__t { color: #C3D6E6; }
.am-stat--hero .am-stat__t b { color: #fff; }
.am-foot-note { font-size: .78rem; color: var(--muted-2); margin-top: 4px; line-height: 1.5; }

/* Chart card (navy blueprint) */
.am-chartcard {
  position: relative; border-radius: 16px; padding: 22px 22px 14px;
  box-shadow: 0 34px 80px -40px rgba(0,39,63,.6); overflow: hidden;
}
.am-chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; position: relative; z-index: 2; }
.am-chart-head .t { font-family: var(--f-head); font-weight: 700; font-size: .98rem; color: #fff; }
.am-chart-head .s { font-family: var(--f-head); font-size: .72rem; letter-spacing: .08em; color: #7FA9C6; text-transform: uppercase; }
.am-chart-wrap { position: relative; z-index: 2; }
.am-chart { display: block; width: 100%; height: auto; }
.am-legend { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 8px; position: relative; z-index: 2;
  font-family: var(--f-head); font-size: .8rem; font-weight: 600; color: #C3D6E6; }
.am-legend i { display: inline-block; width: 20px; height: 3px; border-radius: 2px; margin-right: 8px; vertical-align: middle; }
.am-legend .lg-m i { background: #43C88A; }
.am-legend .lg-r i { background: #E08A5B; }

/* ---- Benefits ---------------------------------------------------------- */
.am-ben-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 46px;
}
.am-ben { background: #fff; padding: 30px 26px; transition: background .25s; }
.am-ben:hover { background: var(--paper-2); }
.am-ben__num { font-family: var(--f-head); font-weight: 700; font-size: .78rem; letter-spacing: .12em; color: var(--muted-2); }
.am-ben__ic { width: 40px; height: 40px; margin: 14px 0 16px; color: var(--teal); }
.am-ben h3 { font-size: 1.15rem; color: var(--navy); }
.am-ben p { margin-top: 10px; font-size: .95rem; color: var(--ink-2); line-height: 1.6; }
.am-ben__lnk { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-family: var(--f-head); font-weight: 600; font-size: .9rem; color: var(--teal); }
.am-ben__persona { display: inline-block; margin-top: 14px; font-family: var(--f-head); font-weight: 700; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green-deep); }
.am-ben--feat { background: var(--navy); }
.am-ben--feat:hover { background: #013a5c; }
.am-ben--feat .am-ben__ic { color: #43C88A; }
.am-ben--feat h3 { color: #fff; }
.am-ben--feat p { color: #C3D6E6; }
.am-ben--feat .am-ben__num { color: #7699BB; }
.am-ben--feat .am-ben__lnk { color: #7EE8DC; }
.am-ben--cta { background: var(--navy); display: flex; flex-direction: column; justify-content: center; }
.am-ben--cta h3 { color: #fff; font-size: 1.25rem; }
.am-ben--cta p { color: #C3D6E6; }

@media (max-width: 960px) { .am-ben-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .am-ben-grid { grid-template-columns: 1fr; } }

/* ---- Cadence ----------------------------------------------------------- */
.am-cad-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(133,181,221,.16); border: 1px solid rgba(133,181,221,.16);
  border-radius: 16px; overflow: hidden; margin-top: 46px;
}
.am-cad { background: var(--navy); padding: 28px 24px 32px; position: relative; }
.am-cad__mark { position: absolute; top: 0; left: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--teal), transparent); }
.am-cad.is-now .am-cad__mark { background: linear-gradient(90deg, #43C88A, transparent); }
.am-cad__tag { font-family: var(--f-head); font-weight: 700; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #7EE8DC; }
.am-cad.is-now .am-cad__tag { color: #43C88A; }
.am-cad h3 { color: #fff; font-size: 1.1rem; margin-top: 12px; }
.am-cad p { color: #B4C8CB; font-size: .9rem; margin-top: 10px; line-height: 1.55; }

@media (max-width: 860px) { .am-cad-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .am-cad-grid { grid-template-columns: 1fr; } }

/* ---- Sample report band ------------------------------------------------ */
.am-rep-mock { position: relative; border-radius: 14px; padding: 20px; box-shadow: 0 34px 80px -40px rgba(0,0,0,.7); overflow: hidden; }
.am-rep-bar { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-head); font-weight: 600; font-size: .72rem; letter-spacing: .06em; color: #7FA9C6; text-transform: uppercase; border-bottom: 1px solid rgba(133,181,221,.2); padding-bottom: 12px; margin-bottom: 14px; }
.am-rep-bar .score { color: #43C88A; }
.am-rep-thermal {
  position: relative; height: 200px; border-radius: 8px; overflow: hidden;
  background:
    radial-gradient(130px 100px at 70% 66%, rgba(224,138,91,.92), transparent 62%),
    radial-gradient(96px 76px at 28% 40%, rgba(246,178,76,.72), transparent 60%),
    linear-gradient(135deg, #012A45, #004C66 60%, #0A5E7A);
}
.am-rep-thermal .lines { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(169,220,232,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(169,220,232,.1) 1px, transparent 1px);
  background-size: 34px 34px; }
.am-rep-flag { position: absolute; font-family: var(--f-head); font-weight: 600; font-size: .66rem; letter-spacing: .04em; padding: 5px 9px; border-radius: 4px; background: rgba(0,39,63,.82); color: #FFD8CF; border: 1px solid #E08A5B; }
.am-rep-flag.a { top: 46%; left: 58%; }
.am-rep-flag.b { top: 26%; left: 15%; border-color: #F6B24C; color: #FFE9C7; }
.am-rep-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.am-rep-tags span { font-family: var(--f-head); font-weight: 600; font-size: .7rem; letter-spacing: .04em; padding: 6px 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(133,181,221,.2); border-radius: 6px; color: #C3D6E6; }

/* ---- Reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .am-chart .am-draw { stroke-dashoffset: 0 !important; }
}
