/* /public_html/assets/css/site.css
   EFMS public site: landing, register, login, checkout, report.
   The logged-in app still uses style.css. */

:root {
  --ink: #14231F;
  --ink-2: #3D4F4A;
  --muted: #6B7A75;
  --line: #E6E0D4;
  --sand: #FBF7F0;
  --sand-2: #F4EDE1;
  --card: #FFFFFF;
  --gum: #0F5C49;        /* eucalyptus green, primary */
  --gum-2: #0B4738;
  --gum-soft: #E3F0EA;
  --ochre: #D9823B;      /* roo orange, accent */
  --ochre-soft: #FBEBDC;
  --hat: #F2B61F;
  --danger: #B3261E;
  --danger-soft: #FCE8E6;
  --ok: #1E7A4C;
  --ok-soft: #E2F4EA;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20,35,31,.06), 0 8px 24px rgba(20,35,31,.08);
  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--gum); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gum); background: var(--gum-soft);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--font-body);
  padding: 14px 22px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gum); color: #fff; box-shadow: 0 6px 16px rgba(15,92,73,.25); }
.btn-primary:hover { background: var(--gum-2); }
.btn-accent { background: var(--ochre); color: #fff; box-shadow: 0 6px 16px rgba(217,130,59,.3); }
.btn-accent:hover { background: #C46F2B; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--gum-2); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid var(--hat); outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,240,.88); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; line-height: 1; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .7rem; color: var(--muted); letter-spacing: .02em; margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--ink); }
.site-nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--sand); border-bottom: 1px solid var(--line); padding: 8px 20px 18px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 12px; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 .hl { color: var(--gum); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .9rem; }
.trust span::before { content: "✓"; color: var(--gum); font-weight: 700; margin-right: 6px; }

.hero-art { position: relative; min-height: 440px; }
.hero-art .blob {
  position: absolute; inset: 30px 10px 20px 30px;
  background: radial-gradient(circle at 40% 35%, #F7D9B5 0, #F2C893 45%, rgba(242,200,147,0) 72%);
  border-radius: 50%;
}
.hero-art .roo { position: relative; width: 78%; margin: 0 auto; filter: drop-shadow(0 18px 24px rgba(20,35,31,.12)); }
.chip {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  padding: 12px 14px; font-size: .85rem; line-height: 1.35; display: flex; gap: 10px; align-items: center;
  max-width: 250px;
}
.chip strong { display: block; font-size: .9rem; }
.chip .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; font-size: 1rem; }
.chip-1 { top: 46%; left: -28px; }
.chip-2 { bottom: 14px; right: -10px; }
.chip span { white-space: nowrap; }
.chip-1 .dot { background: var(--ochre-soft); }
.chip-2 .dot { background: var(--gum-soft); }

@media (max-width: 880px) {
  .hero { padding-top: 36px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { min-height: 360px; max-width: 420px; margin: 0 auto; width: 100%; }
  .chip-1 { left: 0; top: 24%; } .chip-2 { right: 0; bottom: 0; }
  .chip { font-size: .78rem; padding: 9px 11px; }
  .chip .dot { width: 28px; height: 28px; }
}

/* ---------- Report bar ---------- */
.report-bar {
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
}
.report-bar h3 { margin: 0; color: #fff; }
.report-bar p { margin: 2px 0 0; color: #B9C6C1; font-size: .92rem; }
.report-bar form { display: flex; gap: 10px; flex: 1 1 340px; }
.report-bar input {
  flex: 1; min-width: 0; padding: 13px 16px; border-radius: 999px; border: 0;
  font: 500 1rem var(--font-body); text-transform: uppercase;
}
.report-bar input::placeholder, #asset::placeholder { text-transform: none; }
@media (max-width: 560px) { .report-bar form { flex-direction: column; } .report-bar { padding: 20px; } }

/* ---------- Sections ---------- */
section.block { padding: 84px 0; }
section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-head); font-weight: 800; font-size: 1rem;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ochre); color: #fff; margin-bottom: 16px;
}
.step p { color: var(--ink-2); margin: 0; }
.path {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; font-size: .78rem; font-weight: 600;
}
.path span { background: var(--sand-2); padding: 4px 9px; border-radius: 6px; color: var(--ink-2); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--sand); border: 1px solid var(--line); }
.feature .ico {
  width: 44px; height: 44px; border-radius: 12px; background: var(--gum-soft); color: var(--gum);
  display: grid; place-items: center; margin-bottom: 14px;
}
.feature .ico svg { width: 22px; height: 22px; }
.feature p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.tag-soon { font: 600 .7rem var(--font-body); text-transform: uppercase; letter-spacing: .05em; color: var(--ochre); background: var(--ochre-soft); padding: 3px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }

