/* Oktoberkampanj för Piccola Viksjö Pizzeria.
   Formspråket kommer från TV-menyn (Menu 13b, "verde"): grön marmor med mässing,
   kursiv Playfair Display i rubriker, spärrad Jost i versaler och lunchskärmens
   ljusa sandvalv. Sidan är byggd för mobil och läggs som en kolumn mitt på
   skärmen på desktop. */

:root {
  --green-1: #173427;
  --green-2: #0e2219;
  --green-3: #0a1912;
  --ivory: #f4efe3;
  --ivory-soft: #d9d6c9;
  --brass: #d8b876;
  --brass-line: rgba(216, 184, 118, 0.45);
  --hairline: rgba(216, 184, 118, 0.26);

  /* Sandvalvet (lunchskärmens ljusa färger) */
  --sand-ink: #17271f;
  --sand-soft: #3f4a43;
  --sand-gold: #6e4400;
  --sand-line: rgba(110, 68, 0, 0.5);
  --sand-hair: rgba(60, 40, 10, 0.22);

  --it-green: #1a9e4b;
  --it-red: #e10715;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-color: var(--green-2);
  /* Grön marmor: mjuk molnighet och några svaga ådror, som på TV-menyn */
  background-image:
    linear-gradient(112deg, rgba(255, 255, 255, 0) 31%, rgba(255, 255, 255, 0.045) 31.3%, rgba(255, 255, 255, 0) 32.4%),
    linear-gradient(101deg, rgba(255, 255, 255, 0) 57%, rgba(255, 255, 255, 0.035) 57.2%, rgba(255, 255, 255, 0) 58.6%),
    linear-gradient(124deg, rgba(255, 255, 255, 0) 76%, rgba(255, 255, 255, 0.03) 76.2%, rgba(255, 255, 255, 0) 77%),
    radial-gradient(ellipse 60% 22% at 22% 68%, rgba(120, 190, 160, 0.06), rgba(120, 190, 160, 0) 100%),
    radial-gradient(ellipse 110% 70% at 50% 35%, var(--green-1) 0%, var(--green-2) 70%, var(--green-3) 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
}

.page {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  padding: 22px 20px 120px;
}

/* ── Logotyp ── */
.brand {
  display: block;
  margin: 0 auto;
  /* Loggan hålls mindre än 30 %-rubriken, så erbjudandet är det man ser först */
  width: min(200px, 60%);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

/* Mässingslinje med romb mellan logotyp och valv, som rubrikerna på TV-menyn */
.divider {
  position: relative;
  height: 9px;
  margin: 22px auto 0;
  width: min(300px, 82%);
}

.divider::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(216, 184, 118, 0), var(--brass) 25%, var(--brass) 75%, rgba(216, 184, 118, 0));
}

.divider i {
  position: absolute;
  top: 0;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  background: var(--brass);
  transform: rotate(45deg);
}

/* ── Sandvalvet ── */
.arch {
  position: relative;
  margin: 30px 0 0;
  padding: 72px 26px 30px;
  color: var(--sand-ink);
  text-align: center;
  /* Stora radier skalas ned av webbläsaren till en halvcirkel över kortets bredd */
  border-radius: 999px 999px 6px 6px;
  background:
    linear-gradient(112deg, rgba(110, 70, 20, 0) 31%, rgba(110, 70, 20, 0.08) 31.3%, rgba(110, 70, 20, 0) 32.4%),
    linear-gradient(101deg, rgba(110, 70, 20, 0) 57%, rgba(110, 70, 20, 0.07) 57.2%, rgba(110, 70, 20, 0) 58.6%),
    radial-gradient(ellipse 60% 22% at 70% 30%, rgba(255, 238, 200, 0.3), rgba(255, 238, 200, 0) 100%),
    radial-gradient(ellipse 110% 70% at 50% 40%, #e3c993 0%, #d3b475 70%, #c5a35f 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* Inre guldlinje som följer valvet */
.arch::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid var(--sand-line);
  border-radius: 999px 999px 3px 3px;
  pointer-events: none;
}

.arch > * {
  position: relative;
}

/* Glitter längs innerramen (byggs i index.html). Samma prickar som på TV-menyns
   ljusa lunchskärm: den yttre delen glider (transform), den inre tonas (opacity). */
.arch > .sparkle {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sp {
  position: absolute;
  top: 0;
  left: 0;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

.sp-dot {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #fff0c2 0, #c2860a 26%, rgba(194, 134, 10, 0.4) 40%, rgba(194, 134, 10, 0) 70%);
  opacity: 0;
  animation-name: sp-life;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  will-change: opacity;
}

@keyframes sp-life {
  0% { opacity: 0; }
  25% { opacity: 1; }
  50% { opacity: 0.75; }
  70% { opacity: 1; }
  100% { opacity: 0; }
}

.kicker {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sand-gold);
  /* Spärrningen läggs även efter sista bokstaven; dra tillbaka den så texten centreras */
  margin-right: -0.32em;
}

.headline {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(50px, 15vw, 66px);
  line-height: 1;
  letter-spacing: -0.01em;
}

/* Rabattsatsen som rubrik: siffror tål att vara större än ett ord */
.headline-num {
  font-size: clamp(76px, 24vw, 100px);
  line-height: 0.95;
  font-variant-numeric: lining-nums;
}

.subline {
  margin: 10px 0 0;
  text-wrap: balance;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.25;
}

/* Linje med text i mitten, som "kl 11–14" på lunchskärmen */
.ruled {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 0;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--sand-soft);
}

.ruled::before,
.ruled::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--sand-line);
}

