/* craveable.no – the public site. Plain CSS, no build step, no third-party request, no script.
   The colours are the app's (src/theme/palette.ts). New ones are not invented here. */
:root {
  --bg: #EBF6EE; --paper: #FFFFFF; --ink: #15301F; --muted: #5A6B60; --line: #DCE8DE;
  --button: #1F7B4E; --green: #2A6B4A; --soft: #CFE6D4; --green-soft: #D8EBDF;
  --warn: #8A4B0F; --warn-soft: #FEF7CB;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --r-card: 20px; --r-btn: 15px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); overflow-x: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
img { max-width: 100%; display: block; }
a { color: var(--button); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 20; }
.skip:focus { top: 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--serif); letter-spacing: -.02em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.6rem, 7.4vw, 4.7rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--green); margin: 0 0 14px; }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.3rem); line-height: 1.5; color: var(--ink); max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(235, 246, 238, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 1.7rem; letter-spacing: -.05em; color: var(--button); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 6px 22px; font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 2px; }
.nav a:hover { color: var(--button); text-decoration: underline; }
.nav .lang { border: 1px solid var(--soft); border-radius: 50px; padding: 6px 14px; background: var(--paper); font-weight: 600; font-size: .88rem; }
@media (max-width: 760px) { .nav .hide-s { display: none; } }

/* hero */
.hero { position: relative; padding: 36px 0 72px; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 720px; height: 720px; right: -160px; top: -120px; background: var(--green-soft); border-radius: 50%; z-index: 0; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--button); }
.hero .lead { margin-bottom: 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; border-radius: 16px; padding: 12px 20px 12px 16px; line-height: 1.15; }
.badge svg { flex: none; }
.badge small { display: block; font-size: .72rem; opacity: .82; letter-spacing: .02em; }
.badge strong { font-size: 1.08rem; font-weight: 650; }
.btn { display: inline-flex; align-items: center; min-height: 49px; padding: 0 22px; border-radius: var(--r-btn); border: 1.5px solid var(--button); color: var(--button); font-weight: 650; text-decoration: none; background: transparent; }
.btn:hover { background: var(--button); color: #fff; }
.hero .facts { margin-top: 22px; font-size: .95rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 0; list-style: none; }
.hero .facts li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--button); margin-right: 8px; vertical-align: 1px; }

