/* =========================================================
   EXPOSURE TOOL – PREMIUM CINEMA UI
========================================================= */

/* ---------- RESET ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

/* ---------- BASE ---------- */

body{
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -200px, #1a1a1a 0%, #050505 60%);
  color: #f2f2f2;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 40px 20px 70px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- HEADER ---------- */

h1{
  text-align: center;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 26px;
  opacity: .95;
}

/* ---------- CAMERA SELECT (TOP) ---------- */

.camera-pair{
  display: flex;
  justify-content: center;
  gap: 42px;
  margin-bottom: 26px;
}

.camera-pair > div{
  text-align: center;
}

.camera-pair label{
  display: block;
  font-size: 11px;
  letter-spacing: .6px;
  text-transform: uppercase;
  opacity: .6;
  margin-bottom: 6px;
}

.lens-pair {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 10px 0 26px;
}

.lens-pair > div {
  text-align: center;
}
/* ---------- CALC MODE ---------- */

.calc-select{
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 34px;
  font-size: 13px;
  opacity: .9;
}

.calc-select label{
  cursor: pointer;
}

.calc-select input{
  accent-color: #8fa8ff;
}

/* ---------- GRID ---------- */

.grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  max-width: 920px;
  margin: 0 auto;
}

/* ---------- CARD ---------- */

.card{
  position: relative;
  background:
    linear-gradient(180deg, #151515, #0b0b0b);
  padding: 24px 24px 28px;
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 40px 120px rgba(0,0,0,.75);
}

.card h3{
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .4px;
  opacity: .9;
}

/* ---------- LABELS ---------- */

label{
  display: block;
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: .6px;
  text-transform: uppercase;
  opacity: .55;
}

/* ---------- INPUTS ---------- */

select,
input[type="number"]{
  width: 100%;
  padding: 11px 12px;
  background: #000;
  color: #fff;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  font-size: 14px;
  margin-top: 6px;
  transition:
    border-color .15s ease,
    box-shadow .15s ease,
    background .15s ease;
}

select:hover,
input:hover{
  border-color: #3a3a3a;
}

select:focus,
input:focus{
  outline: none;
  border-color: #8fa8ff;
  box-shadow: 0 0 0 1px rgba(143,168,255,.25);
  background: #020202;
}

/* ---------- CUSTOM INPUT ---------- */

input[type="number"]{
  margin-top: 8px;
}

/* ---------- DISABLED / CALCULATED ---------- */

select.calculated,
select:disabled,
input:disabled{
  opacity: .35;
  filter: grayscale(40%);
  pointer-events: none;
}

/* ---------- RESULT ---------- */

.result{
  max-width: 680px;
  margin: 46px auto 0;
  background:
    linear-gradient(180deg, #141414, #090909);
  padding: 30px 34px;
  border-radius: 20px;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 50px 140px rgba(0,0,0,.85);
  font-size: 15px;
  line-height: 1.45;
}

.result strong{
  font-weight: 600;
  letter-spacing: .3px;
}

.result small{
  opacity: .6;
}

/* ---------- MOBILE ---------- */

@media (max-width: 820px){
  .grid{
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .camera-pair{
    flex-direction: column;
    gap: 18px;
  }
}
