/* ==========================================================================
   Cedars Software Solutions — design system
   Mobile-first. No frameworks, no external requests.
   ========================================================================== */

:root {
  /* Brand — sampled from the Cedars Software Solutions logo.
     --green-* names are kept as aliases so existing markup keeps working;
     the values are the brand blues. */
  --ink:          #0b1f33;
  --ink-2:        #14314b;

  --blue:         #4a9bd1;   /* logo wordmark blue */
  --blue-ink:     #1d6a99;   /* darkened for text/links — WCAG AA on white */
  --blue-light:   #6ec5e9;   /* logo tagline / chevron highlight */
  --blue-50:      #e9f4fb;

  --green:        var(--blue);
  --green-600:    var(--blue-ink);
  --green-300:    var(--blue-light);
  --green-50:     var(--blue-50);

  --amber:        #f0a419;
  --amber-50:     #fdf4e3;

  /* Neutrals */
  --white:        #ffffff;
  --slate-50:     #f7f9fb;
  --slate-100:    #eef2f6;
  --slate-200:    #dde4ec;
  --slate-400:    #8e9cae;
  --slate-600:    #56657a;
  --slate-800:    #27364b;

  /* Semantic */
  --bg:           var(--white);
  --bg-alt:       var(--slate-50);
  --text:         var(--slate-800);
  --text-dim:     var(--slate-600);
  --heading:      var(--ink);
  --border:       var(--slate-200);
  --brand:        var(--green);
  --brand-ink:    var(--green-600);

  /* Type scale (fluid) */
  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg:   clamp(1.125rem, 0.4vw + 1.05rem, 1.25rem);
  --fs-h4:   clamp(1.1875rem, 0.5vw + 1.1rem, 1.375rem);
  --fs-h3:   clamp(1.375rem, 1vw + 1.15rem, 1.75rem);
  --fs-h2:   clamp(1.75rem, 2vw + 1.25rem, 2.5rem);
  --fs-h1:   clamp(2.125rem, 4vw + 1.1rem, 3.5rem);
  --fs-hero: clamp(2.25rem, 5vw + 1rem, 4rem);

  /* Space */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 3rem;     --sp-8: 4rem;
  --sp-9: 6rem;

  --radius:    12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(10,22,40,.06), 0 1px 3px rgba(10,22,40,.04);
  --shadow:    0 4px 6px -1px rgba(10,22,40,.07), 0 2px 4px -2px rgba(10,22,40,.05);
  --shadow-lg: 0 18px 40px -12px rgba(10,22,40,.18);

  --container: 1180px;
  --header-h:  72px;

  --ease: cubic-bezier(.4,0,.2,1);
}

