/* Momentry web. Tokens copied from lib/core/theme/colors.dart; sizes from
   the app widgets (event_card.dart, detail_screen.dart, controls.dart). */

@font-face {
  font-family: 'Figtree';
  src: url('/assets/figtree.ttf') format('truetype');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --bg: #F4F4F1;
  --card: #FFFFFF;
  --card2: #F7F7F5;
  --s2: #ECECE8;
  --line: #E4E3DE;
  --t1: #1C1B21;
  --t2: #5D5B66;
  --t3: #8F8D97;
  --brand: #6D4AFF;
  --brand2: #5A38F0;
  --brandSoft: #EFEAFF;
  --shadowc: #D6CCFF;
  --coral: #FF6B5B;
  --err: #E5483A;
  --glass: rgba(244, 244, 241, .9);
  --cardShadow: 0 1px 2px rgba(28, 27, 33, .05);
  --ink: #1C1B21;
  --white: #FFFFFF;
  --free: #0E8A76;
  --heroBtn: rgba(255, 255, 255, .92);
  --scrim: rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1015;
    --card: #181A21;
    --card2: #1F222B;
    --s2: #22252F;
    --line: #272A35;
    --t1: #F3F4F7;
    --t2: #A7ABB8;
    --t3: #727789;
    --brand: #8E73FF;
    --brand2: #A08AFF;
    --brandSoft: rgba(142, 115, 255, .16);
    --shadowc: rgba(142, 115, 255, .5);
    --err: #FF7A6B;
    --glass: rgba(15, 16, 21, .86);
    --cardShadow: none;
    color-scheme: dark;
  }
}

