
/* Colours from the client's reference image */
:root {
  --forest: #14402f;   /* background */
  --pine: #1b5040;     /* raised areas */
  --moss: #384f32;     /* soft circles */
  --deep: #0f3325;     /* the darkest band */
  --gold: #d9963f;     /* the one accent */
  --cream: #f6f3ec;    /* text */
  --sage: #b4bfb7;     /* quieter text */
  --line: rgba(246, 243, 236, 0.14);
  --danger: #f0877c;
  --font: 'Urbanist', 'Segoe UI', system-ui, sans-serif;
  --num: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --r-sm: 8px; --r-lg: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--forest); color: var(--cream); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
a { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
.num { font-family: var(--num); font-weight: 800; letter-spacing: 0.01em; line-height: 0.9; }
.muted { color: var(--sage); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* Buttons: gold with forest text (the image's own contrast), or an outline */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 1rem var(--font); text-decoration: none; cursor: pointer; border: 1.5px solid var(--gold); background: var(--gold); color: var(--forest);
  transition: transform 0.15s ease, background-color 0.15s ease; }
.btn:hover { background: #e6a653; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--sage); background: rgba(246, 243, 236, 0.04); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 0.93rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.danger { background: transparent; color: var(--danger); border-color: rgba(240, 135, 124, 0.5); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(20, 64, 47, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
/* The logo is an image (img/euroia-logo.svg), so it looks the same everywhere; the word stays in the page for screen readers */
.logo { display: inline-block; width: 112px; height: 31px; font-size: 0; color: transparent; text-decoration: none;
  background: url(../img/euroia-logo-white.svg) left center / contain no-repeat; }
.light .logo, .home .logo { background-image: url(../img/euroia-logo.svg); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { color: var(--sage); text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--cream); }
@media (max-width: 760px) { .site-nav .hide-sm { display: none; } .site-nav { gap: 14px; } }

/* Forms */
label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
/* Decorative circles and tilted tickets never make the page scroll sideways */
html, body { overflow-x: clip; }
input[type=radio], input[type=checkbox] { width: auto; min-height: 0; padding: 0; }
input, select, textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--deep); color: var(--cream); font: 1rem var(--font); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
input::placeholder { color: rgba(180, 191, 183, 0.6); }
.field { margin-bottom: 16px; }
.hint { font-size: 0.88rem; color: var(--sage); margin-top: 6px; }
.error { color: var(--danger); font-size: 0.93rem; min-height: 1.3em; margin-top: 6px; }
.ok-text { color: #9ccaa8; }

/* Panels for the account and owner pages */
.panel { background: var(--pine); border-radius: var(--r-lg); padding: 24px; }
.pill { display: inline-block; font-size: 0.85rem; font-weight: 600; padding: 3px 12px; border-radius: 999px; background: rgba(156, 202, 168, 0.18); color: #bfe3c8; white-space: nowrap; }
.pill.trial { background: rgba(217, 150, 63, 0.18); color: #f0c286; }
.pill.warn { background: rgba(217, 150, 63, 0.28); color: #f6d3a2; }
.pill.stopped { background: rgba(240, 135, 124, 0.18); color: #f8b8b0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--cream); color: var(--forest); padding: 12px 20px; border-radius: 999px; font-weight: 600; opacity: 0; transition: opacity 0.2s, transform 0.2s; pointer-events: none; z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal-bg { position: fixed; inset: 0; background: rgba(8, 26, 19, 0.7); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; z-index: 50; }
.modal { background: var(--pine); border-radius: var(--r-lg); padding: 28px; width: 100%; max-width: 640px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--sage); font-size: 0.93rem; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot a { color: var(--sage); margin-right: 18px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- Light pages (add class="light" to <body>): white cards on a soft tint, forest-green text, gold accents ---------- */
body.light {
  --cream: #17352a;            /* text */
  --sage: #56685f;             /* quieter text */
  --line: rgba(20, 64, 47, 0.13);
  --pine: #ffffff;             /* cards, panels and windows */
  --deep: #ffffff;             /* boxes to type in */
  --danger: #b3392e;
  --gold-text: #a3661d;        /* gold that stays readable on white */
  --tint: #f3f6f4;
  background: var(--tint); color: var(--cream);
}
.light a { color: var(--gold-text); }
.light a.btn { color: var(--forest); }          /* links styled as buttons keep the button's own text colour */
.light a.btn.danger { color: var(--danger); }
.light .site-head { background: rgba(255, 255, 255, 0.95); border-bottom-color: var(--line); }
.light .logo { color: var(--forest); }
.light .site-nav a:not(.btn) { color: var(--sage); }
.light .site-nav a:not(.btn):hover { color: var(--forest); }
.light h1, .light h2, .light h3 { color: var(--forest); }
.light .panel, .light .modal { border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(20, 64, 47, 0.07); }
.light .modal { box-shadow: 0 30px 80px rgba(20, 64, 47, 0.25); }
.light input, .light select, .light textarea { border-color: rgba(20, 64, 47, 0.22); }
.light input::placeholder, .light textarea::placeholder { color: #8a9a92; }
.light .btn.ghost { color: var(--forest); border-color: rgba(20, 64, 47, 0.25); }
.light .btn.ghost:hover { background: var(--tint); border-color: var(--forest); }
.light .btn.danger { color: var(--danger); border-color: rgba(179, 57, 46, 0.4); background: #fff; }
.light .ok-text { color: #2f7a52; }
.light .pill { background: #e2f1e7; color: #1f6b45; }
.light .pill.trial { background: #fbefdc; color: #8a5412; }
.light .pill.warn { background: #fbe4c4; color: #7a4a0c; }
.light .pill.stopped { background: #fbe3e0; color: #a3332a; }
.light .toast { background: var(--forest); color: #fff; }
.light .site-foot { color: var(--sage); }
.light .site-foot a { color: var(--sage); }
