/* 5to9 website. Self-hosted fonts, no third-party requests. */
@font-face { font-family: "Jakarta"; src: url("/fonts/jakarta-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/fonts/jakarta-medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/fonts/jakarta-semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/fonts/jakarta-bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/fonts/jakarta-extrabold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces_semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --bg: #0d1c16;
  --bg-2: #11261d;
  --surface: #16291f;
  --surface-2: #1b3226;
  --line: #28412f;
  --line-2: #335240;
  --ink: #f1f4ec;
  --ink-2: #c3d3c7;
  --muted: #92a898;
  --mint: #8fc9a3;
  --mint-2: #a9dbb9;
  --on-mint: #0f2a1e;
  --sun: #f0b05c;
  --sun-soft: rgba(240, 176, 92, .14);
  --forest: #15372b;
  --radius: 22px;
  --wrap: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--mint); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--mint-2); }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--mint); color: var(--on-mint); padding: 8px 14px; border-radius: 10px; z-index: 10; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(13, 28, 22, .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(40, 65, 47, .7);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { height: 38px; width: auto; }
.brand span { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--mint); padding-bottom: 4px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 15px/1 "Jakarta", sans-serif;
  padding: 13px 20px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
}
.btn-mint { background: var(--mint); color: var(--on-mint); }
.btn-mint:hover { background: var(--mint-2); color: var(--on-mint); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--mint); color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }

