/* sonr.co report page: the sticky safety banner, the calm header, the five-step report form and the quiet rules column.
   Page-only rules. Shared tokens and components live in site.css. */

/* Focus scrolling clears the fixed nav plus the sticky banner (report.js measures --alert-h) */
html{scroll-padding-top:calc(var(--nav-h) + var(--alert-h,48px) + 24px)}

/* ---------- Sticky banner, directly under the fixed nav ---------- */
.report-alert{position:sticky;top:var(--nav-h);z-index:40;margin-top:var(--nav-h);gap:4px 22px;padding-block:11px;background:var(--panel-2);border-top:1px solid var(--line)}
.report-alert a{position:relative}
.report-alert a::after{content:"";position:absolute;inset:-11px -6px}
.report-alert .digits{color:var(--text-secondary);font-weight:600;margin-left:4px}

/* ---------- One section: header + form on the left, the rules column on the right ---------- */
.report-sec{position:relative;padding-block:clamp(40px,6vw,84px) clamp(72px,9vw,128px)}
.report-grid{display:grid;grid-template-columns:minmax(0,760px) minmax(260px,320px);justify-content:space-between;column-gap:clamp(40px,5vw,72px);align-items:start}
.report-main{min-width:0}

.report-head{margin-bottom:clamp(28px,4vw,44px)}
.report-head h1{font-family:var(--serif);font-weight:600;font-optical-sizing:auto;font-size:clamp(42px,5.4vw,70px);line-height:1.02;letter-spacing:-.02em;text-wrap:balance;max-width:13ch}
.report-head .lede{margin-top:18px;max-width:40ch}

/* ---------- The form shell ---------- */
.report-shell{padding-top:0}
/* forms.js scrolls a new step to 110px from the top; this padding keeps the progress row clear of nav + banner */
.report-form,.report-done{padding-top:max(clamp(24px,4vw,48px),calc(var(--nav-h) + var(--alert-h,48px) + 18px - 110px))}

.report-form .fstep{border:0;margin:0;padding:0;min-width:0}
.report-form .fstep-title{float:left;width:100%;padding:0;margin:4px 0 28px;max-width:20ch}
.report-form .fstep-title:focus{outline:none}
.report-form .fstep>.fields{clear:both}
.report-form .fields{row-gap:30px}
.report-form .field legend{padding:0;margin-bottom:12px}
.report-form .field legend .opt{font-weight:400}
.report-form .chips{gap:10px}
.report-form .chip span{min-height:48px;padding:12px 18px;font-size:16px}
.report-form .chip-danger input:checked+span{border-color:var(--danger);background:rgba(255,138,128,.12)}
.report-form .help{max-width:60ch}

