/* SpätiToGo — public site.
   Direction: late-night kiosk signage. Condensed display type borrowed from the
   price strips inside the machines, warm paper base, one loud red, big photography. */

:root {
  --paper:     #F7F4EE;
  --paper-2:   #EFE9DF;
  --ink:       #12100E;
  --ink-soft:  #5F5850;
  --red:       #FE3030;
  --red-deep:  #D4180F;
  --line:      #DDD5C8;

  /* The bookable location card. Chosen from a side-by-side of fifteen (Almir,
     2026-08-15) after red and black were both rejected as too heavy: a solid
     dark card fights the machine photography and shouts louder than the district
     number, which is the thing a visitor is actually scanning for. Cream is light
     enough to keep near-black text and still separates the card you can buy from
     from the two you cannot. */
  --live:       #FDF0C4;
  --live-line:  #F0DFA8;
  --live-hover: #F9E7AE;

  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body:    'Familjen Grotesk', system-ui, sans-serif;
  --mono:    'DM Mono', ui-monospace, monospace;

  --wrap: 1180px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: ''; position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: .3; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* slot label — the little numbered strips under every product in the machines */
.slot {
  display: inline-block; font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--ink); padding: .22rem .55rem; margin-bottom: 1.1rem;
}
.slot-red { border-color: var(--red); color: var(--red-deep); }
.slot-light { border-color: rgba(255,255,255,.65); color: #fff; }

h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: .95;
  letter-spacing: -.01em; text-transform: uppercase;
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247, 244, 238, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 66px; flex-wrap: wrap; }

.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; margin-inline-end: auto; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; }
.brand-name em { font-style: normal; color: var(--red); }

.nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.nav a {
  text-decoration: none; font-size: .8rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft);
  padding-block: .3rem; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--red); }

/* language switcher */
.lang { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; }
.lang-globe { font-size: .95rem; }
.lang select {
  font-family: var(--body); font-size: .82rem; font-weight: 600; color: var(--ink);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: .3rem 1.6rem .3rem .7rem; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%235F5850'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .6rem center;
}
[dir="rtl"] .lang select { padding: .3rem .7rem .3rem 1.6rem; background-position: left .6rem center; }
.lang select:hover { border-color: var(--ink); }

/* ------------------------------------------------------ open purchases */

/* Injected by site.js after the header, and only once the API has confirmed
   something is actually open — see returning-buyer.md. Nothing is reserved for
   it, so a first-time visitor's page is byte-for-byte what it was before. */
.open-wrap { width: min(100% - 2.5rem, var(--wrap)); margin: 1rem auto 0; }
.open {
  background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid #1a7f37;
  border-radius: var(--radius); padding: .8rem 1rem; box-shadow: 0 6px 18px rgba(18,16,14,.07);
}
.open-title {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: .4rem;
}
.open-row {
  display: flex; align-items: center; gap: .6rem; padding: .5rem 0; text-decoration: none;
  color: var(--ink); border-top: 1px solid var(--line);
}
.open-row:first-of-type { border-top: none; }
.open-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #1a7f37; flex: none; }
.open-where { font-weight: 700; }
.open-when { font-family: var(--mono); font-size: .72rem; color: var(--ink-soft); }
.open-go { margin-inline-start: auto; color: var(--ink-soft); transition: transform .15s ease; }
.open-row:hover .open-go { transform: translateX(.2rem); color: var(--ink); }
[dir="rtl"] .open-go { transform: scaleX(-1); }
[dir="rtl"] .open-row:hover .open-go { transform: scaleX(-1) translateX(.2rem); }

/* -------------------------------------------------------------------- hero */

.hero { padding-block: clamp(2.25rem, 5vw, 4rem) 0; overflow: hidden; }

.hero-grid {
  width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto;
  display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }

h1 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.9rem, 7.5vw, 5.6rem); line-height: .92; letter-spacing: -.015em;
  white-space: pre-line;
}

/* Arabic falls back to a system face with taller ascenders and no condensed cut —
   the display line-height that suits Latin caps clips it. */
