/* ==========================================================================
   Trip2Event: base styles
   Brand: crimson (from logo) · black · white
   Three "stages" (crimson / white / black) re-colour the glass components.
   ========================================================================== */

:root {
  --crimson: #AB1D71;
  --crimson-600: #90185F;
  --crimson-700: #6D1248;
  --crimson-900: #390A26;
  --rose: #D6568F;
  --blush: #F8E9F0;
  --ink: #0A0A0A;

  --font-display: "Caprasimo", "Cooper Black", "Georgia", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 38px;

  --gutter: 20px;
  --header-h: 78px;
  --tabbar-h: 64px;
  --ease: cubic-bezier(.22, .8, .24, 1);

  /* default = white stage */
  --fg: var(--ink);
  --fg-2: rgba(10, 10, 10, .76);
  --fg-3: rgba(10, 10, 10, .62);
  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .86);
  --glass-line: rgba(171, 29, 113, .16);
  --glass-hi: rgba(255, 255, 255, 1);
  --glass-shadow: 0 24px 50px -28px rgba(171, 29, 113, .38);
  --btn-bg: var(--crimson);
  --btn-fg: #fff;
  --chip-on-bg: var(--crimson);
  --chip-on-fg: #fff;
  --focus: var(--crimson);
  --link: var(--crimson);
  --field-bg: rgba(255, 255, 255, .8);
  --field-line: rgba(10, 10, 10, .45);
  --danger: #B3123A;
  --ok: #0E7A4B;
}

@media (min-width: 640px) { :root { --gutter: 28px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: #000;
}
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: #000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  overflow-x: clip;
}
body:has(dialog[open]) { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
summary { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  padding: .7rem 1.1rem; border-radius: 12px;
  background: #fff; color: #000; font-weight: 700; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; outline: 3px solid var(--crimson); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.i {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Stages ---------- */
.stage {
  position: relative;
  isolation: isolate;
  color: var(--fg);
}
.stage--crimson {
  --fg: #fff;
  --fg-2: rgba(255, 255, 255, .86);
  --fg-3: rgba(255, 255, 255, .8);
  --glass: rgba(255, 255, 255, .14);
  --glass-strong: rgba(255, 255, 255, .24);
  --glass-line: rgba(255, 255, 255, .36);
  --glass-hi: rgba(255, 255, 255, .6);
  --glass-shadow: 0 28px 60px -26px rgba(40, 0, 18, .6);
  --btn-bg: #fff;
  --btn-fg: var(--crimson);
  --chip-on-bg: #fff;
  --chip-on-fg: var(--crimson);
  --focus: #fff;
  --link: #fff;
  --field-bg: rgba(255, 255, 255, .16);
  --field-line: rgba(255, 255, 255, .75);
  --danger: #FFD3DF;
  /* Flat, solid Wine -- same single color the app itself uses on its own
     wine surfaces (RSVP banner, trip dashboard header, etc.), not a
     multi-tone gradient. */
  background: var(--crimson);
}
.stage--white {
  background:
    radial-gradient(42rem 28rem at 6% 8%, rgba(214, 86, 143, .22), transparent 70%),
    radial-gradient(36rem 28rem at 96% 52%, rgba(171, 29, 113, .15), transparent 70%),
    radial-gradient(32rem 26rem at 18% 100%, rgba(224, 120, 170, .26), transparent 70%),
    #fff;
}
.stage--black {
  --fg: #fff;
  --fg-2: rgba(255, 255, 255, .84);
  --fg-3: rgba(255, 255, 255, .68);
  --glass: rgba(255, 255, 255, .08);
  --glass-strong: rgba(255, 255, 255, .15);
  --glass-line: rgba(255, 255, 255, .18);
  --glass-hi: rgba(255, 255, 255, .28);
  --glass-shadow: 0 28px 60px -26px rgba(0, 0, 0, .9);
  --btn-bg: var(--crimson);
  --btn-fg: #fff;
  --chip-on-bg: #fff;
  --chip-on-fg: #000;
  --focus: #fff;
  --link: #D6568F;
  --field-bg: rgba(255, 255, 255, .08);
  --field-line: rgba(255, 255, 255, .6);
  --danger: #FF9DB8;
  --ok: #6EE7B0;
  background:
    radial-gradient(46rem 30rem at 88% -4%, rgba(171, 29, 113, .6), transparent 70%),
    radial-gradient(36rem 30rem at -6% 100%, rgba(171, 29, 113, .38), transparent 70%),
    #000;
}

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), 1180px); margin-inline: auto; }
.wrap--read { width: min(100% - 2 * var(--gutter), 760px); }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap, 1rem); }

