/* CELEST BOGO — light theme, no framework.
   Paired with index.php and js/bogo.js. */

:root{
	--canvas:#f5f5f7;
	--surface:#ffffff;
	--ink:#1d1d1f;
	--muted:#6e6e73;
	--hairline:#d8d8dd;
	--disc:#ebebf0;
	--ok:#1c7a4a;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
	margin:0;
	background:var(--canvas);
	color:var(--ink);
	font:400 17px/1.55 system-ui,-apple-system,"SF Pro Text","Helvetica Neue",Arial,sans-serif;
	-webkit-font-smoothing:antialiased;
}
a{color:var(--ink)}
img{max-width:100%}
.shell{max-width:700px;margin:0 auto;padding:0 22px}

/* ---------- header / footer ---------- */
.topbar{
	position:sticky;top:0;z-index:20;
	background:rgba(245,245,247,.85);
	backdrop-filter:saturate(180%) blur(20px);
	-webkit-backdrop-filter:saturate(180%) blur(20px);
	border-bottom:1px solid var(--hairline);
}
.topbar .shell{display:flex;align-items:center;justify-content:space-between;height:48px}
.mark{font-family:"Josefin Sans",system-ui;font-weight:300;letter-spacing:.34em;font-size:15px;text-decoration:none}
.toplink{font-size:13px;color:var(--muted);text-decoration:none}
.toplink:hover{color:var(--ink)}
.foot{padding:46px 0 70px;color:var(--muted);font-size:13px}

/* ---------- hero ---------- */
.hero{padding:70px 0 12px}
.hero h1{
	font-family:"Josefin Sans",system-ui;font-weight:200;
	font-size:clamp(36px,6vw,58px);line-height:1.07;letter-spacing:-.01em;margin:0 0 16px;
	text-wrap:balance;
}
.hero p{margin:0;color:var(--muted);font-size:18px}

/* ---------- steps ---------- */
.step{
	background:var(--surface);border:1px solid var(--hairline);border-radius:18px;
	padding:28px 28px 26px;margin-top:18px;
}
.step:first-of-type{margin-top:38px}
.step h2{font-size:19px;font-weight:500;margin:0 0 4px;display:flex;align-items:baseline;gap:12px}
.step h2 .n{
	font-family:"Josefin Sans",system-ui;font-weight:300;font-size:15px;color:var(--muted);
	width:26px;height:26px;border:1px solid var(--hairline);border-radius:50%;
	display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;transform:translateY(-2px);
}
.step .lead{margin:0 0 22px;padding-left:38px;color:var(--muted);font-size:14.5px}
.step .body{padding-left:38px}

