/* Shoo / Киш — shoo.pro
   Plain CSS, no build step. Colors are tokens on :root; dark mode via prefers-color-scheme. */

:root {
  color-scheme: light dark;

  /* brand */
  --cream: #FFF1E0;
  --cocoa: #3B2A22;
  --coral: #F4845F;
  --peach: #FFE8D1;
  --c-delete: #F25C54;
  --c-keep: #8CCB7E;
  --c-fav: #F48FB1;
  --c-album: #F6B94A;

  /* theme (light) */
  --bg: #FFF1E0;
  --bg-soft: #FFE8D1;
  --surface: #FFFAF3;
  --text: #3B2A22;
  --muted: #6E5647;         /* darker than brand muted #8C7465 for AA on cream */
  --line: rgba(59, 42, 34, 0.12);
  --accent: #F4845F;
  --on-accent: #3B2A22;
  --focus: #3B2A22;         /* coral on cream is only 2.3:1, so the light-mode focus ring is cocoa */
  --shadow-sm: 0 2px 6px rgba(59, 42, 34, 0.06), 0 8px 24px rgba(59, 42, 34, 0.08);
  --shadow-lg: 0 10px 30px rgba(59, 42, 34, 0.12), 0 30px 60px rgba(59, 42, 34, 0.12);
  --header-bg: rgba(255, 241, 224, 0.78);
  --teaser-bg: #3B2A22;
  --teaser-text: #FFF1E0;
  --teaser-muted: #D9C6B6;
  --bezel: #2A1E18;
  --steam: rgba(59, 42, 34, 0.32);
  --dash: rgba(59, 42, 34, 0.28);
  --active-bg: rgba(244, 132, 95, 0.2);
  --header-h: 64px;

  --radius-lg: 32px;
  --radius: 24px;
  --gutter: 16px;
  --maxw: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17110E;
    --bg-soft: #1E1713;
    --surface: #1E1713;
    --text: #FFF1E0;
    --muted: #A8968A;
    --line: rgba(255, 241, 224, 0.1);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.35), 0 30px 60px rgba(0, 0, 0, 0.35);
    --header-bg: rgba(23, 17, 14, 0.78);
    --focus: #F4845F;       /* 7.4:1 on the dark background */
    --teaser-bg: #241B16;
    --teaser-text: #FFF1E0;
    --teaser-muted: #A8968A;
    --bezel: #0D0907;
    --steam: rgba(255, 241, 224, 0.4);
    --dash: rgba(255, 241, 224, 0.28);
    --active-bg: rgba(244, 132, 95, 0.18);
  }
}

@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px); /* in-page anchors land below the sticky header */
}
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: currentColor; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 12px;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* While a non-English language is being applied, hide English placeholder copy (set by i18n.js). */
.i18n-pending [data-i18n] { visibility: hidden; }
/* Redirecting to the other language's URL: avoid a flash of the wrong language. */
.lang-redirect body { visibility: hidden; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: var(--header-h); position: relative; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; flex: none;
  text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em;
}
.brand picture, .brand img { width: 22px; height: auto; }
.logo-mark { display: block; }
.header-end { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }

/* section links */
.site-nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
.site-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px;
  font-size: 15px; font-weight: 650; text-decoration: none; color: var(--muted); white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.is-active,
.site-nav a[aria-current="page"] { color: var(--text); background: var(--active-bg); }

.lang-seg {
  display: inline-flex; padding: 0; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.lang-seg a {
  display: inline-grid; place-items: center;
  min-width: 50px; min-height: 44px; padding: 0 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); text-decoration: none;
}
.lang-seg a[aria-current="true"] { background: var(--accent); color: var(--on-accent); }
.lang-seg a:hover:not([aria-current="true"]) { color: var(--text); }

.nav-toggle {
  display: none; place-items: center; width: 44px; height: 44px; padding: 0; flex: none;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm);
  cursor: pointer; color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; overflow: visible; }
.nav-toggle .bar { transform-box: fill-box; transform-origin: center; transition: transform 0.25s ease, opacity 0.2s ease; }
.menu-open .nav-toggle .b1 { transform: translateY(5px) rotate(45deg); }
.menu-open .nav-toggle .b2 { opacity: 0; }
.menu-open .nav-toggle .b3 { transform: translateY(-5px) rotate(-45deg); }