/* -------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 {
  color: var(--heading);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); letter-spacing: -0.01em; }
p  { margin: 0 0 var(--sp-4); }
p, li { text-wrap: pretty; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25rem; }
li + li { margin-top: var(--sp-2); }
strong { color: var(--heading); font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-7) 0; }
:focus-visible { outline: 3px solid var(--green-300); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--green-50); color: var(--ink); }

table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th, td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--heading); font-weight: 650; background: var(--slate-50); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.table-wrap table { min-width: 560px; font-size: var(--fs-sm); }

.skip-link {
  position: absolute; left: var(--sp-4); top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius); transition: top .2s var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

/* -------------------------------------------------- layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
.section { padding-block: var(--sp-8); }
@media (min-width: 768px) { .section { padding-block: var(--sp-9); } }
.section--tight { padding-block: var(--sp-7); }
.section--alt   { background: var(--bg-alt); }
.section--ink   { background: var(--ink); color: #c7d3e3; }
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--ink a { color: var(--green-300); }

.stack > * + * { margin-top: var(--sp-4); }
.measure     { max-width: 68ch; }
.measure-sm  { max-width: 56ch; }
.center      { text-align: center; }
.center .measure, .center .measure-sm { margin-inline: auto; }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 600px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.split { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .split--wide-left  { grid-template-columns: 1.15fr 0.85fr; }
  .split--wide-right { grid-template-columns: 0.85fr 1.15fr; }
  .split--flip > :first-child { order: 2; }
}

/* -------------------------------------------------- type helpers */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--sp-3);
}
.section--ink .eyebrow { color: var(--green-300); }
.lead { font-size: var(--fs-lg); color: var(--text-dim); line-height: 1.6; }
.section--ink .lead { color: #a9bacd; }
.small { font-size: var(--fs-sm); color: var(--text-dim); }
.tiny  { font-size: var(--fs-xs); color: var(--text-dim); }

/* -------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0.875rem 1.5rem;
  min-height: 48px;
  font-size: var(--fs-sm); font-weight: 650; line-height: 1;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--green); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--green-600); box-shadow: var(--shadow-lg); color: #fff; }
.btn--accent  { background: var(--amber); color: var(--ink); box-shadow: var(--shadow); }
.btn--accent:hover { background: #d98f0c; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--heading); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--green); color: var(--brand-ink); background: var(--green-50); }
.btn--onink { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--onink:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--sm { padding: 0.625rem 1.125rem; min-height: 40px; font-size: var(--fs-xs); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.center .btn-row { justify-content: center; }
@media (max-width: 420px) {
  .btn-row .btn { width: 100%; }
}

/* -------------------------------------------------- cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.card h3, .card h4 { margin-bottom: var(--sp-2); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
a.card { display: block; color: inherit; }
a.card:hover, .card--hover:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-300);
}
.card__more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; font-size: var(--fs-sm); color: var(--brand-ink); margin-top: var(--sp-3); }
.card--ink { background: var(--ink-2); border-color: rgba(255,255,255,.1); color: #b9c7d8; }
.card--ink h3, .card--ink h4 { color: #fff; }

.icon-badge {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--green-50);
  color: var(--brand);
  margin-bottom: var(--sp-4);
  flex: none;
}
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge--amber { background: var(--amber-50); color: #b47207; }

/* -------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__bar {
  display: flex; align-items: center; gap: var(--sp-4);
  min-height: var(--header-h);
}
/* ---------------------------------------- brand lockup
   Recreates the logo: CED + cedar chevron mark + RS, over a tracked tagline.
   Sized in em from --logo-size so the whole lockup scales as one unit. */
.brand { display: flex; align-items: center; margin-right: auto; }
.brand:hover { text-decoration: none; }

.brand__lockup { --logo-size: 1.6rem; display: block; line-height: 1; }
.brand__word {
  display: flex; align-items: flex-end; justify-content: center;
  font-family: "Playfair Display", "Times New Roman", Georgia, serif;
  font-weight: 700;
  font-size: var(--logo-size);
  line-height: .92;
  letter-spacing: .015em;
  color: var(--blue);
  white-space: nowrap;
}
.brand__tree {
  width: .96em; height: .96em; flex: none;
  margin: 0 .02em -.03em;
  --mark-top: var(--blue-light);
  --mark-bottom: var(--blue);
}
.brand__tag {
  display: block;
  margin-top: .32em;
  font-family: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: calc(var(--logo-size) * 0.238);
  font-weight: 600;
  letter-spacing: .28em;
  text-indent: .28em;      /* offsets trailing letter-space so it stays centred */
  text-transform: uppercase;
  text-align: center;
  color: var(--blue-light);
  white-space: nowrap;
}
/* On dark backgrounds the wordmark goes white and the mark keeps its gradient. */
.brand__lockup--light .brand__word { color: #fff; }
.brand__lockup--light .brand__tag  { color: var(--blue-light); }
.brand__lockup--light .brand__tree { --mark-top: #9bd9f2; --mark-bottom: var(--blue-light); }

@media (min-width: 640px) { .brand__lockup { --logo-size: 1.8rem; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -8px;
  background: transparent; border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-sm); font-weight: 600; color: var(--slate-800);
  padding: var(--sp-3) 0;
  width: 100%;
  background: none; border: 0; font-family: inherit; cursor: pointer; text-align: left;
}
.nav__link:hover { color: var(--brand-ink); text-decoration: none; }
.nav__link[aria-current="page"],
.nav__link[data-section="current"] { color: var(--brand-ink); }
.nav__caret { width: 14px; height: 14px; transition: transform .2s var(--ease); opacity: .6; margin-left: auto; }
.nav__link[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }
/* Submenus are driven entirely by the trigger's aria-expanded state — no
   hidden attribute, so JS never has to know which layout is active. */
.nav__sub { list-style: none; margin: 0 0 var(--sp-3); padding: 0 0 0 var(--sp-4); border-left: 2px solid var(--border); }
.nav__link + .nav__sub { display: none; }
.nav__link[aria-expanded="true"] + .nav__sub { display: block; }
.nav__sub li + li { margin-top: 0; }
.nav__sub a { display: block; padding: var(--sp-2) 0; font-size: var(--fs-sm); color: var(--text-dim); }
.nav__sub a:hover { color: var(--brand-ink); text-decoration: none; }
.nav__cta { margin-top: var(--sp-5); }
.nav__cta .btn { width: 100%; }

/* mobile drawer */
@media (max-width: 1023px) {
  /* The header's backdrop-filter makes it a containing block for fixed
     descendants, so the drawer is offset from the header rather than the
     viewport and needs an explicit height. */
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: auto;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--white);
    padding: var(--sp-5) var(--sp-5) var(--sp-9);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--border);
  }
  .nav[hidden] { display: none; }
  .nav__item + .nav__item { border-top: 1px solid var(--slate-100); }
  .nav__sub[hidden] { display: none; }
  body.nav-open { overflow: hidden; }
}