.store-soon {
  display: inline-flex; align-items: center; gap: 14px;
  background: #000; color: #fff; border: 1px solid #3f4a44; border-radius: 14px;
  padding: 10px 20px 10px 16px; text-decoration: none;
}
.store-soon:hover { color: #fff; border-color: var(--mint); }
.store-soon svg { width: 26px; height: 26px; color: var(--sun); }
.store-soon small { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #c9d1cc; font-weight: 600; }
.store-soon b { display: block; font-size: 19px; font-weight: 700; line-height: 1.2; }

/* ---------- common sections ---------- */
section { padding: 104px 0; position: relative; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sun); margin-bottom: 16px;
}
.pill {
  display: inline-flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 600;
  background: rgba(143, 201, 163, .12); color: var(--mint-2); border: 1px solid rgba(143, 201, 163, .28);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 26px;
}
.pill i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; }
.lead { font-size: 19px; color: var(--ink-2); margin-top: 18px; max-width: 34em; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.split.flip { grid-template-columns: .9fr 1.1fr; }
.split.flip .copy { order: 2; }
.checks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--ink-2); }
.checks li::before {
  content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2a1e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat;
}
.checks b { color: var(--ink); font-weight: 600; }
.note {
  margin-top: 30px; padding: 18px 22px; border-radius: 16px;
  background: var(--sun-soft); border: 1px solid rgba(240, 176, 92, .3); color: var(--ink-2); font-size: 15px;
}
.note b { color: var(--ink); display: block; margin-bottom: 2px; }
.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- phone ---------- */
.phone {
  width: 300px; max-width: 100%; margin: 0 auto; padding: 9px; border-radius: 46px;
  background: linear-gradient(160deg, #2a3a31, #0b120e 40%, #1c2923);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px #34463c, inset 0 0 0 1px rgba(255, 255, 255, .06);
  position: relative;
}
.phone img { border-radius: 38px; width: 100%; height: auto; aspect-ratio: 720 / 1497; object-fit: cover; object-position: top; background: #111c17; }
.phone::after { content: ""; position: absolute; top: 20px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #050806; box-shadow: 0 0 0 2px #19221d; }
.phone.sm { width: 250px; }
.phones { position: relative; display: flex; justify-content: center; }
.phones .phone.back { position: absolute; transform: translate(46%, 36px) rotate(5deg) scale(.86); opacity: .9; z-index: 0; }
.phones .phone.front { z-index: 1; transform: translateX(-18%); }
.caption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 0; overflow: hidden; background: radial-gradient(900px 520px at 78% 8%, rgba(240, 176, 92, .16), transparent 60%), linear-gradient(180deg, #0f231a, var(--bg)); }
.hero .split { align-items: center; }
.hero .copy { padding-bottom: 40px; }
.hero h1 { font-size: clamp(40px, 4.8vw, 62px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero .lead { font-size: 20px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 36px; }
.meta { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero .phones { margin-bottom: -70px; z-index: 3; }
.hills { display: block; width: 100%; height: 150px; margin-top: -80px; position: relative; z-index: 1; pointer-events: none; }
.trust { background: var(--bg); padding: 0 0 20px; position: relative; z-index: 3; }
.trust ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border-bottom: 1px solid var(--line); }
.trust li { display: flex; gap: 12px; align-items: center; color: var(--ink-2); font-weight: 500; font-size: 15px; }
.trust svg { width: 22px; height: 22px; color: var(--mint); flex: none; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 34px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.card p { color: var(--ink-2); font-size: 15px; margin-top: 8px; }
.dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(143, 201, 163, .16); color: var(--mint); }
.dot svg { width: 17px; height: 17px; }
.dot.sun { background: var(--sun-soft); color: var(--sun); }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .dot { width: 44px; height: 44px; border-radius: 14px; margin-bottom: 18px; }
.feature .dot svg { width: 22px; height: 22px; }
.feature h3 { font-size: 19px; font-weight: 700; }
.feature p { color: var(--ink-2); font-size: 15px; margin-top: 8px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- energy chips + meter ---------- */
.meter-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-top: 30px; max-width: 460px; }
.meter-top { display: flex; justify-content: space-between; align-items: baseline; }
.meter-top b { font-size: 16px; }
.meter-top span { font-size: 26px; font-weight: 800; color: var(--mint); }
.meter { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin-top: 14px; padding: 6px; border: 2px solid #5c7a68; border-radius: 14px; }
.meter i { height: 30px; border-radius: 6px; background: #22362b; }
.meter i.on { background: #6aa983; }
.meter-card p { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ---------- insights illustration ---------- */
.viz { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 28px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.viz-head { display: flex; justify-content: space-between; align-items: center; }
.viz-head b { font-size: 17px; }
.viz-tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 10px; }
.tabs { display: flex; gap: 6px; background: #0f1f18; border-radius: 999px; padding: 4px; margin: 18px 0 22px; width: max-content; max-width: 100%; }
.tabs span { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; color: var(--ink-2); }
.tabs span.on { background: var(--mint); color: var(--on-mint); }
.heat { display: grid; grid-template-columns: 70px repeat(7, 1fr); gap: 6px; font-size: 12px; color: var(--muted); align-items: center; }
.heat .c { height: 40px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #0f2a1e; }
.heat .h { text-align: center; }
.legend { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.legend i { height: 8px; width: 150px; border-radius: 4px; background: linear-gradient(90deg, #e0915c, #d9c9a0, #9ccfae, #4f9a6f); }
.viz h4 { margin: 26px 0 10px; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.trend { width: 100%; height: auto; }
.pattern { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: #10211a; border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.pattern b { color: var(--ink); }
.pattern small { display: block; color: var(--muted); margin-top: 4px; }

/* ---------- themes swatches ---------- */
.swatches { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.swatches i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface-2); }

/* ---------- faq ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-group { margin-top: 56px; }
.faq-group > h2 { font-size: 26px; margin-bottom: 14px; }
details { border-bottom: 1px solid var(--line); }
details summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-weight: 600; font-size: 18px; position: relative;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2px solid var(--mint); border-bottom: 2px solid var(--mint); transform: rotate(45deg); transition: transform .2s;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
details .a { padding: 0 0 24px; color: var(--ink-2); }
details .a p + p, details .a p + ol, details .a ol + p { margin-top: 12px; }
details .a ol, details .a ul { margin: 12px 0 0; padding-left: 22px; }
details .a li + li { margin-top: 6px; }
.faq-teaser { max-width: 820px; margin: 40px auto 0; }

/* ---------- legal / docs ---------- */
.page-head { padding: 88px 0 56px; background: linear-gradient(180deg, #0f231a, var(--bg)); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(38px, 5vw, 56px); font-weight: 800; }
.page-head .lead { margin-top: 14px; }
.doc { display: grid; grid-template-columns: 240px 1fr; gap: 64px; padding: 64px 24px 104px; }
.toc { position: sticky; top: 100px; align-self: start; font-size: 14px; }
.toc b { display: block; color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.prose { max-width: 740px; color: var(--ink-2); }
.prose h2 { font-size: 26px; color: var(--ink); margin: 52px 0 14px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; color: var(--ink); margin: 26px 0 8px; }
.prose p + p, .prose ul + p, .prose p + ul, .prose ol + p, .prose p + ol { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 12px 0 0; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--ink); }
.prose code { font-size: 14px; background: var(--surface-2); padding: 2px 7px; border-radius: 6px; color: var(--mint-2); }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.summary h2 { margin: 0 0 8px !important; font-size: 20px !important; }
.summary ul { margin-top: 8px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 36px; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; font-size: 14px; }
.facts b { display: block; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; font-weight: 600; }
.facts span { color: var(--ink); font-weight: 600; }
table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); font-weight: 600; background: var(--surface); }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; min-height: 30px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--mint); font-weight: 700; font-size: 14px; display: grid; place-items: center;
}

/* ---------- support ---------- */
.contact-card { display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 32px 36px; }
.contact-card h2 { font-size: 28px; margin: 0 !important; }
.contact-card p { margin-top: 8px; }
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 18px; }

/* ---------- cta + footer ---------- */
.cta { text-align: center; padding: 120px 0; overflow: hidden; background: radial-gradient(600px 380px at 50% 18%, rgba(240, 176, 92, .18), transparent 70%), var(--bg-2); border-top: 1px solid var(--line); }
.cta img.icon { width: 104px; height: 104px; margin: 0 auto 28px; border-radius: 26px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8); }
.cta h2 { font-size: clamp(36px, 5vw, 58px); }
.cta .cta-row { justify-content: center; }
.cta .lead, .cta .meta { margin-left: auto; margin-right: auto; max-width: 40em; }
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; color: var(--muted); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot img { height: 40px; width: auto; margin-bottom: 14px; }
.foot h4 { color: var(--ink); font-size: 14px; margin: 0 0 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.legal-line { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .split, .split.flip { grid-template-columns: 1fr; gap: 56px; }
  .split.flip .copy { order: 0; }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .trust ul { grid-template-columns: repeat(2, 1fr); }
  .doc { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
  .hero .copy { padding-bottom: 0; }
  .hero .phones { margin-bottom: -70px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .wrap { padding: 0 16px; }
  .doc { padding: 40px 16px 72px; }
  .site-header .wrap { height: 64px; gap: 12px; }
  .brand img { height: 32px; }
  .brand span { display: none; }
  .nav { gap: 16px; }
  .nav a { font-size: 14px; }
  .nav a.hide-sm { display: none; }
  .site-header .btn { display: none; }
  .hero { padding-top: 48px; }
  .lead, .hero .lead { font-size: 17px; }
  .cards, .grid3, .help-grid, .facts, .foot { grid-template-columns: 1fr; }
  .trust ul { grid-template-columns: 1fr 1fr; gap: 14px 10px; }
  .trust li { font-size: 14px; }
  .phones .phone.back { display: none; }
  .phones .phone.front { transform: none; }
  .phone { width: 250px; }
  .heat { grid-template-columns: 58px repeat(7, 1fr); gap: 4px; }
  .heat .c { height: 32px; font-size: 11px; }
  .viz { padding: 20px 16px; }
  .contact-card { padding: 24px; }
  details summary { font-size: 17px; }
  table { font-size: 14px; }
  th, td { padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header { position: static; } }