/* ---------- Type ---------- */
.display, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.display { font-size: clamp(2.6rem, 1.3rem + 5.6vw, 5.4rem); line-height: 1; }
.display--md { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.6rem); line-height: 1.05; }
.h2 { font-size: clamp(1.95rem, 1.2rem + 2.8vw, 3.1rem); line-height: 1.08; }
.h3 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 1.95rem); line-height: 1.15; }
.title { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.lede { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--fg-2); max-width: 56ch; text-wrap: pretty; }
.muted { color: var(--fg-3); }
.small { font-size: .875rem; }
.link { color: var(--link); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-hi);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
}
.glass--strong { background: var(--glass-strong); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .stage--crimson .glass { background: rgba(120, 8, 54, .78); }
  .stage--white .glass { background: rgba(255, 255, 255, .95); }
  .stage--black .glass { background: rgba(32, 24, 28, .94); }
}

/* Frosted light bars (header / tab bar) stay the same on every stage */
.glass-nav {
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 14px 44px -14px rgba(30, 0, 14, .42), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(22px) saturate(190%);
  backdrop-filter: blur(22px) saturate(190%);
  color: var(--ink);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-nav { background: rgba(255, 255, 255, .97); }
}

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: var(--h); padding: 0 1.5rem;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1;
  text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s var(--ease), box-shadow .2s, background-color .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn--primary {
  background: var(--btn-bg); color: var(--btn-fg);
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .5);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(0, 0, 0, .55); }
.btn--primary:active { transform: scale(.97); }
.btn--glass {
  background: var(--glass); color: var(--fg); border-color: var(--glass-line);
  box-shadow: inset 0 1px 0 var(--glass-hi);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
}
.btn--glass:hover { background: var(--glass-strong); }
.btn--sm { --h: 44px; padding: 0 1.15rem; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; border: 1px solid var(--glass-line);
  background: var(--glass); color: var(--fg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 var(--glass-hi);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .18s var(--ease), background-color .2s;
}
.icon-btn:hover { background: var(--glass-strong); }
.icon-btn:active { transform: scale(.92); }

.checks { display: grid; grid-template-columns: minmax(0, 1fr); gap: .55rem; }
.checks li { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; }
.checks .i { color: var(--crimson); margin-top: .2em; stroke-width: 2.6; }

/* ---------- Chips & rails ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 44px; padding: 0 1.05rem;
  border-radius: 999px; border: 1px solid var(--glass-line);
  background: var(--glass); color: var(--fg);
  font-weight: 600; font-size: .9375rem; line-height: 1; white-space: nowrap;
  cursor: pointer; user-select: none; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  transition: background-color .2s, color .2s, transform .15s var(--ease);
}
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"], .chip.is-active, .chip[aria-selected="true"] {
  background: var(--chip-on-bg); color: var(--chip-on-fg); border-color: transparent;
}
.chip--sm { min-height: 28px; padding: 0 .75rem; font-size: .8125rem; cursor: default; }
span.chip { cursor: default; }

.rail {
  display: flex; gap: .6rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-block: 4px;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: none; scroll-snap-align: start; }
@media (max-width: 899px) {
  .rail--bleed {
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
}

/* ---------- Forms ---------- */
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem; }
.field > label, .field > .label { font-weight: 700; font-size: .9375rem; }
.field .hint { font-size: .875rem; color: var(--fg-3); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem;
  border-radius: var(--r-sm); border: 1.5px solid var(--field-line);
  background: var(--field-bg); color: var(--fg);
  font-size: 1rem; font-weight: 500;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--fg-3); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent);
}
.select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.select option { color: #000; background: #fff; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field__error { display: none; color: var(--danger); font-size: .875rem; font-weight: 600; }
.field.has-error .field__error { display: block; }

.searchbox { position: relative; }
.searchbox .i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--fg-3); pointer-events: none; }

