/* FeedKit site styles. No build step: this file is the whole design system.

   The palette comes from the app icon: a cream ground, a sage green bottle and
   a peach heart. The app's own screens are grouped iOS backgrounds with flat,
   shadowless cards and quiet uppercase section labels, and the site follows
   that rather than inventing a second look. */

:root {
  --brand: #3f7a66;          /* sage, deepened for 4.8:1 text contrast on --bg */
  --brand-strong: #336553;
  --brand-soft: #afcbbe;     /* the icon's sage */
  --brand-wash: #e5efe9;
  --accent: #d9794f;         /* peach, deepened */
  --accent-soft: #f6b99b;    /* the icon's peach */
  --accent-wash: #fbe7dc;

  --bg: #fcf9f5;             /* the icon's cream */
  --surface: #ffffff;
  --surface-alt: #f4efe8;
  --text: #25292d;
  --text-muted: #5f656b;
  --border: #e9e1d6;

  --maxw: 1080px;
  --readw: 720px;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #9dc8b6;
    --brand-strong: #b4d8c8;
    --brand-soft: #5f8a79;
    --brand-wash: #22322c;
    --accent: #f0a383;
    --accent-soft: #8c5a44;
    --accent-wash: #3a2a23;

    --bg: #1b1f23;           /* the dark icon's charcoal */
    --surface: #242a2f;
    --surface-alt: #20252a;
    --text: #edf0ee;
    --text-muted: #a4aba8;
    --border: #323a40;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 { line-height: 1.22; font-weight: 700; letter-spacing: -.012em; }
h1, h2 { font-family: var(--font-display); }

/* Long German and Ukrainian compounds must wrap rather than push the page wide. */
h1, h2, h3, p, li { overflow-wrap: break-word; }
h1, h2, h3 { hyphens: auto; }

/* ---------- Layout ---------- */

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-read { width: 100%; max-width: var(--readw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
}

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--text); flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); }

.site-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; margin-inline-start: auto; min-width: 0; }
.site-nav a { color: var(--text-muted); white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Secondary links go well before the phone breakpoint: German and Polish
   labels need far more room than the English ones. */
@media (max-width: 720px) {
  .site-nav .nav-hide-sm { display: none; }
}

@media (max-width: 560px) {
  .site-nav { gap: 16px; font-size: 14px; }
  .site-nav .nav-hide-xs { display: none; }
}

/* ---------- Language switcher ---------- */
/* details/summary rather than a script: the CSP sets script-src 'none'. */

.lang { position: relative; font-size: 15px; flex: 0 0 auto; }

.lang > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--surface);
  white-space: nowrap;
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.lang > summary:hover,
.lang[open] > summary { color: var(--text); border-color: var(--brand-soft); }

.lang ul {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  z-index: 20;
  margin: 0;
  padding: 6px;
  list-style: none;
  /* Twenty languages: two columns keep the menu short, and it scrolls rather
     than running off a short screen. */
  display: grid;
  grid-template-columns: repeat(2, minmax(128px, 1fr));
  column-gap: 4px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.lang li { margin: 0; }
.lang ul a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text-muted);
}
.lang ul a:hover { color: var(--text); background: var(--surface-alt); text-decoration: none; }
.lang ul a[aria-current="true"] { color: var(--text); font-weight: 600; background: var(--brand-wash); }

.lang-code { display: none; }

@media (max-width: 560px) {
  .lang { font-size: 14px; }
  .lang > summary { padding: 5px 9px; }
  .lang-full { display: none; }
  .lang-code { display: inline; }
}

