/* Guide 2 Decide + shared styles for the tool pages (worksheets, evaluator, hub, compare, decisions). */
:root {
  --bg: #111111; --panel: #171717; --panel-2: #1d1d1d; --line: #262626; --line-2: #333;
  --text: #ffffff; --muted: #a3a3a3; --dim: #777; --orange: #f87725; --orange-soft: rgba(248,119,37,.1);
  --go: #4ade80; --cond: #facc15; --nogo: #f87171;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Source Serif Pro', serif; font-size: 17px; line-height: 1.55; }
::selection { background: var(--orange); color: #fff; }
a { color: inherit; }
[hidden] { display: none !important; }
.sans { font-family: 'Work Sans', sans-serif; }
.eyebrow { font-family: 'Work Sans', sans-serif; letter-spacing: 0.22em; text-transform: uppercase; font-size: 12px; color: var(--orange); margin: 0; }
.wrap { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; }
.wrap.wide { max-width: 64rem; }
h1 { font-size: 34px; line-height: 1.15; margin: .75rem 0 .5rem; }
h2 { font-size: 28px; line-height: 1.2; margin: .75rem 0 .35rem; }
h3 { font-size: 20px; margin: 0 0 .25rem; }
.lead { color: #d4d4d4; font-style: italic; margin: 0 0 2rem; }
.rule { width: 64px; height: 1px; background: var(--orange); margin: 1.25rem 0 1.75rem; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
main.page { padding: 3rem 0 6rem; }

/* Header + nav */
header.nav { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: rgba(17,17,17,.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
header.nav nav { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; height: 3.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
header.nav a { font-family: 'Work Sans', sans-serif; text-decoration: none; letter-spacing: .04em; }
.brand { font-size: 15px; color: #fff; white-space: nowrap; }
.nav-right { display: flex; align-items: center; gap: 1.1rem; }
.navlink { font-family: 'Work Sans', sans-serif; font-size: 13px; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 0; letter-spacing: .04em; text-decoration: none; }
.navlink:hover, .navlink[aria-expanded="true"], .navlink[aria-current="page"] { color: #fff; }
.tools-menu { position: relative; }
.tools-panel { position: absolute; right: 0; top: calc(100% + .9rem); width: min(20rem, 88vw); background: var(--panel); border: 1px solid var(--line-2); border-radius: .5rem; padding: .5rem; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.tools-panel a { display: block; padding: .55rem .7rem; border-radius: .35rem; font-size: 14px; color: #e5e5e5; }
.tools-panel a small { display: block; color: var(--dim); font-size: 12px; letter-spacing: 0; }
.tools-panel a:hover, .tools-panel a[aria-current="page"] { background: var(--panel-2); color: #fff; }
.tools-panel .group { font-family: 'Work Sans', sans-serif; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); padding: .6rem .7rem .2rem; }
.account-chip { display: none; font-family: 'Work Sans', sans-serif; font-size: 12px; color: var(--dim); max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .account-chip, .nav-pricing, .nav-about { display: none; } .nav-right { gap: .8rem; }
  .tools-panel { position: fixed; top: 3.5rem; right: .75rem; } }

/* Cards + fields */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: .5rem; padding: 1.5rem; margin-bottom: 1.25rem; }
.hint { color: var(--muted); font-size: 15px; margin: 0 0 1rem; }
label.field { display: block; margin-bottom: 1.1rem; }
label.field:last-child { margin-bottom: 0; }
.label { display: block; font-weight: 600; margin-bottom: .4rem; }
.label small { font-weight: 400; font-style: italic; color: var(--muted); font-size: 15px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], input[type=url], textarea, select {
  width: 100%; font: inherit; font-size: 16px; color: #fff; background: var(--panel-2); border: 1px solid var(--line-2);
  border-radius: .375rem; padding: .7rem .85rem; transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #888 50%), linear-gradient(135deg, #888 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
textarea { min-height: 6.5rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: #666; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(248,119,37,.18); }
input[type=date] { color-scheme: dark; }
.row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .row.two { grid-template-columns: 1fr 1fr; } .row.three { grid-template-columns: 1fr 1fr 1fr; } }

/* Buttons */
.btn { font-family: 'Work Sans', sans-serif; font-weight: 600; font-size: 15px; border-radius: .375rem; padding: .8rem 1.4rem; cursor: pointer; border: 1px solid transparent; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; transition: transform .15s, background .15s, border-color .15s, opacity .15s; }
.btn.primary { background: var(--orange); color: #fff; }
.btn.primary:hover { transform: scale(1.03); }
.btn.ghost { background: none; color: var(--muted); border-color: var(--line-2); }
.btn.ghost:hover { color: #fff; border-color: #555; }
.btn.small { font-size: 13px; padding: .5rem .85rem; }
.btn.link { background: none; border: 0; padding: .4rem 0; color: var(--dim); font-weight: 500; font-size: 13px; }
.btn.link:hover { color: #fff; text-decoration: underline; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn:focus-visible, .navlink:focus-visible, .chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }

/* Chips (tap-to-add suggestions) */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { font-family: 'Work Sans', sans-serif; font-size: 13px; color: #d4d4d4; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 999px; padding: .35rem .75rem; cursor: pointer; line-height: 1.3; }
.chip:hover { border-color: #666; color: #fff; }
.chip.on { background: var(--orange); border-color: var(--orange); color: #fff; }

/* Badges + verdict colours */
.badge { display: inline-block; font-family: 'Work Sans', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .5rem; border-radius: .25rem; border: 1px solid currentColor; color: var(--muted); }
.badge.go { color: var(--go); } .badge.cond { color: var(--cond); } .badge.nogo { color: var(--nogo); } .badge.orange { color: var(--orange); }

/* Notices */
.notice { font-family: 'Work Sans', sans-serif; font-size: 14px; padding: .7rem .9rem; border-radius: .375rem; border: 1px solid var(--line-2); color: #e5e5e5; background: var(--panel-2); margin: .75rem 0; }
.notice.error { border-color: rgba(248,113,113,.5); color: #fecaca; background: rgba(248,113,113,.08); }
.notice.ok { border-color: rgba(74,222,128,.45); color: #bbf7d0; background: rgba(74,222,128,.07); }
.callout { border-left: 2px solid var(--orange); padding: .75rem 1rem; background: rgba(248,119,37,.06); color: #e5e5e5; font-size: 15px; border-radius: 0 .375rem .375rem 0; margin: 0 0 1.25rem; }
.disclosure { font-family: 'Work Sans', sans-serif; font-size: 12px; color: var(--dim); border: 1px dashed var(--line-2); border-radius: .375rem; padding: .6rem .8rem; }

/* Premium lock */
.locked { position: relative; }
.locked > .lock-blur { filter: blur(6px); pointer-events: none; user-select: none; opacity: .6; }
.lock-cta { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 1.5rem; gap: .75rem; }

/* Modal (login) */
.g2d-modal { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.7); display: grid; place-items: center; padding: 1.25rem; }
.g2d-modal .box { width: min(26rem, 100%); background: var(--panel); border: 1px solid var(--line-2); border-radius: .6rem; padding: 1.75rem; position: relative; animation: g2dIn .2s ease; }
.g2d-modal .close { position: absolute; top: .6rem; right: .8rem; background: none; border: 0; color: var(--dim); font-size: 22px; cursor: pointer; }
@keyframes g2dIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.spinner { width: 1rem; height: 1rem; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: g2dIn .4s ease; }

footer.site { border-top: 1px solid var(--line); text-align: center; padding: 3rem 1.5rem; }
footer.site p { margin: 0 0 .4rem; color: #777; font-size: 14px; }
footer.site a { color: #777; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media print {
  body { background: #fff; color: #000; }
  header.nav, footer.site .no-print, .no-print, .g2d-modal { display: none !important; }
}
.chip input[type=radio] { accent-color: var(--orange); margin: 0 .25rem 0 0; vertical-align: -1px; }