/* ---------- fields ---------- */
.field{margin-bottom:22px}
.field:last-child{margin-bottom:0}
.lab{display:block;font-size:14px;color:var(--muted);margin-bottom:8px}
input[type=text],select{
	width:100%;font:inherit;font-size:17px;color:var(--ink);background:var(--surface);
	border:1px solid var(--hairline);border-radius:12px;padding:13px 15px;appearance:none;
	transition:border-color .15s,box-shadow .15s;
}
select{
	background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.6'/></svg>");
	background-repeat:no-repeat;background-position:right 16px center;padding-right:42px;
}
input[type=text]:focus,select:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 4px rgba(29,29,31,.08)}
.prefixed{display:flex;border:1px solid var(--hairline);border-radius:12px;overflow:hidden;transition:border-color .15s,box-shadow .15s}
.prefixed:focus-within{border-color:var(--ink);box-shadow:0 0 0 4px rgba(29,29,31,.08)}
.prefixed .tag{display:flex;align-items:center;padding:0 4px 0 15px;color:var(--muted)}
.prefixed input{border:0;border-radius:0;padding-left:2px;font-variant-numeric:tabular-nums;letter-spacing:.02em}
.prefixed input:focus{box-shadow:none}
.hint{margin:8px 0 0;font-size:13.5px;color:var(--muted)}
.hint.bad{color:#b3261e}

/* ---------- gallery ---------- */
.search{position:relative;margin-bottom:12px}
.search input{width:100%;padding-left:40px}
.search svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:16px;height:16px;stroke:var(--muted);fill:none;stroke-width:2}
.count{font-size:13.5px;color:var(--muted);margin:0 0 10px}
.pane{
	max-height:400px;overflow:auto;border:1px solid var(--hairline);border-radius:14px;
	padding:16px;background:#fafafa;overscroll-behavior:contain;
}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:16px 14px}
.face{border:0;background:transparent;padding:0;cursor:pointer;font:inherit;display:flex;flex-direction:column;gap:8px;align-items:center}
.face .disc{
	width:100%;aspect-ratio:1;border-radius:50%;background:var(--disc);overflow:hidden;position:relative;
	transition:box-shadow .12s,transform .06s;
}
.face img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block}
.face span{font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.face:hover .disc{box-shadow:0 0 0 1px #c2c2ca}
.face:active .disc{transform:scale(.97)}
.face:focus-visible .disc{outline:2px solid var(--ink);outline-offset:3px}
.face[aria-pressed=true] .disc{box-shadow:0 0 0 2px var(--ink),0 0 0 6px rgba(29,29,31,.12)}
.face[aria-pressed=true] span{color:var(--ink);font-weight:500}
.empty{grid-column:1/-1;padding:30px 6px;text-align:center;color:var(--muted);font-size:14.5px}

.chosen{display:flex;align-items:center;gap:14px;border:1px solid var(--hairline);border-radius:14px;padding:12px 14px;background:var(--surface);margin-top:16px}
.chosen .thumb{width:52px;height:52px;border-radius:50%;background:var(--disc);overflow:hidden;flex:0 0 auto;position:relative}
.chosen .thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.chosen b{display:block;font-weight:500;font-size:16px}
.chosen small{color:var(--muted);font-size:13.5px}
.chosen .change{margin-left:auto;font:inherit;font-size:14px;background:transparent;border:1px solid var(--hairline);border-radius:980px;padding:8px 16px;cursor:pointer;color:var(--ink)}
.chosen .change:hover{border-color:#b9b9c0}
.chosen.none .ph{width:52px;height:52px;border-radius:50%;border:1px dashed var(--hairline);flex:0 0 auto}

.opener{
	width:100%;font:inherit;font-size:16px;text-align:left;background:var(--surface);
	border:1px solid var(--hairline);border-radius:12px;padding:13px 15px;cursor:pointer;
	display:flex;align-items:center;justify-content:space-between;color:var(--muted);
}
.opener:hover{border-color:#b9b9c0}

/* sheet (narrow screens) */
.sheet{position:fixed;inset:0;z-index:50;display:flex;align-items:flex-end;justify-content:center}
.sheet[hidden]{display:none}
.sheet .scrim{position:absolute;inset:0;background:rgba(0,0,0,.3)}
.sheet .panel{
	position:relative;background:var(--surface);width:100%;max-height:90vh;
	border-radius:20px 20px 0 0;display:flex;flex-direction:column;box-shadow:0 -10px 50px rgba(0,0,0,.2);
}
.sheethead{padding:16px 18px 12px;border-bottom:1px solid var(--hairline)}
.sheethead .row{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.sheethead h3{margin:0;font-size:17px;font-weight:500}
.sheethead .x{font:inherit;border:0;background:#eeeef2;color:var(--ink);width:30px;height:30px;border-radius:50%;cursor:pointer;font-size:15px;line-height:1}
.sheet .scrollarea{overflow:auto;padding:16px 18px 26px}

/* ---------- checkboxes, captcha, submit ---------- */
.check{display:flex;gap:12px;align-items:flex-start;padding:14px 0;border-top:1px solid var(--hairline)}
.check:first-child{border-top:0;padding-top:0}
.check input{margin:3px 0 0;width:18px;height:18px;accent-color:var(--ink);flex:0 0 auto}
.check label{font-size:15.5px}
.check .sub{display:block;color:var(--muted);font-size:13.5px;margin-top:3px}
.captcha{margin:18px 0 22px}
.g-recaptcha{display:inline-block}
.submit{
	width:100%;font:inherit;font-size:17px;font-weight:500;color:#fff;background:var(--ink);
	border:0;border-radius:980px;padding:15px 24px;cursor:pointer;transition:opacity .15s,transform .06s;
}
.submit:disabled{opacity:.32;cursor:not-allowed}
.submit:not(:disabled):active{transform:scale(.988)}
.reassure{margin:14px 0 0;text-align:center;font-size:13.5px;color:var(--muted)}

/* ---------- disclosures ---------- */
.more{margin-top:54px}
details{border-top:1px solid var(--hairline)}
details:last-of-type{border-bottom:1px solid var(--hairline)}
summary{list-style:none;cursor:pointer;padding:19px 2px;font-size:17px;display:flex;justify-content:space-between;align-items:center}
summary::-webkit-details-marker{display:none}
summary::after{content:"";width:9px;height:9px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg);transition:transform .2s;margin-right:4px}
details[open] summary::after{transform:rotate(-135deg)}
.inner{padding:0 2px 22px;color:var(--muted);font-size:15.5px;max-width:62ch}
.inner ol,.inner ul{padding-left:18px;margin:0}
.inner li{margin-bottom:10px}
.inner p{margin:0 0 14px}
.inner .q{color:var(--ink);margin-bottom:2px}

/* ---------- result screens ---------- */
.result{background:var(--surface);border:1px solid var(--hairline);border-radius:20px;padding:44px 32px;margin:64px 0 0}
.result h1{font-family:"Josefin Sans",system-ui;font-weight:300;font-size:clamp(26px,4.5vw,34px);margin:0 0 16px;line-height:1.15}
.result p{color:var(--muted);max-width:52ch;margin:0 0 14px}
.result .btn{display:inline-block;margin-top:18px;background:var(--ink);color:#fff;text-decoration:none;border-radius:980px;padding:13px 26px;font-size:16px}
.seal{width:50px;height:50px;margin:0 0 20px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--hairline)}
.seal svg{width:23px;height:23px}

/* ---------- responsive ---------- */
@media (max-width:699px){
	.hero{padding-top:48px}
	.step{padding:24px 20px 22px}
	.step .lead,.step .body{padding-left:0}
	.result{padding:34px 22px;margin-top:44px}
}
@media (prefers-reduced-motion:reduce){
	*{transition:none!important;animation:none!important}
}
