/* zaile.app shared styles
   Matches the app's refreshed design: one accent colour (Romantic Rose),
   flat surfaces, no gradients, no glow, system type. */

:root {
  --bg: #fbf7f4;
  --surface: #ffffff;
  --ink: #2a1a20;
  --muted: #6b5a61;
  --line: #eadfd9;
  --accent: #cc4266;
  --accent-ink: #ffffff;
  --accent-soft: #f8e6eb;
  --radius: 16px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rounded: ui-rounded, -apple-system, "SF Pro Rounded", system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141012;
    --surface: #1e181b;
    --ink: #f5eef0;
    --muted: #b3a4aa;
    --line: #33292d;
    --accent: #e0607f;
    --accent-ink: #1a0d12;
    --accent-soft: #2c1a20;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Language switching: EN is the no-JS default. */
html:not([data-lang="pl"]) body [lang="pl"],
html[data-lang="pl"] body [lang="en"] { display: none !important; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.header-nav { display: flex; align-items: center; gap: 20px; }
.header-nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.header-nav a:hover, .header-nav a[aria-current="page"] { color: var(--ink); }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang-switch button {
  font: 600 13px/1 var(--sans); color: var(--muted); background: none; border: 0;
  padding: 7px 10px; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--sans); text-decoration: none;
  padding: 14px 20px; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(0.95); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--muted); }
.store-badge img { height: 48px; width: auto; }

/* Type */
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 36ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Home: hero */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .lede { margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Screenshot: flat, no fake device frame */
.shot {
  width: 100%; max-width: 300px; margin: 0 auto;
  aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: 28px; border: 1px solid var(--line);
  background: var(--surface);
}

/* Home: features */
.features { padding: 40px 0 24px; }
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center;
  padding: 48px 0; border-top: 1px solid var(--line);
}
.feature:nth-child(even) .feature-copy { order: 2; }
.feature-copy p { color: var(--muted); margin-top: 14px; max-width: 42ch; }
.feature-copy ul { margin-top: 18px; list-style: none; display: grid; gap: 10px; }
.feature-copy li { padding-left: 22px; position: relative; }
.feature-copy li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--accent);
}
.feature .shot { max-width: 260px; }

/* Home: plans */
.plans { padding: 56px 0; border-top: 1px solid var(--line); }
.plans > .wrap > p { color: var(--muted); margin-top: 12px; max-width: 56ch; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.plan.featured { border-color: var(--accent); }
.plan h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan .tag { font-size: 13px; font-weight: 600; color: var(--accent); }
.plan ul { list-style: none; margin-top: 16px; display: grid; gap: 10px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 16px; height: 16px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan-foot { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* Closing band */
.closing { padding: 56px 0 72px; border-top: 1px solid var(--line); }
.closing .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.closing h2 { max-width: 18ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Document pages: support, privacy, terms */
.doc { padding: 48px 0 64px; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); }
.doc .updated { margin-top: 10px; font-size: 14px; color: var(--muted); }
.doc .intro { margin-top: 20px; color: var(--muted); }
.doc h2 { font-size: 1.35rem; margin: 40px 0 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc h3 { margin: 20px 0 6px; }
.doc p { margin-bottom: 12px; }
.doc ul { margin: 0 0 14px 20px; }
.doc li { margin-bottom: 6px; }
.doc strong { font-weight: 650; }
.highlight { background: var(--accent-soft); border-radius: 12px; padding: 14px 16px; margin: 14px 0; }
.highlight p { margin: 0; }

/* Support */
.contact-card {
  margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.contact-card p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.faq-toc { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.faq-toc a {
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px;
}
.faq-toc a:hover { border-color: var(--muted); }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; font-weight: 400; color: var(--muted);
}
details[open] summary::after { content: "\2013"; }
details > div { padding: 0 0 18px; color: var(--muted); }
details > div p { margin-bottom: 10px; }
details > div ol, details > div ul { margin: 0 0 10px 20px; }
details > div li { margin-bottom: 4px; }
.doc .faq-group h2 { border-top: 0; padding-top: 0; margin-top: 44px; }

/* Responsive */
@media (max-width: 860px) {
  .hero { padding: 40px 0 24px; }
  .hero .wrap, .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature:nth-child(even) .feature-copy { order: 0; }
  .hero .shot { max-width: 240px; }
  .plan-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .header-nav .hide-sm { display: none; }
  .wrap { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