.sectors { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sectors span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 500; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--gum); box-shadow: var(--shadow); position: relative; }
.plan.featured::before {
  content: "Most popular"; position: absolute; top: -13px; left: 28px;
  background: var(--gum); color: #fff; font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.plan .price { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; line-height: 1; margin: 10px 0 4px; }
.plan .price small { font-family: var(--font-body); font-size: .9rem; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.plan li { padding: 7px 0 7px 26px; position: relative; color: var(--ink-2); font-size: .95rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: 12px; width: 14px; height: 8px; border-left: 2.5px solid var(--gum); border-bottom: 2.5px solid var(--gum); transform: rotate(-45deg); }
.price-note { font-size: .88rem; color: var(--muted); margin-top: 18px; text-align: center; }

/* Token pricing */
.plan-meter { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 4px; }
.plan-meter > div { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; font-size: .9rem; line-height: 1.3; }
.plan-meter strong { font-family: var(--font-head); font-size: 1.35rem; display: block; color: var(--gum); }
.plan-meter span { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.token-explainer { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; margin-top: 28px; background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.token-explainer ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.token-explainer li { margin-bottom: 6px; }
.extras { width: 100%; border-collapse: collapse; }
.extras td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.extras td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
@media (max-width: 760px) { .token-explainer { grid-template-columns: 1fr; padding: 20px; } }
.site-nav-min a { color: var(--ink-2); text-decoration: none; font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--gum); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--gum); color: #fff; border-radius: 22px; padding: 44px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; overflow: hidden; position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #CFE3DB; margin: 0; }
.cta-band .roo-peek { width: 190px; margin: -20px 10px -70px 0; }
@media (max-width: 720px) { .cta-band { grid-template-columns: 1fr; padding: 30px; } .cta-band .roo-peek { display: none; } }

@media (max-width: 900px) {
  .steps, .features, .plans { grid-template-columns: 1fr; }
  .plans { max-width: 460px; margin: 0 auto; }
  section.block { padding: 60px 0; }
}
@media (min-width: 640px) and (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B9C6C1; padding: 48px 0 28px; margin-top: 84px; font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.site-footer a { color: #DCE6E2; text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 12px; display: flex; padding: 0; }
.site-footer .brand-name small { color: #9FB0AA; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > div:first-child { grid-column: 1 / -1; } }
.site-footer .legal { border-top: 1px solid #2B3D38; margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .82rem; }
.site-footer .legal a { display: inline; }

/* ---------- Forms (register / login / checkout / report) ---------- */
.auth-shell { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 420px 1fr; }
.auth-side {
  background: var(--gum); color: #fff; padding: 48px 40px; display: flex; flex-direction: column; gap: 22px; position: relative; overflow: hidden;
}
.auth-side h2 { color: #fff; font-size: 1.9rem; }
.auth-side p { color: #CFE3DB; }
.auth-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.auth-side li { display: flex; gap: 12px; align-items: flex-start; color: #E8F2EE; }
.auth-side li b { color: #fff; }
.auth-side li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; font-size: .8rem; }
.auth-side .roo { width: 210px; margin-top: auto; align-self: center; }
.auth-main { padding: 48px 20px; display: flex; justify-content: center; align-items: flex-start; }
.auth-card { width: 100%; max-width: 560px; }
.auth-card.narrow { max-width: 420px; }
@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { padding: 28px 20px; }
  .auth-side .roo, .auth-side ul { display: none; }
  .auth-main { padding: 28px 16px 48px; }
}

.stepper { display: flex; gap: 8px; margin-bottom: 26px; list-style: none; padding: 0; }
.stepper li { flex: 1; font-size: .8rem; font-weight: 600; color: var(--muted); padding-top: 10px; border-top: 4px solid var(--line); }
.stepper li.done { color: var(--gum); border-color: var(--gum); }
.stepper li.now { color: var(--ink); border-color: var(--ochre); }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 18px; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin-bottom: 14px; padding: 0; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #D7D0C2; border-radius: var(--radius-sm);
  font: 400 1rem var(--font-body); color: var(--ink); background: #fff; transition: border-color .15s ease;
}
.field input:hover, .field textarea:hover { border-color: #BDB4A3; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gum); outline: none; box-shadow: 0 0 0 4px rgba(15,92,73,.12); }
.field textarea { min-height: 130px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 70px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--gum); font: 600 .85rem var(--font-body); cursor: pointer; padding: 6px; }
.meter { height: 6px; border-radius: 6px; background: var(--sand-2); margin-top: 8px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--danger); transition: width .2s ease, background .2s ease; }

.plan-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .plan-pick { grid-template-columns: 1fr; } }
.plan-pick input { position: absolute; opacity: 0; pointer-events: none; }
.plan-pick label {
  display: block; border: 1.5px solid #D7D0C2; border-radius: var(--radius-sm); padding: 14px; cursor: pointer; height: 100%;
  transition: border-color .15s ease, background .15s ease;
}
.plan-pick label:hover { border-color: #BDB4A3; }
.plan-pick .pp-name { font-weight: 700; display: block; }
.plan-pick .pp-price { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; display: block; margin: 4px 0; }
.plan-pick .pp-price small { font: 500 .8rem var(--font-body); color: var(--muted); }
.plan-pick .pp-desc { font-size: .8rem; color: var(--muted); display: block; line-height: 1.4; }
.plan-pick input:checked + label { border-color: var(--gum); background: var(--gum-soft); box-shadow: 0 0 0 1px var(--gum) inset; }
.plan-pick input:focus-visible + label { outline: 3px solid var(--hat); outline-offset: 2px; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); margin: 6px 0 18px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gum); flex: none; }

.alert { border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 18px; font-size: .95rem; }
.alert-error { background: var(--danger-soft); color: var(--danger); border: 1px solid #F3C4BF; }
.alert-ok { background: var(--ok-soft); color: var(--ok); border: 1px solid #BFE3CE; }
.alert-info { background: var(--ochre-soft); color: #8A4A17; border: 1px solid #F1D3B6; }

.form-foot { text-align: center; margin-top: 18px; font-size: .92rem; color: var(--muted); }
.link-row { display: flex; justify-content: flex-end; margin: -6px 0 16px; font-size: .9rem; }

.summary { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; margin: 18px 0; }
.summary .line { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.summary .total { border-top: 1px dashed #D7D0C2; margin-top: 8px; padding-top: 10px; font-weight: 700; font-size: 1.1rem; }

.device-card { display: flex; gap: 14px; align-items: center; background: var(--gum-soft); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 20px; }
.device-card .ico { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--gum); flex: none; }
.device-card strong { display: block; }
.device-card span { font-size: .85rem; color: var(--ink-2); }

.success-hero { text-align: center; }
.success-hero img { width: 170px; margin: 0 auto 10px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
