/* ============ BACONBUD ============
   Tema: ljust, varmt, lekfullt post/brev.
   En accent: baconröd. Radie: knappar = pill, kort/ytor = 18px, inputs = pill. */

:root {
  --bg: #fbf1e3;
  --bg-2: #fffaf2;
  --card: #ffffff;
  --ink: #2c1a10;
  --muted: #7a6151;
  --accent: #c23f26;
  --accent-soft: #f6d9cf;
  --amber: #d98a3c;
  --line: rgba(44, 26, 16, 0.12);
  --radius-card: 18px;
  --font-display: "Bricolage Grotesque", "General Sans", sans-serif;
  --font-body: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  width: min(1160px, 92vw);
  margin-inline: auto;
}

/* ---------- Airmail-remsa ---------- */

.airmail-stripe {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: 6px;
  z-index: 45;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 12px,
    #fbf1e3 12px 20px,
    var(--amber) 20px 32px,
    #fbf1e3 32px 40px
  );
}

/* ---------- Typografi ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
}

.hl {
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}

.hl::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 0.06em;
  height: 0.16em;
  background: var(--amber);
  opacity: 0.4;
  border-radius: 4px;
  z-index: -1;
}

h2 { font-size: clamp(1.9rem, 4vw, 3rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

/* ---------- Knappar ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.9rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
              border-color 0.2s var(--ease), opacity 0.2s var(--ease);
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: #a8341e; transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }

.btn-disabled {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
  cursor: not-allowed;
}

.btn-disabled:hover { background: transparent; color: var(--muted); transform: none; }

/* ---------- Logotyp ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo-mark {
  width: 26px;
  height: 18px;
  border-radius: 4px;
  background: var(--accent);
  position: relative;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px var(--bg);
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1.5px solid var(--bg);
  border-radius: 2px;
  clip-path: polygon(0 0, 50% 55%, 100% 0);
  border-bottom: none;
  border-left: none;
  border-right: none;
}

/* ---------- Header ---------- */

#top-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 6px;
  z-index: 40;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(251, 241, 227, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.main-nav { display: flex; gap: 2rem; }

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.main-nav a:hover { color: var(--ink); }

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.cart-button:hover { background: var(--ink); color: var(--bg); }

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.hero-sub {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 40ch;
  margin-top: 1.4rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}

.hero-price {
  margin-top: 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.hero-price span {
  color: var(--muted);
  font-weight: 400;
  margin-left: 0.4rem;
}

.hero-visual { display: flex; justify-content: center; }

/* ---------- Frimärke ---------- */

.stamp {
  position: relative;
  background: var(--card);
  padding: 20px 20px 26px;
  border-radius: 8px;
  width: min(360px, 82vw);
  box-shadow: 0 26px 50px -20px rgba(44, 26, 16, 0.4);
  --scallop: var(--bg);
}

.stamp::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 9px 9px, transparent 7px, var(--card) 7.5px) 0 0 / 18px 18px;
  -webkit-mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  z-index: -1;
  box-shadow: 0 26px 50px -22px rgba(44, 26, 16, 0.4);
}

.stamp .block-img {
  width: 100%;
  aspect-ratio: 480 / 620;
  object-fit: cover;
  object-position: 50% 42%;
  border-radius: 3px;
  display: block;
}

.stamp-value {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
}

.stamp-value small { font-size: 0.7rem; font-weight: 700; }

.postmark {
  position: absolute;
  right: -10px;
  bottom: 6px;
  width: 150px;
  height: auto;
  color: var(--accent);
  opacity: 0.85;
  transform: rotate(-8deg);
  pointer-events: none;
}

.stamp-sm { width: min(300px, 74vw); }
.stamp-sm .postmark { width: 120px; }

@media (prefers-reduced-motion: no-preference) {
  .float-anim { animation: floaty 6s ease-in-out infinite; }
  @keyframes floaty {
    0%, 100% { transform: translateY(0) rotate(-1.5deg); }
    50% { transform: translateY(-12px) rotate(1.5deg); }
  }
}

/* ---------- Scroll reveal ---------- */

.reveal { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Sektioner ---------- */

section { padding-block: clamp(4.5rem, 8vw, 7.5rem); }

.hero { padding-block: 0; }

/* ---------- Så funkar det ---------- */

.how { background: var(--bg-2); border-top: 1px solid var(--line); }

.how h2 { max-width: 16ch; }

.how-steps {
  list-style: none;
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
}

.how-step {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 2rem 1.8rem;
  border: 1px solid var(--line);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 1.2rem;
}

.how-step h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }

.how-step p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Brevet ---------- */

.product-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.product-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.product-figure figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  max-width: 30ch;
}

.product-status {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.edition-note { font-size: 0.88rem; color: var(--muted); }

.product-desc {
  color: var(--muted);
  max-width: 50ch;
  margin-top: 0.4rem;
}

.price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.1rem;
  margin-top: 1.5rem;
}

