/* Pleek — „Papier i bursztyn” (light) / „Espresso” (dark) */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces_600SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/BricolageGrotesque_400Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/BricolageGrotesque_600SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #F6EFE4;
  --surface: #FFFAF2;
  --sunken: #EDE3D3;
  --text: #231913;
  --muted: #65554A;
  --primary: #B3431A;
  --primary-pressed: #933515;
  --on-primary: #FFF8EF;
  --primary-soft: #F6DCCB;
  --on-primary-soft: #7A2A0E;
  --accent: #2E5E52;
  --accent-soft: #D8E8E1;
  --on-accent-soft: #1F463C;
  --link: #933515;
  --border: #D9C9B4;
  --border-strong: #8C7866;
  --shadow: 0 1px 2px rgba(59, 36, 18, .08), 0 8px 24px rgba(59, 36, 18, .10);
  --badge-bg: #231913;
  --badge-text: #F7EEE1;
  --ear: 18px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17110E;
    --surface: #221A15;
    --sunken: #120D0B;
    --text: #F5EBDD;
    --muted: #C4B3A1;
    --primary: #F2935A;
    --primary-pressed: #E07A3E;
    --on-primary: #1E120B;
    --primary-soft: #3F2618;
    --on-primary-soft: #FFC7A3;
    --accent: #86C9B3;
    --accent-soft: #1F3530;
    --on-accent-soft: #B9E6D6;
    --link: #F5A775;
    --border: #3A2E26;
    --border-strong: #8A7867;
    --shadow: 0 0 0 1px rgba(255, 240, 220, .04), 0 10px 28px rgba(0, 0, 0, .45);
    --badge-bg: #F4EADB;
    --badge-text: #231913;
  }
}

*, *::before, *::after { 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-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 8vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: var(--on-primary); padding: .6em 1em; z-index: 10;
}
.skip:focus { left: 16px; top: 16px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 760px; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: .98rem; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }

/* Hero */
.hero { padding: 28px 0 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.2fr .8fr; } .hero { padding: 48px 0 88px; } }
.eyebrow { display: inline-block; font-weight: 600; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero h1 .amber { color: var(--primary); display: block; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.pills { list-style: none; padding: 0; margin: 22px 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { background: var(--accent-soft); color: var(--on-accent-soft); border-radius: 999px; padding: 5px 13px; font-size: .95rem; font-weight: 600; }

/* Paper sheet with dog-ear */
.paper {
  position: relative;
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: 4px;
  clip-path: polygon(0 0, calc(100% - var(--ear)) 0, 100% var(--ear), 100% 100%, 0 100%);
}
.paper::after {
  content: ""; position: absolute; top: 0; right: 0;
  width: var(--ear); height: var(--ear);
  background: linear-gradient(225deg, transparent 50%, var(--sunken) 50%);
}

.hero-art { justify-self: center; width: min(320px, 100%); }
.hero-art .paper { --ear: 56px; padding: 36px 30px 40px; aspect-ratio: 210 / 297; display: flex; flex-direction: column; gap: 14px; }
.hero-art .line { height: 12px; border-radius: 6px; background: var(--muted); opacity: .55; }
.hero-art .stamp {
  margin-top: auto; align-self: flex-start;
  font-family: var(--serif); font-size: 1.6rem; color: var(--primary);
  border: 2px solid var(--primary); border-radius: 8px; padding: 2px 14px; transform: rotate(-6deg);
}
.hero-art .stamp small { font-family: var(--sans); font-size: .8rem; display: block; color: var(--muted); }

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--badge-bg); color: var(--badge-text);
  border-radius: 12px; padding: 10px 18px 10px 14px; min-height: 52px;
  text-decoration: none; font-weight: 600; line-height: 1.2;
}
.badge:hover { opacity: .9; }
.badge svg { width: 24px; height: 24px; flex: none; }
.badge small { display: block; font-weight: 400; font-size: .78rem; opacity: .85; }
.soon { font-size: .95rem; color: var(--muted); margin: 10px 0 0; }

/* Sections */
section { padding: 56px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.card { padding: 22px 22px 18px; }
.section-alt .card { background: var(--bg); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
.card .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--on-primary-soft); margin-bottom: 14px; }
.card .ico svg { width: 22px; height: 22px; }

/* Free list */
.nope { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.nope li { display: flex; gap: 10px; align-items: center; font-weight: 600; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.nope li::before { content: "✕"; color: var(--primary); font-size: .95rem; }

/* Screenshots */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 210px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; margin: 0;
  list-style: none; overscroll-behavior-x: contain;
}
.shots li { scroll-snap-align: start; }
.phone {
  border-radius: 30px; padding: 8px; background: #231913;
  box-shadow: var(--shadow);
}
@media (prefers-color-scheme: dark) { .phone { background: #3A2E26; } }
.phone img { border-radius: 23px; width: 100%; aspect-ratio: 600 / 1300; object-fit: cover; background: var(--sunken); }
.shots figcaption { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 10px; }
.shots figure { margin: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative;
  font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.5rem; color: var(--primary); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* CTA */
.cta { text-align: center; }
.cta .stores { justify-content: center; }

/* Legal / document pages */
.doc { padding: 24px 0 64px; }
.doc .paper { padding: 28px 20px 36px; --ear: 32px; }
@media (min-width: 640px) { .doc .paper { padding: 48px 52px 56px; } }
.doc h1 { font-size: clamp(2rem, 6vw, 3rem); }
.doc h2 { font-size: 1.45rem; margin-top: 1.8em; }
.doc h3 { font-size: 1.12rem; margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 1.25em; margin: 0 0 1em; }
.doc li { margin-bottom: .35em; }
.meta { color: var(--muted); font-size: .98rem; }
.note { background: var(--primary-soft); color: var(--on-primary-soft); border-radius: 14px; padding: 14px 18px; margin: 1.2em 0; }
.note a { color: inherit; }
.tldr { background: var(--accent-soft); color: var(--on-accent-soft); border-radius: 14px; padding: 16px 20px; margin: 1.2em 0 1.6em; }
.tldr ul { margin: .4em 0 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; font-size: .98rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { font-weight: 600; }

.mail {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: var(--on-primary); text-decoration: none;
  font-weight: 600; border-radius: 14px; padding: 12px 20px; margin: .4em 0 1em;
}
.mail:hover { background: var(--primary-pressed); }

/* 404 */
.lost { text-align: center; padding: 48px 0 80px; }
.lost .paper { --ear: 40px; width: min(220px, 70%); aspect-ratio: 210 / 297; margin: 0 auto 32px; display: grid; place-items: center; font-family: var(--serif); font-size: 3.4rem; color: var(--primary); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0 44px; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: grid; gap: 18px; }
@media (min-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; } }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; }