.cat-0 { --cat: #8B8B98; }
.cat-1 { --cat: #F0654F; }
.cat-2 { --cat: #E3A008; }
.cat-3 { --cat: #7C5CFF; }
.cat-4 { --cat: #2F86E8; }
.cat-5 { --cat: #0E9FB3; }
.cat-6 { --cat: #3FA34D; }
.cat-7 { --cat: #E0508F; }
.cat-8 { --cat: #B45FD6; }

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--t1);
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.ell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ───────── icons (MomentryIcon: line + fill shifted 2/24) ───────── */
.ico { position: relative; display: inline-block; flex: none; width: var(--s); height: var(--s); }
.ico svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ico .f { transform: translate(8.333%, 8.333%); }
.f-cat { color: color-mix(in srgb, var(--cat) 40%, transparent); }
.f-brand { color: var(--shadowc); }
.f-coral { color: color-mix(in srgb, var(--coral) 40%, transparent); }
.s11 { --s: 11px; } .s14 { --s: 14px; } .s15 { --s: 15px; } .s17 { --s: 17px; }
.s18 { --s: 18px; } .s19 { --s: 19px; } .s20 { --s: 20px; } .s22 { --s: 22px; }
.s24 { --s: 24px; } .s26 { --s: 26px; } .s32 { --s: 32px; }

/* ───────── header ───────── */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-in { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 19px; letter-spacing: -.4px; }
.btn-get {
  height: 38px; padding: 0 16px; border-radius: 999px;
  background: var(--brand); color: var(--white);
  font-size: 13.5px; font-weight: 800;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.btn-get:hover { background: var(--brand2); }
.btn-get:active { transform: scale(.96); }

/* ───────── home ───────── */
.intro { padding-top: 22px; padding-bottom: 6px; }
.intro h1 { font-size: 27px; line-height: 1.15; font-weight: 900; letter-spacing: -.8px; max-width: 640px; }
.intro p { margin-top: 8px; color: var(--t2); font-size: 15px; line-height: 1.5; max-width: 560px; }

.list-head { padding-top: 14px; }
.where { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; color: var(--t1); flex-wrap: wrap; }
.where b { font-weight: 900; }
.where .ico { color: var(--brand); }
.link { color: var(--brand); font-weight: 800; font-size: 13.5px; margin-left: 4px; }
.link[disabled] { color: var(--t3); cursor: default; }

.tabs {
  display: flex; gap: 22px; margin: 14px -16px 0; padding: 0 16px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar, .chips::-webkit-scrollbar, .strip::-webkit-scrollbar, .slides::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: none; padding: 10px 0 11px;
  font-size: 14.5px; font-weight: 800; color: var(--t3);
  transition: color .25s var(--ease);
}
.tab.on { color: var(--t1); }
.tab.on::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px;
  border-radius: 2px; background: var(--t1);
}
.chips {
  display: flex; gap: 6px; margin: 12px -16px 0; padding: 0 16px 2px;
  overflow-x: auto; scrollbar-width: none; scroll-padding: 0 16px;
}
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 700; color: var(--t2);
  transition: background .4s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cat); }
.chip.on { background: var(--t1); color: var(--bg); border-color: var(--t1); }
.chip.on .dot { box-shadow: 0 0 0 1.5px var(--bg); }

.grid { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 14px 0 8px; }
.grid.loading { opacity: .5; pointer-events: none; transition: opacity .25s var(--ease); }
.more { grid-column: 1 / -1; justify-self: center; margin-top: 6px; }

/* ───────── card (EventCard) ───────── */
.card {
  position: relative; display: flex; gap: 12px; padding: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--cardShadow);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { border-color: color-mix(in srgb, var(--t3) 50%, var(--line)); }
.card:active { transform: scale(.985); }
.card-link { position: absolute; inset: 0; z-index: 1; border-radius: 18px; }
.thumb { position: relative; flex: none; width: 92px; height: 112px; border-radius: 13px; overflow: hidden; }
.img, .slide { position: absolute; inset: 0; display: block; overflow: hidden; }
.gbg { position: absolute; inset: 0; width: 100%; height: 100%; }
.img img, .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.stamp {
  position: absolute; left: 6px; top: 6px; width: 36px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  background: var(--white); border-radius: 9px;
  box-shadow: 0 2px 6px rgba(28, 27, 33, .18);
}
.stamp b { padding-top: 4px; font-size: 16px; font-weight: 900; color: var(--ink); letter-spacing: -.48px; line-height: 1; font-variant-numeric: tabular-nums; }
.stamp i { font-style: normal; padding: 1px 0 4px; font-size: 10.5px; font-weight: 800; color: var(--coral); line-height: 1; }
.stamp em {
  width: 100%; padding: 2px 2px 3px; background: var(--brand); color: var(--white);
  font-style: normal; font-size: 8.5px; font-weight: 900; line-height: 1; text-align: center; white-space: nowrap;
}
.price {
  position: absolute; left: 6px; bottom: 6px; height: 22px; padding: 0 8px;
  display: flex; align-items: center; border-radius: 7px;
  background: var(--white); color: var(--ink);
  box-shadow: 0 2px 6px rgba(28, 27, 33, .18);
  font-size: 11.5px; font-weight: 800;
}
.price.free { color: var(--free); }

.card-body { flex: 1; min-width: 0; height: 112px; display: flex; flex-direction: column; padding: 2px 2px 0 0; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ct { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: var(--cat); white-space: nowrap; }
.ct::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--cat); }
.mo { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--t3); white-space: nowrap; }
.mo-soon { color: var(--brand); font-size: 11.5px; font-weight: 800; }
.mo-live { color: var(--coral); font-size: 11.5px; font-weight: 800; }
.mo-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.card-title {
  margin-top: 4px; font-size: 15.5px; font-weight: 800; letter-spacing: -.23px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.meta { margin-top: 5px; display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--t2); min-width: 0; }
.meta .ico { color: var(--t3); }
.meta .when { white-space: nowrap; margin-right: 6px; }
.card-foot { margin-top: auto; display: flex; align-items: center; gap: 2px; }
.author { flex: 1; margin-left: 4px; font-size: 12px; color: var(--t3); }

.av {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--white); font-weight: 900; line-height: 1;
}
.av-20 { width: 20px; height: 20px; font-size: 9px; }
.av-24 { width: 24px; height: 24px; font-size: 10.5px; }
.av0 { background: #7C5CFF; } .av1 { background: #F0654F; } .av2 { background: #16A383; }
.av3 { background: #2F86E8; } .av4 { background: #E3A008; } .av5 { background: #E0508F; }

.act {
  position: relative; z-index: 2;
  height: 30px; min-width: 30px; padding: 0 6px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  color: var(--t2); font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.act b { font-weight: 800; }
.act:active { transform: scale(.92); }
.act.vote { background: var(--s2); }
.act.big { height: 46px; min-width: 46px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; }
.act.grow { flex: 1; }

/* ───────── empty, buttons, promo ───────── */
.empty {
  grid-column: 1 / -1; text-align: center; padding: 34px 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.empty .ico { color: var(--brand); }
.empty h1, .empty h3 { font-size: 18px; font-weight: 900; letter-spacing: -.34px; }
.empty p { color: var(--t2); font-size: 14px; line-height: 1.5; max-width: 420px; }
.empty.big { margin: 40px auto; max-width: 560px; padding: 44px 20px; }
.empty .btn { margin-top: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 14px;
  background: var(--brand); color: var(--white); font-size: 15px; font-weight: 800;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.btn:hover { background: var(--brand2); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--card); color: var(--t1); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--card2); }

/* Side column. On phones only the promo shows, under the list. */
.side { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.side-get, .side-top { display: none; }
.box {
  padding: 18px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--cardShadow);
}
.box h2 { font-size: 17px; font-weight: 900; letter-spacing: -.34px; }
.box p { margin-top: 4px; color: var(--t2); font-size: 14px; line-height: 1.5; }
.promo {
  display: flex; flex-direction: column; gap: 14px; padding: 20px;
  background: var(--brandSoft); border-color: color-mix(in srgb, var(--brand) 25%, transparent);
}
.promo h2 { font-size: 18px; }
.side-get { flex-direction: column; align-items: flex-start; gap: 6px; }
.side-get .stores { margin-top: 8px; }
.top-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; }
.top-row a { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-radius: 12px; }
.top-row + .top-row a { border-top: 1px solid var(--line); }
.top-row a:hover b { color: var(--brand); }
.top-n { width: 16px; flex: none; text-align: center; font-weight: 900; font-size: 15px; color: var(--t3); font-variant-numeric: tabular-nums; }
.top-img { position: relative; flex: none; width: 52px; height: 52px; border-radius: 11px; overflow: hidden; }
.top-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.top-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.top-t b {
  font-size: 13.5px; font-weight: 800; line-height: 1.25; transition: color .25s var(--ease);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.top-t > span { display: flex; align-items: center; gap: 3px; font-size: 12px; color: var(--t3); white-space: nowrap; overflow: hidden; }

/* Pieces of the card only shown when it is wide (computers). */
.wide { display: none; }

.stores { display: flex; flex-wrap: wrap; gap: 8px; }
.stores-col { flex-direction: column; align-items: stretch; width: 100%; }
.store {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 18px; border-radius: 14px;
  background: var(--t1); color: var(--bg); font-size: 14px; font-weight: 800;
}
.store.soon { background: var(--card); color: var(--t2); border: 1px solid var(--line); }
html[data-os='android'] .only-ios, html[data-os='ios'] .only-android { display: none; }

/* ───────── plan (detail_screen.dart) ───────── */
.plan { padding-bottom: 12px; }
.gallery { position: relative; height: 300px; background: var(--s2); }
.slides {
  position: absolute; inset: 0; display: flex; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; }
.count {
  position: absolute; right: 14px; bottom: 38px; z-index: 2;
  padding: 4px 9px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: var(--white);
  font-size: 12px; font-weight: 800;
}
.hero-btn {
  position: absolute; top: 14px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--heroBtn); color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  transition: transform .25s var(--ease);
}
.hero-btn:active { transform: scale(.92); }
.hero-btn.back { left: 14px; }
.hero-btn.share { right: 14px; }

.sheet-body {
  position: relative; z-index: 2; margin-top: -24px; padding: 18px 16px 8px;
  background: var(--bg); border-radius: 24px 24px 0 0;
}
.row-tag { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--cat) 14%, transparent); color: var(--cat);
  font-size: 12.5px; font-weight: 800;
}
.tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cat); }
.plan-title { margin-top: 10px; font-size: 24px; font-weight: 900; letter-spacing: -.72px; line-height: 1.18; }
.by { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--t2); }
.by b { color: var(--t1); font-weight: 800; }
.by small { font-size: 13px; color: var(--t3); }
.vb {
  display: inline-flex; vertical-align: -2px; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%; background: var(--brand); color: var(--white);
}

