/* ============================================
   PAGES - page-specific components: invite stack, mini calendar,
   templates list, QR card, waitlist form, 404 layout
   ============================================ */

/* ============================================
   INDEX - Hero "upcoming trip" mini row inside the phone
   ============================================ */
.trip-row {
  display: flex;
  align-items: center;
  gap: 11px;
}
.trip-row__icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid; place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.trip-row__body { flex: 1; min-width: 0; }
.trip-row__eyebrow {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--primary-soft);
  font-family: var(--font-body);
}
.trip-row__title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-top: 1px;
}
.trip-row__meta {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-body);
}
.trip-row__pct {
  font-size: 11px;
  font-weight: 800;
  color: var(--positive-bright);
}

/* ============================================
   INDEX - Invite stack (Shared trip card + offset side cards)
   ============================================ */
.invite-stack {
  position: relative;
  width: 100%;
  max-width: 480px;
}
.invite-stack__main {
  padding: 22px;
  position: relative;
  z-index: 3;
}
.invite-stack__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.invite-stack__mark {
  width: 46px; height: 46px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid; place-items: center;
  flex-shrink: 0;
}
.invite-stack__title {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-display);
  color: #fff;
  letter-spacing: 0;
}
.invite-stack__sub {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.invite-stack__avatars {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.invite-stack__side {
  position: absolute;
  width: 208px;
  padding: 14px;
  z-index: 2;
}
.invite-stack__side--a {
  top: 24px; right: -24px;
  width: 180px;
  transform: rotate(4deg);
}
.invite-stack__side--b {
  bottom: -24px; left: -30px;
  transform: rotate(-3deg);
}
.invite-stack__side .lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.invite-stack__side--a .lbl { color: var(--positive-bright); }
.invite-stack__side--b .lbl { color: var(--tertiary); }
.invite-stack__side .body {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-display);
  margin-bottom: 4px;
}
.invite-stack__side .time {
  font-size: 10.5px;
  color: var(--ink-mute);
}
/* On narrow phones, tuck the offset cards inside the viewport. */
@media (max-width: 560px) {
  .invite-stack__side--a { right: 0; }
  .invite-stack__side--b { left: 0; }
}
@media (max-width: 380px) {
  .invite-stack__main { padding: 18px; }
  .invite-stack__head { align-items: flex-start; }
  .invite-stack__title { font-size: 18px; }
  .invite-stack__side {
    width: min(190px, 68vw);
    padding: 12px;
  }
}

/* ============================================
   INDEX - Mini calendar (March 2026 inside Calendar pillar)
   ============================================ */
.cal {
  margin-top: 22px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--hairline-2);
}
.cal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.cal__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
}
.cal__nav { display: flex; gap: 6px; }
.cal__navbtn {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  display: grid; place-items: center;
  font-size: 11px;
}
.cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 10px;
  color: var(--ink-mute);
  text-align: center;
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-weight: 700;
}
.cal__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 12px;
  font-family: var(--font-display);
  font-weight: 600;
}
.cal__day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
}
.cal__day--out      { color: var(--ink-faint); }
.cal__day--today    { background: #fff; color: #0D1233; border-radius: 6px; font-weight: 800; }
.cal__day--event    { background: rgba(255, 122, 144, 0.18); border-radius: 6px; }
.cal__day--trip     { background: rgba(169, 184, 255, 0.10); border-radius: 6px; }
.cal__dot {
  position: absolute;
  bottom: 2px;
  width: 4px; height: 4px;
  border-radius: 50%;
}
.cal__dot--pink { background: var(--tertiary); }
.cal__dot--blue { background: var(--primary-soft); }

/* ============================================
   INDEX - Templates list
   ============================================ */
.tpl-list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tpl-row {
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(243, 124, 196, 0.10);
  border: 1px solid rgba(243, 124, 196, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.tpl-row--blue {
  background: rgba(143, 151, 255, 0.10);
  border-color: rgba(143, 151, 255, 0.25);
}
.tpl-row--gold {
  background: rgba(242, 201, 76, 0.10);
  border-color: rgba(242, 201, 76, 0.25);
}
.tpl-row__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: #fff;
}
.tpl-row__meta {
  font-size: 12px;
  color: var(--ink-mute);
  font-family: var(--font-body);
}
.tpl-row__use {
  font-size: 11px;
  font-weight: 800;
  color: var(--tertiary);
  text-decoration: none;
  letter-spacing: 0.04em;
  flex: none;
}
.tpl-row--blue .tpl-row__use { color: var(--primary-soft); }
.tpl-row--gold .tpl-row__use { color: var(--gold); }
@media (max-width: 420px) {
  .tpl-row {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }
}

/* ============================================
   DOWNLOAD - Download page hero text alignment
   ============================================ */
.dl-hero {
  padding-top: 88px;
  padding-bottom: 50px;
}
.dl-hero__h1   { margin-top: 18px; }
.dl-hero__lead { margin: 18px auto 0; }
.dl-hero__cta  { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.dl-hero__note { margin-top: 48px; color: var(--ink-mute); font-size: 13px; }
.dl-hero__note a { color: var(--primary-soft); }

/* QR card */
.qr-card {
  margin: 40px auto 0;
  padding: 30px;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 28px;
  text-align: left;
}
.qr-code {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 2px;
}
.qr-cell {
  /* default: empty white cell */
}
.qr-cell--on { background: #0D1233; }
.qr-cell--corner { background: #0D1233; border-radius: 2px; }
.qr-card__title {
  font-size: 18px;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.qr-card__body {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
@media (max-width: 560px) {
  .dl-hero {
    padding-top: 78px;
    padding-bottom: 42px;
  }
  .dl-hero__h1,
  .dl-hero__lead {
    margin-left: auto;
    margin-right: auto;
  }
  .dl-hero__h1 { max-width: 320px; }
  .dl-hero__lead {
    max-width: 28ch;
    font-size: 16px;
  }
  .qr-card {
    flex-direction: column;
    padding: 24px;
    text-align: center;
  }
  .qr-code {
    width: 112px;
    height: 112px;
  }
  .qr-card__body {
    max-width: 28ch;
    margin: 0 auto;
  }
}

/* Device requirements grid spacing override */
.dl-reqs { margin-top: 64px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .dl-reqs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .dl-reqs { grid-template-columns: minmax(0, 1fr); } }

/* WAITLIST form */
.waitlist {
  margin: 64px auto 0;
  padding: 30px;
  max-width: 560px;
  text-align: left;
}
.waitlist__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.waitlist__intro {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.waitlist__form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.waitlist__input {
  flex: 1;
  min-width: 200px;
  padding: 14px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--hairline-2);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s;
}
.waitlist__input:focus { border-color: var(--primary-soft); }
.waitlist__submit { padding: 14px 22px; }
.waitlist__submit:disabled { opacity: 0.7; cursor: default; transform: none; }
@media (max-width: 560px) {
  .waitlist {
    margin-top: 48px;
    padding: 22px;
  }
  .waitlist__form {
    flex-direction: column;
  }
  .waitlist__input,
  .waitlist__submit {
    width: 100%;
  }
  .waitlist__input {
    min-width: 0;
  }
}

/* Form status message (injected after any [data-waitlist] form) */
.form-status {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 600;
}
.form-status[data-kind="success"] { color: var(--positive-bright); }
.form-status[data-kind="error"]   { color: var(--tertiary); }

/* ============================================
   404 page
   ============================================ */
.notfound {
  padding: 132px 0 100px;
  text-align: center;
}
.notfound__mascot {
  display: block;
  width: 160px; height: auto;
  margin: 0 auto 8px;
  image-rendering: pixelated;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.4));
}
.notfound h1 { margin-top: 24px; }
.notfound p { margin: 22px auto 36px; max-width: 540px; }
.notfound__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   CONTENT PAGES (about, contact, careers, press, help, changelog,
   templates, blog, guides, routines, affiliates, status)
   ============================================ */
.page-hero {
  padding: 102px 0 18px;
  text-align: center;
}
.page-hero h1 { margin-top: 14px; }
.page-hero .lead { margin: 16px auto 0; }
.page-section { padding: 40px 0 78px; }
.page-narrow { max-width: 760px; margin: 0 auto; }
@media (max-width: 560px) {
  .page-hero {
    padding: 78px 0 10px;
  }
  .page-section {
    padding: 34px 0 60px;
  }
}

/* Generic card (reuses glass look) for grids of links/info */
.info-card {
  display: block;
  padding: 24px 22px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--hairline-2);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s, background 0.18s, border-color 0.18s;
  min-width: 0;
}
a.info-card:hover { transform: translateY(-2px); background: rgba(255,255,255,0.055); border-color: rgba(255,255,255,0.20); }
.info-card h4 { color: #fff; margin-bottom: 8px; }
.info-card p { font-size: 14.5px; color: var(--ink-mute); line-height: 1.55; }
.info-card .info-card__meta { color: var(--primary-soft); font-size: 13px; font-weight: 600; margin-top: 12px; display: inline-block; }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 820px) { .card-grid, .card-grid--3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .info-card { padding: 20px; }
}

/* Roles list (careers) */
.role-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline-2);
}
.role-row + .role-row { margin-top: 12px; }
.role-row__title { font-weight: 700; color: #fff; font-size: 16px; }
.role-row__meta { color: var(--ink-mute); font-size: 13.5px; margin-top: 4px; }
.role-row__tag { color: var(--primary-soft); font-size: 13px; font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) {
  .role-row {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 20px;
  }
  .role-row__tag { white-space: normal; }
}

/* Status page */
.status-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 26px;
  border-radius: var(--r-lg);
  background: rgba(33, 179, 98, 0.12);
  border: 1px solid rgba(77, 210, 133, 0.4);
  max-width: 760px; margin: 0 auto 28px;
}
.status-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--positive-bright); box-shadow: 0 0 0 4px rgba(77,210,133,0.25); flex: none; }
.status-banner strong { color: #fff; font-family: var(--font-display); font-size: 18px; }
.status-list { max-width: 760px; margin: 0 auto; }
.status-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4px;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
}
.status-row__ok { color: var(--positive-bright); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 560px) {
  .status-banner {
    align-items: flex-start;
    padding: 18px 20px;
  }
  .status-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

/* Compact feature list inside an .info-card (AI card pair on the homepage) */
.card-feats { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 9px; }
.card-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; }
.card-feats li .b {
  flex: none;
  width: 18px; height: 18px;
  border-radius: 6px;
  background: rgba(242, 201, 76, 0.16);
  color: var(--gold);
  display: grid; place-items: center;
  font-size: 11px;
  margin-top: 1px;
}
.info-card--ai { padding: 28px 26px; }
.info-card--ai .info-card__mark {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(242, 201, 76, 0.16);
  color: var(--gold);
  margin-bottom: 16px;
}