[dir="rtl"] h1 { line-height: 1.3; font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
[dir="rtl"] h2,
[dir="rtl"] .page-title,
[dir="rtl"] .cc-soon-date,
[dir="rtl"] .cc-pick,
[dir="rtl"] .footer-claim { line-height: 1.35; }

.lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--ink-soft); margin-top: 1.35rem; max-width: 32rem; }

.hero-shot { border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 46px rgba(18,16,14,.16); }

/* pre-launch block */
.cc-soon {
  margin-top: 2rem; padding: 1.15rem 1.4rem; border-radius: var(--radius);
  background: #fff; border-inline-start: 6px solid var(--red);
}
.cc-soon-date { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.7rem; line-height: 1; color: var(--red-deep); }
.cc-soon-sub { font-size: .96rem; color: var(--ink-soft); margin-top: .4rem; }

/* launched block — built by site.js */
.cc-future { margin-top: 2rem; }
.cc-pick { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; margin-bottom: .8rem; }
.cc-grid { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 460px) { .cc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .cc-grid { grid-template-columns: repeat(3, 1fr); } }

/* The live location is the one solid card, carrying the logo as a watermark.
   Coming-soon locations step back to dashed outlines but stay clickable — every
   card links to its shop. */
.cc-card {
  position: relative; display: flex; flex-direction: column; text-decoration: none;
  color: var(--ink); background: #fff; border: 2px dashed var(--line);
  border-radius: var(--radius); padding: 1.15rem 1.25rem 1rem; min-height: 11.5rem;
  transition: transform .14s ease, box-shadow .16s ease, border-color .16s ease;
}
.cc-card:hover, .cc-card:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(18,16,14,.13); border-color: var(--ink); outline: none; }
.cc-card-live {
  background: var(--live); color: var(--ink); border: 2px solid var(--live-line);
  box-shadow: 0 10px 28px rgba(18,16,14,.12);
  overflow: hidden; /* clips the watermark to the card's rounded corner */
}
.cc-card-live:hover, .cc-card-live:focus-visible { background: var(--live-hover); border-color: var(--live-line); box-shadow: 0 18px 36px rgba(18,16,14,.16); }

/* The logo as a background watermark, bleeding off the bottom corner. Low enough
   to sit under the text without a plate behind it; `aria-hidden` in the markup
   because it repeats the branding a screen reader has already had. */
.cc-card-logo {
  position: absolute; bottom: -1.9rem; right: -1.6rem; width: 7rem; height: 7rem;
  opacity: .24; pointer-events: none;
}
[dir="rtl"] .cc-card-logo { right: auto; left: -1.6rem; transform: scaleX(-1); }

/* The arrow shares the bottom-right corner with the watermark. Pushing the mark
   further out is most of the fix; this keeps the glyph legible where they still
   overlap, without putting a visible plate behind it. */
.cc-card-live .cc-arrow { position: relative; text-shadow: 0 0 6px var(--live), 0 0 3px var(--live); }
.cc-card-live:hover .cc-arrow { text-shadow: 0 0 6px var(--live-hover), 0 0 3px var(--live-hover); }

.cc-card-plz { font-family: var(--display); font-weight: 900; font-size: 2.6rem; line-height: .95; letter-spacing: -.01em; }
.cc-card-district { font-weight: 700; font-size: 1rem; margin-top: .1rem; }
.cc-card-state {
  display: inline-flex; align-items: flex-start; gap: .45rem; font-family: var(--mono);
  font-size: .72rem; line-height: 1.35; margin-top: .55rem; color: var(--ink-soft);
}
.cc-card-live .cc-card-state { color: rgba(18,16,14,.64); }
.cc-card-state::before {
  content: ''; width: .5rem; height: .5rem; border-radius: 50%; flex: none;
  margin-top: .22em; border: 1.5px solid currentColor;
}
.cc-card-live .cc-card-state::before { background: var(--ink); border-color: var(--ink); animation: cc-pulse 1.8s ease-out infinite; }
@keyframes cc-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(18,16,14,.38); }
  100% { box-shadow: 0 0 0 .55rem rgba(18,16,14,0); }
}

