/* Effektmästaren – components added on top of the compiled Tailwind sheet.
   Colours come from the theme variables in app.mv7ausip.css:
   --color-ink #0F1C2E, --color-ink-2 #1C2B40, --color-paper #F4F1EC, --color-glow #FF5A2D */

/* Utilities the compiled sheet was purged of */
.text-gray-300 { color: #d1d5db; }
.items-end { align-items: flex-end; }
.mt-20 { margin-top: 5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; } }
[hidden] { display: none !important; }

/* Hero: the tuned overlay wipes in from the left instead of following the mouse. */
.hero-wipe {
  -webkit-mask-image: linear-gradient(100deg, #000 0 45%, transparent 55%);
  mask-image: linear-gradient(100deg, #000 0 45%, transparent 55%);
  -webkit-mask-size: 250% 100%;
  mask-size: 250% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
  animation: heroWipe 2.4s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}
@keyframes heroWipe {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to   { -webkit-mask-position: 0 0;    mask-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-wipe { animation: none; -webkit-mask-image: none; mask-image: none; }
}

/* Dark intro band on pages without the hero graphic */
.band {
  padding-top: 8.5rem;
  padding-bottom: 4.5rem;
}
@media (min-width: 768px) {
  .band { padding-top: 11rem; padding-bottom: 6rem; }
}
.band-bullets {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: rgba(244, 241, 236, 0.85);
}
.band-bullets li::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--color-glow);
  margin-right: 0.6rem;
  vertical-align: middle;
}

/* Form status line under the submit button */
.form-status { font-size: 0.875rem; color: color-mix(in oklab, var(--color-ink) 70%, transparent); }
.form-status.is-error { color: #B42318; }
.form-status.is-ok { color: #1B6B3A; }

/* "Vad kan din bil få?" result card */
.est-result {
  margin-top: 2rem;
  background: var(--color-ink);
  color: var(--color-paper);
  border-radius: 1rem;
  padding: 1.5rem;
}
.est-note { font-size: 0.875rem; color: rgba(244, 241, 236, 0.75); line-height: 1.6; }
.est-note a, .est-foot a { color: var(--color-paper); text-decoration-color: rgba(244, 241, 236, 0.4); }
.est-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.est-col {
  border-top: 1px solid rgba(244, 241, 236, 0.25);
  padding-top: 0.9rem;
  display: grid;
  gap: 0.2rem;
}
.est-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244, 241, 236, 0.6); }
.est-col strong { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; white-space: nowrap; }
.est-col span:not(.est-label) { font-size: 0.875rem; color: rgba(244, 241, 236, 0.75); white-space: nowrap; }
.est-hot strong { color: #FFB49A; }
.est-col em { font-style: normal; color: var(--color-glow); font-size: 0.8em; margin-left: 0.3em; }
.est-foot { margin-top: 1.25rem; font-size: 0.8rem; color: rgba(244, 241, 236, 0.65); line-height: 1.6; }
@media (max-width: 420px) {
  .est-col strong { font-size: 1.2rem; }
}

/* Price calculator */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.calc-card {
  position: relative;
  text-align: left;
  font: inherit;
  color: var(--color-ink);
  background: #fff;
  border: 2px solid color-mix(in oklab, var(--color-ink) 15%, transparent);
  border-radius: 1rem;
  padding: 1.25rem 1.25rem 1.35rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}
.calc-card:hover { border-color: color-mix(in oklab, var(--color-ink) 45%, transparent); }
.calc-card:focus-visible { outline: 2px solid var(--color-glow); outline-offset: 2px; }
.calc-card[aria-checked="true"] {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-paper);
}
.calc-card[aria-checked="true"]::after {
  content: "✓";
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--color-glow);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.calc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-right: 2rem; }
.calc-name { font-weight: 600; font-size: 1rem; }
.calc-price { font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.calc-desc { font-size: 0.85rem; line-height: 1.55; opacity: 0.78; }
.calc-tag {
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--color-glow) 14%, transparent);
  color: #C2410C;
}
.calc-card[aria-checked="true"] .calc-tag { background: rgba(255, 90, 45, 0.25); color: #FFB49A; }

.calc-bar {
  position: sticky;
  bottom: 0;
  z-index: 40;
  margin-top: 3rem;
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  padding: 0.9rem 1.25rem;
  background: rgba(244, 241, 236, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid color-mix(in oklab, var(--color-ink) 15%, transparent);
}
@media (min-width: 640px) { .calc-bar { margin-left: -2rem; margin-right: -2rem; padding-left: 2rem; padding-right: 2rem; } }
@media (min-width: 768px) { .calc-bar { margin-left: -3rem; margin-right: -3rem; padding-left: 3rem; padding-right: 3rem; } }
.calc-bar-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.calc-bar-text { display: grid; gap: 0.1rem; min-width: 0; }
.calc-bar-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: color-mix(in oklab, var(--color-ink) 55%, transparent); }
.calc-bar strong { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
.calc-bar-items { font-size: 0.75rem; color: color-mix(in oklab, var(--color-ink) 65%, transparent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Reviews */
.rev-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.rev-card {
  margin: 0;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--color-ink-2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.rev-card blockquote { margin: 0; font-size: 0.95rem; line-height: 1.6; }
.rev-card blockquote::before { content: "★★★★★"; display: block; color: var(--color-glow); letter-spacing: 0.15em; font-size: 0.8rem; margin-bottom: 0.75rem; }
.rev-card figcaption { margin-top: auto; font-size: 0.75rem; color: rgba(244, 241, 236, 0.6); }

/* Native select in the estimator should look like the other fields */
select.w-full { appearance: none; -webkit-appearance: none; border-radius: 0; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 1.75rem; }
