/* ==========================================================================
   ApartmentWebDesign.com — design system
   Brand: green #2A9936 / charcoal #2D373A. Display: Bricolage Grotesque. Body: Inter.
   ========================================================================== */

/* ----- Fonts (self-hosted, latin subset) ----- */
/* Poppins: geometric sans chosen to match the Apartment Web Design logo wordmark. */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-500.woff2") format("woff2");
  font-weight: 500; font-display: swap; font-style: normal;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-600.woff2") format("woff2");
  font-weight: 600; font-display: swap; font-style: normal;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-700.woff2") format("woff2");
  font-weight: 700; font-display: swap; font-style: normal;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

/* ----- Tokens ----- */
:root {
  /* brand greens */
  --green-50:  #edf9f0;
  --green-100: #d3f0da;
  --green-200: #a7e2b5;
  --green-400: #3cb451;
  --green-500: #21a23a;
  --green-600: #1a8c31;  /* primary action */
  --green-700: #14722a;  /* hover */
  --green-800: #105c22;
  --green-900: #0c4a1b;

  /* ink / neutrals */
  --ink-900: #121a1c;
  --ink-800: #1c2628;
  --ink-700: #2d373a;   /* logo charcoal — headings */
  --ink-600: #3f4b4d;
  --ink-500: #56635f;   /* body muted */
  --ink-400: #74817d;
  --ink-300: #9aa6a2;

  /* surfaces */
  --bg:        #ffffff;
  --bg-soft:   #f4f8f5;
  --bg-softer: #eef3f0;
  --bg-ink:    #101719;
  --bg-ink-2:  #16211f;
  --line:      #e4ebe7;
  --line-2:    #d4ddd8;

  --gold: #f6b73c; /* review stars only */

  /* type */
  --font-display: "Poppins", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-display: clamp(2.6rem, 1.4rem + 4.6vw, 4.4rem);
  --fs-h1: clamp(2.05rem, 1.4rem + 2.6vw, 3.15rem);
  --fs-h2: clamp(1.65rem, 1.2rem + 1.9vw, 2.45rem);
  --fs-h3: clamp(1.24rem, 1.05rem + 0.7vw, 1.55rem);
  --fs-lead: clamp(1.1rem, 1.02rem + 0.4vw, 1.32rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.8rem;

  /* spacing */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 2.75rem; --sp-8: 3.5rem;
  --sp-9: 4.5rem; --sp-10: 6rem; --sp-12: 8rem;

  --maxw: 1180px;
  --maxw-wide: 1320px;
  --maxw-prose: 720px;

  --r-sm: 9px; --r: 14px; --r-lg: 22px; --r-xl: 30px; --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(18,26,28,.06), 0 1px 3px rgba(18,26,28,.05);
  --shadow: 0 6px 18px -6px rgba(18,26,28,.12), 0 2px 6px -2px rgba(18,26,28,.07);
  --shadow-lg: 0 24px 48px -18px rgba(18,26,28,.22), 0 8px 20px -10px rgba(18,26,28,.12);
  --shadow-green: 0 14px 30px -10px rgba(26,140,49,.35);

  --ease: cubic-bezier(.22,.7,.24,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --header-h: 82px;
}

/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-600); }
strong { font-weight: 600; color: var(--ink-800); }
:focus-visible { outline: 3px solid var(--green-400); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--green-200); color: var(--ink-900); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-800);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
p { text-wrap: pretty; }

