/* 26.11 Adler Clem: Microsoft / Copilot look, matched to the RSNA app (Segoe UI, swirl background, white panels, black buttons). */
@font-face { font-family: 'Segoe UI'; src: url(/font/segoeuil.woff2) format('woff2'); font-weight: 300; }
@font-face { font-family: 'Segoe UI'; src: url(/font/segoeui.woff2) format('woff2'); font-weight: 400; }
@font-face { font-family: 'Segoe UI'; src: url(/font/seguisb.woff2) format('woff2'); font-weight: 600; }
@font-face { font-family: 'Segoe UI'; src: url(/font/segoeuib.woff2) format('woff2'); font-weight: 700; }
@font-face { font-family: 'Ginto Copilot'; src: url(/font/Ginto-Copilot-Upright-Variable.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Bangers'; src: url(/font/Bangers-Regular.woff2) format('woff2'); font-weight: 400; font-display: block; }
@font-face { font-family: 'Saira'; src: url(/font/Saira-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: block; }

*, *:before, *:after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --color-primary: #000; --color-primary-hover: #222; --color-text: #000; --color-text-muted: #666;
  --color-border-light: #fff8; --color-border-dark: #7F4400; --color-error: #dc3545; --color-success: #28a745;
  --color-white: #fff; --color-gray: #EAEAEA; --color-background: #dcd9d7; --color-cream: #F1EDE1;
  --font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-size-sm: .875rem; --font-size-md: 1.15rem; --font-size-lg: 1.3rem; --font-size-xl: 1.75rem; --font-size-2xl: 2rem; --font-size-3xl: 3rem; --font-size-4xl: 3.75rem;
  --spacing-xs: .25rem; --spacing-sm: .5rem; --spacing-md: .75rem; --spacing-lg: 1rem; --spacing-xl: 2rem; --spacing-2xl: 3.25rem; --spacing-3xl: 4.75rem;
  --border-radius-md: 12px; --border-radius-lg: 16px;
  --box-shadow: rgba(0, 0, 0, .1) 0px 4px 12px;
  --box-shadow-input: rgba(9, 30, 66, .25) 0px 4px 8px -2px, rgba(9, 30, 66, .08) 0px 0px 0px 1px;
  --kb: 0px; /* touch keyboard height, set by script */
}
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
/* Background: Tarantula Nebula, NASA/JPL-Caltech Spitzer Space Telescope (ssc2020-06b) */
body { font-family: var(--font-family); color: var(--color-text); background: #0b0612 url(/image/bg-space.jpg) center center / cover fixed; line-height: 1.5; min-height: 100vh; }
h1, h2 { line-height: 1.2; font-weight: 600; }
h2 { font-size: var(--font-size-3xl); margin-bottom: var(--spacing-2xl); }
p { margin-bottom: var(--spacing-sm); }
button, .btn { font-family: inherit; font-size: 1rem; font-weight: 700; padding: var(--spacing-sm) var(--spacing-xl); background: var(--color-primary); color: var(--color-cream); border: none; border-radius: 1rem; cursor: pointer; transition: background-color .2s ease; margin: var(--spacing-lg) 0; text-decoration: none; display: inline-block; }
button:hover:not(:disabled) { background: var(--color-primary-hover); }
button:disabled { opacity: .25; filter: grayscale(.5); cursor: not-allowed; }
button.secondary { background: transparent; color: var(--color-text); border: 2px solid var(--color-border-dark); }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], textarea {
  font-family: inherit; font-size: var(--font-size-md); padding: var(--spacing-md); box-shadow: var(--box-shadow-input); border: 1px solid var(--color-gray);
  border-radius: var(--border-radius-lg); min-width: 200px; width: 50%; margin-bottom: var(--spacing-md); background: #fff; color: #000;
}
input:focus, textarea:focus { border: 1px solid var(--color-primary); outline: none; }
.panel { background: var(--color-white); outline: var(--color-border-light) solid .5rem; border-radius: var(--border-radius-lg); box-shadow: var(--box-shadow); padding: var(--spacing-3xl); }
main { max-width: 1200px; min-height: 100vh; margin: 0 auto; padding: var(--spacing-lg); padding-bottom: calc(var(--spacing-lg) + var(--kb)); display: flex; flex-direction: column; align-items: center; justify-content: center; }
main > section { width: 100%; max-width: 1280px; margin-bottom: var(--spacing-lg); text-align: center; }
.hide { display: none !important; }
.error { color: var(--color-error); }
.muted { color: var(--color-text-muted); }

/* Shared names used by the phone upload, login and panel pages */
:root { --muted: #666; --green: #000; --pink: #000; --orange: #000; --ink: #000; --line: #E4E1F2; --shadow: rgba(0, 0, 0, .1) 0px 4px 12px; --radius: 16px; --ribbon: transparent; }
.ribbon { display: none; }
.marker { font-weight: 600; color: var(--color-text-muted); }
.input { width: 100%; font: inherit; font-size: var(--font-size-md); padding: var(--spacing-md); border: 1px solid var(--color-gray); border-radius: var(--border-radius-lg); box-shadow: var(--box-shadow-input); background: #fff; color: #000; }
.btn.ghost { background: transparent; color: var(--color-text); border: 2px solid var(--color-border-dark); }

@media (max-width: 800px) { body { background-image: url(/image/bg-space-sm.jpg); background-attachment: scroll; } }
.credit { position: fixed; right: 12px; bottom: 8px; font-size: 11px; color: #fff; opacity: .55; pointer-events: none; z-index: 1; }

/* ===== Modern Fluent / Copilot polish (Nov 28) ===== */
:root {
  --copilot-grad: linear-gradient(100deg, #2AA8FF 0%, #8C48FF 38%, #F2598A 70%, #FFB152 100%);
  --glass: rgba(255, 255, 255, .88);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
/* background: the nebula drifts very slowly, with a vignette for depth */
body { background: #0b0612; }
body::before { content: ''; position: fixed; inset: -4%; z-index: -2; background: url(/image/bg-space.jpg) center / cover no-repeat; animation: drift 60s ease-in-out infinite alternate; }
body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(11, 6, 18, 0) 35%, rgba(11, 6, 18, .55) 100%), linear-gradient(180deg, rgba(40, 10, 60, .15), rgba(11, 6, 18, .35)); }
@keyframes drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.08) translate(-1.5%, -1%); } }
@media (max-width: 800px) { body::before { background-image: url(/image/bg-space-sm.jpg); animation: none; inset: 0; } }
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

/* frosted glass panels with a soft Copilot glow */
.panel { position: relative; background: var(--glass); -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .65); outline: none; border-radius: 28px; box-shadow: 0 30px 80px rgba(8, 2, 20, .45), inset 0 1px 0 rgba(255, 255, 255, .7); }
main > .panel { box-shadow: 0 30px 80px rgba(8, 2, 20, .5), 0 0 70px rgba(140, 72, 255, .28), 0 0 140px rgba(242, 89, 138, .16), inset 0 1px 0 rgba(255, 255, 255, .8); }
main > .panel::before { content: ''; position: absolute; inset: -1.5px; border-radius: 29.5px; padding: 1.5px; background: var(--copilot-grad); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: .85; }
main > .panel:not(.hide) { animation: rise .55s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

/* type */
h1, h2, h3 { letter-spacing: -.02em; font-weight: 600; }
.grad-text { background: var(--copilot-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* buttons: pill, with a lift */
button, .btn { border-radius: 999px; padding: .85rem 2.4rem; font-size: 1.05rem; font-weight: 600; letter-spacing: .01em; color: #fff;
  background: #111; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
button:hover:not(:disabled) { background: #000; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0, 0, 0, .3); }
button:active:not(:disabled) { transform: translateY(1px) scale(.98); }
button.secondary { background: rgba(255, 255, 255, .6); color: #111; border: 1px solid rgba(0, 0, 0, .12); box-shadow: none; }
button .arrow { display: inline-block; margin-left: .5rem; transition: transform .2s var(--ease); }
button:hover .arrow { transform: translateX(3px); }

/* inputs: soft, with a gradient focus glow */
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], textarea {
  border-radius: 14px; border: 1px solid rgba(0, 0, 0, .1); background: rgba(255, 255, 255, .9); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); transition: box-shadow .2s, border-color .2s; }
input:focus, textarea:focus { border-color: #8C48FF; box-shadow: 0 0 0 4px rgba(140, 72, 255, .18), 0 6px 18px rgba(242, 89, 138, .15); }

/* step progress */
.steps { display: flex; gap: 8px; justify-content: center; margin: -1.25rem 0 1.75rem; }
.steps i { width: 28px; height: 5px; border-radius: 5px; background: rgba(0, 0, 0, .12); }
.steps i.on { background: var(--copilot-grad); }
.copilot-mark { width: 64px; height: 64px; margin: 0 auto 1.25rem; filter: drop-shadow(0 8px 18px rgba(140, 72, 255, .35)); }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #6b5f86; margin-bottom: .75rem; }
.lede { font-size: 1.2rem; color: #3d3d3d; max-width: 520px; margin: 0 auto .5rem; }
main > .panel { background:
  radial-gradient(110% 75% at 0% 0%, rgba(42, 168, 255, .20), transparent 52%),
  radial-gradient(110% 75% at 100% 0%, rgba(242, 89, 138, .18), transparent 52%),
  radial-gradient(90% 70% at 50% 115%, rgba(255, 177, 82, .18), transparent 60%),
  rgba(255, 255, 255, .90); }
.tag-display-text textarea { border: 1px solid rgba(140, 72, 255, .35) !important; background: rgba(255, 255, 255, .95); }
@font-face { font-family: 'Audiowide'; src: url(/font/Audiowide.woff2) format('woff2'); font-display: block; }
@font-face { font-family: 'Orbitron'; src: url(/font/Orbitron.woff2) format('woff2'); font-weight: 700; font-display: block; }
@font-face { font-family: 'Michroma'; src: url(/font/Michroma.woff2) format('woff2'); font-display: block; }

/* ===== Dark mode: evening party at the planetarium (dev, Nov 30) ===== */
body.dark { color: #F4F2FA; }
body.dark main > .panel { color: #F4F2FA; border: 1px solid rgba(255, 255, 255, .14);
  background:
    radial-gradient(110% 75% at 0% 0%, rgba(42, 168, 255, .16), transparent 55%),
    radial-gradient(110% 75% at 100% 0%, rgba(242, 89, 138, .16), transparent 55%),
    radial-gradient(90% 70% at 50% 115%, rgba(140, 72, 255, .20), transparent 60%),
    rgba(16, 12, 32, .74);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 70px rgba(140, 72, 255, .25), 0 0 140px rgba(242, 89, 138, .14), inset 0 1px 0 rgba(255, 255, 255, .12); }
body.dark p, body.dark .lede { color: #D6D1E8; }
body.dark .eyebrow { color: #B9A9F0; }
body.dark .steps i { background: rgba(255, 255, 255, .16); }
body.dark input[type=text], body.dark input[type=tel], body.dark input[type=email], body.dark input[type=password], body.dark input[type=number], body.dark textarea {
  background: rgba(255, 255, 255, .07) !important; color: #fff; border: 1px solid rgba(255, 255, 255, .18) !important; box-shadow: none; }
body.dark input::placeholder, body.dark textarea::placeholder { color: rgba(255, 255, 255, .45); }
body.dark input:focus, body.dark textarea:focus { border-color: #B18CFF !important; box-shadow: 0 0 0 4px rgba(140, 72, 255, .28), 0 0 24px rgba(242, 89, 138, .22); }
body.dark button:not(.composer-submit):not(.remove-btn) { background: #fff; color: #120F24; box-shadow: 0 8px 26px rgba(140, 72, 255, .35); }
body.dark button:not(.composer-submit):not(.remove-btn):hover:not(:disabled) { background: #EFEAFF; }
body.dark button.secondary { background: transparent !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .3) !important; box-shadow: none !important; }
body.dark button:disabled { opacity: .35; }
body.dark .error { color: #FF8FA8; }
body.dark .tag-display-text textarea { border: 1px solid rgba(177, 140, 255, .45) !important; background: rgba(255, 255, 255, .06) !important; }
#starfield { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
#starfield i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 1px rgba(255, 255, 255, .7); animation: twinkle var(--d, 4s) ease-in-out infinite; animation-delay: var(--delay, 0s); }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.2); } }
#starfield .shoot { position: absolute; top: 12%; left: 70%; width: 140px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); opacity: 0; transform: rotate(155deg); animation: shoot 11s ease-in 4s infinite; }
@keyframes shoot { 0% { opacity: 0; transform: translate(0, 0) rotate(155deg); } 2% { opacity: 1; } 9% { opacity: 0; transform: translate(-420px, 200px) rotate(155deg); } 100% { opacity: 0; transform: translate(-420px, 200px) rotate(155deg); } }
@media (prefers-reduced-motion: reduce) { #starfield i, #starfield .shoot { animation: none; } }
body.dark .steps i.on { background: var(--copilot-grad); }
body.dark .composer-input-wrap textarea { background: transparent !important; border: none !important; box-shadow: none !important; }
