/* 2026-11-29: Wearly painted icons, the same artwork as the app (expo/assets/images/painted-icons).
   The source files are 144–288 px, so every icon is shown at no more than half its pixel width
   to stay sharp on retina screens (img[width] below). Nothing here animates a filter. */

/* ---------- homepage: intro sentence, a sticker before each thing Wearly reads ---------- */
.textsec .k-ico { display: inline-block; width: 1.18em; height: 1.18em; max-width: 72px; max-height: 72px; margin: 0 .1em 0 .04em; vertical-align: -.24em; object-fit: contain; rotate: -5deg; }
.textsec .k:nth-of-type(2) .k-ico { rotate: 4deg; }

/* ---------- homepage: how it works ---------- */
.step-ico { display: block; width: clamp(60px, 5.6vw, 72px); height: auto; margin: 0 0 18px -4px; rotate: -4deg; transition: scale .6s cubic-bezier(.2, 1.5, .35, 1), rotate .6s cubic-bezier(.2, 1.5, .35, 1); }
.step:nth-child(2) .step-ico { rotate: 3deg; }
.step.on .step-ico { scale: 1.06; rotate: 0deg; }

/* ---------- homepage demo: day picker uses the app's outfit figures ---------- */
.seg button .seg-art { width: 30px; height: 30px; padding: 2px; margin: 0 0 0 -8px; border-radius: 50%; background: rgba(255, 255, 255, .78); object-fit: contain; flex: none; transition: scale .4s cubic-bezier(.2, 1.5, .35, 1), background-color .3s; }
.seg button[aria-pressed="true"] .seg-art { background: #fff; scale: 1.08; }

/* ---------- homepage demo phone: tab bar as in the app ---------- */
.tabs button .tab-art { display: grid; place-items: center; width: 13cqw; height: 10cqw; border-radius: 3.6cqw; transition: background-color .3s; }
.tabs button .tab-art img { width: 9cqw; height: 9cqw; object-fit: contain; opacity: .78; transition: opacity .3s, scale .35s cubic-bezier(.2, 1.5, .35, 1); }
.tabs button[aria-pressed="true"] .tab-art { background: #EBE8FF; }
.tabs button[aria-pressed="true"] .tab-art img { opacity: 1; scale: 1.08; }

/* ---------- homepage: Wearly 2.0 tiles ---------- */
.tile-ico { display: block; width: 58px; height: 58px; object-fit: contain; margin: -4px 0 12px -4px; rotate: -4deg; transition: rotate .5s cubic-bezier(.2, 1.5, .35, 1), scale .5s cubic-bezier(.2, 1.5, .35, 1); }
.tile:hover .tile-ico { rotate: 4deg; scale: 1.06; }
/* full-figure scenes carry more empty canvas than the object icons */
.tile-ico[src$="/event.webp"], .tile-ico[src$="/trip.webp"] { width: 78px; height: 78px; margin: -14px 0 -2px -14px; }

/* ---------- homepage: closing card ---------- */
.close-art { display: flex; justify-content: center; align-items: flex-end; gap: clamp(4px, 1.4vw, 18px); margin: calc(clamp(110px, 13vw, 190px) * -.45) auto 18px; }
.close-art .ca { height: auto; }
.close-art .ca-1 { width: clamp(52px, 5vw, 72px); rotate: -10deg; margin-bottom: 8px; }
.close-art .ca-2 { width: clamp(112px, 11vw, 144px); }
.close-art .ca-3 { width: clamp(52px, 5vw, 72px); rotate: 10deg; margin-bottom: 14px; }

/* ---------- subpages: one painted sticker above each page title ---------- */
.p-sticker { display: block; height: auto; margin: -28px auto 18px; rotate: -5deg; }
.p-sticker[width="144"] { width: 72px; }
.p-sticker[width="180"] { width: 90px; }
.p-sticker[width="192"] { width: 96px; }
.p-sticker[width="288"] { width: 136px; margin-top: -44px; margin-bottom: 8px; rotate: 0deg; }
@media (max-width: 700px) { .p-sticker { margin-top: -18px; } }

/* ---------- subpages: painted icons in place of the line icons ---------- */
.is-painted { background: none !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-radius: 0 !important; color: inherit !important; }
.is-painted img, .is-painted-c img { display: block; width: 100%; height: 100%; object-fit: contain; transition: rotate .5s cubic-bezier(.2, 1.5, .35, 1), scale .5s cubic-bezier(.2, 1.5, .35, 1); }
.tile-ic.is-painted { width: 64px; height: 64px; }
.card-ic.is-painted { width: 62px; height: 62px; }
.xp-ic.is-painted { width: 54px; height: 54px; }
.stack-ic.is-painted { width: clamp(60px, 6vw, 72px); height: clamp(60px, 6vw, 72px); }
.factcard-ic.is-painted { width: 56px; height: 56px; margin-bottom: 6px; }
.is-painted img[src$="/event.webp"], .is-painted img[src$="/today.webp"] { scale: 1.3; }
.is-painted img[src$="/trendy.webp"], .is-painted img[src$="/business.webp"] { scale: 1.4; }
.tile:hover .is-painted img[src$="/trendy.webp"], .tile:hover .is-painted img[src$="/business.webp"] { scale: 1.48; }
.tile:hover .is-painted img, .card:hover .is-painted img, .xp-tile.is-open .is-painted img { rotate: -5deg; scale: 1.06; }
.xp-tile.is-open .is-painted img[src$="/event.webp"] { scale: 1.36; }
/* About › what we believe: keep the round holder, lavender when lit (the app's selection colour) */
.rule-ic.is-painted-c img { width: 64%; height: 64%; }
.rule.lit .rule-ic.is-painted-c { background: #EBE8FF; box-shadow: 0 18px 40px -16px rgba(102, 86, 190, .45); }
@media (max-width: 700px) {
  .tile-ic.is-painted, .card-ic.is-painted { width: 54px; height: 54px; }
  .xp-ic.is-painted { width: 46px; height: 46px; }
}

/* ---------- link rows (About › Not a user?): the arrow keeps clear of the hover edge ---------- */
a.row { padding-inline: 22px; border-radius: 18px; }
@media (max-width: 700px) { a.row { padding-inline: 16px; } }

/* ---------- About › The story: six milestones now (Verslo rykliai added) ---------- */
@media (min-width: 1001px) {
  .tl ol { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tl-line { width: calc(100% - (100% - 5 * var(--gap)) / 6); }
  .tl-item time { font-size: 13.5px; }
}

/* ---------- gradient words: the last letter's overhang (the "s" in News) is no longer cut off ---------- */
:is(h1, h2, h3) .g { padding-right: .09em; margin-right: -.09em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- homepage Fit Check: "Post my fit" sits on your own photo, level with the friends' line ---------- */
@media (min-width: 701px) {
  .fit-me span { top: 10px; bottom: auto; }
  .fit-demo [data-fit-post] { left: 12px; right: auto; bottom: 12px; translate: none; }
  .fit-friends .fit-lock { inset: auto 0 16px 0; }
}

/* ---------- homepage Travel mode: the 1100 px photo fills the right side only, so it stays sharp ---------- */
@media (min-width: 701px) {
  .tile--travel { background: #0E0D14; }
  .tile--travel .tile-bg { left: auto; right: 0; width: 60%; object-position: 50% 38%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%); mask-image: linear-gradient(90deg, transparent 0, #000 38%); }
  .tile--travel::after { background: linear-gradient(90deg, rgba(10, 9, 16, .5), rgba(10, 9, 16, 0) 60%); }
}

@media (prefers-reduced-motion: reduce) {
  .step-ico, .tile-ico, .tabs button .tab-art img, .seg button .seg-art, .is-painted img, .is-painted-c img { transition: none; }
}

/* ---------- Investors: "5 months" reads like "50%" (big number, small unit) ---------- */
.stat b .unit { font-size: .42em; letter-spacing: -.02em; }

/* ---------- Investors › Where we are: four milestones in one row ---------- */
@media (min-width: 1001px) {
  .glass3--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .glass3--4 .glass h3 { font-size: clamp(20px, 1.7vw, 24px); }
}
@media (min-width: 701px) and (max-width: 1000px) { .glass3--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