.legal-lang-note {
  width: 100%;
  max-width: var(--maxw);
  margin: 18px auto 0;
  padding: 0 24px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Hero ---------- */

/* The same peach-to-sage wash the App Store screenshots sit on, kept faint. */
.hero {
  padding: 76px 0 68px;
  background:
    linear-gradient(100deg,
      color-mix(in srgb, var(--accent-soft) 26%, transparent) 0%,
      transparent 48%,
      color-mix(in srgb, var(--brand-soft) 30%, transparent) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  margin: 0 0 18px;
}

.hero .lede {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 34em;
}

/* Quiet uppercase label, the same treatment as the app's "LAST FEED". */
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero-art { display: block; justify-self: center; width: 100%; max-width: 380px; }
.hero-art img {
  width: 100%;
  border-radius: 22.5%;      /* the iOS icon shape, near enough */
  border: 1px solid var(--border);
  aspect-ratio: 1 / 1;
}

@media (max-width: 860px) {
  .hero { padding: 48px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { justify-self: start; max-width: 132px; order: -1; }
}

/* ---------- Buttons ---------- */

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background-color .12s ease, transform .12s ease;
}
.btn:hover { text-decoration: none; }
a.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--brand); color: #fff; }
a.btn-primary:hover { background: var(--brand-strong); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #14201b; } }

.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }

/* Until there is an App Store link the button is a label, not a control. */
.btn-soon {
  background: var(--brand-wash);
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 25%, transparent);
  cursor: default;
}
@media (prefers-color-scheme: dark) { .btn-soon { color: var(--brand); } }

.note { font-size: 14px; color: var(--text-muted); margin: 16px 0 0; }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section-alt { background: var(--surface-alt); border-block: 1px solid var(--border); }

.section-head { max-width: 40em; margin: 0 0 40px; }
.section-head h2 { font-size: clamp(1.55rem, 3.2vw, 2.05rem); margin: 0 0 12px; }
.section-head p { color: var(--text-muted); margin: 0; }

/* ---------- Feature cards ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 15px; }

.card-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--brand-wash);
  margin-bottom: 14px;
  color: var(--brand);
}
.card-icon svg { width: 21px; height: 21px; }

/* ---------- Screenshot gallery ---------- */

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-soft) transparent;
}

.shots figure { margin: 0; scroll-snap-align: start; }

/* A row cut off at the content edge reads as a broken image rather than as
   more to scroll. Fading the last few pixels makes the cut deliberate. */
@media (min-width: 701px) {
  .shots {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
  }
}

.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-track { background: transparent; }
.shots::-webkit-scrollbar-thumb { background: var(--brand-soft); border-radius: 999px; }

.shots img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
}

@media (max-width: 700px) {
  .shots { grid-auto-columns: minmax(180px, 60vw); }
}

/* ---------- Plan columns ---------- */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; align-items: stretch; }

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

/* The paid tier is the one to notice: a sage ring, drawn as an inset shadow
   so both cards keep the same size. */
.plan-featured {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.plan-featured h3 { color: var(--brand); }

.plan h3 { margin: 0 0 4px; font-size: 1.2rem; }
.plan .plan-sub { color: var(--text-muted); font-size: 14px; margin: 0 0 20px; }

.plan ul { list-style: none; margin: 0; padding: 0; }
.plan li { position: relative; padding-inline-start: 26px; margin-bottom: 11px; font-size: 15px; }
.plan li::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px; top: .55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-soft);
}
.plan-featured li::before { background: var(--accent-soft); }

.plan-disclosure { max-width: 52em; margin-top: 22px; font-size: 13px; line-height: 1.55; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  font-size: 14.5px;
  color: var(--text-muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }

/* ---------- Document pages (privacy, terms, support) ---------- */

.doc { padding: 56px 0 80px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 8px; }
.doc h2 {
  font-size: 1.3rem;
  margin: 40px 0 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border);
}
.doc h3 { font-size: 1.06rem; margin: 26px 0 10px; }
.doc p { margin: 0 0 15px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-inline-start: 24px; }
.doc li { margin-bottom: 7px; }
.doc hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

.doc .last-updated { color: var(--text-muted); font-size: 15px; margin-bottom: 32px; }

.doc .highlight {
  background: var(--brand-wash);
  border-inline-start: 3px solid var(--brand-soft);
  border-start-end-radius: 12px;
  border-end-end-radius: 12px;
  padding: 16px 18px;
  margin: 24px 0;
}

.doc .warning {
  background: var(--accent-wash);
  border-inline-start: 3px solid var(--accent);
  border-start-end-radius: 12px;
  border-end-end-radius: 12px;
  padding: 16px 18px;
  margin: 24px 0;
}

.doc .contact-info {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 30px;
}
.doc .contact-info p:last-child { margin-bottom: 0; }

/* Support page specifics */
.support-cta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 28px 0 8px;
}
.support-cta .card p { font-size: 15px; }