/* Tablets: the full row still fits, a bit tighter (the logo stays, the wordmark hides).
   860.02px, not 861px, so fractional widths (zoom, odd DPR) never fall between the two rules. */
@media (min-width: 860.02px) and (max-width: 940px) {
  .site-header .wrap { gap: 8px; }
  .site-nav a { padding: 0 9px; font-size: 14px; }
  .brand > span { display: none; }
}

/* Phones and narrow windows: a menu button with a dropdown panel (site.js keeps the
   same breakpoint). 860px leaves room for the six longer Ukrainian labels in the row above. */
@media (max-width: 860px) {
  .site-nav { flex: 0 0 auto; }
  .js .nav-toggle { display: grid; }
  .js .site-nav {
    position: absolute; top: calc(100% + 8px); left: var(--gutter); right: var(--gutter);
    padding: 8px; border-radius: 24px;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
    /* short landscape screens: the panel scrolls instead of running off the bottom */
    max-height: calc(100vh - var(--header-h) - 16px);
    max-height: calc(100dvh - var(--header-h) - 16px);
    overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .js .menu-open .site-nav {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
  }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .js .site-nav a { display: flex; min-height: 52px; padding: 0 18px; border-radius: 16px; font-size: 17px; color: var(--text); }
  .js .site-nav a:hover { background: var(--bg-soft); }
  .js .site-nav a.is-active,
  .js .site-nav a[aria-current="page"] { background: var(--active-bg); }
  /* Without JS the links wrap onto a second header row instead. */
  html:not(.js) .site-header .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 6px; }
  html:not(.js) .site-nav { order: 3; flex-basis: 100%; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 359px) {
  .brand > span { display: none; }
}

/* ---------- common section bits ---------- */
section { padding: 56px 0; }
@media (min-width: 900px) { section { padding: 88px 0; } }
.section-title {
  font-size: clamp(30px, 5vw, 48px); font-weight: 800; text-align: center;
  margin: 0 auto 36px; max-width: 18ch; text-wrap: balance;
}
@media (min-width: 900px) { .section-title { margin-bottom: 56px; } }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none;
}
.pill-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px rgba(244, 132, 95, 0.35); }
.pill svg { width: 20px; height: 20px; flex: none; }
a.pill-accent:hover { filter: brightness(1.05); }

/* ---------- hero ---------- */
.hero { padding: 24px 0 40px; position: relative; }
.hero .wrap {
  display: grid; gap: 24px; align-items: center;
  grid-template-columns: 1fr;
}
.hero-copy { text-align: center; position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(76px, 20vw, 168px); font-weight: 900; letter-spacing: -0.05em; line-height: 0.95;
}
.hero h1 .h1-name { display: block; }
.hero h1 .tagline {
  display: block; margin: 14px auto 28px; max-width: 15ch;
  font-size: clamp(22px, 4.6vw, 34px); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em;
  text-wrap: balance;
}

