:root {
  --navy-950: #061c2e; --navy-900: #082f49; --navy-800: #0c4a6e;
  --teal: #0e7490; --teal-dark: #155e75; --teal-soft: #ecfeff;
  --amber: #fbbf24; --amber-dark: #b45309;
  --ink: #0f172a; --text: #334155; --muted: #64748b; --line: #e2e8f0; --bg: #f8fafc; --card: #fff;
  --ok: #15803d; --ok-bg: #f0fdf4; --err: #b91c1c; --err-bg: #fef2f2;
  --radius: 14px;
  --font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--teal); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.02em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -.03em; }
.brand img { width: 32px; height: 32px; }
.brand i { color: var(--amber); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--teal); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 600; padding: 11px 22px; border-radius: 10px; background: var(--teal); color: #fff !important; text-decoration: none; transition: background .15s, transform .15s; }
.btn:hover { background: var(--teal-dark); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--teal) !important; box-shadow: inset 0 0 0 1.5px var(--teal); }
.btn.ghost:hover { background: var(--teal-soft); }
.btn.amber { background: var(--amber); color: var(--navy-950) !important; }
.btn.amber:hover { background: #f59e0b; }
.btn.sm { padding: 7px 14px; font-size: 14px; }
.btn.danger { background: var(--err); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* hero */
.hero { background: radial-gradient(900px 400px at 85% -10%, rgba(14,116,144,.55), transparent 60%), linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: #cbd5e1; padding: 84px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 54px); }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p.lead { font-size: 19px; max-width: 540px; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .cta .ghost { color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); }
.hero .cta .ghost:hover { background: rgba(255,255,255,.1); }
.pill { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .02em; padding: 5px 12px; border-radius: 99px; background: rgba(251,191,36,.15); color: var(--amber); margin-bottom: 18px; }

/* mock screen */
.mock { background: #0b2a40; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.4); font-size: 13px; }
.mock-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: #e2e8f0; font-weight: 600; }
.timer { background: rgba(251,191,36,.15); color: var(--amber); padding: 4px 10px; border-radius: 8px; font-variant-numeric: tabular-nums; font-weight: 700; }
.mock table { width: 100%; border-collapse: collapse; }
.mock th { text-align: left; color: #7dd3fc; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 6px 8px; }
.mock td { padding: 9px 8px; border-top: 1px solid rgba(255,255,255,.08); color: #e2e8f0; font-variant-numeric: tabular-nums; }
.mock .bid { background: rgba(255,255,255,.08); border-radius: 6px; padding: 3px 8px; display: inline-block; min-width: 56px; text-align: right; }
.mock .bid.set { background: rgba(14,116,144,.5); color: #fff; }
.mock .ok { color: #4ade80; font-weight: 600; }

/* sections */
section { padding: 72px 0; }
section.alt { background: #fff; border-block: 1px solid var(--line); }
.eyebrow { color: var(--teal); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.step { counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--teal-soft); color: var(--teal); font-weight: 800; margin-bottom: 14px; }
.steps { counter-reset: step; }
.ico { width: 40px; height: 40px; border-radius: 10px; background: var(--teal-soft); display: grid; place-items: center; margin-bottom: 14px; font-size: 20px; }

/* pricing */
.price-card { max-width: 460px; margin-inline: auto; border: 2px solid var(--teal); border-radius: 20px; padding: 34px; background: #fff; box-shadow: 0 20px 50px rgba(14,116,144,.12); }
.price { font-size: 52px; font-weight: 800; color: var(--ink); letter-spacing: -.04em; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 26px; }
.price-card li { padding: 7px 0 7px 28px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.gst-note { font-size: 14px; color: var(--muted); margin: 6px 0 0; }

/* faq */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details p { margin: 10px 0 0; color: var(--muted); }

/* forms */
label { display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 5px; }
input, select, textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,116,144,.15); }
.field { margin-bottom: 16px; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.field .err { font-size: 13px; color: var(--err); margin-top: 4px; font-weight: 500; }
.field.bad input, .field.bad select { border-color: var(--err); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; }
.flash.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #bbf7d0; }
.flash.err { background: var(--err-bg); color: var(--err); border: 1px solid #fecaca; }
.flash.info { background: var(--teal-soft); color: var(--teal-dark); border: 1px solid #a5f3fc; }

/* app shell */
.app-main { padding: 36px 0 72px; min-height: 70vh; }
.app-main h1 { font-size: 28px; }
.tabs { display: flex; gap: 6px; margin: 0 0 26px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 16px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--teal); border-color: var(--teal); }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 4px 12px; border-radius: 99px; font-size: 14px; }
.status.active { background: var(--ok-bg); color: var(--ok); }
.status.inactive { background: #fff7ed; color: var(--amber-dark); }
.cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
table.t { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 14px; }
table.t th { text-align: left; background: #f1f5f9; padding: 10px 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.t td { padding: 11px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.scroll { overflow-x: auto; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; text-align: right; font-weight: 600; color: var(--ink); }
.stat { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }

/* footer */
.foot { background: var(--navy-950); color: #94a3b8; padding: 40px 0; font-size: 14px; }
.foot a { color: #cbd5e1; text-decoration: none; margin-right: 18px; }
.foot a:hover { color: #fff; }
.legal h2 { font-size: 20px; margin-top: 1.6em; }
.legal p, .legal li { color: var(--text); }

@media (max-width: 860px) {
  .hero .wrap, .cols { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  .nav-links .hide-sm { display: none; }
  section { padding: 52px 0; }
}

/* signed-in pages: header, content and footer share one width so the logo lines up with the page title */
body.app .wrap, body.app .ws-wide, body.app .adm-wide { width: min(1320px, 100% - 32px); }