/* ----- Layout ----- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.container-wide { max-width: var(--maxw-wide); }
.container-prose { max-width: var(--maxw-prose); }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-sm { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--soft { background: var(--bg-soft); }
.section--ink { background: var(--bg-ink); color: #cdd8d4; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--green { background: linear-gradient(160deg, var(--green-700), var(--green-900)); color: #e8f6ea; }
.section--green h2 { color: #fff; }

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

/* ----- Section headers ----- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-700); margin-bottom: var(--sp-3);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--green-500); border-radius: 2px; }
.section--ink .eyebrow, .section--green .eyebrow { color: var(--green-200); }
.section--ink .eyebrow::before, .section--green .eyebrow::before { background: var(--green-400); }
.sec-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head.center { margin-inline: auto; }
.sec-head p { color: var(--ink-500); font-size: var(--fs-lead); margin-top: var(--sp-4); }
.section--ink .sec-head p { color: #aab6b2; }

/* ----- Buttons ----- */
.btn {
  --btn-bg: var(--green-600); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  line-height: 1; padding: .92rem 1.5rem; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s ease;
  box-shadow: var(--shadow-green); white-space: nowrap; text-align: center;
}
.btn:hover { background: var(--green-700); color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(26,140,49,.45); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 1.08rem 1.9rem; font-size: 1.06rem; }
.btn--outline { background: transparent; color: var(--ink-700); border-color: var(--line-2); box-shadow: none; }
.btn--outline:hover { background: var(--ink-800); color: #fff; border-color: var(--ink-800); transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; border-color: rgba(255,255,255,.25); }
.btn--ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn--white { background:#fff; color: var(--green-700); box-shadow: var(--shadow); }
.btn--white:hover { background:#fff; color: var(--green-800, #11631f); }
.btn--block { width: 100%; }
.btn svg { width: 1.05em; height: 1.05em; }
.btn-arrow { transition: transform .2s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow svg { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ----- Pills / badges ----- */
.badge {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em;
  padding: .4rem .8rem; border-radius: var(--r-pill);
  background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100);
}
.badge--dot::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 4px rgba(33,162,58,.18); }

/* ----- Cards ----- */
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
}
.card--hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--green-200); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--green-50); color: var(--green-600); margin-bottom: var(--sp-4);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: var(--sp-2); }
.card p { color: var(--ink-500); font-size: var(--fs-sm); }

/* ----- Grid ----- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ----- Stats ----- */
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.1rem); color: var(--green-600); line-height: 1; letter-spacing: -0.03em; }
.stat__label { color: var(--ink-500); font-size: var(--fs-sm); margin-top: .4rem; }
.section--ink .stat__num { color: var(--green-400); }
.section--ink .stat__label { color: #9fb0ab; }

/* ----- Reveal animation ----- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal-stagger.is-in > * { opacity: 1; transform: none; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -14px rgba(18,26,28,.2); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: var(--sp-5); }
.brand { display: inline-flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand img { height: 48px; width: auto; }
@media (max-width: 600px) { .brand img { height: 40px; } }
.nav__links { display: flex; align-items: center; gap: clamp(.4rem, 1.4vw, 1.4rem); list-style: none; padding: 0; }
.nav__links a { color: var(--ink-600); font-weight: 500; font-size: .96rem; padding: .5rem .2rem; position: relative; }
.nav__links a:hover { color: var(--ink-900); }
.nav__links a::after { content:""; position:absolute; left:.2rem; right:.2rem; bottom:.15rem; height:2px; background: var(--green-500); border-radius:2px; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.nav__phone { font-weight: 600; color: var(--ink-700); font-size: .95rem; white-space: nowrap; }
.nav__phone:hover { color: var(--green-700); }
.nav-toggle { display: none; }

/* dropdown — flush to trigger with a transparent hover bridge (padding-top) so
   moving the cursor down into the menu never crosses a dead gap. */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: 14px; min-width: 248px;
  opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s;
}
.dropdown__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: .5rem; transform: translateY(8px); transition: transform .22s var(--ease);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; }
.has-dropdown:hover .dropdown__card, .has-dropdown:focus-within .dropdown__card { transform: translateY(0); }
.dropdown a { display: block; padding: .6rem .75rem; border-radius: 9px; color: var(--ink-600); font-size: .92rem; }
.dropdown a::after { display: none; }
.dropdown a:hover { background: var(--green-50); color: var(--green-700); }

