/* YORS partner page and shop showroom. Plain CSS, system fonts, no external origin. */

:root {
  --ink: #0F172A;
  --muted: #475569;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --line: #CBD5E1;
  --accent: #B45309;      /* amber, darkened for text contrast (5:1 on white) */
  --accent-mark: #D97706; /* the app's amber, for drawn marks only */
  --on-accent: #FFFFFF;
  --placeholder: #E2E8F0;
  --gutter: 1rem;
  --edge: max(var(--gutter), calc((100% - 68rem) / 2 + var(--gutter)));
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F1F5F9;
    --muted: #A8B3C5;
    --bg: #0B1220;
    --surface: #131C2E;
    --line: #2B3750;
    --accent: #F59E0B;
    --accent-mark: #F59E0B;
    --on-accent: #0B1220;
    --placeholder: #1B2740;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 7.2vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1rem; }
img, video { max-width: 100%; }

a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--surface); color: var(--ink);
  padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 6px;
  z-index: 10; min-height: 44px;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
.wrap--narrow { max-width: 40rem; }
@media (min-width: 640px) { :root { --gutter: 2rem; } .wrap { padding: 0 2rem; } }

/* Header and footer, shared by the partner page, the showroom and the 404.
   All of them put their content at --edge, so the left edge is the same everywhere. */
.site-header { padding: .5rem var(--edge); }
.site-header a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; letter-spacing: .22em; font-size: 1rem;
  color: var(--ink); text-decoration: none;
}
.wordmark {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; letter-spacing: .22em; font-size: 1rem;
  color: var(--ink); text-decoration: none;
}
.site-footer { border-top: 1px solid var(--line); padding: 1.5rem var(--edge) 2rem; margin-top: 2rem; }
.site-footer p { margin: 0 0 .5rem; font-size: .875rem; color: var(--muted); max-width: 44rem; }
.site-footer p:last-child { margin-bottom: 0; }
.site-footer a { color: var(--accent); text-underline-offset: .2em; }
.site-footer__made a { display: inline-block; padding: .6rem 0; }
/* the company line is running text: its mail link stays inline so the line wraps at spaces, not before the link */
.site-footer__company { line-height: 1.8; }
.site-footer__company a { overflow-wrap: anywhere; }
.site-footer__note { line-height: 1.8; }