/* desktop nav */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav, .nav[hidden] { display: flex; align-items: center; margin-left: auto; }
  .nav__list { display: flex; align-items: center; gap: var(--sp-1); }
  .nav__item { position: relative; }
  .nav__link { padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-pill); width: auto; white-space: nowrap; }
  .nav__link:hover { background: var(--slate-100); }
  .nav__caret { margin-left: 0; }
  .nav__sub {
    position: absolute; top: calc(100% + 10px); left: 0;
    min-width: 252px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: var(--sp-2); margin: 0;
    border-left-width: 1px;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
  }
  /* Desktop keeps the dropdown in flow (display:block) and animates
     opacity/visibility instead, so it can transition. */
  .nav__link + .nav__sub { display: block; visibility: hidden; }
  /* Click-driven only. Hover-opening was removed: it fought the click state,
     so a menu opened by clicking closed again as soon as the pointer left. */
  .nav__link[aria-expanded="true"] + .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
  /* Keep the trigger visibly active while its menu is open. */
  .nav__link[aria-expanded="true"] { background: var(--blue-50); color: var(--brand-ink); }
  .nav__sub a { padding: var(--sp-2) var(--sp-3); border-radius: 8px; font-weight: 550; }
  .nav__sub a:hover { background: var(--green-50); }
  .nav__cta { margin: 0 0 0 var(--sp-3); }
  .nav__cta .btn { width: auto; }
}

/* -------------------------------------------------- hero */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(110,197,233,.20), transparent 62%),
    radial-gradient(760px 420px at 4% 108%, rgba(240,164,25,.13), transparent 60%),
    linear-gradient(168deg, var(--ink) 0%, #0d1e36 52%, #0a1a2f 100%);
  color: #cbd7e6;
  padding-block: var(--sp-7) var(--sp-8);
  overflow: hidden;
}
@media (min-width: 768px) { .hero { padding-block: var(--sp-8) var(--sp-9); } }
.hero h1 { color: #fff; font-size: var(--fs-hero); margin-bottom: var(--sp-5); }
.hero h1 em { font-style: normal; color: var(--green-300); }
.hero .lead { color: #a7b8cb; font-size: clamp(1.0625rem, 1vw + .95rem, 1.3125rem); max-width: 56ch; }
.hero__grid { display: grid; gap: var(--sp-7); }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.08fr .92fr; gap: var(--sp-8); align-items: center; } }
.hero--sub { padding-block: var(--sp-6) var(--sp-7); }
.hero--sub h1 { margin-bottom: var(--sp-4); }
.hero--sub .lead { max-width: 62ch; }

