/* AusBespoke Apps — shared site theme. Earthy, quiet, confident.
   Palette: Forest/Canopy/Fern greens, Walnut/Oak browns, Forge dark, Linen lights. */
:root {
  --brand: #2D5040;        /* Canopy */
  --brand-bright: #5A8A6A; /* Fern */
  --brand-dark: #1E3829;   /* Forest */
  --accent: #B8895A;       /* Oak */
  --bg: #2B2D2F;           /* Forge */
  --panel: rgba(240, 237, 230, 0.05);
  --panel-border: rgba(240, 237, 230, 0.12);
  --ink: #F0EDE6;          /* Linen */
  --muted: rgba(240, 237, 230, 0.66);
  --faint: rgba(240, 237, 230, 0.42);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  margin: 0; background: var(--bg); color: var(--ink); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }

/* header */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(43, 45, 47, 0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-border);
}
.nav { display: flex; align-items: center; gap: 1.5rem; padding: 0.9rem 0; }
.logo { font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.logo b { color: var(--brand-bright); font-weight: 700; }
.logo span { color: var(--faint); font-weight: 400; }
.nav .links { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.nav a.plain { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.nav a.plain:hover { color: var(--ink); }

/* buttons */
.btn {
  display: inline-block; background: var(--brand); color: #fff;
  padding: 0.65rem 1.3rem; border-radius: 10px; border: 0;
  font: inherit; font-size: 0.92rem; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--brand-bright); transform: translateY(-1px); }
.btn.ghost {
  background: transparent; border: 1px solid var(--panel-border); color: var(--ink);
}
.btn.ghost:hover { background: var(--panel); }

/* hero */
.hero { position: relative; padding: 6rem 0 4.5rem; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto;  height: 130%;
  background:
    radial-gradient(600px 320px at 70% 10%, rgba(90, 138, 106, 0.22), transparent 70%),
    radial-gradient(500px 300px at 15% 30%, rgba(184, 137, 90, 0.12), transparent 70%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }
.kicker {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brand-bright);
  border: 1px solid rgba(90, 138, 106, 0.35); border-radius: 999px;
  padding: 0.25rem 0.8rem; margin-bottom: 1.4rem; background: rgba(90, 138, 106, 0.08);
}
.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem); line-height: 1.12;
  margin: 0 0 1.2rem; font-weight: 800; letter-spacing: -0.02em;
}
.hero h1 .grad { color: #B8895A; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 38rem; margin: 0 0 2rem; }
.hero .ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* sections */
section { padding: 3.5rem 0; }
h2.sect { font-size: 1.6rem; margin: 0 0 0.4rem; letter-spacing: -0.01em; }
p.sect-sub { color: var(--muted); margin: 0 0 2rem; max-width: 40rem; }

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 14px; padding: 1.5rem; transition: border-color .2s;
}
.card:hover { border-color: rgba(90, 138, 106, 0.45); }
.card .icon { font-size: 1.3rem; margin-bottom: 0.6rem; }
.card h3 { margin: 0 0 0.4rem; font-size: 1.02rem; color: var(--ink); }
.card p { margin: 0; font-size: 0.92rem; color: var(--muted); }

.steps { counter-reset: step; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.step { position: relative; padding: 1.5rem 1.5rem 1.5rem 1.5rem; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 14px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; width: 1.9rem; height: 1.9rem; align-items: center; justify-content: center;
  border-radius: 8px; background: rgba(90, 138, 106, 0.18); color: var(--brand-bright);
  font-weight: 700; margin-bottom: 0.7rem;
}
.step h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.step p { margin: 0; font-size: 0.92rem; color: var(--muted); }

.honest {
  border: 1px solid var(--panel-border); border-radius: 16px; padding: 2rem;
  background: linear-gradient(180deg, rgba(90, 138, 106, 0.08), transparent);
}
.honest p { color: var(--muted); margin: 0.6rem 0 0; max-width: 44rem; }

/* forms */
form.panel {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 16px; padding: 1.8rem;
}
label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink); margin: 1rem 0 0.3rem; }
input, textarea, select {
  width: 100%; padding: 0.7rem 0.85rem; border-radius: 10px; font: inherit; font-size: 0.95rem;
  background: rgba(0, 0, 0, 0.22); border: 1px solid var(--panel-border); color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brand-bright); border-color: transparent; }
::placeholder { color: var(--faint); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.notice { display: none; border-radius: 10px; padding: 0.9rem 1rem; margin-top: 1rem; font-size: 0.92rem; }
.notice.ok { background: rgba(90, 138, 106, 0.15); border: 1px solid rgba(90, 138, 106, 0.45); color: #a7cbb3; }
.notice.err { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.4); color: #fca5a5; }
.notice a { color: inherit; }

footer { padding: 3rem 0 3.5rem; color: var(--faint); font-size: 0.85rem; border-top: 1px solid var(--panel-border); margin-top: 2rem; }
footer a { color: var(--muted); }

/* portal */
.portal-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 1.5rem; }
.stat { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 14px; padding: 1.4rem; }
.stat .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); }
.stat .value { font-size: 1.5rem; font-weight: 700; margin-top: 0.3rem; }
.stat .sub { font-size: 0.85rem; color: var(--muted); margin-top: 0.2rem; }
.bar { height: 10px; border-radius: 999px; background: rgba(240, 237, 230, 0.1); margin-top: 0.8rem; overflow: hidden; }
.bar > div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-bright)); transition: width .4s; }
.bar.warn > div { background: linear-gradient(90deg, #B8895A, #d0a578); }
.bar.over > div { background: linear-gradient(90deg, #ef4444, #f87171); }
.feedback-item { border-top: 1px solid var(--panel-border); padding: 0.85rem 0; }
.feedback-item .meta { font-size: 0.78rem; color: var(--faint); }
.tag { display: inline-block; font-size: 0.72rem; padding: 0.1rem 0.5rem; border-radius: 999px; margin-right: 0.5rem; }
.tag.bug { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.tag.feature { background: rgba(90, 138, 106, 0.18); color: var(--brand-bright); }