.switch {
  --w: 48px; --h: 28px;
  position: relative; flex: none; width: var(--w); height: var(--h);
  border-radius: 999px; border: 0; padding: 0;
  background: color-mix(in srgb, var(--fg) 28%, transparent);
  transition: background-color .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: calc(var(--h) - 6px); height: calc(var(--h) - 6px);
  border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  transition: transform .25s var(--ease);
}
.switch[aria-checked="true"] { background: var(--crimson); }
.stage--black .switch[aria-checked="true"], .stage--crimson .switch[aria-checked="true"] { background: #FF4F8B; }
.switch[aria-checked="true"]::after { transform: translateX(calc(var(--w) - var(--h))); }
.switch::before { content: ""; position: absolute; inset: -9px -6px; } /* 44px-tall hit area */

/* ---------- Notices ---------- */
.notice { display: none; gap: .75rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 18px; font-weight: 600; line-height: 1.45; }
.notice.is-on { display: flex; }
.notice .i { flex: none; margin-top: .1em; }
.notice--ok { background: rgba(14, 122, 75, .12); border: 1px solid rgba(14, 122, 75, .5); color: #0A5B38; }
.notice--err { background: rgba(179, 18, 58, .1); border: 1px solid rgba(179, 18, 58, .5); color: #8E0F2F; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  padding: max(10px, env(safe-area-inset-top)) 12px 0;
  pointer-events: none;
}
.site-header__inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: 1rem;
  width: min(100%, 1180px); height: 56px; margin-inline: auto;
  padding: 0 8px 0 18px; border-radius: 22px;
  view-transition-name: site-header; /* on the glass bar itself: a named ancestor would block its backdrop blur */
}
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 10px; }
.brand img { height: 30px; width: auto; }
.primary-nav { display: none; margin-left: auto; }
.site-header__cta { margin-left: auto; --btn-bg: var(--crimson); --btn-fg: #fff; --focus: var(--crimson); }
.menu-btn { flex: none; --focus: var(--crimson); }
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
  border-radius: 999px; font-weight: 600; font-size: .9375rem; text-decoration: none;
  color: rgba(10, 10, 10, .82);
  transition: background-color .2s, color .2s;
}
.nav-link:hover { background: rgba(171, 29, 113, .09); color: var(--crimson-600); }
.nav-link[aria-current="page"] { background: var(--crimson); color: #fff; }
.site-header .btn:focus-visible, .site-header a:focus-visible { outline-color: var(--crimson); }

/* Very narrow phones (320px): tighten the header so the menu button stays on screen. */
@media (max-width: 359px) {
  .site-header__inner { gap: .5rem; padding: 0 6px 0 12px; }
  .brand img { height: 26px; }
  .site-header__cta { padding: 0 .85rem; font-size: .875rem; }
}

@media (min-width: 900px) {
  .site-header { padding-top: 14px; }
  .site-header__inner { height: 62px; border-radius: 999px; padding: 0 10px 0 24px; gap: 1.5rem; }
  .brand img { height: 34px; }
  .primary-nav { display: block; }
  .primary-nav ul { display: flex; gap: .25rem; }
  .site-header__cta { margin-left: 0; }
  .menu-btn, .drawer { display: none; }
}

/* ---------- Mobile tab bar ---------- */
.tabbar {
  position: fixed; z-index: 90;
  left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px;
  height: var(--tabbar-h); padding: 6px; border-radius: 26px;
  view-transition-name: tabbar;
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border-radius: 20px; text-decoration: none;
  font-size: .75rem; font-weight: 700; line-height: 1;
  color: rgba(10, 10, 10, .66);
  -webkit-tap-highlight-color: transparent;
  transition: background-color .25s var(--ease), color .25s, transform .15s var(--ease);
}
.tab .i { width: 22px; height: 22px; }
.tab:active { transform: scale(.92); }
.tab[aria-current="page"] { color: var(--crimson); background: rgba(171, 29, 113, .11); }
.tabbar a:focus-visible { outline-color: var(--crimson); outline-offset: -3px; }
@media (min-width: 900px) { .tabbar { display: none; } }

/* ---------- Hero scaffolding shared by inner pages ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(2.75rem, 6vw, 5rem);
  overflow: hidden;
}
.page-hero .wrap, .page-hero .wrap--read { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; justify-items: start; }
.hero-petals {
  position: absolute; z-index: -1; pointer-events: none;
  width: min(48rem, 105vw); max-width: none; right: -14%; top: 50%;
  transform: translateY(-50%) rotate(10deg);
  --p1: url(#pg-white); --p2: url(#pg-rose); --p3: url(#pg-ink);
}
.hero-petals--sm { width: min(30rem, 80vw); top: 42%; right: -12%; opacity: .55; }
/* on phones the text spans the whole width: keep the petals faint so white text stays readable */
@media (max-width: 899px) { .page-hero .hero-petals, .cta-band .hero-petals { opacity: .3; } }
.crumbs { display: flex; align-items: center; gap: .35rem; font-size: .9375rem; font-weight: 600; color: var(--fg-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .i { width: 1em; height: 1em; opacity: .8; }

/* ---------- CTA band ---------- */
.cta-band { overflow: hidden; }
.cta-band__inner {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; justify-items: start;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.store-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.store-btn { gap: .7rem; padding: 0 1.4rem 0 1.15rem; --h: 56px; text-align: left; }
.store-btn .i { width: 1.6rem; height: 1.6rem; }
.store-btn small { display: block; font-size: .6875rem; font-weight: 600; opacity: .8; line-height: 1.1; }
.store-btn strong { display: block; font-size: 1.0625rem; line-height: 1.15; }

/* ---------- Blog cards & covers (used on home, blogs and posts) ---------- */
.cover {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--a), var(--b));
}
.cover__petals {
  position: absolute; right: -8%; bottom: -30%; width: 78%;
  --p1: rgba(255, 255, 255, .5); --p2: rgba(255, 255, 255, .32); --p3: rgba(255, 255, 255, .2);
  transform: rotate(-6deg);
}
.cover__icon {
  position: absolute; left: 1.1rem; top: 1.1rem;
  width: 46px; height: 46px; padding: 11px; color: #fff;
  border-radius: 16px; background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.post-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.post-card { display: block; }
.post-card[hidden] { display: none; }
.post-card__link {
  display: grid; grid-template-rows: auto 1fr; height: 100%;
  border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--fg);
  background: var(--glass); border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-hi);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.post-card__link:hover { transform: translateY(-4px); }
.post-card__link:active { transform: scale(.985); }
.post-card__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; align-content: start; padding: 1.15rem 1.3rem 1.4rem; justify-items: start; }
.post-card__title { font-size: 1.25rem; font-weight: 800; line-height: 1.25; letter-spacing: -.005em; text-wrap: balance; }
.post-card__excerpt { color: var(--fg-2); font-size: .975rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; align-items: center; gap: .7rem; font-size: .875rem; color: var(--fg-3); }
.post-meta .sep { width: 1px; height: .95em; background: currentColor; opacity: .5; }
.stage--crimson .post-meta { color: var(--fg-2); }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(3rem, 6vw, 5rem); }
.footer-grid { display: grid; gap: 2.25rem; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; justify-items: start; max-width: 26rem; }
.footer-brand img { width: 150px; height: auto; }
.footer-brand p { color: var(--fg-2); }
.footer-h { font-size: .9375rem; font-weight: 800; margin-bottom: .75rem; color: var(--fg); }
.site-footer li + li { margin-top: .15rem; }
.site-footer nav a {
  display: inline-block; padding-block: .55rem; text-decoration: none; color: var(--fg-2);
  transition: color .2s;
}
.site-footer nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: .25em; }
.socials { display: flex; gap: .6rem; }
.social {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--glass-line); background: var(--glass); color: #fff;
  transition: background-color .2s, transform .2s var(--ease);
}
.social:hover { background: var(--glass-strong); transform: translateY(-2px); }
.footer-base {
  margin-top: 2.75rem; padding-block: 1.5rem;
  border-top: 1px solid var(--glass-line);
  color: var(--fg-3); font-size: .875rem;
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; }
  .footer-brand { grid-column: auto; }
}
@media (max-width: 899px) {
  .site-footer { padding-bottom: calc(var(--tabbar-h) + 34px + env(safe-area-inset-bottom)); }
}
/* Phones: an app-style footer. A small brand block, then Explore / Company / Legal as rounded cards that open on tap
   (assets/js/site.js adds .site-footer--app, the arrow icons and the open/close; without it every list stays open). */
