/* ============================================================
   WarriorSky Studio — Alejandro AS Mobile Detailing wrap review
   Sky palette: deep navy → twilight → dawn pink
   ============================================================ */

:root {
  --sky-deep:    #0a1230;
  --sky-mid:     #15244a;
  --sky-twilight:#1f3666;
  --sky-dawn:    #f4a48e;
  --sky-glow:    #ffd4b8;
  --cream:       #fdf6ef;
  --cream-soft:  rgba(253, 246, 239, 0.78);
  --line:        rgba(253, 246, 239, 0.14);
  --line-strong: rgba(253, 246, 239, 0.28);
  --orange:      #e8914a; /* Warrior Sol reserve accent, used sparingly */
  --good:        #6fd6a1;
  --warn:        #f7c46c;
  --err:         #f87a7a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Comfortaa", system-ui, sans-serif;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 80% -10%, rgba(244, 164, 142, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 110%, rgba(31, 54, 102, 0.55) 0%, transparent 60%),
    linear-gradient(180deg, var(--sky-deep) 0%, var(--sky-mid) 60%, var(--sky-twilight) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============= GATE ============= */
.gate {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  z-index: 100;
  padding: 24px;
}

.gate-inner {
  width: 100%; max-width: 420px;
  text-align: center;
  padding: 48px 32px 40px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(10, 18, 48, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.gate-mark {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin-bottom: 18px;
}
.gate-mark .sky    { font-size: 32px; line-height: 1; }
.gate-mark .brand  { font-weight: 700; letter-spacing: 0.22em; font-size: 18px; }
.gate-mark .studio { font-weight: 400; letter-spacing: 0.36em; font-size: 12px; color: var(--cream-soft); }

.gate-tag {
  font-size: 13px; color: var(--cream-soft);
  margin: 0 0 28px; letter-spacing: 0.04em;
}

#gate-form {
  display: flex; flex-direction: column; gap: 12px;
}

#gate-pass {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  background: rgba(253, 246, 239, 0.06);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--cream);
  outline: none;
  transition: border-color 0.15s ease;
}
#gate-pass:focus { border-color: var(--sky-dawn); }

#gate-form button {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0; border-radius: 10px;
  background: linear-gradient(135deg, var(--sky-dawn) 0%, var(--sky-glow) 100%);
  color: var(--sky-deep);
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.15s ease;
}
#gate-form button:hover { filter: brightness(1.08); }
#gate-form button:active { transform: translateY(1px); }

.gate-err {
  margin: 16px 0 0; min-height: 18px;
  font-size: 13px; color: var(--err);
}

/* ============= HEADER ============= */
.hd {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 14px 24px;
  background: rgba(10, 18, 48, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hd-mark { display: flex; align-items: center; gap: 10px; }
.hd-mark .sky   { font-size: 22px; }
.hd-mark .brand { font-weight: 700; letter-spacing: 0.22em; font-size: 14px; }

.hd-meta {
  display: flex; flex-direction: column; gap: 2px;
  font-size: 12px; color: var(--cream-soft);
  letter-spacing: 0.04em; text-align: right;
}
.hd-project { font-weight: 600; color: var(--cream); }

/* ============= PORTAL SHELL ============= */
.portal { padding: 0 0 64px; }

/* ============= SUMMARY ============= */
.summary { max-width: 920px; margin: 36px auto 0; padding: 0 24px; }
.summary-card {
  padding: 32px 32px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(244, 164, 142, 0.10) 0%, transparent 60%),
    rgba(10, 18, 48, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.summary-line {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
}
.summary-tag {
  color: var(--sky-dawn); font-weight: 700;
  padding: 4px 10px; border: 1px solid var(--sky-dawn); border-radius: 999px;
}
.summary-id { color: var(--cream-soft); font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.summary-title {
  margin: 0 0 6px;
  font-size: clamp(26px, 3.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.summary-client {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 18px 0 28px;
}
.client-prefix {
  font-size: 12px;
  color: var(--cream-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}
.client-name {
  font-family: 'Bowlby One', 'Fredoka', system-ui, sans-serif;
  font-size: clamp(38px, 6vw, 56px);
  line-height: 1;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg,
    #ffd4b8 0%,
    #f4a48e 35%,
    #ff9a78 70%,
    #ffd4b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow:
    0 0 32px rgba(244, 164, 142, 0.35),
    0 2px 0 rgba(0, 0, 0, 0.18);
  filter: drop-shadow(0 4px 14px rgba(244, 164, 142, 0.28));
  padding: 0 2px;
}
.client-title {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.02em;
  opacity: 0.92;
}
.client-title .amp {
  font-family: 'Bowlby One', 'Fredoka', system-ui, sans-serif;
  color: var(--sky-dawn);
  font-size: 1.15em;
  vertical-align: -0.04em;
  padding: 0 1px;
}
.summary-body {
  font-size: 14.5px; line-height: 1.65;
  color: var(--cream-soft);
  margin: 0 0 18px;
}
.summary-tagline {
  font-size: 12px; font-style: italic;
  opacity: 0.62; letter-spacing: 0.06em;
  margin: 0; text-align: right;
  color: var(--cream);
}

/* ============= SCORECARD / STEPPER ============= */
.scorecard {
  max-width: 1100px;
  margin: 28px auto 8px;
  padding: 0 24px;
}
.stepper {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.step {
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(253, 246, 239, 0.025);
  display: flex; flex-direction: column; gap: 4px;
  text-align: left;
  transition: border-color 0.15s ease, background 0.2s ease, transform 0.2s ease;
}
.step.done {
  background: rgba(111, 214, 161, 0.10);
  border-color: rgba(111, 214, 161, 0.36);
}
.step.current {
  background: linear-gradient(135deg, rgba(244, 164, 142, 0.22) 0%, rgba(255, 212, 184, 0.10) 100%);
  border-color: var(--sky-dawn);
  box-shadow: 0 0 0 1px var(--sky-dawn), 0 6px 26px rgba(244, 164, 142, 0.18);
  transform: translateY(-1px);
}
.step-num {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--cream-soft);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.step.current .step-num { color: var(--sky-dawn); }
.step.done .step-num { color: var(--good); }
.step-name {
  font-size: 13.5px; font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.01em;
}
.step-sub {
  font-size: 11px;
  color: var(--cream-soft); opacity: 0.7;
}
.step-pay {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sky-dawn); margin-top: 6px;
  font-weight: 600;
}
.step.done .step-pay { color: var(--good); }

@media (max-width: 880px) {
  .stepper { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .stepper { grid-template-columns: 1fr; }
}

/* ============= INSTRUCTIONS ============= */
.instructions {
  max-width: 760px; margin: 24px auto 0; padding: 0 24px;
  text-align: center;
}
.instructions p {
  font-size: 13px; line-height: 1.55;
  color: var(--cream-soft);
  margin: 0;
}

/* ============= GRID ============= */
.grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 24px 0;
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px)  { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }

.tile {
  display: flex; flex-direction: column;
  background: rgba(253, 246, 239, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.tile:hover { border-color: var(--line-strong); }
.tile.saved { border-color: rgba(111, 214, 161, 0.45); }

.tile-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    repeating-linear-gradient(45deg,
      rgba(253, 246, 239, 0.025) 0 12px,
      rgba(253, 246, 239, 0.05) 12px 24px);
  display: grid; place-items: center;
  overflow: hidden;
}
.tile-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.tile-img .placeholder {
  text-align: center;
  font-size: 12px; color: var(--cream-soft);
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 24px;
  line-height: 1.7;
}
.tile-img .placeholder strong { color: var(--cream); font-size: 14px; }

.tile-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.tile-label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.tile-label .id {
  font-weight: 700; font-size: 13px; letter-spacing: 0.18em;
  color: var(--sky-dawn);
}
.tile-label .name {
  font-size: 13px; color: var(--cream-soft);
  text-align: right;
}

.tile-rating {
  display: flex; align-items: center; gap: 10px;
}
.tile-rating label { font-size: 12px; color: var(--cream-soft); letter-spacing: 0.06em; }
.tile-rating input[type=range] {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 4px; background: var(--line-strong); border-radius: 999px; outline: none;
}
.tile-rating input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--sky-dawn);
  border: 2px solid var(--sky-glow);
  cursor: pointer;
}
.tile-rating input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--sky-dawn); border: 2px solid var(--sky-glow);
  cursor: pointer;
}
.tile-rating .value {
  font-weight: 700; font-size: 16px;
  min-width: 28px; text-align: right;
  color: var(--cream);
}

.tile-comment {
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  font-size: 13px; line-height: 1.45;
  font-family: inherit;
  color: var(--cream);
  background: rgba(253, 246, 239, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
}
.tile-comment:focus { border-color: var(--sky-dawn); outline: none; }

.tile-save-status {
  font-size: 11px; min-height: 14px;
  color: var(--good);
  letter-spacing: 0.06em;
}

/* ============= SUBMIT ============= */
.submit-row {
  max-width: 760px; margin: 36px auto 0; padding: 0 24px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.submit-btn {
  padding: 16px 36px;
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--sky-dawn) 0%, var(--sky-glow) 100%);
  color: var(--sky-deep);
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.15s ease;
}
.submit-btn:hover { filter: brightness(1.08); }
.submit-btn:active { transform: translateY(1px); }
.submit-btn:disabled { opacity: 0.5; cursor: wait; }
.submit-status {
  font-size: 13px; min-height: 18px; margin: 0;
  color: var(--cream-soft);
}
.submit-status.ok { color: var(--good); }
.submit-status.err { color: var(--err); }

/* ============= FOOTER ============= */
.ft {
  margin: 48px auto 0; padding: 24px;
  max-width: 760px; text-align: center;
}
.ft p {
  margin: 0 0 6px; font-size: 13px;
  color: var(--cream-soft); letter-spacing: 0.04em;
}
.ft-fine { font-size: 11px; opacity: 0.55; max-width: 560px; margin: 8px auto 0; }