/* Rabattkoden */
.code {
  display: block;
  width: 100%;
  margin: 26px 0 0;
  padding: 16px 14px 14px;
  font: inherit;
  color: var(--sand-ink);
  text-align: center;
  cursor: pointer;
  background: rgba(255, 248, 230, 0.45);
  border: 1.5px dashed var(--sand-gold);
  border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s ease;
}

.code:hover {
  background: rgba(255, 248, 230, 0.65);
}

.code:focus-visible {
  outline: 2px solid var(--sand-ink);
  outline-offset: 3px;
}

.code-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sand-gold);
}

.code-value {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: clamp(27px, 8.4vw, 34px);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  user-select: all;
  -webkit-user-select: all;
}

.code-hint {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--sand-soft);
}

.code.is-copied .code-hint {
  color: var(--sand-gold);
  font-weight: 500;
}

/* Beställningsknappen */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  margin: 16px 0 0;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ivory);
  background: linear-gradient(180deg, #1d4031, var(--green-1));
  border: 1px solid #0a1912;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(216, 184, 118, 0.35), 0 8px 18px rgba(10, 25, 18, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.cta:hover {
  box-shadow: inset 0 0 0 1px var(--brass), 0 10px 22px rgba(10, 25, 18, 0.45);
}

.cta:active {
  transform: translateY(1px);
}

.cta:focus-visible {
  outline: 2px solid var(--sand-ink);
  outline-offset: 3px;
}

.cta svg {
  flex: none;
  width: 20px;
  height: 20px;
}

.cta-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--sand-soft);
}

.days {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--sand-gold);
}

.days:empty {
  display: none;
}

/* ── Sektioner på den gröna marmorn ── */
.section {
  margin: 54px 0 0;
}

/* Rubrik under mässingslinje och romb, som på TV-menyn */
.section-title {
  position: relative;
  margin: 0 0 18px;
  padding-top: 30px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  text-align: center;
}

.section-title::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 220px;
  height: 1px;
  margin-left: -110px;
  background: linear-gradient(90deg, rgba(216, 184, 118, 0), var(--brass) 30%, var(--brass) 70%, rgba(216, 184, 118, 0));
}

.section-title::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  background: var(--brass);
  transform: rotate(45deg);
}

/* Stegen: stor siffra, mässingslinje, text (som lunchraderna) */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 0 18px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}

.step:last-child {
  border-bottom: 1px solid var(--hairline);
}

.step-num {
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1;
  text-align: right;
  color: var(--brass);
  font-variant-numeric: lining-nums;
}

.step-body {
  padding-left: 18px;
  border-left: 1px solid var(--brass-line);
}

.step-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.25;
}

.step-text {
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--ivory-soft);
}

.step-text strong {
  color: var(--brass);
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* Villkoren: kort med mässingskant, som tillvalen på TV-menyn */
.terms {
  margin: 0;
  padding: 8px 22px;
  list-style: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--brass-line);
}

.terms li {
  position: relative;
  padding: 12px 0 12px 22px;
  font-size: 16px;
}

.terms li + li {
  border-top: 1px solid var(--hairline);
}

.terms li::before {
  content: '';
  position: absolute;
  top: 21px;
  left: 2px;
  width: 7px;
  height: 7px;
  background: var(--brass);
  transform: rotate(45deg);
}

.terms strong {
  font-weight: 600;
  color: var(--ivory);
}

.terms small {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--ivory-soft);
}

.cta-repeat {
  margin-top: 26px;
  background: linear-gradient(180deg, #e3c993, #cfae6c);
  color: var(--sand-ink);
  border-color: #8a6a2c;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

.cta-repeat:hover {
  box-shadow: inset 0 0 0 1px var(--sand-gold), 0 12px 26px rgba(0, 0, 0, 0.4);
}

.cta-repeat:focus-visible {
  outline-color: var(--brass);
}

/* ── Sidfot ── */
.footer {
  margin: 60px 0 0;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ivory-soft);
}

.footer img {
  display: block;
  width: 150px;
  height: auto;
  margin: 0 auto 14px;
  opacity: 0.9;
}

.footer p {
  margin: 4px 0 0;
}

/* ── Fast beställningsknapp längst ned när den stora knappen har scrollats bort ── */
.sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(10, 25, 18, 0), rgba(10, 25, 18, 0.92) 30%);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}

.sticky.is-visible {
  transform: none;
}

.sticky .cta {
  max-width: 420px;
  margin: 0 auto;
  min-height: 54px;
}

.sticky .cta span small {
  margin-left: 8px;
  font-size: 13px;
  letter-spacing: 0.12em;
  opacity: 0.8;
}

/* ── Slutsidan ── */
.thanks {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.45;
}

.signoff {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--sand-gold);
}

.plain-link {
  display: inline-block;
  margin-top: 26px;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--sand-ink);
  text-underline-offset: 4px;
}

/* ── Desktop: samma mobilkolumn, med lite mer luft ── */
@media (min-width: 700px) {
  .page {
    padding-top: 40px;
    padding-bottom: 80px;
  }

  .sticky {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticky,
  .cta,
  .code {
    transition: none;
  }
}