@media (max-width: 899px) {
  .site-footer { padding-top: 1.75rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .footer-brand { max-width: none; gap: .7rem; padding: 0 .25rem .9rem; }
  .footer-brand img { width: 124px; }
  .footer-brand p { max-width: 34ch; font-size: .9rem; line-height: 1.5; }
  .site-footer nav { border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); overflow: hidden; }
  .site-footer nav .footer-h { display: flex; align-items: center; gap: .8rem; margin: 0; padding: .8rem 1rem .8rem .85rem; min-height: 60px; font-size: 1rem; }
  .site-footer .footer-h__ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 13px; background: var(--glass-strong); color: #fff; }
  .site-footer .footer-h__ic .i { width: 20px; height: 20px; }
  .site-footer nav a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: .85rem 1rem .85rem 1.1rem; min-height: 50px; text-decoration: none; }
  .site-footer nav a:hover { text-decoration: none; }
  .site-footer nav a::after {
    content: ""; flex: none; width: 8px; height: 8px; margin-right: .3rem;
    border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: .55;
  }
  .site-footer nav a:active { background: var(--glass); }
  .site-footer li + li { margin-top: 0; }
  .site-footer li { border-top: 1px solid var(--glass-line); }
  /* the cards open and close only when the script is running */
  .site-footer--app .footer-h { cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; }
  .site-footer--app .footer-h:focus-visible { outline: 2px solid #fff; outline-offset: -4px; border-radius: 22px; }
  .site-footer--app .footer-h::after {
    content: ""; flex: none; width: 9px; height: 9px; margin-left: auto; margin-right: .35rem;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .7; transition: transform .25s var(--ease);
  }
  .site-footer--app nav.is-open .footer-h::after { transform: rotate(-135deg); }
  .site-footer--app nav:not(.is-open) ul { display: none; }
  .site-footer--app nav.is-open ul { animation: footer-open .25s var(--ease); }
  .footer-base { margin-top: 1.5rem; padding-block: 1.25rem 0; text-align: center; font-size: .8125rem; }
}
@keyframes footer-open { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Toasts ---------- */
.toasts {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 300;
  bottom: calc(var(--tabbar-h) + 26px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; justify-items: center;
  width: min(92vw, 420px); pointer-events: none;
}
@media (min-width: 900px) { .toasts { bottom: 28px; } }
.toast {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem 1.15rem; border-radius: 18px;
  background: rgba(14, 8, 11, .88); color: #fff; font-weight: 600; font-size: .9375rem;
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  animation: toast-in .35s var(--ease) both;
}
.toast .i { color: #6EE7B0; }
.toast.is-leaving { animation: toast-out .25s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(.97); } }

/* ---------- Sheets (native <dialog>): bottom sheet on phones, centred card on desktop ---------- */
dialog.sheet {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden;
}
dialog.sheet::backdrop {
  background: rgba(22, 0, 10, .6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
dialog.sheet[open]::backdrop { animation: fade-in .3s ease both; }
.sheet__panel {
  --fg: #fff; --fg-2: rgba(255, 255, 255, .84); --fg-3: rgba(255, 255, 255, .68);
  --glass: rgba(255, 255, 255, .08); --glass-strong: rgba(255, 255, 255, .15);
  --glass-line: rgba(255, 255, 255, .18); --glass-hi: rgba(255, 255, 255, .28);
  --glass-shadow: none;
  --btn-bg: var(--crimson); --btn-fg: #fff; --focus: #fff; --link: #D6568F;
  --chip-on-bg: #fff; --chip-on-fg: #000;
  --field-bg: rgba(255, 255, 255, .08); --field-line: rgba(255, 255, 255, .6); --danger: #FF9DB8;
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column;
  max-height: min(94dvh, 900px);
  border-radius: 30px 30px 0 0; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(34rem 20rem at 100% 0%, rgba(171, 29, 113, .55), transparent 70%),
    rgba(12, 6, 9, .86);
  border: 1px solid rgba(255, 255, 255, .2); border-bottom: 0;
  box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(34px) saturate(170%); backdrop-filter: blur(34px) saturate(170%);
  animation: sheet-up .42s var(--ease) both;
}
dialog.sheet.is-closing .sheet__panel { animation: sheet-down .26s ease forwards; }
dialog.sheet.is-closing::backdrop { animation: fade-out .26s ease forwards; }
.sheet__grab { width: 42px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .35); margin: 10px auto 0; flex: none; }
.sheet__close { position: absolute; top: 14px; right: 14px; z-index: 5; --focus: #fff; background: rgba(12, 6, 9, .55); }
.sheet__scroll { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; flex: 1 1 auto; }
.sheet__foot {
  flex: none; padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--glass-line);
  background: rgba(10, 4, 7, .72);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
@media (min-width: 900px) {
  .sheet__panel {
    left: 50%; right: auto; top: 50%; bottom: auto;
    width: min(940px, 92vw); max-height: min(88dvh, 860px);
    border-radius: 34px; border-bottom: 1px solid rgba(255, 255, 255, .2);
    animation: pop-in .36s var(--ease) both;
    transform: translate(-50%, -50%);
  }
  .sheet__panel--narrow { width: min(560px, 92vw); }
  .sheet__grab { display: none; }
  dialog.sheet.is-closing .sheet__panel { animation: pop-out .22s ease forwards; }
}
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-down { to { transform: translateY(100%); } }
@keyframes pop-in { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes pop-out { to { opacity: 0; transform: translate(-50%, -48%) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

/* ---------- Page transitions (Chrome / Safari 18+): header + tab bar stay put ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .24s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-delay: 0s !important;
    animation-iteration-count: 1 !important; transition-duration: .001ms !important;
  }
  @view-transition { navigation: none; }
}

/* ---------- Phone menu drawer (header hamburger): "Menu" / "About us" ---------- */
.drawer { position: fixed; inset: 0; z-index: 120; visibility: hidden; pointer-events: none; }
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(12, 6, 9, .55); opacity: 0; transition: opacity .28s var(--ease); }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 360px);
  display: flex; flex-direction: column; gap: 1rem; overflow-y: auto; overscroll-behavior: contain;
  padding: max(14px, env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  background: #fff; color: var(--ink); border-radius: 28px 0 0 28px;
  box-shadow: -24px 0 60px -20px rgba(30, 0, 14, .5);
  transform: translateX(104%); transition: transform .3s var(--ease);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-left: 6px; }
.drawer__top .brand img { height: 30px; width: auto; }
.drawer__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--blush); }
.drawer__tabs button { min-height: 44px; border: 0; border-radius: 999px; background: transparent; font-weight: 800; color: rgba(10, 10, 10, .7); transition: background-color .2s, color .2s; }
.drawer__tabs button[aria-selected="true"] { background: var(--crimson); color: #fff; }
.drawer__tabs button:focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; }
.drawer__list { display: grid; gap: 2px; align-content: start; }
.drawer__list[hidden], .drawer__list a[hidden] { display: none; }
.drawer__list a { display: flex; align-items: center; gap: .85rem; min-height: 54px; padding: 0 .9rem; border-radius: 16px; text-decoration: none; font-weight: 700; color: var(--ink); }
.drawer__list a span { flex: 1; }
.drawer__list a .i { color: var(--crimson); }
.drawer__list a .go { width: 18px; height: 18px; color: rgba(10, 10, 10, .35); }
.drawer__list a:hover, .drawer__list a:focus-visible { background: rgba(171, 29, 113, .08); outline: none; }
body.is-drawer-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .drawer__scrim, .drawer__panel { transition: none; } }

/* ---------- "Do this in the app" popup ---------- */
.app-popup { display: grid; justify-items: center; gap: .9rem; text-align: center; padding: 2.4rem 1.4rem 1.7rem; }
.app-popup__ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--glass-strong); color: #fff; }
.app-popup p { color: var(--fg-2); max-width: 36ch; }
.app-popup__stores { justify-content: center; margin-top: .3rem; }

/* elements shown/hidden by sign-in state (JS toggles [hidden]) must win over their own display rules */
[data-auth][hidden] { display: none !important; }

/* ---------- My plans (the profile tab and the plans page) ---------- */
.pftabs { display: flex; gap: .5rem; margin: 0 0 1.25rem; }
.pftabs__b { border: 1px solid var(--line, #e6dde3); background: #fff; color: var(--fg, #222); border-radius: 999px; padding: .55rem 1.1rem; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; }
.pftabs__b.is-on { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.myplan { background: #fff; border: 1px solid var(--line, #eadfe6); border-radius: 20px; padding: 1.2rem 1.3rem; box-shadow: 0 4px 18px rgba(171, 29, 113, .07); }
.myplan__top { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.myplan__name { font-family: var(--font-display, inherit); font-size: 1.6rem; line-height: 1.1; color: var(--crimson); }
.myplan__when { color: var(--fg-3, #777); font-size: .9rem; font-weight: 600; }
.myplan__bar { height: 8px; border-radius: 99px; background: rgba(171, 29, 113, .12); margin: .9rem 0 .35rem; overflow: hidden; }
.myplan__bar i { display: block; height: 100%; background: var(--crimson); border-radius: 99px; }
.myplan__store { font-size: .85rem; color: var(--fg-3, #777); margin: 0 0 .7rem; }
.myplan__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem 1rem; font-size: .92rem; font-weight: 600; }
.myplans__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1rem 0 .6rem; }
.myplans__fine { font-size: .85rem; }


/* ---------- Scroll reveal (assets/js/reveal.js adds these classes; without the script, or with reduced motion, nothing is hidden) ---------- */
.rv {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity .75s cubic-bezier(.2, .7, .2, 1), transform .75s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--rv-d, 0ms);
  will-change: opacity, transform;
}
.rv.rv-img { transform: translate3d(0, 22px, 0) scale(.96); }
.rv.rv-in { opacity: 1; transform: none; }
@media print { .rv { opacity: 1 !important; transform: none !important; } }