.facts { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--cardShadow); }
.fact { display: flex; align-items: center; gap: 14px; padding: 13px 14px; }
.fact + .fact, .strip + .fact { border-top: 1px solid var(--line); }
.fact > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fact b { font-size: 14.5px; font-weight: 800; }
.fact span { font-size: 13px; color: var(--t2); }
.fact-a { flex: none; color: var(--brand); font-size: 13px; font-weight: 800; }
.strip {
  display: flex; gap: 6px; padding: 12px 14px 14px; border-top: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.ses {
  flex: none; min-width: 58px; padding: 7px 8px 8px; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center;
  background: var(--card2); border: 1px solid var(--line);
}
.ses small { font-size: 10.5px; font-weight: 800; color: var(--t3); }
.ses b { margin-top: 2px; font-size: 18px; font-weight: 900; letter-spacing: -.54px; line-height: 1.15; }
.ses span { font-size: 10.5px; font-weight: 700; color: var(--t2); }
.ses span + span { margin-top: 3px; }
.ses.next { background: var(--brandSoft); border: 2px solid var(--brand); padding: 6px 7px 7px; }
.ses.next small { color: var(--brand); }
.ses.past { opacity: .45; }

.go {
  margin-top: 10px; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px;
  border-radius: 18px; border: 1.5px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box,
              linear-gradient(120deg, var(--brand), var(--coral)) border-box;
  transition: transform .25s var(--ease);
}
.go:active { transform: scale(.985); }
.go-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.go-t b { font-size: 15px; font-weight: 900; }
.go-t span { font-size: 13px; color: var(--t3); }
.go-b { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--white); display: flex; align-items: center; justify-content: center; }

