/* CURL landing — собственные стили в духе страницы продукта App Store.
   Без веб-шрифтов и без инлайновых style="" (CSP: style-src 'self').
   Логические свойства (inline/block) — чтобы RTL-локали заработали без правок. */

:root {
  --bg: #fff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --link: #06c;
  --accent: #0071e3;
  --accent-text: #fff;
  --card: #f5f5f7;
  --divider: #d2d2d7;
  --hairline: rgba(0, 0, 0, .1);
  --content: 87.5%;
  --shot-w: 230px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --link: #2997ff;
    --card: #1c1c1e;
    --divider: #38383a;
    --hairline: rgba(255, 255, 255, .16);
  }
}

@media (min-width: 735px) { :root { --content: 692px; } }
@media (min-width: 1069px) { :root { --content: 980px; } }

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

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

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.47 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }

.page, .footer {
  width: var(--content);
  margin-inline: auto;
}

.page { padding-block-start: max(24px, env(safe-area-inset-top)); }

.link { color: var(--link); text-decoration: none; }
.link:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.dot { margin-inline: .25em; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent);
  outline-offset: 2px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- hero ---------- */

.hero {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-block-end: 24px;
}

.hero__icon {
  flex: none;
  width: 118px;
  border-radius: 22.5%;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: #fff;
}

.hero__icon img { width: 100%; }

.hero__body { min-width: 0; flex: 1; }

.hero__title {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-block;
  vertical-align: .2em;
  margin-inline-start: 4px;
  padding: 0 4px;
  font-size: 11px;
  line-height: 15px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  border: 1px solid var(--muted);
  border-radius: 4px;
}

.hero__subtitle { margin-block-start: 4px; font-size: 15px; color: var(--muted); }
.hero__note { margin-block-start: 8px; font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.hero__price { margin-block-start: 2px; font-size: 14px; color: var(--muted); }

.get {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  height: 28px;
  margin-block-start: 14px;
  padding-inline: 16px;
  border-radius: 28px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  transition: filter .2s ease;
}

/* Визуально пилюля 28px, зона нажатия — 44px. */
.get::after {
  content: "";
  position: absolute;
  inset: -8px -6px;
}

.get:hover { filter: brightness(1.08); }
.get:active { filter: brightness(.92); }

@media (min-width: 735px) {
  .hero { gap: 28px; padding-block-end: 32px; }
  .hero__icon { width: 217px; }
  .hero__title { font-size: 28px; }
  .hero__subtitle { font-size: 19px; }
  .hero__subtitle { margin-block-start: 6px; }
  .hero__note { margin-block-start: 14px; }
  .get { margin-block-start: 20px; }
}

/* ---------- sections ---------- */

.section { padding-block: 20px 28px; }
.section--bordered { border-block-start: 1px solid var(--divider); }

.section__title {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
  margin-block-end: 14px;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-block-end: 14px;
}

.section__head .section__title { margin-block-end: 0; }
.section__aside { font-size: 14px; color: var(--muted); }

@media (min-width: 735px) {
  .section { padding-block: 24px 36px; }
  .section__title { font-size: 22px; }
}

/* ---------- screenshots ---------- */

.shots {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-block-end: 12px;
}

/* На телефоне лента идёт от края до края экрана, контент «подглядывает» справа. */
@media (max-width: 734px) {
  .shots {
    margin-inline: calc(50% - 50vw);
    padding-inline: calc(50vw - 50%);
    scroll-padding-inline: calc(50vw - 50%);
    scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
}

.shots__list {
  display: flex;
  gap: 16px;
  width: max-content;
}

.shots__item {
  flex: none;
  width: var(--shot-w);
  scroll-snap-align: start;
}

.shots__item a { display: block; }

.shots__media {
  width: 100%;
  aspect-ratio: 1290 / 2796;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--hairline);
  background: var(--card);
}

/* ---------- clamp («ещё») ---------- */

.prose {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.prose a { color: var(--link); text-decoration: none; }
.prose a:hover { text-decoration: underline; }

.clamp { position: relative; }
.clamp__more { display: none; }

/* Обрезаем только при работающем JS: без него текст виден целиком. */
.js .clamp:not(.is-open) .clamp__text {
  max-height: calc(1.47em * 5);
  overflow: hidden;
}

.js .clamp:not(.is-open) .clamp__more {
  display: block;
  position: absolute;
  inset-block-end: 0;
  inset-inline-end: 0;
  margin: 0;
  padding: 0;
  padding-inline-start: 56px;
  border: 0;
  font: inherit;
  color: var(--link);
  cursor: pointer;
  background: linear-gradient(to right, transparent, var(--bg) 44px);
}

.js[dir="rtl"] .clamp:not(.is-open) .clamp__more {
  background: linear-gradient(to left, transparent, var(--bg) 44px);
}

/* ---------- PRO ---------- */

.pro { margin-block-end: 10px; }

.pro li {
  position: relative;
  padding-inline-start: 26px;
  margin-block-end: 6px;
}

.pro li::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  inset-block-start: .42em;
  width: 11px;
  height: 6px;
  border-inline-start: 2px solid var(--accent);
  border-block-end: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- privacy cards ---------- */

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

.card {
  padding: 24px 20px 20px;
  border-radius: 16px;
  background: var(--card);
  text-align: center;
}

.card__icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  color: var(--link);
}

.card__title { font-size: 17px; line-height: 1.25; font-weight: 600; }
.card__desc { margin-block: 6px 14px; font-size: 13px; line-height: 1.4; color: var(--muted); }

.card__types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px 12px;
  text-align: start;
  font-size: 14px;
}

.card__types li { display: flex; align-items: center; gap: 8px; }
.card__types svg { flex: none; width: 20px; height: 20px; }

/* ---------- information ---------- */

.info__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
  border-block-end: 1px solid var(--divider);
  font-size: 14px;
}

.info dt { flex: none; color: var(--muted); }
.info dd { text-align: end; }

@media (min-width: 735px) {
  .info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 24px;
  }
  .info__row {
    display: block;
    padding: 0;
    border: 0;
  }
  .info dd { text-align: start; font-size: 15px; }
}

.linklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-block-start: 22px;
}

/* ---------- footer ---------- */

.footer {
  padding-block: 18px max(28px, env(safe-area-inset-bottom));
  border-block-start: 1px solid var(--divider);
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.footer__langs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-block-end: 10px;
  font-size: 13px;
}

.footer__langs [aria-current="true"] { color: var(--text); font-weight: 600; text-decoration: none; cursor: default; }
.footer__note + .footer__note { margin-block-start: 4px; }

/* ---------- 404 ---------- */

.notfound {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.notfound h1 { font-size: 28px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
