/* rMeal — rmeal.eu. No external fonts, scripts or trackers. */
:root {
  --bg: #f6f4f8; --surface: #ffffff; --surface-2: #eeeaf2; --text: #1b1523; --muted: #5e5869;
  --accent: #5b2a86; --accent-2: #47206a; --on-accent: #ffffff; --accent-soft: #eee6f6; --live: #0b6e6b;
  --border: #e4dfea; --deep: #1a0d28; --deep-2: #2b1442;
  --radius: 22px; --max: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15111b; --surface: #221c2a; --surface-2: #2a2333; --text: #f4f1f8; --muted: #b3abbf;
    --accent: #c9b2ec; --accent-2: #d8c2f2; --on-accent: #26123b; --accent-soft: #33264a; --live: #7fd8cf;
    --border: #3a3245;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav { margin-left: auto; display: flex; gap: 18px; align-items: center; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }
.top nav .lang { border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; }
@media (max-width: 640px) { .top nav .hide-s { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 700;
  text-decoration: none; font-size: 17px; border: 0; cursor: pointer; }
.btn-primary { background: #ffffff; color: #1a0d28; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-ghost { color: inherit; border: 1.5px solid currentColor; opacity: .9; }
.btn svg { width: 20px; height: 20px; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(180deg, var(--deep-2), var(--deep)); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(26,13,40,.97) 0%, rgba(26,13,40,.9) 38%, rgba(26,13,40,.35) 62%, rgba(26,13,40,0) 80%); }
.hero .wrap { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 96px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 18px; font-weight: 900; }
.hero p.lead { font-size: clamp(18px, 2.2vw, 22px); color: rgba(255,255,255,.86); margin: 0 0 26px; max-width: 34ch; }
.promise { display: inline-flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; list-style: none; }
.promise li { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .small { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 14px; }
.wall { position: absolute; inset: -20% -12% -20% 46%; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; transform: rotate(-8deg); }
.wall .col { display: flex; flex-direction: column; gap: 18px; animation: drift 60s linear infinite; }
.wall .col:nth-child(2) { animation-duration: 75s; margin-top: -120px; }
.wall .col:nth-child(3) { animation-duration: 52s; }
.wall img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 22px; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .wall .col { animation: none; } }
.phone-hero { justify-self: center; }
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; }
  .wall { inset: -10% -40% 30% -10%; opacity: .35; }
  .hero::after { background: linear-gradient(180deg, rgba(26,13,40,.55) 0%, rgba(26,13,40,.95) 45%); }
  .phone-hero { display: none; }
}

/* Phone frame */
.phone { width: min(320px, 78vw); border-radius: 48px; padding: 10px; background: #0b0b0d; box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 0 0 2px #3b3742; }
.phone img { border-radius: 38px; width: 100%; height: auto; }

/* Sections */
section { padding: 88px 0; }
.eyebrow { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; color: var(--accent); margin: 0 0 10px; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 850; }
.sub { color: var(--muted); font-size: 19px; max-width: 60ch; margin: 0 0 40px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 880px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 12px 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.icon svg { width: 24px; height: 24px; }

/* Feature rows with a phone */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.feature.flip .text { order: 2; }
.feature .media { display: flex; justify-content: center; }
.feature ul { padding-left: 1.1em; color: var(--muted); }
.feature li { margin: 6px 0; }
@media (max-width: 880px) { .feature { grid-template-columns: 1fr; gap: 28px; } .feature.flip .text { order: 0; } }

.band { background: var(--surface-2); }
.devices { display: flex; flex-wrap: wrap; gap: 10px; }
.devices span { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 15px; }

.quote { font-size: clamp(22px, 3vw, 30px); font-weight: 750; letter-spacing: -0.01em; max-width: 30ch; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: 10px 0 0; }

/* CTA band */
.final { text-align: center; color: #fff; background: linear-gradient(180deg, var(--deep-2), var(--deep)); }
.final h2 { color: #fff; }
.final p { color: rgba(255,255,255,.8); }

/* Text pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 88px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.02em; margin: 0 0 8px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--text); }
.doc .meta { color: var(--muted); }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--border); }
.doc th { color: var(--muted); font-weight: 700; }
.note { background: var(--accent-soft); border-radius: 16px; padding: 16px 20px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer a { color: var(--muted); }
footer .grow { flex: 1; }

/* Why free */
.why { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
.why img { width: 72px; height: 72px; border-radius: 18px; margin-top: 6px; }
.why .sub { margin-bottom: 14px; }
.why .sign { color: var(--muted); font-weight: 600; margin: 0; }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; gap: 16px; } }

/* Contact form and wishlist */
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; }
form.contact { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin: 8px 0 24px; display: grid; gap: 20px; }
form.contact .field { display: grid; gap: 8px; }
form.contact label { font-weight: 700; }
form.contact .opt { font-weight: 400; color: var(--muted); }
form.contact input, form.contact select, form.contact textarea {
  font: inherit; color: var(--text); background: var(--bg); border: 1.5px solid var(--border); border-radius: 14px;
  padding: 13px 15px; width: 100%; box-sizing: border-box; transition: border-color .15s, box-shadow .15s; }
form.contact textarea { resize: vertical; min-height: 140px; }
form.contact input:focus, form.contact select:focus, form.contact textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
form.contact .hint { margin: 0; font-size: 15px; color: var(--muted); }
form.contact button { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
form.contact button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.result { text-align: center; padding: 40px 0; }
.result .badge { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: 42px; font-weight: 800; background: var(--accent-soft); color: var(--accent); }
.result.failed .badge { background: #fde8e8; color: #b42318; }
.wishes ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.wish { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; }
.wish h3 { margin: 10px 0 6px; font-size: 18px; line-height: 1.3; }
.wish p { margin: 0; color: var(--muted); font-size: 15px; }
.wish.doing { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pill { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pill.done { background: #e3f4ee; color: #0b6e4f; }
.pill.doing { background: var(--accent); color: var(--on-accent); }
.pill.listed { background: var(--surface-2); color: var(--muted); }
.wishes .hint { color: var(--muted); font-size: 15px; margin: 4px 0 0; }
.wish-form { margin-top: 48px; scroll-margin-top: 80px; }
@media (prefers-color-scheme: dark) {
  .pill.done { background: #173b31; color: #7fd8b4; }
  .result.failed .badge { background: #3d1d1d; color: #f4a3a3; }
}
form.contact select { -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%235e5869' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.doc section.wishes, .doc section.wish-form { padding: 0; margin: 40px 0 0; min-height: 0; }
.doc section.wishes h2 { margin-top: 0; }

/* News */
.post { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; margin: 0 0 18px; }
.post time { color: var(--muted); font-size: 15px; font-weight: 600; }
.doc .post h2 { margin: 6px 0 10px; font-size: 26px; }
.post p { margin: 0 0 12px; }
.post p:last-child { margin-bottom: 0; }