.actions { margin-top: 10px; display: flex; gap: 8px; }

.banner {
  margin-bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-radius: 14px; background: var(--card2); border: 1px solid var(--line);
  font-size: 13.5px; color: var(--t2);
}
.banner b { color: var(--t1); }
.banner.bad { background: color-mix(in srgb, var(--err) 10%, var(--card)); border-color: color-mix(in srgb, var(--err) 35%, transparent); }
.banner.bad .ico { color: var(--err); }

.sec { margin-top: 24px; }
.sec h2 { font-size: 17px; font-weight: 900; letter-spacing: -.34px; margin-bottom: 10px; }
.sec h2 small { font-size: 17px; font-weight: 700; color: var(--t3); margin-left: 4px; }
.desc { font-size: 15px; line-height: 1.6; color: var(--t2); white-space: pre-line; overflow-wrap: anywhere; }
.feats { display: flex; flex-wrap: wrap; gap: 6px; }
.feat {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 10px;
  border-radius: 12px; background: var(--card); border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; color: var(--t2);
}
.feat .ico { color: var(--t1); }
.talk {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
}
.talk .ico { color: var(--t1); }
.talk > div { flex: 1; min-width: 180px; display: flex; flex-direction: column; }
.talk b { font-size: 14.5px; font-weight: 800; }
.talk span { font-size: 13px; color: var(--t2); }
.talk .btn { height: 40px; font-size: 14px; }

/* ───────── documents ───────── */
.doc { max-width: 760px; padding-top: 28px; padding-bottom: 40px; }
.doc h1 { font-size: 30px; font-weight: 900; letter-spacing: -.9px; line-height: 1.15; }
.upd { margin-top: 8px; color: var(--t3); font-size: 13.5px; }
.lead { margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--t2); }
.doc h2 { margin-top: 30px; font-size: 18px; font-weight: 900; letter-spacing: -.34px; }
.doc p, .doc li { font-size: 15px; line-height: 1.65; color: var(--t2); overflow-wrap: anywhere; }
.doc p { margin-top: 10px; }
.doc ul, .doc ol { margin: 10px 0 0; padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--t1); font-weight: 800; }
.doc a { color: var(--brand); font-weight: 700; }

/* ───────── footer ───────── */
.foot { margin-top: 28px; border-top: 1px solid var(--line); padding: 26px 0 110px; }
.foot-in { display: flex; flex-direction: column; gap: 16px; }
.foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.foot-brand b { font-weight: 900; }
.foot-brand span { width: 100%; color: var(--t3); font-size: 13.5px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-links a { color: var(--t2); font-size: 14px; font-weight: 700; }
.foot-links a:hover { color: var(--t1); }

/* ───────── "Descarga la app" bar and sheet ───────── */
.getbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .16);
  animation: rise .5s var(--ease) both .4s;
}
.getbar-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.getbar-t b { font-size: 13.5px; font-weight: 800; }
.getbar-t span { font-size: 12px; color: var(--t3); }
.getbar-b { height: 36px; padding: 0 14px; border-radius: 999px; background: var(--brand); color: var(--white); font-size: 13px; font-weight: 800; }
@keyframes rise { from { transform: translateY(140%); } to { transform: none; } }