/* store buttons: a disabled "Coming soon" state until assets/config.js has a URL */
.store-row {
  display: grid; gap: 12px; justify-content: center;
  grid-template-columns: minmax(0, 300px);
}
@media (min-width: 560px) {
  .store-row { display: flex; flex-wrap: wrap; }
  .store-btn { flex: 1 1 0; min-width: 250px; max-width: 320px; }
}
.store-btn {
  display: flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 8px 20px 8px 14px; border-radius: 18px;
  text-decoration: none; text-align: left;
  background: var(--surface); color: var(--text);
  border: 2px dashed var(--dash);
  cursor: default;
}
.store-ic {
  width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: var(--active-bg); color: var(--text);
}
.store-ic svg { width: 22px; height: 22px; }
.store-text { display: grid; gap: 2px; line-height: 1.15; }
.store-label { font-weight: 750; font-size: 16px; text-wrap: balance; }
.store-soon {
  justify-self: start; padding: 2px 8px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.store-btn.is-live {
  cursor: pointer; border: 2px solid transparent;
  background: var(--text); color: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.store-btn.is-live .store-soon { display: none; }
.store-btn.is-live .store-ic { background: var(--accent); color: var(--on-accent); }
.store-btn.is-live:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

@media (min-width: 900px) {
  .hero { padding: 40px 0 72px; }
  .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 40px; min-height: min(78vh, 720px); }
  .hero-copy { text-align: left; }
  .hero h1 .tagline { margin-left: 0; }
  .store-row { justify-content: flex-start; }
}

/* card stack visual */
.stage {
  position: relative; display: grid; place-items: center;
  width: 100%; max-width: 460px; margin: 0 auto; aspect-ratio: 1 / 1.05;
}
.stage::before {
  content: ""; position: absolute; inset: 6% 4%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(244, 132, 95, 0.35), rgba(246, 185, 74, 0.18) 55%, transparent 75%);
  filter: blur(8px);
}
.stack { position: relative; width: 62%; aspect-ratio: 3 / 4; }
.stack .card {
  position: absolute; inset: 0; border-radius: 28px; box-shadow: var(--shadow-lg);
}
.card.c3 { background: linear-gradient(150deg, #F4845F, #F25C54); transform: rotate(11deg) translate(6%, 2%); }
.card.c2 { background: linear-gradient(160deg, #F6B94A, #F4845F); transform: rotate(-9deg) translate(-6%, 1%); }
.card.c1 {
  background: #FFFAF3; display: grid; place-items: center; overflow: hidden;
  transform-origin: 50% 110%;
  animation: sway 6s ease-in-out infinite;
  border: 1px solid rgba(59, 42, 34, 0.06);
}
.card.c1 .card-logo { width: 46%; height: auto; }
.stamp {
  position: absolute; top: 9%; padding: 6px 12px; border-radius: 12px; border: 3px solid currentColor;
  font: 800 13px/1 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0; display: grid; place-items: center;
}
.stamp svg { width: 26px; height: 26px; }
.stamp-delete { right: 9%; color: var(--c-delete); transform: rotate(12deg); animation: stamp-l 6s ease-in-out infinite; }
.stamp-keep { left: 9%; color: #4E9B40; transform: rotate(-12deg); animation: stamp-r 6s ease-in-out infinite; }

@keyframes sway {
  0%, 50%, 100% { transform: translateX(0) rotate(0); }
  25% { transform: translateX(-14%) rotate(-9deg); }
  75% { transform: translateX(14%) rotate(9deg); }
}
@keyframes stamp-l { 0%, 8%, 42%, 100% { opacity: 0; } 22%, 28% { opacity: 1; } }
@keyframes stamp-r { 0%, 58%, 92%, 100% { opacity: 0; } 72%, 78% { opacity: 1; } }

.badge {
  position: absolute; z-index: 3;
  width: clamp(44px, 12vw, 60px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 8px 20px rgba(59, 42, 34, 0.2);
  animation: fly 6s ease-in-out infinite;
}
.badge svg { width: 46%; height: 46%; }
.badge-delete { background: var(--c-delete); left: 2%; top: 38%; --dx: -18px; --dy: -8px; animation-delay: 0.6s; }
.badge-keep { background: var(--c-keep); right: 2%; top: 30%; --dx: 18px; --dy: -8px; animation-delay: 3.6s; }
.badge-fav { background: var(--c-fav); right: 14%; top: 2%; --dx: 10px; --dy: -18px; animation-delay: 2.1s; }
.badge-album { background: var(--c-album); left: 12%; bottom: 3%; --dx: -10px; --dy: 18px; animation-delay: 5.1s; }
@keyframes fly {
  0%, 40%, 100% { transform: translate(0, 0) scale(1) rotate(0); }
  14% { transform: translate(var(--dx), var(--dy)) scale(1.18) rotate(-8deg); }
  26% { transform: translate(calc(var(--dx) * 0.4), calc(var(--dy) * 0.4)) scale(1.02) rotate(4deg); }
}
.spark { position: absolute; width: 10px; height: 10px; border-radius: 50%; opacity: 0.8; }
.spark.s1 { background: var(--c-fav); left: 24%; top: 10%; }
.spark.s2 { background: var(--c-keep); right: 8%; bottom: 22%; width: 14px; height: 14px; }
.spark.s3 { background: var(--c-album); left: 6%; top: 18%; width: 8px; height: 8px; }
.spark.s4 { background: var(--coral); right: 30%; bottom: 4%; }

/* ---------- features ---------- */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.tile {
  background: var(--surface); border-radius: var(--radius); padding: 22px 18px 24px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
@media (min-width: 600px) { .tile { padding: 28px 26px 30px; border-radius: var(--radius-lg); } }
.tile-icon {
  width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--bg-soft);
  background: color-mix(in srgb, var(--tint) 24%, transparent);
  color: var(--text);
}
@media (min-width: 600px) { .tile-icon { width: 88px; height: 88px; border-radius: 26px; } }
.tile-icon svg { width: 60%; height: 60%; }
.tile-icon .fillc { fill: var(--tint); }
.tile:nth-child(1) { --tint: var(--c-album); }
.tile:nth-child(2) { --tint: var(--c-keep); }
.tile:nth-child(3) { --tint: var(--coral); }
.tile:nth-child(4) { --tint: var(--c-fav); }
.tile h3 { font-size: clamp(18px, 2.2vw, 22px); font-weight: 800; }
.tile p { color: var(--muted); font-size: 15px; line-height: 1.35; }

/* ---------- how it works ---------- */
.how-card { background: var(--bg-soft); border-radius: 40px; padding: 48px 12px 40px; border: 1px solid var(--line); }
@media (min-width: 600px) { .how-card { padding: 72px 32px 56px; } }
.how-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: ". up ." "left card right" ". down .";
  align-items: center; justify-items: center; gap: 10px;
  max-width: 640px; margin: 0 auto;
}
.dir { display: flex; align-items: center; gap: 8px; }
.dir-up { grid-area: up; flex-direction: column; }
.dir-down { grid-area: down; flex-direction: column-reverse; }
.dir-left { grid-area: left; flex-direction: column-reverse; } /* arrow above label, mirrors .dir-right on phones */
.dir-right { grid-area: right; flex-direction: column; }
@media (min-width: 600px) {
  .how-grid { gap: 18px; }
  .dir-left { flex-direction: row-reverse; justify-self: end; }
  .dir-right { flex-direction: row; justify-self: start; }
}
.arrow { width: 44px; height: 44px; color: var(--c); flex: none; }
@media (min-width: 600px) { .arrow { width: 64px; height: 64px; } }
.dir-left .arrow { transform: rotate(180deg); }
.dir-up .arrow { transform: rotate(-90deg); }
.dir-down .arrow { transform: rotate(90deg); }
.arrow path { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
.dir-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px 8px 8px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-sm);
  font-weight: 700; font-size: 15px; white-space: nowrap;
}
.dot-ic { width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; flex: none; }
.dot-ic svg { width: 15px; height: 15px; }
@media (max-width: 599px) {
  .dir-left .dir-label, .dir-right .dir-label { flex-direction: column; padding: 10px 8px; border-radius: 20px; gap: 4px; font-size: 14px; }
}
@media (max-width: 379px) {
  .how-grid { gap: 6px; }
  .mini-card { width: 92px; }
  .dir-left .dir-label, .dir-right .dir-label { font-size: 13px; padding: 9px 7px; }
}
.dir-delete { --c: var(--c-delete); }
.dir-keep { --c: var(--c-keep); }
.dir-fav { --c: var(--c-fav); }
.dir-album { --c: var(--c-album); }

.mini-card {
  grid-area: card; width: 104px; aspect-ratio: 3 / 4; border-radius: 22px;
  background: #FFFAF3; box-shadow: var(--shadow-lg); display: grid; place-items: center; position: relative;
  transform: rotate(-3deg);
}
.mini-card::after {
  content: ""; position: absolute; inset: -10px; border-radius: 28px; border: 2px dashed var(--line); z-index: -1; transform: rotate(6deg);
}
.mini-card img { width: 44%; height: auto; }
@media (min-width: 600px) { .mini-card { width: 160px; border-radius: 28px; } }

.how-note {
  margin: 36px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px;
  color: var(--muted); font-size: 15px; text-align: center;
}
.how-note svg { width: 22px; height: 22px; flex: none; color: var(--accent); }

/* customizable swipes: one direction cycles through the actions */
.custom {
  margin: 44px auto 0; padding-top: 36px; max-width: 720px;
  border-top: 2px dashed var(--line);
  display: grid; justify-items: center; gap: 22px; text-align: center;
}
.custom-title { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; text-wrap: balance; }
.custom-demo {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
@media (min-width: 520px) { .custom-demo { flex-direction: row; gap: 12px; } }
.cd-dir {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px;
  padding: 6px 16px 6px 6px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  font-weight: 700; font-size: 15px; white-space: nowrap;
}
.cd-arrow {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--text); color: var(--bg);
}
.cd-arrow svg { width: 20px; height: 20px; animation: cd-nudge 2s ease-in-out infinite; }
@keyframes cd-nudge { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(2px); } }
.cd-gear { width: 28px; height: 28px; color: var(--accent); transform: rotate(90deg); flex: none; }
@media (min-width: 520px) { .cd-gear { transform: none; } }
.cd-gear svg { width: 100%; height: 100%; }
.cd-actions { display: grid; justify-items: center; }
@media (min-width: 520px) { .cd-actions { justify-items: start; } }
.cd-act {
  grid-area: 1 / 1;
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px;
  padding: 6px 16px 6px 6px; border-radius: 999px;
  background: var(--surface); border: 2px solid var(--c);
  box-shadow: var(--shadow-sm);
  font-weight: 750; font-size: 15px; white-space: nowrap;
  opacity: 0;
  animation: cd-cycle 8s ease-in-out infinite;
}
.cd-act .dot-ic { width: 32px; height: 32px; }
.cd-act .dot-ic svg { width: 17px; height: 17px; }
.cd-act.a1 { animation-delay: 0s; }
.cd-act.a2 { animation-delay: -6s; opacity: 1; } /* the static state under reduced motion */
.cd-act.a3 { animation-delay: -4s; }
.cd-act.a4 { animation-delay: -2s; }
@keyframes cd-cycle {
  0% { opacity: 0; transform: translateY(10px) scale(0.96); }
  4%, 21% { opacity: 1; transform: none; }
  25%, 100% { opacity: 0; transform: translateY(-10px) scale(0.96); }
}
.act-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.act-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 650; font-size: 15px;
}
.custom-sub { color: var(--muted); font-size: 15px; margin-top: -6px; }

/* ---------- screenshots ---------- */
.shots {
  display: flex; gap: 20px; list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 12px var(--gutter) 28px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.shots li { flex: 0 0 auto; scroll-snap-align: center; }
.phone {
  width: clamp(210px, 62vw, 250px); padding: 9px; border-radius: 46px;
  background: var(--bezel); box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  position: relative;
}
.shots li:nth-child(even) .phone { transform: translateY(24px); }
.screen {
  position: relative; overflow: hidden; border-radius: 37px;
  aspect-ratio: 1206 / 2622; /* iPhone 17 screenshot ratio */
  background: var(--peach);
}
.screen:not(:has(.shot.is-loaded))::before { /* dynamic island on placeholders; real screenshots include their own */
  content: ""; position: absolute; z-index: 3; top: 10px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 22px; border-radius: 999px; background: #000;
}
.ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 24px; text-align: center; color: #3B2A22;
}
.shots li:nth-child(1) .ph { background: linear-gradient(170deg, #FFF1E0 0%, #FFE8D1 45%, #F4845F 130%); }
.shots li:nth-child(2) .ph { background: linear-gradient(170deg, #FFF1E0 0%, #FFE8D1 45%, #8CCB7E 130%); }
.shots li:nth-child(3) .ph { background: linear-gradient(170deg, #FFF1E0 0%, #FFE8D1 45%, #F48FB1 130%); }
.shots li:nth-child(4) .ph { background: linear-gradient(170deg, #FFF1E0 0%, #FFE8D1 45%, #F6B94A 130%); }
.ph-card {
  width: 70%; aspect-ratio: 3 / 4; border-radius: 22px; background: #FFFAF3;
  box-shadow: 0 10px 30px rgba(59, 42, 34, 0.15); display: grid; place-items: center;
}
.ph-card img { width: 40%; height: auto; }
.ph-text { font-size: 13px; font-weight: 600; color: #3B2A22; opacity: 0.8; }
.screen .shot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2;
  transition: opacity 0.4s ease;
  color: transparent; /* no-JS: hide the alt text of a missing screenshot over the placeholder */
}
.js .screen .shot { opacity: 0; }
.js .screen .shot.is-loaded { opacity: 1; }
.screen .shot.is-missing { display: none; }
.screen .shot.is-loaded + .ph { visibility: hidden; }
.shot-cap {
  width: clamp(210px, 62vw, 250px); margin: 18px auto 0; text-align: center;
  font-size: 15px; font-weight: 650; line-height: 1.35; text-wrap: balance;
}
.shot-cap:empty { display: none; }
.shots li:nth-child(even) .shot-cap { transform: translateY(24px); }
/* Six phones fit in one row on wide screens; this must come after the base frame sizes. */
@media (min-width: 1100px) {
  .shots { justify-content: center; overflow-x: visible; gap: 16px; }
  .phone, .shot-cap { width: 164px; }
  .phone { padding: 7px; border-radius: 34px; }
  .screen { border-radius: 28px; }
}

/* ---------- highlights ---------- */
.highlights { padding-top: 32px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0 auto; max-width: 860px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-weight: 650; font-size: 15px;
}
.chip-ic {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--bg-soft); background: color-mix(in srgb, var(--c) 26%, transparent);
}
.chip-ic svg { width: 18px; height: 18px; }
.chip:nth-child(1) { --c: var(--c-delete); }
.chip:nth-child(2) { --c: var(--c-album); }
.chip:nth-child(3) { --c: var(--coral); }
.chip:nth-child(4) { --c: var(--c-keep); }
.chip:nth-child(5) { --c: var(--c-fav); }
.chip:nth-child(6) { --c: var(--c-album); }

/* ---------- support / donate ---------- */
.support { padding-top: 24px; padding-bottom: 0; }
@media (min-width: 900px) { .support { padding-top: 40px; } }
.support-card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 40px;
  padding: 40px 20px; position: relative; overflow: hidden;
  display: grid; gap: 24px; justify-items: center; text-align: center;
}
@media (min-width: 800px) {
  .support-card { grid-template-columns: 1fr auto; align-items: center; justify-items: start; text-align: left; padding: 56px 64px; gap: 48px; }
  .cup-visual { order: 2; }
}
.cup-visual { width: 150px; height: 150px; overflow: visible; }
@media (min-width: 800px) { .cup-visual { width: 200px; height: 200px; } }
.cup-visual .steam { stroke: var(--steam); }
.cup-visual .steam path { animation: steam 3.2s ease-in-out infinite; }
.cup-visual .steam .st2 { animation-delay: -1.1s; }
.cup-visual .steam .st3 { animation-delay: -2.2s; }
@keyframes steam {
  0% { opacity: 0; transform: translateY(8px); }
  35%, 60% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10px); }
}
.cup-visual .cup-heart { transform-box: fill-box; transform-origin: center; animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 0%, 30%, 60%, 100% { transform: scale(1); } 15%, 45% { transform: scale(1.12); } }
.support-body { display: grid; gap: 16px; justify-items: inherit; max-width: 560px; }
.support-title { font-size: clamp(28px, 4.6vw, 42px); font-weight: 800; text-wrap: balance; }
.support-text { font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.donate-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 6px 0 0; padding: 0; justify-content: inherit; }
@media (max-width: 799px) { .donate-list { justify-content: center; } }
.donate-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px;
  padding: 0 20px 0 14px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.donate-list li:first-child .donate-btn { background: var(--accent); color: var(--on-accent); border-color: transparent; box-shadow: 0 8px 24px rgba(244, 132, 95, 0.3); }
a.donate-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.donate-ic { width: 22px; height: 22px; flex: none; display: grid; place-items: center; }
.donate-ic svg { width: 100%; height: 100%; }
.donate-soon { display: grid; gap: 8px; justify-items: inherit; margin-top: 6px; }
.donate-btn.is-soon { cursor: default; box-shadow: none; border: 2px dashed var(--dash); color: var(--muted); }
.donate-btn.is-soon .donate-ic { color: var(--accent); }
.donate-note { color: var(--muted); font-size: 14px; }
.support-thanks { font-weight: 700; color: var(--muted); font-size: 15px; }

/* ---------- privacy teaser ---------- */
.teaser-card {
  background: var(--teaser-bg); color: var(--teaser-text);
  --focus: #F4845F;         /* cocoa ring would vanish on the cocoa card */
  border-radius: 40px; padding: 40px 24px; overflow: hidden; position: relative;
  display: grid; gap: 28px; align-items: center; justify-items: center; text-align: center;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
@media (min-width: 800px) {
  .teaser-card { grid-template-columns: auto 1fr; justify-items: start; text-align: left; padding: 56px 64px; gap: 56px; }
}
.teaser-card::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -160px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(244, 132, 95, 0.28), transparent);
  pointer-events: none;
}
.lock-visual { width: 150px; height: 150px; position: relative; z-index: 1; }
@media (min-width: 800px) { .lock-visual { width: 190px; height: 190px; } }
.lock-visual .shackle { animation: lockbob 4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes lockbob { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-6px); } 90% { transform: translateY(0); } }
.teaser-body { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: inherit; }
.teaser-title { font-size: clamp(22px, 3.2vw, 32px); font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; max-width: 26ch; text-wrap: balance; }
.teaser-body .pill { justify-self: inherit; }
.pill svg.arr { transition: transform 0.2s ease; }
.pill:hover svg.arr { transform: translateX(3px); }

/* ---------- footer ---------- */
.site-footer { padding: 48px 0 40px; margin-top: 24px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: grid; gap: 22px; justify-items: center; text-align: center; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.foot-brand picture, .foot-brand img { width: 18px; height: auto; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; list-style: none; padding: 0; margin: 0; }
.foot-links a, .link-btn {
  display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--text);
}
.foot-links a:hover, .link-btn:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.link-btn { border: 0; background: none; padding: 0; cursor: pointer; gap: 6px; font-size: 17px; }
.link-btn svg { width: 18px; height: 18px; color: var(--accent); }
.rights { color: var(--muted); font-size: 14px; }
@media (min-width: 900px) {
  .site-footer .wrap { grid-template-columns: auto 1fr auto; justify-items: stretch; text-align: left; align-items: center; }
  .foot-links { justify-content: center; }
  .rights { grid-column: 1 / -1; text-align: center; }
}

/* ---------- legal pages ---------- */
.legal-main { padding: 28px 0 56px; }
.legal { max-width: 720px; margin: 0 auto; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-weight: 700; font-size: 15px; text-decoration: none; margin-bottom: 28px;
}
.back-link svg { width: 20px; height: 20px; color: var(--accent); }
.legal-doc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 20px; box-shadow: var(--shadow-sm);
  overflow-wrap: break-word;
}
@media (min-width: 600px) { .legal-doc { padding: 48px 52px; } }
.legal-doc h1 { font-size: clamp(30px, 6vw, 44px); font-weight: 800; margin-bottom: 12px; }
.legal-doc h1 + p { color: var(--muted); font-size: 15px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.legal-doc h2 { font-size: 21px; font-weight: 800; margin: 36px 0 12px; letter-spacing: -0.01em; }
.legal-doc p, .legal-doc li { font-size: 16.5px; line-height: 1.65; }
.legal-doc p + p { margin-top: 12px; }
.legal-doc ul { padding-left: 1.3em; margin: 12px 0; }
.legal-doc li { margin: 8px 0; }
.legal-doc li::marker { color: var(--accent); }
.legal-doc a { font-weight: 600; }
.legal-doc .ph-field {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em;
  background: var(--bg-soft); border: 1px dashed var(--accent); border-radius: 6px; padding: 1px 6px;
}
.legal-doc .summary-box { background: var(--bg-soft); border-radius: 20px; padding: 18px 20px; border-left: 4px solid var(--accent); }

html[lang="uk"] [data-lang="en"],
html[lang="en"] [data-lang="uk"] { display: none; }

/* ---------- support / help page ---------- */
.help { max-width: 760px; }
.faq, .help-legal { padding: 0; }
.help-hero { text-align: center; display: grid; justify-items: center; gap: 14px; margin-bottom: 28px; }
.help-visual { width: 104px; height: 104px; }
@media (min-width: 600px) { .help-visual { width: 128px; height: 128px; } }
.help-hero h1 { font-size: clamp(32px, 6.4vw, 48px); font-weight: 800; text-wrap: balance; }
.help-intro { color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 52ch; text-wrap: pretty; }
.help-h2 { font-size: clamp(24px, 4vw, 30px); font-weight: 800; margin: 0 0 18px; }

.contact-card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 40px;
  padding: 32px 20px; display: grid; gap: 20px; justify-items: center; text-align: center;
  margin-bottom: 48px;
}
@media (min-width: 700px) {
  .contact-card { grid-template-columns: auto 1fr; justify-items: start; text-align: left; padding: 44px 48px; gap: 40px; align-items: center; }
}
.mail-visual { width: 120px; height: 120px; overflow: visible; }
@media (min-width: 700px) { .mail-visual { width: 160px; height: 160px; } }
.mail-visual .mail-heart { transform-box: fill-box; transform-origin: center; animation: beat 2.4s ease-in-out infinite; }
.contact-body { display: grid; gap: 14px; justify-items: inherit; width: 100%; min-width: 0; }
.contact-title { font-size: clamp(26px, 4.4vw, 36px); font-weight: 800; }
.contact-text { font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.contact-body .pill { margin-top: 4px; overflow-wrap: anywhere; }
.contact-notes { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; justify-items: inherit; }
.contact-notes li { max-width: 100%; display: inline-flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 15px; line-height: 1.4; text-align: left; }
.contact-notes svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--accent); }
.contact-notes span { text-wrap: pretty; }

.faq { margin-bottom: 48px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); margin-bottom: 10px; overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.faq-item[open] { box-shadow: var(--shadow-lg); }
.faq-item summary {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px 12px 12px;
  cursor: pointer; list-style: none; border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
/* .faq-item hides its overflow, so the usual outset focus ring would be cut off: draw it inside. */
.faq-item summary:focus-visible { outline-offset: -3px; }
.faq-item summary:hover .faq-q { text-decoration: underline; text-decoration-color: var(--accent); }
.faq-q { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: 16.5px; line-height: 1.35; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.faq-ic {
  width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: var(--bg-soft); background: color-mix(in srgb, var(--c, var(--coral)) 26%, transparent);
  color: var(--text);
}
.faq-ic svg { width: 21px; height: 21px; }
.faq-chev { width: 22px; height: 22px; flex: none; color: var(--accent); transition: transform 0.25s ease; }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-a { padding: 0 20px 20px 66px; }
@media (max-width: 479px) { .faq-a { padding: 0 18px 18px; } }
.faq-a p, .faq-a li { font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.faq-a p + p { margin-top: 10px; }
.faq-a a { font-weight: 600; }
.faq-a ul { padding-left: 1.3em; margin: 10px 0 0; }
.faq-a li { margin: 4px 0; }
.faq-a li::marker { color: var(--accent); }
.faq-item:nth-of-type(4n+1) { --c: var(--coral); }
.faq-item:nth-of-type(4n+2) { --c: var(--c-delete); }
.faq-item:nth-of-type(4n+3) { --c: var(--c-keep); }
.faq-item:nth-of-type(4n+4) { --c: var(--c-album); }
.faq-item#favorites { --c: var(--c-fav); }
.bug-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 14px;
  padding: 0 20px 0 16px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bug-btn svg { width: 19px; height: 19px; color: var(--accent); }
.bug-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.legal-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .legal-links { grid-template-columns: 1fr 1fr; gap: 14px; } }
.legal-link {
  display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px 18px 16px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.legal-links li:nth-child(1) .faq-ic { --c: var(--c-keep); }
.legal-links li:nth-child(2) .faq-ic { --c: var(--c-album); }
.legal-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.legal-link-body { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.legal-link-title { font-weight: 800; font-size: 16.5px; }
.legal-link-sub { color: var(--muted); font-size: 14px; line-height: 1.35; }
.legal-link .arr { width: 20px; height: 20px; flex: none; color: var(--accent); transition: transform 0.2s ease; }
.legal-link:hover .arr { transform: translateX(3px); }

/* ---------- 404 ---------- */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.nf .stack { width: 150px; margin: 0 auto 36px; }
.nf h1 { font-size: clamp(34px, 7vw, 56px); font-weight: 800; margin-bottom: 12px; }
.nf p { color: var(--muted); margin-bottom: 28px; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card.c1 { transform: rotate(-4deg); }
  .cd-act { opacity: 0; }
  .cd-act.a2 { opacity: 1; }
  .js .site-nav { transform: none !important; }
}