/* Safety callouts: shown when someone answers Yes, never blocking the form */
.report-form .callout{grid-column:1/-1;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 20px;padding:20px 22px;border-radius:var(--radius-lg);border:1px solid var(--line-strong);background:var(--panel-2);animation:callout-in .5s var(--ease-out) both}
.report-form .callout-911{border-color:rgba(255,138,128,.5);background:rgba(255,138,128,.07)}
.callout-title{font-family:var(--serif);font-weight:600;font-optical-sizing:auto;font-size:clamp(22px,2.4vw,26px);line-height:1.15;letter-spacing:-.01em}
.callout-copy{flex:1 1 260px;min-width:0}
.callout-line{margin-top:6px;font-size:15px;color:var(--text-secondary);max-width:46ch}
.callout-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.callout .digits{font-weight:600;color:var(--text-secondary);text-decoration:none;padding:12px 0}
.callout .digits:hover{color:var(--text-primary)}
.btn-911{background:var(--danger);color:#2a0905;min-height:56px;padding:14px 28px;font-size:18px}
.btn-911:hover{background:#ffa79f}
.btn-911 svg{width:20px;height:20px}
@keyframes callout-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

/* Location */
.geo-row{display:flex;flex-wrap:wrap;gap:10px}
.geo-row .input{flex:1 1 280px;min-width:0}
.geo-btn{min-height:50px;flex:none}
.geo-status{font-size:14px;line-height:1.45;color:var(--text-primary);min-height:0}
.geo-status:empty{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}

/* Device type as large chips with drawn glyphs */
.report-form .devices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.report-form .devices .chip{display:flex}
.report-form .devices .chip span{flex:1;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:16px;min-height:124px;padding:16px 16px 15px;border-radius:var(--radius-md);font-weight:600;line-height:1.3}
.report-form .devices .chip svg{width:40px;height:40px;color:var(--text-secondary);transition:color .25s var(--ease-out),transform .45s var(--ease-out)}
.report-form .devices .chip input:checked+span svg{color:var(--accent);transform:translateY(-2px)}
.report-form .devices .chip-unsure{grid-column:span 2}
.report-form .devices .chip-unsure span{flex-direction:row;align-items:center;justify-content:flex-start;min-height:0}

/* Tail number: mono input beside a small sample sticker */
.tail-row{display:flex;flex-wrap:wrap;align-items:center;gap:14px 28px}
.tail-input{flex:0 1 260px;font-family:var(--mono);font-weight:500;font-size:19px;letter-spacing:.08em;text-transform:uppercase}
.tail-input::placeholder{letter-spacing:.08em}
.sticker{display:flex;align-items:center;gap:14px}
.sticker .plate{display:inline-flex;align-items:center;gap:12px;padding:8px 14px 8px 12px;border-radius:10px;background:#f5f7fa;color:#0b1526;transform:rotate(-2deg);box-shadow:0 10px 30px rgba(1,8,24,.45)}
.sticker .plate img{width:50px;height:auto}
.sticker .code{font-family:var(--mono);font-weight:500;font-size:16px;letter-spacing:.06em;border-left:2px solid #d7e3f6;padding-left:12px}
.sticker .cap{font-family:var(--mono);font-size:12px;color:var(--text-secondary)}
.company-field .select{max-width:420px}

/* Hazard warning line */
.report-form .help.warn{display:flex;gap:10px;align-items:flex-start;color:var(--text-primary)}
.report-form .help.warn svg{flex:none;width:18px;height:18px;margin-top:1px;color:var(--danger)}

/* Photos */
.file{position:relative}
.file input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:1}
.file-face{display:flex;align-items:center;gap:14px;min-height:64px;padding:14px 18px;border-radius:var(--radius-md);border:1px dashed var(--line-strong);background:var(--canvas-deep);font-weight:600;transition:border-color .2s var(--ease-out),background-color .2s var(--ease-out)}
.file-face svg{width:22px;height:22px;flex:none;color:var(--text-secondary)}
.file input:hover+.file-face{border-color:var(--text-secondary)}
.file input:focus-visible+.file-face{outline:2px solid var(--accent);outline-offset:3px}
.file-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.file-list:empty{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.file-list li{max-width:100%;padding:6px 12px;border-radius:999px;border:1px solid var(--line);font-family:var(--mono);font-size:12px;color:var(--text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.file-list li.note{border-color:transparent;padding-inline:0;font-family:var(--sans);font-size:14px}

/* Consent checkbox: the label reads as one line, the fine print under it */
.report-form .check>span{display:block}
.report-form .check .help{display:block;margin-top:4px}

/* Navigation row */
@media (max-width:640px){.report-form .form-nav .spacer{display:none}}

/* ---------- Success ---------- */
.report-done .done-mark{width:84px}
.report-done h2{font-family:var(--serif);font-weight:600;font-optical-sizing:auto;font-size:clamp(34px,4.2vw,50px);line-height:1.05;letter-spacing:-.015em;max-width:14ch}
.report-done .done-case{margin-top:20px;font-size:19px;line-height:2}
.report-done .case{margin:0 2px;padding:4px 14px;color:var(--text-primary);vertical-align:baseline;line-height:1.6}
.report-done .done-body{margin-top:18px;color:var(--text-secondary);max-width:52ch}
.report-done .done-body a{color:var(--text-primary);font-weight:600;text-underline-offset:3px}
.report-done .done-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}

.report-privacy{margin-top:22px;max-width:62ch}
.report-privacy a{color:var(--text-primary);text-underline-offset:3px}

/* ---------- The rules column ---------- */
.report-side{position:sticky;top:calc(var(--nav-h) + var(--alert-h,48px) + 28px)}
.rules-mini{position:relative;isolation:isolate;overflow:hidden;padding:30px 26px 28px;border-radius:var(--radius-xl);background:var(--panel);border:1px solid var(--line)}
.rules-mini h2{font-family:var(--serif);font-weight:600;font-optical-sizing:auto;font-size:24px;letter-spacing:-.01em;margin-bottom:22px}
.rules-mini ol{list-style:none;margin:0;padding:0;display:grid;gap:20px;counter-reset:r}
.rules-mini li{display:grid;grid-template-columns:30px minmax(0,1fr);gap:12px;align-items:baseline;counter-increment:r}
.rules-mini li::before{content:counter(r);display:grid;place-items:center;width:28px;height:28px;border-radius:999px;border:1px solid var(--accent-muted);font-family:var(--mono);font-size:12px;color:var(--accent);transform:translateY(-5px)}
.rules-mini b{display:block;font-size:16px;line-height:1.4;margin-bottom:4px}
.rules-mini b a{text-decoration:none}
.rules-mini li:last-child b a{color:var(--accent)}
.rules-mini li span{display:block;font-size:15px;line-height:1.5;color:var(--text-secondary)}
/* The living element: a quarter radar in the corner, one slow sweep, paused off-screen */
.rules-mini .scope{position:absolute;right:-104px;top:-104px;width:260px;height:260px;z-index:-1;pointer-events:none}
.scope circle{fill:none;stroke:var(--accent-muted);stroke-width:1;opacity:.5}
.scope circle.far{opacity:.25}
.scope .blip{fill:var(--accent);stroke:none;opacity:.9}
.scope .sweep{transform-origin:130px 130px;animation:sweep 18s linear infinite;animation-delay:-7s}
.scope .sweep line{stroke:var(--accent);stroke-opacity:.2;stroke-width:1.5}
.scope:not(.live) .sweep{animation-play-state:paused}

/* ---------- Responsive ---------- */
@media (max-width:1080px){
  .report-grid{grid-template-columns:minmax(0,760px);justify-content:center}
  .report-side{position:relative;top:0}
}
@media (max-width:640px){
  .report-alert{font-size:14px;gap:10px 16px;padding-block:10px}
  .report-alert a::after{inset:-5px -6px}
  .report-alert .digits{display:none}
  .report-form .devices{grid-template-columns:repeat(2,minmax(0,1fr))}
  .report-form .devices .chip span{min-height:112px}
  .report-form .devices .chip-unsure{grid-column:1/-1}
  .report-form .callout{padding:18px}
  .callout-actions{width:100%}
  .callout-actions .btn{flex:1 1 auto}
  .sticker .cap{display:none}
  .company-field .select{max-width:none}
}
@media (max-width:380px){.sticker{display:none}}