.textlink { color: var(--accent); text-underline-offset: .2em; }
p > .textlink:only-child { display: inline-flex; align-items: center; min-height: 44px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .5rem 1.5rem;
  border-radius: 8px; border: 1px solid var(--accent);
  font-weight: 600; font-size: 1rem; text-decoration: none;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { filter: brightness(.92); }
.btn--secondary { background: transparent; color: var(--accent); }
.btn--secondary:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
@media (max-width: 420px) { .actions .btn { flex: 1 1 100%; } }

/* Sections */
.section { padding: 3.5rem 0; }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
@media (min-width: 900px) { .section { padding: 5rem 0; } }
.intro { max-width: 40rem; color: var(--muted); }
.signature { color: var(--muted); font-style: italic; }

/* Hero */
.hero { padding: 1.5rem 0 3rem; }
.hero__grid { display: grid; gap: 2rem; align-items: center; }
.lead { font-size: 1.1875rem; color: var(--muted); margin: 1.25rem 0 0; max-width: 36rem; }
@media (min-width: 900px) {
  .hero { padding: 4rem 0 5rem; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; }
}
.hero-media {
  margin: 0; padding: 2rem 1rem;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3; width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden;
}
/* a video replaces the drawing and fills the same box */
.hero-media:has(> video) { padding: 0; }
.hero-media > video { display: block; width: 100%; height: 100%; object-fit: cover; max-width: none; }
@media (max-width: 899px) { .hero-media { aspect-ratio: 16 / 9; padding: 1rem; } }

/* Drawn label (mærkat) */
.tag {
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.label {
  display: flex; flex-direction: column; gap: .35rem;
  width: min(15rem, 100%); padding: 1rem 1.1rem;
  background: #FFFFFF; color: #0F172A;
  border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .12);
}
.label .tag { color: #475569; }
.label__title { font-size: .95rem; font-weight: 600; line-height: 1.25; }
.label__price { font-size: 1.75rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.label__bars {
  display: block; height: 2.25rem; margin-top: .25rem;
  background: repeating-linear-gradient(90deg,
    #0F172A 0 2px, transparent 2px 4px,
    #0F172A 4px 5px, transparent 5px 8px,
    #0F172A 8px 11px, transparent 11px 13px,
    #0F172A 13px 14px, transparent 14px 17px);
}
.label__ref { font-size: .75rem; color: #475569; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.label--small { width: 9rem; padding: .7rem .8rem; gap: .2rem; }
.label--small .label__price { font-size: 1.25rem; }
.label--small .label__bars { height: 1.4rem; }

/* Steps */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.step h3 { margin: 1.25rem 0 .5rem; }
.step p { color: var(--muted); margin: 0; }
.art {
  display: flex; align-items: center; justify-content: center;
  height: 11rem; background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
}
.phone {
  display: block; width: 5.5rem; height: 9rem; padding: .5rem;
  border: 2px solid var(--ink); border-radius: 16px; background: var(--surface);
}
.phone__frame {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; border: 1.5px dashed var(--accent-mark); border-radius: 6px;
}
.phone__object {
  display: block; width: 1.6rem; height: 2.8rem;
  border: 2px solid var(--ink); border-radius: 40% 40% 6px 6px / 20% 20% 6px 6px;
}
.pcard {
  display: flex; flex-direction: column; gap: .5rem;
  width: 10rem; padding: .9rem 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
}
.pcard__price { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.pcard__field {
  display: block; height: 1.75rem; border: 1.5px solid var(--accent-mark); border-radius: 6px;
  padding: 0 .35rem; position: relative;
}
.pcard__knob {
  position: absolute; right: .3rem; top: 50%; width: 1rem; height: 1rem; margin-top: -.5rem;
  border-radius: 50%; background: var(--accent-mark);
}

/* Pilot */
.plans { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.plan {
  display: flex; flex-direction: column;
  padding: 1.75rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px;
}
.plan--pilot { border-color: var(--accent); }
.plan h3 { margin-bottom: .75rem; }
.plan__price { font-size: 1.75rem; font-weight: 700; margin-bottom: .75rem; letter-spacing: -.01em; }
.plan p { color: var(--muted); }
.plan .plan__price { color: var(--ink); }
.plan .actions { margin-top: auto; padding-top: 1rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px; padding: .5rem 0; cursor: pointer; list-style: none; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--accent); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq__body { padding-bottom: 1rem; color: var(--muted); }
.faq__body p:last-child { margin-bottom: 0; }

/* CTA */
.cta__mail { margin: 1rem 0 0; }

/* 404 */
.notfound { padding: 4rem var(--edge); }
.notfound h1 { margin-bottom: 1rem; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .textlink { transition: background-color .15s ease, filter .15s ease; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Showroom (shop page, served by Functions) ---------- */
body.showroom main { padding: 0 var(--edge); }

.shop-header { padding: 2rem 0 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.shop-header__name { font-size: clamp(1.75rem, 6vw, 2.5rem); }
.shop-header__place { color: var(--muted); margin: .5rem 0 0; }
.shop-header__count { color: var(--muted); font-size: .9375rem; margin: .25rem 0 0; }

.notice {
  margin: 0 0 1.5rem; padding: .875rem 1rem;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-left: 4px solid var(--accent-mark); border-radius: 6px;
  font-size: .9375rem;
}

.disclaimer { color: var(--muted); font-size: .875rem; margin: 0 0 1.5rem; max-width: 40rem; }

.item-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem .75rem;
}
@media (min-width: 640px) { .item-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem 1.25rem; } }
@media (min-width: 1000px) { .item-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; } }
.item-card { min-width: 0; }
.item-card__img {
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  background: var(--placeholder); border-radius: 8px;
}
.item-card__title {
  font-size: .9375rem; font-weight: 500; line-height: 1.35; margin: .625rem 0 .25rem;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.item-card__price { font-size: 1.25rem; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.item-card__ref { font-size: .75rem; color: var(--muted); margin: .125rem 0 0; font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); padding: 2rem 0; }