@media (max-width: 980px) {
  .nav__links, .nav__demo { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; padding: 0 11px;
  }
  .nav-toggle span { height: 2px; background: var(--ink-700); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* mobile drawer */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 90;
  background: #fff; padding: 1.5rem clamp(1.1rem,4vw,2rem) 2.5rem; overflow-y: auto;
  transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .3s ease, transform .3s var(--ease), visibility .3s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav a { display: block; padding: .9rem .25rem; font-size: 1.12rem; font-weight: 500; color: var(--ink-800); border-bottom: 1px solid var(--line); }
.mobile-nav .sub { font-size: .98rem; color: var(--ink-500); padding-left: 1rem; font-weight: 400; }
.mobile-nav .btn { margin-top: 1.4rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--bg-ink); color: #9fb0ab; padding-block: clamp(3rem,6vw,4.5rem) 2rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 2.5rem; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 2rem 1.5rem; } }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.site-footer a { color: #9fb0ab; font-size: .94rem; }
.site-footer a:hover { color: #fff; }
.site-footer a.btn, .site-footer .btn { color: #fff; font-size: 1rem; }
.site-footer a.btn:hover { color: #fff; }
.footer-brand img { height: 40px; width: auto; }
.footer-logo { display: inline-block; background: #fff; padding: .55rem .8rem; border-radius: 12px; margin-bottom: 1.1rem; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.footer-brand p { font-size: .94rem; max-width: 30ch; color: #8b9c97; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem; color: #7d8e89; }
.footer-bottom a { color: #7d8e89; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero::before {
  content:""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 0%, rgba(33,162,58,.10), transparent 60%),
    radial-gradient(50% 50% at 0% 100%, rgba(33,162,58,.06), transparent 60%),
    var(--bg);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: var(--fs-display); margin-block: .8rem 1.2rem; }
.hero h1 .accent { color: var(--green-600); }
.hero__lead { font-size: var(--fs-lead); color: var(--ink-500); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero__trust { display: flex; align-items: center; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; color: var(--ink-500); font-size: var(--fs-sm); }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; }
.hero__badge {
  position: absolute; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: .9rem 1.1rem; display: flex; align-items: center; gap: .7rem; border: 1px solid var(--line);
}
.hero__badge--tl { top: -18px; left: -14px; }
.hero__badge--br { bottom: -18px; right: -14px; }
.hero__badge .n { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--green-600); line-height: 1; }
.hero__badge .t { font-size: var(--fs-xs); color: var(--ink-500); line-height: 1.3; }
@media (max-width: 540px) { .hero__badge { display: none; } }

.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 17px; height: 17px; color: var(--gold); }

/* logo strip */
.logostrip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.4rem, 4vw, 3rem); opacity: .8; }
.logostrip img { height: 30px; width: auto; filter: grayscale(1) opacity(.7); transition: filter .3s ease; }
.logostrip img:hover { filter: none; }
.logostrip .lbl { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); width: 100%; text-align: center; margin-bottom: .4rem; }
.pms-chip { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink-500); padding: .35rem .9rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff; transition: color .2s ease, border-color .2s ease; }
.pms-chip:hover { color: var(--ink-800); border-color: var(--line-2); }
.avatar--mono { display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: #fff; background: linear-gradient(150deg, var(--green-500), var(--green-700)); letter-spacing: .02em; }

/* Prominent featured integration (RentMerchant) */
.pms-featured { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .95rem .5rem .6rem; border-radius: var(--r-pill); background: #fff; border: 1.5px solid var(--green-300, #8fd49d); box-shadow: var(--shadow-sm); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink-800); }
.pms-featured img { width: 28px; height: 28px; border-radius: 7px; }
.pms-featured .tag { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 600; color: var(--green-700); background: var(--green-50); padding: .15rem .5rem; border-radius: var(--r-pill); margin-left: .15rem; }

/* Hero trust points (sized inline check icons) */
.hero__points { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.4rem; }
.hero__points span { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-700); font-weight: 600; font-size: .95rem; }
.hero__points svg { width: 20px; height: 20px; flex: none; color: var(--green-600); }

/* ==========================================================================
   Feature / split sections
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.split--rev .split__media { order: -1; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split--rev .split__media { order: 0; } }
.split__media img { border-radius: var(--r-lg); box-shadow: var(--shadow); }
.media-cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); }

.checklist { list-style: none; padding: 0; display: grid; gap: .85rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-600); }
.checklist svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--green-600); margin-top: 2px; }
.section--ink .checklist li { color: #c3cfca; }

/* steps */
.steps { counter-reset: step; display: grid; gap: 1.2rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
.step__n { counter-increment: step; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--green-50); color: var(--green-700); font-family: var(--font-display); font-weight: 700; display: grid; place-items: center; border: 1.5px solid var(--green-100); }
.step__n::before { content: counter(step); }
/* Standalone numbered circle (shows its own text number, no CSS counter) */
.stepnum { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--green-50); color: var(--green-700); font-family: var(--font-display); font-weight: 700; display: grid; place-items: center; border: 1.5px solid var(--green-100); }
.step h3 { font-size: 1.18rem; margin-bottom: .25rem; }
.step p { color: var(--ink-500); font-size: var(--fs-sm); }

