/* Koe customer page: one column, phone first, light and dark. */
:root{--bg:#F3F5F9;--surface:#fff;--ink:#16223A;--muted:#5B6578;--line:#D9DEE8;--indigo:#2A4A7F;--indigo-soft:#E4EAF5;--ochre:#B97A12;--danger:#B3261E;--danger-soft:#FBE7E5;color-scheme:light}
@media (prefers-color-scheme:dark){:root{--bg:#0F1522;--surface:#18213A;--ink:#E8ECF4;--muted:#A2ACBF;--line:#2C3755;--indigo:#8FB0EA;--indigo-soft:#22325A;--ochre:#E2AE4E;--danger:#FF8A80;--danger-soft:#43211F;color-scheme:dark}}
*{box-sizing:border-box}
html,body{margin:0}
body.koe{background:var(--bg);color:var(--ink);font:16px/1.55 "IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif}
.koe-wrap{max-width:560px;margin:0 auto;padding:20px max(16px,env(safe-area-inset-right)) 32px max(16px,env(safe-area-inset-left))}
.koe-langs{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:14px;margin-bottom:14px}
.koe-langs a{color:var(--indigo)}
.koe-langs span{font-weight:700}
h1{font-size:clamp(22px,6vw,28px);line-height:1.25;margin:0 0 6px;text-wrap:balance}
.koe-intro{color:var(--muted);margin:0 0 14px}
.koe-product{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin-bottom:16px}
.koe-product strong{display:block}
.koe-product span{color:var(--muted);font-size:14px}
.koe-form{display:grid;gap:18px;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:18px}
fieldset{border:0;margin:0;padding:0;min-width:0}
legend,.koe-form label[for]{font-weight:600;display:block;margin-bottom:8px}
.koe-form p{margin:0}
.koe-stars{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.koe-stars label,.koe-chips label{position:relative;cursor:pointer}
.koe-stars input,.koe-chips input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.koe-stars span{display:block;text-align:center;padding:10px 0;border:1px solid var(--line);border-radius:10px;background:var(--bg);font-weight:600}
.koe-stars input:checked+span{background:var(--indigo);border-color:var(--indigo);color:var(--surface)}
.koe-scale{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);margin-top:4px}
.koe-chips{display:flex;flex-wrap:wrap;gap:8px}
.koe-chips span{display:inline-block;padding:7px 13px;border:1px solid var(--line);border-radius:999px;background:var(--bg);font-size:15px}
.koe-chips input:checked+span{background:var(--indigo-soft);border-color:var(--indigo);color:var(--indigo);font-weight:600}
.koe-chip-safety input:checked+span{background:var(--danger-soft);border-color:var(--danger);color:var(--danger)}
.koe-stars input:focus-visible+span,.koe-chips input:focus-visible+span{outline:3px solid var(--ochre);outline-offset:2px}
.koe-safety-note{display:none;margin-top:10px!important;font-size:14px;color:var(--danger);background:var(--danger-soft);border-radius:10px;padding:10px 12px}
.koe-safety-note.on{display:block}
textarea,input[type=text],input[type=email],input[type=file]{width:100%;font:inherit;color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:10px 12px}
textarea{min-height:110px;resize:vertical}
input:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid var(--ochre);outline-offset:2px}
small{display:block;color:var(--muted);font-size:13px;margin-top:4px}
.koe-who{display:grid;gap:6px}
.koe-who label{font-weight:400}
.koe-business{display:none;margin-top:10px!important}
.koe-business.on{display:block}
.koe-consent{display:flex;gap:10px;align-items:flex-start;font-size:14px;color:var(--muted)}
.koe-consent input{margin-top:3px;width:20px;height:20px;flex:none}
.koe-consent a{color:var(--indigo)}
.koe-submit{background:var(--ochre);color:#fff;border:0;border-radius:12px;padding:14px;font:inherit;font-weight:700;font-size:17px;cursor:pointer}
.koe-submit[disabled]{opacity:.6}
.koe-errors{background:var(--danger-soft);color:var(--danger);border-radius:12px;padding:10px 14px;margin-bottom:14px}
.koe-errors p{margin:4px 0}
.koe-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.koe-thanks{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:24px 18px;text-align:center}
.koe-thanks a{color:var(--indigo)}
.koe-reward{display:inline-block;border:1px dashed var(--ochre);color:var(--ochre);font-weight:700;border-radius:10px;padding:8px 14px}
.koe-msg{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:18px}
.koe-foot{text-align:center;color:var(--muted);font-size:13px;padding:0 16px 24px}
/* v0.2: engagement, food fields, levels */
.koe-engage{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin-bottom:16px}
.koe-count{margin:0 0 6px;font-weight:600}
.koe-meter{height:8px;background:var(--indigo-soft);border-radius:999px;overflow:hidden;margin:6px 0}
.koe-meter span{display:block;height:100%;background:var(--indigo);border-radius:999px}
.koe-small{font-size:13px;color:var(--muted);margin:4px 0}
.koe-upd-title{font-size:16px;margin:12px 0 6px}
.koe-updates{margin:0;padding-left:18px;font-size:15px}
.koe-updates li{margin:4px 0}
.koe-updates time{color:var(--muted);font-size:13px;margin-right:6px}
.koe-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.koe-pair p{min-width:0}
@media (max-width:420px){.koe-pair{grid-template-columns:1fr}}
.koe-optin{display:flex!important;gap:8px;align-items:flex-start;font-weight:400!important;font-size:14px;color:var(--muted);margin-top:8px}
.koe-optin input{margin-top:3px;width:18px;height:18px;flex:none}
.koe-level{background:var(--indigo-soft);border-radius:12px;padding:12px 14px;margin:14px 0;text-align:left}
.koe-level p{margin:4px 0}

.koe-urgent{margin:14px 0;padding:12px 14px;border-left:4px solid var(--danger);background:var(--danger-soft);color:var(--ink);border-radius:10px;font-size:15px;line-height:1.5}
.koe-urgent a{color:inherit;font-weight:700}