.cc-card-go {
  margin-top: auto; padding-top: .8rem; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--display); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .01em;
  color: var(--red-deep); border-top: 1px solid var(--line);
}
.cc-card-live .cc-card-go { color: var(--ink); border-top-color: rgba(18,16,14,.22); }
/* The footer of a location that is not live yet: same slot as the SHOP call to
   action, but visibly inert — muted, smaller, not a link. It reads as a status
   badge rather than something you are invited to press. */
.cc-card-tag {
  color: rgba(18,16,14,.45); font-size: .82rem; font-weight: 700; letter-spacing: .06em;
  cursor: default; justify-content: flex-start;
}
.cc-arrow { display: inline-block; transition: transform .16s ease; }
.cc-card:hover .cc-arrow, .cc-card:focus-visible .cc-arrow { transform: translateX(.35rem); }
[dir="rtl"] .cc-arrow { transform: scaleX(-1); }
[dir="rtl"] .cc-card:hover .cc-arrow, [dir="rtl"] .cc-card:focus-visible .cc-arrow { transform: scaleX(-1) translateX(.35rem); }
@media (prefers-reduced-motion: reduce) {
  .cc-card, .cc-arrow, .cc-card-live .cc-card-state::before { transition: none; animation: none; }
}

/* ------------------------------------------------------------------ steps */

