@import url("fonts.css");

/* PlugRight EV Chargers. One calm column on phones; on desktop the hero splits text and photo. */
:root {
  --navy: #0B2545;
  --navy-2: #163A66;
  --green: #3DDC97;
  --green-ink: #0B7A4B;   /* readable green for text on white */
  --paper: #F4F7F9;
  --white: #FFFFFF;
  --ink: #0E1B2B;
  --muted: #4E5D6C;
  --line: #DCE4EB;
  --display: "Montserrat", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wrap: 1120px;
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); color: var(--navy); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
.eyebrow { font-family: var(--display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-ink); }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--navy); letter-spacing: -0.01em; }
.brand-sub { font-family: var(--display); font-weight: 700; font-size: 0.62rem; letter-spacing: 0.24em; color: var(--green-ink); margin-top: 4px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1rem; text-decoration: none; border-radius: 999px; padding: 14px 24px; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--navy); }
.btn-primary:hover { background: #33c987; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-small { padding: 9px 16px; font-size: 0.9rem; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* hero */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 28px; padding-block: 40px 48px; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hero h1 .accent { color: var(--green-ink); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.price { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 18px; background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 18px 22px; max-width: 460px; }
.price-big { grid-row: span 2; font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; }
.price-line { font-weight: 600; }
.price-note { font-size: 0.92rem; color: #C9D6E3; }
.price-note s { color: #9FB3C8; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-hint { font-size: 0.92rem; color: var(--muted); }
.hero-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }

/* trust strip */
.trust { border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.trust li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.trust .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--green); display: grid; place-items: center; margin-top: 2px; }
.trust .tick svg { width: 14px; height: 14px; }
.trust strong { display: block; font-family: var(--display); font-weight: 700; color: var(--navy); font-size: 0.98rem; line-height: 1.3; }
.trust span { font-size: 0.9rem; color: var(--muted); }

/* sections */
.section { padding-block: 64px; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; max-width: 40em; }
.section-head p { color: var(--muted); }
.alt { background: var(--paper); border-block: 1px solid var(--line); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 22px 22px 22px 78px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.steps li::before { content: counter(step); position: absolute; left: 22px; top: 20px; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--green); font-family: var(--display); font-weight: 800; display: grid; place-items: center; font-size: 1.1rem; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 0.98rem; }

.two-col { display: grid; grid-template-columns: 1fr; gap: 36px; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 4px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%230B2545' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.extras { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.extras ul { margin: 0; padding-left: 1.2em; color: var(--muted); }

.grant { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.grant-badge { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.grant-badge .amount { font-family: var(--display); font-weight: 800; font-size: 3.4rem; line-height: 1; color: var(--green); }
.grant-badge p { color: #C9D6E3; }
.grant-badge a { color: var(--green); font-weight: 600; }

.faq { display: flex; flex-direction: column; gap: 10px; max-width: 780px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--white); padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--display); font-weight: 700; color: var(--navy); padding: 14px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--green-ink); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 16px; color: var(--muted); }

.contact { background: var(--navy); color: var(--white); }
.contact .wrap { display: flex; flex-direction: column; gap: 18px; padding-block: 64px; align-items: flex-start; }
.contact h2 { color: var(--white); }
.contact p { color: #C9D6E3; max-width: 36em; }
.contact .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.6); }
.contact-lines { display: flex; flex-direction: column; gap: 4px; font-size: 0.98rem; }
.contact-lines a { color: var(--green); }

.site-foot { background: #081C35; color: #9FB3C8; font-size: 0.88rem; }
.site-foot .wrap { padding-block: 28px calc(28px + 70px); display: flex; flex-direction: column; gap: 10px; }
.site-foot a { color: #DCE6F0; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* phone: sticky quote bar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--white); border-top: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.mobile-bar .btn { width: 100%; }

/* legal pages */
.legal { padding-block: 48px 72px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 32px; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 12px; }
.legal p, .legal li { color: #24364A; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.3em; margin: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; }
.legal th { font-family: var(--display); color: var(--navy); }
.table-scroll { overflow-x: auto; }
.legal blockquote { margin: 16px 0; padding: 16px 20px; background: var(--paper); border-radius: 12px; border: 1px solid var(--line); }
.legal blockquote p { margin: 0 0 8px; }

@media (min-width: 720px) {
  .trust ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1.2fr 1fr; }
  .grant { grid-template-columns: 1.3fr 1fr; }
  .mobile-bar { display: none; }
  .site-foot .wrap { padding-bottom: 28px; }
}
@media (min-width: 980px) {
  .hero .wrap { grid-template-columns: 1.05fr 1fr; align-items: center; padding-block: 64px; gap: 48px; }
  .hero-photo { aspect-ratio: 4 / 3.4; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps li { padding: 78px 22px 24px; }
  .steps li::before { top: 22px; }
}