/* ==========================================================================
   Pricing
   ========================================================================== */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; } }
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card.is-featured { border-color: var(--green-400); box-shadow: var(--shadow-lg); }
.price-card.is-featured::before { content:"Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--green-600); color: #fff; font-size: var(--fs-xs); font-weight: 600; padding: .3rem .85rem; border-radius: var(--r-pill); white-space: nowrap; }
.price-card .tier { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink-800); }
.price-card .price { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; color: var(--ink-900); letter-spacing: -.03em; margin-top: .5rem; line-height: 1; }
.price-card .price small { font-size: .9rem; font-weight: 500; color: var(--ink-400); font-family: var(--font-body); }
.price-card .blurb { color: var(--ink-500); font-size: var(--fs-sm); margin: .6rem 0 1.2rem; }
.price-card .checklist { margin-bottom: 1.5rem; }
.price-card .checklist li { font-size: .92rem; }
.price-card .btn { margin-top: auto; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq { display: grid; gap: .8rem; max-width: 820px; margin-inline: auto; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; transition: border-color .25s ease, box-shadow .25s ease; }
.faq__item[open] { border-color: var(--green-200); box-shadow: var(--shadow-sm); }
.faq__q { cursor: pointer; list-style: none; padding: 1.15rem 1.3rem; font-weight: 600; color: var(--ink-800); display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1.04rem; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q .ico { flex-shrink: 0; width: 24px; height: 24px; position: relative; transition: transform .3s var(--ease); }
.faq__q .ico::before, .faq__q .ico::after { content:""; position: absolute; background: var(--green-600); border-radius: 2px; inset: 0; margin: auto; }
.faq__q .ico::before { width: 14px; height: 2px; }
.faq__q .ico::after { width: 2px; height: 14px; transition: transform .3s var(--ease); }
.faq__item[open] .faq__q .ico::after { transform: rotate(90deg); }
.faq__a { padding: 0 1.3rem 1.25rem; color: var(--ink-500); font-size: .98rem; }
.faq__a p + p { margin-top: .8rem; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.quote-card { display: flex; flex-direction: column; gap: 1rem; height: 100%; position: relative; }
.quote-card .quote-mark { font-family: var(--font-display); font-weight: 700; font-size: 3.4rem; line-height: .8; color: var(--green-200); height: 1.4rem; }
.quote-card blockquote { font-family: var(--font-display); font-weight: 500; font-size: 1.18rem; color: var(--ink-800); line-height: 1.45; letter-spacing: -.01em; }
.quote-card .who { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.quote-card .who img, .avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--green-100); }
.quote-card .who .name { font-weight: 600; color: var(--ink-800); font-size: .95rem; }
.quote-card .who .role { color: var(--ink-400); font-size: var(--fs-xs); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(2.5rem,5vw,4rem); background: linear-gradient(150deg, var(--green-700), var(--green-900)); color: #e8f6ea; text-align: center; }
.cta-band::after { content:""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 80% 0%, rgba(255,255,255,.12), transparent 60%); pointer-events: none; }
.cta-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-band p { color: #c4e6cb; max-width: 50ch; margin: 1rem auto 0; }
.cta-band .hero__cta { justify-content: center; }

/* ==========================================================================
   Forms
   ========================================================================== */
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink-700); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-400); font-weight: 400; }
.input, .select, .textarea {
  font: inherit; font-size: 1rem; color: var(--ink-800); background: #fff;
  border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: .8rem .9rem; width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(33,162,58,.16); }
.textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--fs-xs); color: var(--ink-400); margin-top: .5rem; }
.form-status { padding: 1rem 1.1rem; border-radius: var(--r-sm); font-size: .95rem; margin-bottom: 1rem; display: none; }
.form-status.is-ok { display: block; background: var(--green-50); color: var(--green-900); border: 1px solid var(--green-200); }
.form-status.is-err { display: block; background: #fdecec; color: #8a1f1f; border: 1px solid #f6c9c9; }

/* ==========================================================================
   Modal (system-styled)
   ========================================================================== */
.modal { border: none; padding: 0; background: transparent; max-width: 540px; width: calc(100% - 2rem); }
.modal::backdrop { background: rgba(16,23,25,.55); backdrop-filter: blur(3px); }
.modal[open] { animation: modalIn .35s var(--ease-out); }
.modal__inner { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: clamp(1.6rem,4vw,2.4rem); position: relative; }
.modal__close { position: absolute; top: 1rem; right: 1rem; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--ink-500); transition: background .2s ease, color .2s; }
.modal__close:hover { background: var(--bg-soft); color: var(--ink-900); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }

/* ==========================================================================
   Breadcrumb + prose (blog/legal)
   ========================================================================== */
.crumbs { font-size: var(--fs-xs); color: var(--ink-400); display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.crumbs a { color: var(--ink-500); }
.crumbs span { color: var(--ink-300); }

.prose { max-width: var(--maxw-prose); margin-inline: auto; font-size: 1.09rem; line-height: 1.75; color: var(--ink-600); }
.prose > * + * { margin-top: 1.3rem; }
.prose h2 { font-size: clamp(1.5rem,1.2rem+1.2vw,2rem); margin-top: 2.6rem; color: var(--ink-800); }
.prose h3 { margin-top: 2rem; color: var(--ink-800); }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: .55rem; }
.prose li { padding-left: .2rem; }
.prose ul li::marker { color: var(--green-500); }
.prose blockquote { border-left: 3px solid var(--green-400); padding: .4rem 0 .4rem 1.3rem; color: var(--ink-700); font-size: 1.18rem; font-family: var(--font-display); font-weight: 500; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--green-200); }
.prose a:hover { text-decoration-color: var(--green-500); }
.prose img { border-radius: var(--r); margin-block: 2rem; box-shadow: var(--shadow); }
.prose figcaption { font-size: var(--fs-xs); color: var(--ink-400); text-align: center; margin-top: .6rem; }
.prose code { background: var(--bg-softer); padding: .15em .4em; border-radius: 5px; font-size: .9em; }
.callout { background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--r); padding: 1.3rem 1.5rem; }
.callout strong { color: var(--green-900); }

/* blog cards */
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card__img { aspect-ratio: 16/10; width: 100%; object-fit: cover; background: var(--bg-softer); }
.post-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: var(--fs-xs); color: var(--ink-400); display: flex; gap: .6rem; align-items: center; margin-bottom: .6rem; }
.post-card__tag { color: var(--green-700); font-weight: 600; }
.post-card h3 { font-size: 1.2rem; line-height: 1.25; margin-bottom: .5rem; }
.post-card h3 a { color: var(--ink-800); }
.post-card h3 a:hover { color: var(--green-700); }
.post-card p { color: var(--ink-500); font-size: .92rem; flex: 1; }
.post-card .link-arrow { margin-top: 1rem; font-size: .9rem; }

/* ==========================================================================
   ROI Calculator
   ========================================================================== */