.steps-band { padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.steps { list-style: none; display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 780px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.steps li {
  display: flex; gap: .85rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem;
}
.step-no {
  flex: 0 0 auto; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-family: var(--display); font-weight: 800; font-size: 1.15rem;
  display: grid; place-content: center;
}
.step-tx { font-size: .93rem; color: var(--ink-soft); }
.step-tx strong { display: block; color: var(--ink); font-size: 1.02rem; }

/* -------------------------------------------------------------- age check */

.age { background: var(--paper-2); border-block: 1px solid var(--line); padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.age-inner { display: grid; gap: 1.75rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 820px) { .age-inner { grid-template-columns: auto 1fr; gap: 2.75rem; } }

.age-symbol img { width: clamp(110px, 18vw, 190px); }
.age-copy h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
.age-body { color: var(--ink-soft); margin-top: 1rem; max-width: 38rem; font-size: 1.02rem; }
.age-doc { font-weight: 700; margin-top: 1.15rem; font-size: 1.08rem; }
.age-ida { font-weight: 700; color: var(--red-deep); font-size: 1.08rem; }
.age-self { font-family: var(--mono); font-size: .8rem; color: var(--ink-soft); margin-top: .9rem; }

/* --------------------------------------------------------------- 24/7 band */

.night { position: relative; isolation: isolate; padding-block: clamp(3rem, 8vw, 5.5rem); }
.night-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.night::after { content: ''; position: absolute; inset: 0; background: rgba(8,7,6,.55); z-index: -1; }
.night-copy { color: #fff; }
.night-line { font-family: var(--display); font-weight: 900; font-size: clamp(3.5rem, 12vw, 8rem); line-height: .85; }

/* --------------------------------------------------------------- sections */

.section { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-lead { color: var(--ink-soft); margin-top: .75rem; max-width: 38rem; font-size: 1.02rem; }

/* Brand wall — the old site's Sortiment, hand-maintained. Add a logo by dropping
   a file in assets/img/brands/ and adding one <li>. No database, on purpose. */
.brands { margin-top: 2rem; }

.brand-cat {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1;
  margin-top: 2.25rem; padding-bottom: .5rem; border-bottom: 2px solid var(--ink);
}
.brand-cat:first-child { margin-top: 0; }

.brand-row {
  list-style: none; margin-top: 1.1rem;
  display: grid; gap: .5rem;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
}
.brand-row li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  aspect-ratio: 5 / 2; display: grid; place-items: center; padding: .5rem;
  transition: border-color .15s;
}
.brand-row li:hover { border-color: var(--ink); }
.brand-row img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

@media (min-width: 620px) {
  .brand-row { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

.stores { display: grid; gap: .9rem; margin-top: 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 780px) { .stores { grid-template-columns: repeat(3, 1fr); } }
.store { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.store-plz { font-family: var(--display); font-weight: 900; font-size: 3rem; line-height: .85; color: var(--red); }
.store h3 { font-family: var(--display); font-weight: 700; font-size: 1.4rem; text-transform: uppercase; margin-top: .3rem; }
.store-addr { font-family: var(--mono); font-size: .78rem; color: var(--ink-soft); margin-top: .5rem; }

/* ------------------------------------------------------------- sub-pages */

.page { padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 4rem); line-height: .95; }
.page-back { margin-top: 2.5rem; font-weight: 600; }
.page-back a { color: var(--red-deep); text-decoration: none; }
.page-back a:hover { text-decoration: underline; }

.qa { margin-top: 2.25rem; display: grid; gap: .75rem; max-width: 52rem; }
.qa article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.qa h2 { font-family: var(--body); font-weight: 700; font-size: 1.08rem; text-transform: none; letter-spacing: 0; line-height: 1.35; }
.qa p { color: var(--ink-soft); margin-top: .5rem; font-size: .97rem; }
.qa-symbol img { width: 84px; margin-top: 1rem; }

.legal { max-width: 46rem; }
.legal h2 { font-family: var(--body); font-weight: 700; font-size: 1.1rem; text-transform: none; letter-spacing: 0; margin-top: 2rem; }
.legal p { color: var(--ink-soft); margin-top: .6rem; font-size: .97rem; }
.legal dl { margin-top: .9rem; display: grid; grid-template-columns: 1fr; gap: .1rem .9rem; }
@media (min-width: 620px) { .legal dl { grid-template-columns: 13rem 1fr; } }
.legal dt { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); padding-top: .45rem; }
.legal dd { font-size: .97rem; padding-top: .35rem; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin-top: 2.5rem; }

/* ------------------------------------------------------------------ footer */

.site-footer { background: var(--ink); color: #D9D2C9; padding-block: clamp(2.25rem, 5vw, 3.25rem) 1.3rem; margin-top: auto; }
.footer-inner { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 780px) { .footer-inner { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-claim { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; line-height: .95; margin-top: .7rem; color: var(--paper); white-space: pre-line; }
.footer-col h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .65rem; font-weight: 500; }
.footer-col p { font-size: .9rem; color: #B4ADA4; margin-bottom: .5rem; }
.footer-col a { color: var(--paper); }
.footer-col a:hover { color: var(--red); }
.footer-legal { border-top: 1px solid #2B2723; margin-top: 2.25rem; padding-top: 1rem; }
.footer-legal p { font-size: .76rem; color: #7E766E; }

/* ------------------------------------------------------------ preview bar */

.preview-bar {
  position: fixed; z-index: 1000; left: 50%; bottom: 1rem; transform: translateX(-50%);
  display: flex; align-items: center; gap: .55rem;
  background: var(--ink); color: var(--paper);
  border-radius: 999px; padding: .45rem .5rem .45rem 1rem;
  box-shadow: 0 12px 34px rgba(18,16,14,.34); max-width: calc(100vw - 1.5rem);
}
.pv-tag { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #9A9188; white-space: nowrap; }
.pv-group { display: flex; background: #241F1B; border-radius: 999px; padding: .18rem; }
.pv-btn {
  font-family: var(--body); font-size: .78rem; font-weight: 600; white-space: nowrap;
  background: none; border: 0; color: #C9C1B8; cursor: pointer;
  padding: .36rem .8rem; border-radius: 999px; transition: background .15s, color .15s;
}
.pv-btn:hover { color: #fff; }
.pv-btn-on { background: var(--red); color: #fff; }
.pv-exit { font-size: .78rem; background: none; border: 0; color: #857C73; cursor: pointer; padding: .36rem .55rem; border-radius: 999px; }
.pv-exit:hover { color: #fff; }

@media (max-width: 560px) {
  .preview-bar { padding-inline-start: .6rem; gap: .3rem; }
  .pv-tag { display: none; }
  .pv-btn { padding: .36rem .6rem; font-size: .73rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Settled-with-refund: shown so the order does not vanish silently, styled so it
   is obviously not something to walk to a machine for. */
.open-row-settling { cursor: default; opacity: .75; }
.open-row-settling .open-where { font-weight: 600; }
.open-dot-settling { background: #b9b1a5 !important; }
