/* Emerald Finance — Merchant Cash Advances for Beauty Businesses */

:root {
  --emerald-950: #05261c;
  --emerald-900: #0b3d2e;
  --emerald-800: #0f5132;
  --emerald-700: #14683f;
  --emerald-600: #1e8a55;
  --emerald-500: #2ba86a;
  --emerald-100: #dff3e8;
  --emerald-50: #f1faf5;
  --emerald-300: #8fd8b0;
  --emerald-200: #bfe9d1;
  --ink: #14201b;
  --ink-soft: #4b5a53;
  --ink-muted: #7d8a84;
  --line: #e3e9e5;
  --cream: #fbfaf6;
  --white: #ffffff;
  --danger: #c0392b;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(11, 61, 46, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 61, 46, 0.18);
  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; color: var(--emerald-950); }
h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: 20px; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--emerald-600);
  margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.section { padding-block: 88px; }
.section--tight { padding-block: 56px; }
.section--dark { background: var(--emerald-900); color: #e8f2ec; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .lead { color: #c6dbcf; }
.section--dark .eyebrow { color: var(--emerald-300); }
.section--tint { background: var(--emerald-50); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600; font-size: .98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--emerald-800); color: var(--white); box-shadow: 0 8px 20px rgba(15, 81, 50, .25); }
.btn--primary:hover { background: var(--emerald-700); }
.btn--light { background: var(--white); color: var(--emerald-900); }
.btn--light:hover { background: var(--emerald-50); }
.btn--ghost { background: transparent; color: var(--emerald-900); border-color: var(--emerald-800); }
.btn--ghost:hover { background: var(--emerald-100); }
.section--dark .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.55); }
.section--dark .btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--lg { padding: 18px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 246, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__logo { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-soft); }
.nav a:hover { color: var(--emerald-800); }
.nav .btn { padding: 11px 20px; }
.nav a.btn--primary { color: var(--white); }
.nav a.btn--primary:hover { color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--emerald-900); margin: 5px 0; transition: .2s; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(800px 420px at 50% -20%, rgba(43,168,106,.14), transparent 65%),
    var(--cream);
  padding-block: 96px 88px;
  text-align: center;
}
.hero__inner { max-width: 780px; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--emerald-700); }
.hero .lead { margin-inline: auto; max-width: 54ch; font-size: 1.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 30px; margin: 34px 0 30px; }
.hero__link { font-weight: 600; color: var(--emerald-800); text-decoration: none; border-bottom: 1.5px solid var(--emerald-500); padding-bottom: 2px; }
.hero__link:hover { color: var(--emerald-600); }
.hero__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; font-size: .88rem; color: var(--ink-muted); }
.hero__facts li { padding-inline: 14px; }
.hero__facts li + li { border-left: 1px solid var(--line); }

/* Calculator card */
.calc {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px;
  border: 1px solid var(--line);
}
.calc__title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.calc__title h3 { margin: 0; }
.calc__badge { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--emerald-700); background: var(--emerald-100); padding: 5px 10px; border-radius: 999px; }
.field { margin-bottom: 18px; }
.field label { display: flex; justify-content: space-between; font-size: .88rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; }
.field output { color: var(--emerald-900); font-weight: 700; }
input[type="range"] { width: 100%; accent-color: var(--emerald-700); }
.field__label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--emerald-50); border: 1px solid var(--line); border-radius: 10px; padding: 4px; gap: 4px; }
.field .segmented__opt { position: relative; display: block; margin: 0; }
.segmented__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented__opt span { display: block; text-align: center; padding: 8px 6px; border-radius: 7px; font-size: .88rem; font-weight: 600; color: var(--ink-soft); transition: .15s; }
.segmented__opt input:checked + span { background: var(--white); color: var(--emerald-900); box-shadow: 0 1px 3px rgba(11,61,46,.12); }
.segmented__opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(43,168,106,.3); }
.calc__result { background: var(--emerald-50); border-radius: var(--radius); padding: 18px 20px; margin-top: 8px; }
.calc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 6px 0; font-size: .95rem; border-bottom: 1px dashed #cfe3d8; }
.calc__row > :last-child { text-align: right; white-space: nowrap; }
.calc__row:last-child { border-bottom: 0; }
.calc__row strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--emerald-900); }
.calc__fine { font-size: .76rem; color: var(--ink-muted); margin: 14px 0 0; line-height: 1.5; }

/* Trust bar */
.trust { border-block: 1px solid var(--line); background: var(--white); }
.trust__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 44px; padding-block: 22px; font-size: .9rem; color: var(--ink-soft); }
.trust__item { display: flex; align-items: center; gap: 9px; }
.trust__item svg { width: 18px; height: 18px; color: var(--emerald-600); flex: none; }

/* Grids and cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--emerald-100); color: var(--emerald-800);
  margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.4rem; }
.card p { color: var(--ink-soft); margin: 0; font-size: .96rem; }
.step { position: relative; }
.step__num {
  font-family: var(--font-display); font-size: 3.2rem; font-weight: 700;
  color: var(--emerald-200); line-height: 1; margin-bottom: 8px;
}
.section--dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.section--dark .card p { color: #c6dbcf; }
.section--dark .card__icon { background: rgba(43,168,106,.18); color: var(--emerald-300); }

/* Product cards */
.product { display: flex; flex-direction: column; }
.product__facts { list-style: none; margin: 18px 0 22px; padding: 0; border-top: 1px solid var(--line); }
.product__facts li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.product__facts span { color: var(--ink-muted); flex: none; }
.product__facts strong { color: var(--emerald-950); font-weight: 600; text-align: right; }
.product .btn { margin-top: auto; }