.sheet {
  width: 100%; max-width: 440px; margin: auto auto 0; padding: 0; border: 0;
  border-radius: 24px 24px 0 0; background: var(--card); color: var(--t1);
}
.sheet[open] { animation: up .4s var(--ease); }
.sheet::backdrop { background: var(--scrim); }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
.sheet-in { padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.grab { width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin-bottom: 6px; }
.sheet h2 { font-size: 21px; font-weight: 900; letter-spacing: -.5px; }
.sheet p { color: var(--t2); font-size: 14.5px; line-height: 1.5; }
.sheet .btn.ghost { width: 100%; }

/* ───────── bigger screens ───────── */
@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .intro { padding-top: 36px; }
  .intro h1 { font-size: 38px; letter-spacing: -1.2px; }
  .intro p { font-size: 17px; }
  .tabs, .chips { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .promo { flex-direction: row; align-items: center; gap: 18px; padding: 22px 24px; }
  .promo > div { flex: 1; }
  .getbar { display: none; }
  .foot { padding-bottom: 40px; }
  .foot-in { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .foot-brand span { width: auto; }
  .sheet { margin: auto; border-radius: 24px; }
  .sheet[open] { animation: fade .3s var(--ease); }
  .grab { display: none; }
  @keyframes fade { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
}

/* Computers: a centred column of wide cards and a side column, like a feed. */
@media (min-width: 1024px) {
  .home {
    display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start;
  }
  .intro { padding-top: 30px; }
  .intro h1 { font-size: 34px; }
  .intro p { font-size: 16px; }
  .grid { grid-template-columns: 1fr; gap: 12px; }

  .side { position: sticky; top: 76px; margin-top: 30px; }
  .side-get { display: flex; }
  .side-top { display: block; }
  .promo { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; }
  .promo .stores, .promo img { display: none; }

  .wide { display: inline; }
  .card { gap: 16px; padding: 12px; }
  .thumb { width: 150px; height: 150px; border-radius: 14px; }
  .stamp { left: 8px; top: 8px; width: 40px; }
  .stamp b { font-size: 18px; }
  .price { left: 8px; bottom: 8px; }
  .card-body { height: 150px; padding-top: 4px; }
  .sub { margin-left: -2px; font-size: 12px; font-weight: 700; color: var(--t3); flex: 1; }
  .card-top .mo { margin-left: auto; }
  .card-title { margin-top: 6px; font-size: 18.5px; letter-spacing: -.4px; }
  .meta { margin-top: 7px; font-size: 13.5px; }
  .author { font-size: 13px; }
  .card-foot { gap: 4px; }
  .act { height: 34px; min-width: 34px; font-size: 13px; }
  .act.wide { display: inline-flex; }
  .see {
    position: relative; z-index: 2; margin-left: 6px;
    display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 12px 0 14px;
    border-radius: 999px; background: var(--brand); color: var(--white);
    font-size: 13px; font-weight: 800; white-space: nowrap;
    transition: background .25s var(--ease), transform .25s var(--ease);
  }
  .see .ico { transform: rotate(-90deg); }
  .card:hover .see { background: var(--brand2); }
  .card:hover .card-title { color: var(--brand); }
  .card-title { transition: color .25s var(--ease); }
}

@media (min-width: 900px) {
  .plan {
    max-width: 1180px; margin: 0 auto; padding: 24px 16px 12px;
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start;
  }
  .gallery { position: sticky; top: 84px; height: auto; aspect-ratio: 4 / 3.4; border-radius: 24px; overflow: hidden; }
  .count { bottom: 14px; }
  .sheet-body { margin-top: 0; padding: 4px 0 0; border-radius: 0; background: none; }
  .plan-title { font-size: 32px; letter-spacing: -1px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ───────── toast (toast.dart) ───────── */
.tabs, .chips, .strip { position: relative; }
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 11px 16px; border-radius: 14px; background: var(--t1); color: var(--bg);
  font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: opacity .25s var(--ease), transform .4s var(--pop);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 720px) { .toast { bottom: 28px; } }