/* Back-to-top button (injected on every page by main.js) */
.back-to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 60;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--hairline-2);
  border-radius: 50%;
  background: rgba(13, 18, 51, 0.7);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.18s;
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top.is-hidden { opacity: 0 !important; pointer-events: none !important; }
.back-to-top:hover { background: rgba(54, 66, 233, 0.55); }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: opacity 0.2s ease; transform: none; } }
@media (max-width: 560px) {
  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }
}

/* ============================================
   INDEX - "Why Cashew" versus block
   ============================================ */
.versus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 780px) { .versus { grid-template-columns: minmax(0, 1fr); } }
.versus__col {
  padding: 26px 24px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--hairline-2);
}
.versus__col--new {
  background: linear-gradient(180deg, rgba(91, 124, 255, 0.16), rgba(24, 184, 166, 0.08));
  border-color: rgba(143, 151, 255, 0.32);
  box-shadow: var(--glow-soft);
}
.versus__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.versus__tag--new { color: var(--primary-soft); }
.versus__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 13px; }
.versus__col li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; line-height: 1.5;
  color: var(--ink-soft);
}
.versus__col li .m {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 6px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
  margin-top: 1px;
}
.versus__col--old li .m { background: rgba(255,255,255,0.06); color: var(--ink-faint); }
.versus__col--new li .m { background: rgba(143, 151, 255, 0.18); color: var(--primary-soft); }