/* the phone: a real screenshot in a plain frame */
.phone { margin: 0; border: 7px solid var(--ink); border-radius: 36px; overflow: hidden; background: var(--ink); box-shadow: 0 24px 50px -22px rgba(21, 48, 31, .45), 0 4px 10px rgba(21, 48, 31, .1); }
.phone img, .phone video { width: 100%; height: auto; border-radius: 29px; }
.phone video { display: block; }
.hero-phones { display: flex; justify-content: center; align-items: flex-start; gap: 0; padding-right: 8px; }
.hero-phones .phone { width: 41%; max-width: 270px; }
.hero-phones .p1 { transform: translateY(46px) rotate(-3deg); margin-right: -4%; position: relative; z-index: 1; }
.hero-phones .p2 { width: 46%; max-width: 310px; position: relative; z-index: 2; }
.hero-phones .p3 { transform: translateY(70px) rotate(3deg); margin-left: -4%; }
@media (prefers-reduced-motion: no-preference) {
  .hero-phones .phone { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-phones .p2 { animation-delay: .08s; } .hero-phones .p3 { animation-delay: .16s; }
}
@keyframes rise { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }

/* the chains we have prices from */
.chains { padding: 28px 0 30px; background: var(--paper); border-top: 1px solid var(--line); }
.chains .eyebrow { margin-bottom: 12px; }
.marquee { overflow: hidden; margin: 0 0 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.logos { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; width: max-content; }
.logos li { flex: 0 0 76px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
/* the list is there three times; one set (8 × 88 px) slides past, then it starts over unseen */
@media (prefers-reduced-motion: no-preference) {
  .logos { animation: rull 32s linear infinite; }
  .marquee:hover .logos { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; } }
@keyframes rull { to { transform: translateX(-704px); } }
.logos img { width: 100%; height: auto; }
.chains .note { color: var(--muted); font-size: .9rem; margin: 0; }

/* sections */
section { padding: 72px 0; }
.sec-head { max-width: 40em; margin-bottom: 40px; }
.sec-head p { font-size: 1.1rem; color: var(--muted); margin-top: 14px; }

/* the loop */
.loop { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.loop-top { margin-bottom: 36px; }
.loop-top .sec-head { margin-bottom: 28px; }
/* the screen recording: the still lies under the video, so the phone is never empty while the video loads */
.film { position: relative; margin: 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 50px -28px rgba(21, 48, 31, .45); }
.film img { width: 100%; height: auto; }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* the steps: side by side. A row you swipe on phones, five columns on a wide screen */
.steps { list-style: none; margin: 0 -20px; padding: 4px 20px 14px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; -webkit-overflow-scrolling: touch; }
.steps { scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.step { flex: 0 0 min(84%, 320px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 18px; background: var(--bg); border-radius: 28px; padding: 22px 22px 0; overflow: hidden; }
.step > div:first-child { flex: 1; }
.step-shot { display: flex; justify-content: center; align-items: flex-start; gap: 18px; }
.step-shot .phone { width: min(100%, 250px); }
.step .step-shot { height: 236px; overflow: hidden; }
.step .step-shot .phone { width: min(78%, 210px); box-shadow: none; }
.swipe { margin: 4px 0 0; font-size: .9rem; font-weight: 650; color: var(--green); text-align: center; }
.step .step-shot img { aspect-ratio: 560 / 1079; object-fit: cover; object-position: top; }
@media (min-width: 1000px) {
  .steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 0; padding: 0; overflow: visible; }
  .step { padding: 24px 18px; overflow: visible; gap: 22px; }
  .step .step-shot { height: auto; overflow: visible; }
  .swipe { display: none; }
  .step .step-shot .phone { width: 100%; border-width: 6px; border-radius: 30px; }
  .step .step-shot .phone img { border-radius: 24px; }
}
.num { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--button); color: #fff; font: 700 1.35rem var(--serif); margin-bottom: 16px; }
.step h3 { font-size: 1.55rem; margin-bottom: 10px; }
@media (max-width: 999px) {
  .step > div:first-child { display: grid; grid-template-columns: auto 1fr; gap: 12px 12px; align-items: center; align-content: start; }
  .step > div:first-child > p { grid-column: 1 / -1; margin: 0; }
  .step .num { width: 38px; height: 38px; font-size: 1.15rem; margin: 0; }
  .step h3 { margin: 0; }
}
.step p { color: var(--ink); max-width: 30em; font-size: .97rem; line-height: 1.5; }
.step .note { color: var(--muted); font-size: .92rem; }
.tag { display: inline-block; font-size: .78rem; font-weight: 650; background: var(--warn-soft); color: var(--warn); border-radius: 50px; padding: 3px 12px; margin-left: 8px; vertical-align: middle; font-family: var(--sans); letter-spacing: 0; }

/* households and links */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .step-shot .phone { width: min(46%, 230px); }
.split .step-shot .phone:nth-child(2) { margin-top: 36px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.ticks li::before { content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--button) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/70% no-repeat; }
.ticks strong { display: block; }

/* extras */
.extras { background: var(--green-soft); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: start; }
.card .phone { border-width: 4px; border-radius: 18px; box-shadow: none; }
.card .phone img { border-radius: 14px; }
.card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.card p { font-size: .94rem; color: var(--muted); margin: 0; }

/* free */
.free .box { background: var(--ink); color: #fff; border-radius: 32px; padding: 48px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.free h2 { color: #fff; }
.free p { color: #D8EBDF; font-size: 1.08rem; margin: 0 0 .8em; }
.free ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.free li { background: rgba(255, 255, 255, .08); border-radius: 14px; padding: 14px 18px; display: flex; justify-content: space-between; gap: 12px; }
.free li span:last-child { color: #CFE6D4; font-weight: 650; text-align: right; }

/* FAQ */
.faq { max-width: 780px; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); margin-bottom: 12px; }
summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 650; position: relative; min-height: 56px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 22px; top: 50%; translate: 0 -52%; font: 400 1.7rem/1 var(--sans); color: var(--button); }
details[open] summary::after { content: "–"; }
details > div { padding: 0 22px 18px; color: var(--ink); }
details > div p:last-child { margin-bottom: 0; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: .95rem; background: var(--bg); }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
footer .logo { font-size: 1.5rem; display: inline-block; margin-bottom: 8px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
footer a { color: var(--ink); }
footer p { margin: 0 0 6px; }
/* the sender's signature, the same on every Vendow Studio product (vendow: kit/merke/studio/SIGNATUR.md) */
.vs-sig { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px; text-decoration: none; }
.vs-sig span { font-size: 11px; line-height: 1; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.vs-sig img { display: block; height: 18px; width: auto; }
footer .vs-sig { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }

/* text pages (support) */
.doc { padding: 56px 0 72px; }
.doc .col { max-width: 720px; }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: 14px; }
.doc h2 { font-size: 1.6rem; margin: 44px 0 10px; }
.doc h3 { font-size: 1.1rem; font-family: var(--sans); letter-spacing: 0; margin: 22px 0 4px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px 24px; margin: 20px 0; }
.doc .panel p:last-child { margin-bottom: 0; }
.doc .warn { background: var(--warn-soft); border-color: #EBDD8A; }
.mail { font-family: var(--serif); font-size: clamp(1.5rem, 4.4vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; }
.doc .toc { display: flex; flex-wrap: wrap; gap: 8px 12px; padding: 0; list-style: none; margin: 22px 0 0; }
.doc .toc a { display: inline-block; padding: 8px 16px; border: 1px solid var(--soft); background: var(--paper); border-radius: 50px; text-decoration: none; font-size: .92rem; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding-bottom: 80px; }
  .hero::before { width: 520px; height: 520px; right: -200px; top: 220px; }
  .hero-phones { margin-top: 12px; padding-right: 0; }
  .hero-phones .p1 { transform: translateY(26px) rotate(-3deg); }
  .hero-phones .p3 { transform: translateY(40px) rotate(3deg); }
  .film { border-radius: 14px; margin: 0 -8px; }
  .split, .free .box { grid-template-columns: 1fr; padding-left: 28px; padding-right: 28px; }
  .split { padding-left: 0; padding-right: 0; gap: 36px; }
  .split .step-shot { order: 2; }
  .cards { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  footer .wrap { grid-template-columns: 1fr; }
  footer nav { justify-content: flex-start; }
}
@media (max-width: 480px) {
  body { font-size: 16.5px; }
  .free .box { padding: 32px 22px; }
  .hero-phones .p3 { display: none; }
  .hero-phones .phone { width: 47%; }
  .hero-phones .p2 { width: 50%; }
  .card { grid-template-columns: 96px 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* App Store (live 18.11.2026): the official badge + a QR for desktop visitors */
.store { display: inline-flex; border-radius: 12px; line-height: 0; }
.store img { height: 60px; width: auto; display: block; }
.store:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.qr { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .8rem; line-height: 1.25; }
.qr img { width: 88px; height: 88px; background: #fff; border-radius: 10px; padding: 4px; }
@media (max-width: 820px), (hover: none) { .qr { display: none; } }