.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .875rem;
  font-size: var(--fs-xs); font-weight: 600;
  border-radius: var(--radius-pill);
  background: rgba(110,197,233,.14);
  border: 1px solid rgba(110,197,233,.3);
  color: #a6ddf5;
  margin-bottom: var(--sp-5);
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-300); flex: none; }
.pill--light { background: var(--green-50); border-color: #bfe2f4; color: var(--green-600); }

.hero__list { list-style: none; padding: 0; margin: var(--sp-5) 0 var(--sp-6); display: grid; gap: var(--sp-3); }
.hero__list li { display: flex; gap: var(--sp-3); align-items: flex-start; margin: 0; font-size: var(--fs-sm); color: #b7c6d7; }
.hero__list svg { width: 19px; height: 19px; flex: none; color: var(--green-300); margin-top: 2px; }

/* console mock */
.console {
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
}
.console__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding-bottom: var(--sp-3); border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: var(--sp-4); }
.console__title { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8fa3ba; }
.console__live { display: inline-flex; align-items: center; gap: .4rem; font-size: 11px; font-weight: 700; color: var(--green-300); letter-spacing: .06em; }
.console__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-300); animation: pulse 1.9s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.82); } }
.console__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.console__cell { background: rgba(10,22,40,.42); border: 1px solid rgba(255,255,255,.09); border-radius: 10px; padding: var(--sp-3); }
.console__k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: #7e93ab; font-weight: 650; }
.console__v { font-size: 1.375rem; font-weight: 750; color: #fff; letter-spacing: -.02em; line-height: 1.2; margin-top: 3px; font-variant-numeric: tabular-nums; }
.console__v small { font-size: .6em; font-weight: 600; color: #8fa3ba; margin-left: 2px; }
.console__d { font-size: 11px; font-weight: 650; color: var(--green-300); }
.console__bars { display: flex; align-items: flex-end; gap: 5px; height: 46px; margin-top: var(--sp-2); }
.console__bars i { flex: 1; background: linear-gradient(180deg, var(--green-300), rgba(110,197,233,.25)); border-radius: 3px 3px 0 0; }
.console__tank { margin-top: var(--sp-3); }
.console__tank-row { display: flex; justify-content: space-between; font-size: 11.5px; color: #9fb2c6; font-weight: 600; margin-bottom: 4px; }
.console__meter { height: 7px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.console__meter i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--green), var(--green-300)); }
.console__meter i.is-low { background: linear-gradient(90deg, #c2410c, var(--amber)); }
.console__foot { margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid rgba(255,255,255,.12); font-size: 11.5px; color: #7e93ab; display: flex; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
@media (min-width: 480px) { .console__grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* -------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding: var(--sp-4) var(--sp-2); }
.stat__n { font-size: clamp(2rem, 3.4vw + 1rem, 3rem); font-weight: 780; color: var(--heading); letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.section--ink .stat__n, .hero .stat__n { color: #fff; }
.stat__n span { color: var(--brand); }
.section--ink .stat__n span, .hero .stat__n span { color: var(--green-300); }
.stat__l { font-size: var(--fs-xs); font-weight: 600; color: var(--text-dim); margin-top: var(--sp-2); text-wrap: balance; }
.section--ink .stat__l, .hero .stat__l { color: #93a6bb; }

/* -------------------------------------------------- logo strip */
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--sp-4) var(--sp-6); }
.logos span {
  font-size: var(--fs-sm); font-weight: 650; color: var(--slate-400);
  letter-spacing: -.01em; white-space: nowrap;
}

/* -------------------------------------------------- feature lists */
.checks { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.checks li { display: flex; gap: var(--sp-3); align-items: flex-start; margin: 0; font-size: var(--fs-sm); }
.checks svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 2px; }
.section--ink .checks svg { color: var(--green-300); }
.checks--2 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .checks--2 { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3) var(--sp-5); } }

/* numbered steps */
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: var(--sp-5); }
@media (min-width: 900px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } .steps--3 { grid-template-columns: repeat(3, 1fr); } }
.steps li { margin: 0; counter-increment: s; position: relative; padding-top: var(--sp-6); }
.steps li::before {
  content: counter(s);
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green); color: #fff;
  font-weight: 750; font-size: var(--fs-sm);
}
.steps h3, .steps h4 { margin-bottom: var(--sp-2); }
.steps p { margin: 0; font-size: var(--fs-sm); color: var(--text-dim); }

/* -------------------------------------------------- answer block (GEO) */
.answer {
  background: var(--green-50);
  border: 1px solid #c2e4f5;
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: var(--sp-5);
  margin-bottom: var(--sp-6);
}
.answer h2, .answer h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
.answer p:last-child, .answer ul:last-child { margin-bottom: 0; }
.answer__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-600); display: block; margin-bottom: var(--sp-2); }