/* ============================================
   CHANGELOG - release cards
   ============================================ */
.releases { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.release {
  padding: 24px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--hairline-2);
  transition: border-color 0.2s, background 0.2s;
}
.release:hover { border-color: rgba(255,255,255,0.20); background: rgba(255,255,255,0.05); }
.release__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.release__ver {
  font-family: var(--font-display); font-weight: 800; font-size: 22px; color: #fff;
  letter-spacing: 0;
}
.release__date { font-size: 13px; color: var(--ink-mute); font-weight: 600; }
.release__latest {
  margin-left: auto; font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  color: var(--positive-bright); background: rgba(77, 210, 133, 0.14);
  border: 1px solid rgba(77, 210, 133, 0.35); padding: 4px 10px; border-radius: var(--r-pill);
}
.release__group { margin-top: 18px; }
.change-tag {
  display: inline-block; font-family: var(--font-body);
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-pill); margin-bottom: 12px;
}
.change-tag--new      { color: var(--positive-bright); background: rgba(77, 210, 133, 0.14); }
.change-tag--improved { color: var(--primary-soft);    background: rgba(143, 151, 255, 0.16); }
.change-tag--fixed    { color: var(--amber);            background: rgba(242, 153, 74, 0.16); }
.release__group ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.release__group li {
  position: relative; padding-left: 20px;
  font-size: 14.5px; line-height: 1.55; color: var(--ink-soft);
}
.release__group li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--primary-soft); opacity: 0.7;
}
.release__group li strong { color: #fff; }
@media (max-width: 560px) {
  .versus__col,
  .release {
    padding: 20px;
  }
  .release__latest {
    margin-left: 0;
  }
}

/* Coming-soon / future content pages */
.coming-soon-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(242, 201, 76, 0.14);
  border: 1px solid rgba(242, 201, 76, 0.4);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}