.calc { display: grid; grid-template-columns: 1fr 1.05fr; gap: 1.6rem; align-items: start; }
@media (max-width: 880px) { .calc { grid-template-columns: 1fr; } }
.calc__inputs { position: sticky; top: calc(var(--header-h) + 1rem); }
@media (max-width: 880px) { .calc__inputs { position: static; } }
.calc__results { background: var(--bg-ink); color: #cdd8d4; border: none; }
.calc__results .text-muted { color: #9fb0ab; }
.calc__results .divider { background: rgba(255,255,255,.1); }
.calc__big { text-align: left; }
.calc__cost { color: var(--green-400) !important; font-size: clamp(2.4rem, 1.8rem + 3vw, 3.4rem) !important; margin: .3rem 0; transition: color .3s ease; }
.calc__cost.flash { color: #fff !important; }
.calc__results .callout { background: rgba(33,162,58,.12); border-color: rgba(33,162,58,.25); color: #d7efdb; }
.calc__results .callout strong { color: #fff; }
.calc__results .stat__label { color: #9fb0ab; }
.calc__results .form-note { color: #7d8e89; }

/* ==========================================================================
   Browser-frame mockups (portfolio)
   ========================================================================== */
.frame { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #fff; }
.frame__bar { display: flex; align-items: center; gap: .8rem; padding: .6rem .9rem; background: #e7ebe9; border-bottom: 1px solid #d8dedb; }
.frame__dots { display: flex; gap: 6px; flex: none; }
.frame__dots i { width: 11px; height: 11px; border-radius: 50%; }
.frame__dots i:nth-child(1) { background: #ec6a5e; }
.frame__dots i:nth-child(2) { background: #f4bf50; }
.frame__dots i:nth-child(3) { background: #61c454; }
.frame__url { display: flex; align-items: center; justify-content: center; gap: .35rem; flex: 1; min-width: 0; height: 26px; padding: 0 .75rem; background: #fff; border: 1px solid #dde3e0; border-radius: 7px; font-size: .76rem; color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame__url svg { width: 11px; height: 11px; color: var(--ink-400); flex: none; }
.frame img { width: 100%; display: block; aspect-ratio: 16/11; object-fit: cover; }

/* Rendered website mockup inside the browser frame */
.mock { background: #fff; --accent: var(--green-600); }
.mock__nav { display: flex; align-items: center; gap: .5rem; padding: .6rem .85rem; border-bottom: 1px solid #eef2f0; }
.mock__logo { width: 36px; height: 11px; border-radius: 3px; background: var(--accent); }
.mock__links { display: flex; gap: .35rem; margin-left: .5rem; flex: 1; }
.mock__links i { width: 24px; height: 6px; border-radius: 3px; background: #d9e0dc; }
.mock__btn { font-size: .55rem; font-weight: 700; color: #fff; background: var(--accent); padding: .3rem .6rem; border-radius: 999px; letter-spacing: .02em; }
.mock__hero { aspect-ratio: 16 / 9; background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: flex-end; gap: .5rem; padding: 1rem; }
.mock__h { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: clamp(.95rem, 2.6vw, 1.25rem); line-height: 1.1; max-width: 82%; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.mock__cta { align-self: flex-start; background: var(--accent); color: #fff; font-size: .6rem; font-weight: 700; padding: .4rem .75rem; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.mock__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; padding: .8rem .85rem 1rem; }
.mock__row span { height: 38px; border-radius: 7px; background: #eef2f0; border: 1px solid #e6ece8; }

/* ==========================================================================
   Comparison table
   ========================================================================== */
.cmp-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; border-collapse: collapse; background: #fff; min-width: 560px; }
.cmp th, .cmp td { padding: 1rem 1.15rem; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; vertical-align: top; }
.cmp thead th { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink-900); border-bottom: 2px solid var(--line-2); }
.cmp thead th:nth-child(2) { color: var(--green-700); }
.cmp tbody th { font-weight: 600; color: var(--ink-600); width: 22%; }
.cmp td.cmp-us { background: var(--green-50); color: var(--ink-800); font-weight: 500; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: none; }

/* ==========================================================================
   Utilities
   ========================================================================== */
.mt-0{margin-top:0}.mt-2{margin-top:var(--sp-2)}.mt-4{margin-top:var(--sp-4)}.mt-6{margin-top:var(--sp-6)}.mt-8{margin-top:var(--sp-8)}
.mb-0{margin-bottom:0}
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--green-700); color:#fff; padding: .7rem 1rem; z-index: 999; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; color:#fff; }
.text-muted { color: var(--ink-500); }
.divider { height: 1px; background: var(--line); border: 0; }