/* key-facts table for AI extraction */
.facts { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.facts th { width: 40%; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }

/* -------------------------------------------------- FAQ */
.faq { display: grid; gap: var(--sp-3); max-width: 820px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.faq details[open] { border-color: var(--green-300); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none;
  font-weight: 650; color: var(--heading); font-size: var(--fs-base);
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4);
  padding-block: var(--sp-2); margin-block: calc(var(--sp-2) * -1);
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 11px; height: 11px; margin-top: 7px;
  border-right: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand);
  transform: rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details > div { padding-top: var(--sp-3); color: var(--text-dim); font-size: var(--fs-sm); }
.faq details > div > :last-child { margin-bottom: 0; }

/* -------------------------------------------------- testimonial */
.quote {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  margin: 0;
}
.quote blockquote { margin: 0 0 var(--sp-4); font-size: var(--fs-lg); color: var(--heading); line-height: 1.55; letter-spacing: -.01em; }
.quote figcaption { font-size: var(--fs-sm); color: var(--text-dim); }
.quote figcaption strong { display: block; color: var(--heading); }

/* -------------------------------------------------- pricing */
.tiers { display: grid; gap: var(--sp-5); }
@media (min-width: 700px)  { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .tiers { grid-template-columns: repeat(4, 1fr); } }
.tier { display: flex; flex-direction: column; }
.tier--featured { border-color: var(--green); box-shadow: var(--shadow-lg); position: relative; }
.tier__tag { position: absolute; top: -12px; left: var(--sp-5); background: var(--green); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: .3rem .7rem; border-radius: var(--radius-pill); }
.tier ul { list-style: none; padding: 0; margin: var(--sp-4) 0 var(--sp-5); flex: 1; display: grid; gap: var(--sp-2); }
.tier ul li { display: flex; gap: var(--sp-2); font-size: var(--fs-sm); margin: 0; }
.tier ul li::before { content: "\2713"; color: var(--brand); font-weight: 700; flex: none; }
.tier .btn { width: 100%; }

/* -------------------------------------------------- CTA band */
.cta-band {
  background:
    radial-gradient(680px 340px at 88% 8%, rgba(110,197,233,.2), transparent 60%),
    linear-gradient(140deg, var(--ink), #0d2039);
  color: #b9c8da;
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-5);
  text-align: center;
}
@media (min-width: 768px) { .cta-band { padding: var(--sp-8) var(--sp-7); } }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #a3b5c9; margin-inline: auto; }

/* -------------------------------------------------- breadcrumbs */
.crumbs { font-size: var(--fs-xs); color: #8ea0b5; padding-bottom: var(--sp-4); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li { margin: 0; display: flex; gap: .4rem; align-items: center; }
.crumbs li + li::before { content: "/"; opacity: .5; }
.crumbs a { color: inherit; }
.crumbs [aria-current] { color: #fff; font-weight: 600; }

/* -------------------------------------------------- article */
.article { max-width: 72ch; }
.article h2 { margin-top: var(--sp-7); }
.article h3 { margin-top: var(--sp-6); font-size: var(--fs-h4); }
.article > :first-child { margin-top: 0; }
.article ul, .article ol { margin-bottom: var(--sp-5); }
.article__meta { font-size: var(--fs-sm); color: var(--text-dim); margin-bottom: var(--sp-5); }
.toc { background: var(--slate-50); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-6); }
.toc strong { display: block; font-size: var(--fs-sm); margin-bottom: var(--sp-2); }
.toc ol { margin: 0; font-size: var(--fs-sm); }

/* -------------------------------------------------- forms */
.form { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: .375rem; }
.field label { font-size: var(--fs-sm); font-weight: 650; color: var(--heading); }
.field label i { color: #c2410c; font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: var(--fs-sm);
  color: var(--text);
  padding: .75rem .875rem;
  min-height: 48px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356657a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center; background-size: 18px;
  padding-right: 2.5rem;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(74,155,209,.14);
}
.field__hint { font-size: var(--fs-xs); color: var(--text-dim); }
@media (min-width: 640px) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); } }
.alert { padding: var(--sp-4); border-radius: var(--radius); font-size: var(--fs-sm); border: 1px solid; }
.alert--ok  { background: var(--green-50); border-color: #bfe2f4; color: var(--green-600); }
.alert--err { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.alert p:last-child { margin-bottom: 0; }

/* contact tiles */
.contact-list { list-style: none; padding: 0; display: grid; gap: var(--sp-4); }
.contact-list li { margin: 0; display: flex; gap: var(--sp-4); align-items: flex-start; }
.contact-list .icon-badge { width: 42px; height: 42px; margin: 0; border-radius: 12px; }
.contact-list .icon-badge svg { width: 20px; height: 20px; }
.contact-list strong { display: block; font-size: var(--fs-sm); }
.contact-list span, .contact-list a { font-size: var(--fs-sm); color: var(--text-dim); }

/* -------------------------------------------------- footer */
.site-footer { background: var(--ink); color: #93a6bb; font-size: var(--fs-sm); padding-block: var(--sp-8) var(--sp-5); }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer a { color: #a9bacd; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: var(--sp-6); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--sp-7); } }
.footer__title { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: var(--sp-4); }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.footer__list li { margin: 0; }
/* Comfortable tap targets on touch screens without loosening the desktop layout. */
@media (max-width: 1023px) {
  .footer__list { gap: 0; }
  .footer__list a { display: block; padding: .5rem 0; }
  .footer__bottom ul a { display: inline-block; padding: .375rem 0; }
}
.footer__brand { display: inline-flex; align-items: center; margin-bottom: var(--sp-5); }
.footer__brand:hover { text-decoration: none; }
.footer__brand .brand__lockup { --logo-size: 1.75rem; }
.footer__social { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.footer__social a:hover { background: var(--green); border-color: var(--green); }
.footer__social svg { width: 19px; height: 19px; }
.footer__bottom {
  margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  justify-content: space-between; align-items: center;
  font-size: var(--fs-xs);
}
.footer__bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.footer__bottom li { margin: 0; }

/* floating whatsapp */
.wa {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,.4);
  transition: transform .2s var(--ease);
}
.wa:hover { transform: scale(1.07); }
.wa svg { width: 28px; height: 28px; }
@media (min-width: 768px) { .wa { right: 24px; bottom: 24px; } }

/* -------------------------------------------------- on-load entrance
   Pure CSS so it runs at first paint with no JS dependency and no flash.
   Stagger with style="--d:.15s" on each element. */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: none; }
}
@keyframes zoomIn {
  from { opacity: 0; transform: translateY(26px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes markGrow {
  from { opacity: 0; transform: translateY(6px) scale(.72); }
  to   { opacity: 1; transform: none; }
}

.rise  { animation: riseIn .72s var(--ease) both; animation-delay: var(--d, 0s); }
.fade  { animation: fadeIn .9s  var(--ease) both; animation-delay: var(--d, 0s); }
.zoom  { animation: zoomIn .85s var(--ease) both; animation-delay: var(--d, 0s); }

/* Header settles in, and the logo mark grows just after it. */
.site-header { animation: dropIn .55s var(--ease) both; }
.brand__tree { animation: markGrow .7s var(--ease) .3s both; }

/* The hero dashboard animates itself alive: bars grow from the baseline and
   tank meters fill. Both animate to their inline values, since an animation
   declaration outranks an inline style. */
@keyframes barGrow  { from { transform: scaleY(0); } }
@keyframes meterFill { from { width: 0; } }

.console__bars i {
  transform-origin: bottom;
  animation: barGrow .7s var(--ease) both;
  animation-delay: calc(.45s + var(--i, 0) * .045s);
}
.console__bars i:nth-child(1)  { --i: 1 }  .console__bars i:nth-child(2)  { --i: 2 }
.console__bars i:nth-child(3)  { --i: 3 }  .console__bars i:nth-child(4)  { --i: 4 }
.console__bars i:nth-child(5)  { --i: 5 }  .console__bars i:nth-child(6)  { --i: 6 }
.console__bars i:nth-child(7)  { --i: 7 }  .console__bars i:nth-child(8)  { --i: 8 }
.console__bars i:nth-child(9)  { --i: 9 }  .console__bars i:nth-child(10) { --i: 10 }
.console__bars i:nth-child(11) { --i: 11 } .console__bars i:nth-child(12) { --i: 12 }

.console__meter i { animation: meterFill 1s var(--ease) .55s both; }

/* -------------------------------------------------- reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* -------------------------------------------------- print */
@media print {
  .site-header, .site-footer, .wa, .nav, .cta-band { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .hero { background: none !important; color: #000; }
  .hero h1, .hero .lead { color: #000; }
}
