/* A Cut n' Edge — design system
   Deep pine greens + warm cream + brass accents; serif display, sans body. */
:root {
  --pine: #14351f;
  --pine-2: #1d4a2b;
  --forest: #266338;
  --leaf: #3e8250;
  --moss: #a9c7a0;
  --mint: #eaf2e6;
  --cream: #f6f4ec;
  --paper: #fffdf7;
  --gold: #b9924b;
  --gold-dark: #93702f;
  --ink: #202822;
  --muted: #61695f;
  --line: #e2e0d2;
  --danger: #a33021;
  --shadow-sm: 0 1px 2px rgba(20, 53, 31, .06), 0 2px 8px rgba(20, 53, 31, .05);
  --shadow-md: 0 2px 4px rgba(20, 53, 31, .07), 0 10px 28px rgba(20, 53, 31, .10);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16.5px/1.62 var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--forest); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.18; color: var(--pine); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.55rem; margin: 2.2rem 0 .8rem; }
h3 { font-size: 1.15rem; }
.m0 { margin: 0; }
.muted { color: var(--muted); }
.fine { font-size: .82rem; color: #b9cbb4; padding: 1.2rem 0 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 660px; }

/* ====================== eyebrow / section furniture ====================== */
.eyebrow {
  display: block; font: 700 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: .6rem;
}
.section { padding: 3.5rem 0; }
.section-head { max-width: 620px; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }
.center { text-align: center; }
.center .section-head { margin-left: auto; margin-right: auto; }

/* ====================== header ====================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 247, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap, .portal-header .wrap {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .65rem 1.25rem;
}
.brand {
  display: flex; align-items: center; gap: .6rem; text-decoration: none;
  font-family: var(--serif); font-weight: 700; font-size: 1.18rem; color: var(--pine); letter-spacing: -.01em;
}
.brand img { display: block; }
.site-header nav, .portal-header nav { display: flex; gap: .15rem; flex-wrap: wrap; margin-left: auto; align-items: center; }
.site-header nav a {
  padding: .45rem .8rem; border-radius: 999px; text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: .93rem;
}
.site-header nav a:hover { background: var(--mint); color: var(--pine); }
.site-header nav a.active { background: var(--pine); color: #fff; }
.site-header nav .btn { margin-left: .5rem; }

/* ====================== hero ====================== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(90rem 40rem at 85% -30%, rgba(185, 146, 75, .28), transparent 60%),
    radial-gradient(60rem 30rem at -10% 110%, rgba(62, 130, 80, .55), transparent 60%),
    linear-gradient(160deg, #0f2b18 0%, var(--pine-2) 55%, #2a6b3c 100%);
  padding: 5.2rem 0 6.5rem;
}
.hero::after {           /* soft layered wave into the page background */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 80px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 80" preserveAspectRatio="none"><path d="M0,50 C180,86 360,20 560,34 C760,48 900,84 1080,66 C1230,52 1340,30 1440,44 L1440,80 L0,80 Z" fill="%23f6f4ec" opacity=".45"/><path d="M0,62 C200,92 420,36 640,46 C860,56 1020,90 1200,72 C1330,60 1400,48 1440,54 L1440,80 L0,80 Z" fill="%23f6f4ec"/></svg>') no-repeat bottom / 100% 80px;
}
.hero .wrap { position: relative; z-index: 1; max-width: 880px; text-align: center; }
.hero .eyebrow { color: #d9bd85; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.3rem); margin: 0 0 1rem; text-wrap: balance; }
.hero p.lede { font-size: 1.16rem; color: #dcead8; max-width: 640px; margin: 0 auto 1.8rem; }
.cta-row { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.hero .cta-row { justify-content: center; }
.trust-row {
  display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: center; margin-top: 2.4rem;
  color: #cfe0c9; font-size: .92rem; font-weight: 600;
}
.trust-row span::before { content: "✓"; color: #d9bd85; margin-right: .45rem; font-weight: 800; }

/* ====================== buttons ====================== */
.btn {
  display: inline-block; padding: .62rem 1.25rem; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--pine); text-decoration: none; font-weight: 700; cursor: pointer;
  font-size: .95rem; font-family: var(--sans); transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn:hover { border-color: var(--forest); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn.primary { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn.primary:hover { background: var(--pine-2); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.gold:hover { background: var(--gold-dark); }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn.danger { color: var(--danger); }
.btn.small { padding: .3rem .75rem; font-size: .84rem; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.linkish { background: none; border: none; color: var(--forest); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }

/* ====================== cards ====================== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; margin: 1.2rem 0; }
.card, .panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm);
}
.card { transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .icon, .service-row .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; background: var(--mint); font-size: 1.5rem; margin-bottom: .7rem;
}
.card h3 { margin: .2rem 0 .4rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card.quote { display: flex; flex-direction: column; gap: .4rem; }
.card.quote .stars { color: var(--gold); letter-spacing: .12em; font-size: .95rem; }
.card.quote p { font-family: var(--serif); font-size: 1.06rem; font-style: italic; color: var(--ink); }
.card.quote .who { font-style: normal; color: var(--muted); font-size: .88rem; margin-top: auto; }
.panel { margin: 1.2rem 0; }

.service-row { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.service-row .icon { flex: none; margin: 0; }
.service-row h3 { margin: 0 0 .3rem; }
.service-row p { margin: 0; color: var(--muted); }

/* ====================== bands ====================== */
.alt { background: var(--mint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 3.5rem 0; margin: 0; }
.cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; }
.cols3 h3 { margin: 0 0 .35rem; }
.cols3 p { color: var(--muted); margin: 0; font-size: .96rem; }

.stats-band { background: var(--pine); color: #fff; padding: 2.6rem 0; }
.stats-band .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.5rem; text-align: center; }
.stats-band .n { font-family: var(--serif); font-size: 2.5rem; font-weight: 700; color: #e7cf9b; line-height: 1.1; }
.stats-band .l { color: #b9cbb4; font-size: .92rem; margin-top: .2rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; counter-reset: step; margin: 1.4rem 0; }
.step { position: relative; padding-left: 4.1rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: .1rem;
  width: 3rem; height: 3rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--pine); color: #e7cf9b; font-family: var(--serif); font-size: 1.35rem; font-weight: 700;
}
.step h3 { margin: 0 0 .3rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

.cta-band {
  background:
    radial-gradient(50rem 20rem at 110% 0%, rgba(185, 146, 75, .35), transparent 60%),
    linear-gradient(140deg, var(--pine) 0%, var(--forest) 100%);
  color: #fff; text-align: center; padding: 3.6rem 1rem; border-radius: 0;
}
.cta-band h2 { color: #fff; margin: 0 0 .5rem; font-size: 1.9rem; }
.cta-band p { color: #d3e3cf; margin: 0 0 1.5rem; }
.cta-band .cta-row { justify-content: center; }

/* ====================== footer ====================== */
.site-footer { background: #0f2617; color: #c4d5bf; padding: 3rem 0 1.5rem; }
.site-footer a { color: #e3ecdf; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 1.6rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer .brand { color: #fff; font-size: 1.25rem; margin-bottom: .5rem; }
.site-footer h4 { color: #e7cf9b; font: 700 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 .8rem; }
.site-footer .cols div { font-size: .95rem; line-height: 1.9; }

/* ====================== portal chrome ====================== */
body.portal { background: var(--cream); }
.portal-header { background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 40; }
.portal-header .brand { font-size: 1.02rem; }
.portal-header nav a {
  padding: .38rem .75rem; border-radius: 8px; text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: .9rem; border-bottom: 2px solid transparent;
}
.portal-header nav a:hover { background: var(--mint); }
.portal-header nav a.active { background: var(--mint); color: var(--pine); box-shadow: inset 0 -2px 0 var(--forest); }
.who { margin-left: .5rem; font-size: .88rem; color: var(--muted); display: flex; gap: .6rem; align-items: center; }
main.wrap { padding-top: 1.4rem; padding-bottom: 3rem; }
main.wrap > h1 { margin: .4rem 0 1.1rem; font-size: 1.65rem; }

/* stats */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin: 1rem 0 1.6rem; }
.stat {
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--forest);
  border-radius: 12px; padding: 1rem 1.2rem; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
a.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat .n { font-family: var(--serif); font-size: 1.65rem; font-weight: 700; color: var(--pine); }
.stat .l { color: var(--muted); font-size: .88rem; }
.stat.warn { border-left-color: var(--gold); background: #fdf8ec; }
.stat.autopay { display: flex; align-items: center; }

/* ====================== tables ====================== */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: var(--shadow-sm); }
table { border-collapse: collapse; width: 100%; background: transparent; }
th, td { text-align: left; padding: .6rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .92rem; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(62, 130, 80, .045); }
th {
  background: var(--mint); color: var(--pine); font-size: .78rem; letter-spacing: .07em;
  text-transform: uppercase; white-space: nowrap;
}
table.totals { max-width: 360px; margin-left: auto; background: transparent; }
table.totals td { border-bottom: none; padding: .3rem .5rem; }
table.totals td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
table.totals .grand td { font-weight: 700; font-size: 1.05rem; border-top: 2px solid var(--forest); }

/* ====================== badges ====================== */
.badge {
  display: inline-block; padding: .12rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700;
  background: #eee; color: #444; white-space: nowrap; letter-spacing: .02em;
}
.s-paid, .s-succeeded, .s-completed, .s-active, .s-available, .s-done, .s-converted { background: #dcefdd; color: #1d5426; }
.s-sent, .s-scheduled, .s-new, .s-invited, .s-approved, .s-queued, .s-outbox, .s-contacted { background: #e3ecf7; color: #24507e; }
.s-processing, .s-pending, .s-manual, .s-maintenance { background: #f8eccb; color: #7a5b12; }
.s-failed, .s-overdue, .s-unavailable, .s-declined { background: #fbe2de; color: #8c2317; }
.s-void, .s-skipped, .s-canceled, .s-retired, .s-paused, .s-closed, .s-refunded { background: #eceae4; color: #6b6b66; }

/* ====================== forms ====================== */
form.stack { display: flex; flex-direction: column; gap: .9rem; max-width: 660px; }
form.stack label, .grid2 label, .grid3 label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .88rem; color: var(--pine); }
input, select, textarea {
  padding: .55rem .7rem; border: 1.5px solid var(--line); border-radius: 9px; font: inherit;
  background: #fff; color: var(--ink); transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(62, 130, 80, .18);
}
input.slim { padding: .28rem .5rem; font-size: .84rem; }
fieldset { border: 1.5px solid var(--line); border-radius: 12px; padding: .9rem 1.1rem; }
legend { font-weight: 700; font-size: .85rem; color: var(--pine); padding: 0 .4rem; }
label.check { display: flex; flex-direction: row !important; gap: .55rem; align-items: center; font-weight: 500 !important; color: var(--ink) !important; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--forest); width: 1.05rem; height: 1.05rem; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .9rem; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: .9rem; }
.inline { display: inline; }
.inline-row { display: flex; gap: .55rem; flex-wrap: wrap; align-items: center; margin: .8rem 0; }
.row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }

/* ====================== flash ====================== */
.flash { padding: .75rem 1.1rem; border-radius: 10px; margin: 1rem auto; max-width: 1120px; font-weight: 500; box-shadow: var(--shadow-sm); }
.flash.ok { background: #dcefdd; color: #1d5426; border: 1px solid #bfe0c2; }
.flash.bad { background: #fbe2de; color: #8c2317; border: 1px solid #f3c7c0; }
main.wrap .flash { margin: 1rem 0; }

details summary { cursor: pointer; color: var(--forest); font-weight: 600; }
.job-stop { border-left: 4px solid var(--forest); }
.crew { border-top: 3px solid var(--forest); }

@media (max-width: 720px) {
  .hero { padding: 3.2rem 0 4.5rem; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 1.4rem; }
  th, td { font-size: .84rem; padding: .45rem .55rem; }
  .section { padding: 2.4rem 0; }
}