.price-note {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 0.6rem;
}

.buy-row { margin-top: 1.5rem; }

.soldout-hint {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 44ch;
}

.soldout-hint a { color: var(--accent); font-weight: 600; }

.spec-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 2.4rem;
}

.spec-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
}

.spec-card dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.spec-card dd { font-size: 0.95rem; font-weight: 500; }

/* ---------- Perfekt när ---------- */

.cases { background: var(--bg-2); border-top: 1px solid var(--line); }

.cases-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.case-card {
  border-radius: var(--radius-card);
  padding: 2rem 1.9rem;
  border: 1px solid var(--line);
}

.case-card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }

.case-card p { color: var(--muted); font-size: 0.97rem; max-width: 40ch; }

.case-a { background: var(--card); }
.case-b { background: var(--accent); }
.case-b h3, .case-b p { color: #fff; }
.case-b p { opacity: 0.9; }
.case-c { background: var(--card); }
.case-d { background: #f7e3c4; }

/* ---------- FAQ ---------- */

.faq { background: var(--bg-2); border-top: 1px solid var(--line); }

.faq-inner { max-width: 720px; }

.faq-list { margin-top: 2.4rem; }

.faq-list details { border-top: 1px solid var(--line); }

.faq-list details:last-child { border-bottom: 1px solid var(--line); }

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding-block: 1.25rem;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}

.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list details p {
  padding-bottom: 1.3rem;
  color: var(--muted);
  max-width: 56ch;
}

/* ---------- Väntelista ---------- */

.waitlist {
  border-top: 1px solid var(--line);
  text-align: center;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(194, 63, 38, 0.08), transparent 65%),
    var(--bg);
}

.waitlist-inner { max-width: 620px; }

.waitlist-sub { color: var(--muted); margin-top: 0.9rem; font-size: 1.05rem; }

.waitlist-form { margin-top: 2.6rem; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.55rem;
  text-align: left;
}

.input-row { display: flex; gap: 0.7rem; }

.input-row input {
  flex: 1;
  min-width: 0;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.85rem 1.4rem;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.input-row input::placeholder { color: #a08a7b; }

.input-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(194, 63, 38, 0.15);
}

.field-error {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  text-align: left;
}

.intent {
  border: none;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.intent legend {
  float: left;
  font-size: 0.88rem;
  color: var(--muted);
  margin-right: 0.5rem;
  padding-top: 0.45rem;
}

.pill-radio { position: relative; }

.pill-radio input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.pill-radio span {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 2px solid var(--line);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.pill-radio input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.pill-radio input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(194, 63, 38, 0.2);
}

.privacy-note { margin-top: 1.5rem; font-size: 0.82rem; color: var(--muted); }

.waitlist-success {
  margin-top: 2.6rem;
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: var(--radius-card);
  padding: 2.3rem 2rem;
}

.success-title { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; }

.success-body { color: var(--muted); margin-top: 0.5rem; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3.5rem 2rem;
  background: var(--bg-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-tagline { color: var(--muted); font-size: 0.92rem; margin-top: 0.6rem; }

.footer-nav { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }

.footer-nav a:hover { color: var(--ink); }

.footer-contact { color: var(--muted); font-size: 0.92rem; }

.footer-legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- Varukorg ---------- */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 26, 16, 0.4);
  z-index: 50;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.cart-overlay.open { opacity: 1; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 92vw);
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  z-index: 60;
  transform: translateX(105%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open { transform: translateX(0); }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.8rem;
  border-bottom: 1px solid var(--line);
}

.cart-head h2 { font-size: 1.4rem; }

.cart-close {
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.cart-close:hover { background: var(--ink); color: var(--bg); }

.cart-body {
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-start;
}

.cart-empty-title { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }

.cart-empty-body { color: var(--muted); font-size: 0.95rem; }

.cart-body .btn { margin-top: 1rem; }

/* ---------- Mobil ---------- */

@media (max-width: 860px) {
  .main-nav { display: none; }

  .hero {
    min-height: auto;
    padding-top: calc(76px + 1.5rem);
    padding-bottom: 4rem;
  }

  .hero-grid,
  .product-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid { gap: 2.5rem; }

  .hero-visual { order: -1; }

  .stamp { width: min(260px, 72vw); }

  .how-steps { grid-template-columns: 1fr; }

  .cases-grid { grid-template-columns: 1fr; }

  .spec-cards { grid-template-columns: 1fr 1fr; }

  .input-row { flex-direction: column; }

  .input-row .btn { width: 100%; }

  .intent legend { float: none; width: 100%; text-align: center; padding-top: 0; margin-bottom: 0.4rem; }
}

@media (max-width: 420px) {
  .spec-cards { grid-template-columns: 1fr; }
}