/* Industries */
.industry { text-align: center; padding: 26px 16px; }
.industry .card__icon { margin-inline: auto; }
.industry h3 { font-size: 1.25rem; margin-bottom: 4px; }
.industry p { font-size: .88rem; }

/* Compare table */
.compare { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
.compare th { background: var(--emerald-900); color: var(--white); font-weight: 600; font-family: var(--font-body); }
.compare th:first-child { width: 34%; }
.compare tr:last-child td { border-bottom: 0; }
.compare td.yes { color: var(--emerald-700); font-weight: 600; }
.compare td.no { color: var(--ink-muted); }
.table-wrap { overflow-x: auto; }

/* Testimonials */
.quote { display: flex; flex-direction: column; gap: 18px; }
.quote__stars { color: var(--emerald-500); letter-spacing: 2px; font-size: 1.05rem; }
.quote__text { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.4; color: var(--emerald-950); margin: 0; font-style: italic; }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote__avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--emerald-500), var(--emerald-800)); display: grid; place-items: center; color: var(--white); font-weight: 700; font-size: .9rem; }
.quote__name { font-weight: 600; font-size: .95rem; }
.quote__biz { font-size: .82rem; color: var(--ink-muted); }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 1.02rem; color: var(--emerald-950); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--emerald-600); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-bottom: 18px; margin: 0; }

/* CTA band */
.cta {
  background: linear-gradient(120deg, var(--emerald-950), var(--emerald-800));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(43,168,106,.35), transparent 65%);
}
.cta h2 { color: var(--white); margin-bottom: 8px; }
.cta p { color: #c6dbcf; margin: 0; }
.cta__actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; position: relative; }

/* Footer */
.footer { background: var(--emerald-950); color: #a9c3b5; padding-block: 60px 30px; font-size: .9rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr .8fr 1.2fr; gap: 32px; margin-bottom: 40px; }
.footer h4 { color: var(--white); font-family: var(--font-body); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer .brand__logo { height: 40px; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: .78rem; color: #7f9b8d; line-height: 1.6; }
.footer__legal p { margin-bottom: 8px; }
.footer__legal a { color: #a9c3b5; text-decoration: underline; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.check-list svg { width: 20px; height: 20px; color: var(--emerald-600); flex: none; margin-top: 2px; }

/* Legal pages */
.legal-hero { background: linear-gradient(120deg, var(--emerald-950), var(--emerald-800)); color: #dcebe2; padding-block: 64px 56px; }
.legal-hero .eyebrow { color: var(--emerald-300); }
.legal-hero h1 { color: var(--white); font-size: clamp(2.4rem, 4.5vw, 3.6rem); margin-bottom: 6px; }
.legal-hero__meta { color: #a9c3b5; font-size: .9rem; margin-bottom: 22px; }
.legal-hero__intro { max-width: 66ch; font-size: 1.08rem; line-height: 1.6; margin: 0; }
.legal-hero__intro a { color: var(--white); }
.legal-glance { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; max-width: 900px; }
.legal-glance li { position: relative; padding: 12px 14px 12px 40px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; font-size: .92rem; line-height: 1.5; color: #e8f2ec; }
.legal-glance li::before { content: ""; position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; border-radius: 50%; background: var(--emerald-500); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); background-size: 10px; background-position: center; background-repeat: no-repeat; }

.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; padding-block: 56px 96px; }
.legal-nav__inner { position: sticky; top: 100px; }
.legal-nav h4 { font-family: var(--font-body); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 12px; }
.legal-nav ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.legal-nav li { margin: 0; }
.legal-nav a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; font-size: .88rem; line-height: 1.35; color: var(--ink-soft); text-decoration: none; transition: .15s; }
.legal-nav a:hover { color: var(--emerald-800); }
.legal-nav a.is-active { color: var(--emerald-900); font-weight: 600; border-left-color: var(--emerald-600); }

.legal-body { max-width: 760px; }
.legal-body h2 { display: flex; align-items: center; gap: 14px; font-size: 1.75rem; margin: 0 0 14px; padding-top: 44px; scroll-margin-top: 90px; }
.legal-body h2:first-child { padding-top: 0; }
.legal-body h2 + p, .legal-body h2 + ul, .legal-body h2 + h3 { margin-top: 0; }
.legal__num { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--emerald-100); color: var(--emerald-800); font-family: var(--font-body); font-size: .85rem; font-weight: 700; }
.legal-body h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin: 22px 0 8px; color: var(--emerald-950); }
.legal-body p, .legal-body li { color: var(--ink-soft); font-size: .98rem; line-height: 1.7; }
.legal-body ul { padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--emerald-800); }
.legal-body strong { color: var(--ink); }

@media (max-width: 980px) {
  .legal-layout { grid-template-columns: 1fr; gap: 28px; }
  .legal-nav__inner { position: static; }
  .legal-nav ol { border-left: 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .legal-nav a { margin: 0; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: .82rem; }
  .legal-nav a.is-active { border-color: var(--emerald-600); background: var(--emerald-50); }
  .legal-glance { grid-template-columns: 1fr; }
}

/* Utilities */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-5 { margin-top: 48px; }
.mb-4 { margin-bottom: 36px; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 980px) {
  .grid-2, .cta { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta { padding: 40px 28px; }
}
@media (max-width: 720px) {
  .section { padding-block: 64px; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; background: var(--cream); flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px; border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; border: 0; }
  .nav-toggle { display: block; }
  .brand__logo { height: 36px; }
  .grid-3, .grid-4, .footer__grid { grid-template-columns: 1fr; }
  .hero__facts { flex-direction: column; gap: 6px; }
  .hero__facts li + li { border-left: 0; }
  .calc { padding: 22px; }
  .hero { padding-block: 64px 56px; }
}
