/* =========================================================
   Tile Match Fun — Floating Match-Board Landing
   Soft peach sky + sky-blue tile panels (casual 3D game vibe)
   ========================================================= */

:root {
  --peach-1: #ffe4c8;
  --peach-2: #ffc48a;
  --peach-3: #ff9a5c;
  --sky-1: #5ec8ff;
  --sky-2: #1a9fff;
  --sky-3: #0b6fd4;
  --sky-deep: #0658a8;
  --tile: #ffffff;
  --gold-1: #ffe566;
  --gold-2: #ff9a1a;
  --green: #3ecf6e;
  --green-deep: #1fa34a;
  --coral: #ff5a6e;
  --ink: #1a2b4a;
  --ink-soft: #3d5278;
  --radius-tile: 18px;
  --radius-panel: 32px;
  --shadow-tile: 0 8px 0 rgba(6, 88, 168, 0.18), 0 14px 28px rgba(255, 122, 60, 0.18);
  --shadow-press: inset 0 -3px 0 rgba(0, 0, 0, 0.12), 0 4px 0 rgba(6, 88, 168, 0.2);
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --nav-h: 72px;
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, #fff6eb 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 30%, rgba(94, 200, 255, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(255, 154, 92, 0.45) 0%, transparent 50%),
    linear-gradient(165deg, var(--peach-1) 0%, #ffd4a8 35%, #b8e4ff 100%);
  background-attachment: fixed;
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

/* Skip link */
.tmf-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--sky-2);
  color: #fff;
  border-radius: 0 0 12px 0;
  font-weight: 700;
}
.tmf-skip:focus {
  left: 0;
}

/* Floating orbs */
.tmf-sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.tmf-sky__glow {
  position: absolute;
  width: 60vw;
  height: 60vw;
  top: -10%;
  left: 20%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 70%);
  filter: blur(40px);
}
.tmf-orb {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 28px;
  height: 28px;
  border-radius: 10px;
  animation: tmf-float 5.5s var(--ease-out) infinite alternate;
  animation-delay: var(--d);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}
.tmf-orb--coin { background: linear-gradient(145deg, #ffe566, #ffb020); border-radius: 50%; }
.tmf-orb--gem { background: linear-gradient(145deg, #7af0ff, #2a8dff); clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); }
.tmf-orb--star { background: linear-gradient(145deg, #fff3a0, #ff9a1a); width: 22px; height: 22px; transform: rotate(20deg); }
.tmf-orb--leaf { background: linear-gradient(145deg, #9aef6a, #3ecf6e); border-radius: 50% 0 50% 50%; }
.tmf-orb--chili { background: linear-gradient(145deg, #ff8a7a, #ff3d55); border-radius: 40% 60% 50% 50%; width: 18px; height: 32px; }

@keyframes tmf-float {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(-18px) rotate(8deg); }
}

/* ---------- NAV ---------- */
.tmf-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  max-width: 1180px;
  margin: 0.75rem auto 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 3px solid rgba(26, 159, 255, 0.35);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(255, 122, 60, 0.15);
  transition: box-shadow 0.25s var(--ease-out), background 0.25s;
}
.tmf-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 36px rgba(11, 111, 212, 0.18);
}

.tmf-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.tmf-nav__tile {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--sky-1), var(--sky-2));
  border: 3px solid var(--sky-deep);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-press);
}
.tmf-nav__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tmf-nav__tile--sm {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}
.tmf-nav__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--sky-deep);
}

.tmf-nav__chips {
  display: none;
  flex: 1;
  justify-content: center;
  gap: 0.4rem;
}
.tmf-chip {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: transparent;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease-bounce);
}
.tmf-chip:hover {
  background: rgba(26, 159, 255, 0.12);
  color: var(--sky-deep);
  transform: translateY(-2px);
}
.tmf-chip--hot {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  color: #5a2e00;
  border: 2px solid #d97800;
  box-shadow: 0 3px 0 #c46a00;
}
.tmf-chip--hot:hover {
  background: linear-gradient(180deg, #fff08a, #ffae30);
  color: #5a2e00;
}

.tmf-nav__cta {
  display: none;
}

.tmf-burger {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--sky-2);
  border: 3px solid var(--sky-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: var(--shadow-press);
}
.tmf-burger span {
  display: block;
  width: 18px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.tmf-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.tmf-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.tmf-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.tmf-drawer {
  position: fixed;
  top: calc(var(--nav-h) + 0.5rem);
  left: 1rem;
  right: 1rem;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  background: #fff;
  border: 3px solid var(--sky-2);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(11, 111, 212, 0.2);
}
.tmf-drawer[hidden] {
  display: none !important;
}
.tmf-drawer a {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-weight: 700;
  background: rgba(26, 159, 255, 0.08);
  color: var(--sky-deep);
  transition: background 0.2s;
}
.tmf-drawer a:hover {
  background: rgba(26, 159, 255, 0.16);
}

/* ---------- BUTTONS ---------- */
.tmf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s, filter 0.2s;
}
.tmf-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
}
.tmf-btn:active {
  transform: translateY(1px) scale(0.97);
}
.tmf-btn--cta {
  background: linear-gradient(180deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff;
  border: 3px solid #157a38;
  box-shadow: 0 5px 0 #0f5c2a, 0 10px 20px rgba(31, 163, 74, 0.3);
}
.tmf-btn--cta:hover {
  box-shadow: 0 7px 0 #0f5c2a, 0 14px 24px rgba(31, 163, 74, 0.35);
}
.tmf-btn--block {
  width: 100%;
  margin-top: 0.5rem;
}
.tmf-btn--store {
  background: linear-gradient(180deg, #2a2a32 0%, #111118 100%);
  color: #fff;
  border: 3px solid #000;
  box-shadow: 0 5px 0 #000, 0 10px 22px rgba(0, 0, 0, 0.2);
  text-align: left;
  padding: 0.65rem 1.2rem 0.65rem 1rem;
  min-width: 168px;
}
.tmf-btn--store span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 1rem;
}
.tmf-btn--store small {
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.tmf-btn--store-alt {
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-3) 100%);
  border-color: var(--sky-deep);
  box-shadow: 0 5px 0 var(--sky-deep), 0 10px 22px rgba(11, 111, 212, 0.28);
}
.tmf-btn svg,
.tmf-btn i {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.tmf-gp {
  width: 22px;
  height: 22px;
}

/* ---------- MAIN ---------- */
#tmf-main {
  position: relative;
  z-index: 1;
  padding-bottom: 3rem;
}

/* ---------- HERO ---------- */
.tmf-hero {
  position: relative;
  max-width: 1180px;
  margin: 1.5rem auto 0;
  padding: 0 1.25rem 2rem;
  display: grid;
  gap: 1.5rem;
  align-items: end;
}

.tmf-hero__board {
  position: relative;
  background: linear-gradient(165deg, var(--sky-1) 0%, var(--sky-2) 55%, var(--sky-3) 100%);
  border: 5px solid var(--sky-deep);
  border-radius: var(--radius-panel);
  padding: 1.75rem 1.5rem 2rem;
  box-shadow:
    0 12px 0 rgba(6, 88, 168, 0.25),
    0 28px 50px rgba(255, 122, 60, 0.22),
    inset 0 2px 0 rgba(255, 255, 255, 0.35);
  overflow: hidden;
}
.tmf-hero__board::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.35), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(255, 229, 102, 0.2), transparent 35%);
  pointer-events: none;
}

.tmf-logo-board {
  position: relative;
  z-index: 1;
  margin-bottom: 1.25rem;
  max-width: 360px;
}
.tmf-logo-img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0, 40, 100, 0.28);
}

.tmf-hero__tag {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tmf-hero__title {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 7vw, 3.25rem);
  color: #fff;
  text-shadow: 0 4px 0 rgba(6, 88, 168, 0.35);
  margin-bottom: 0.75rem;
}
.tmf-hero__title-accent {
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px #c45a00;
  filter: drop-shadow(0 3px 0 rgba(6, 88, 168, 0.4));
}
.tmf-hero__sub {
  position: relative;
  z-index: 1;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1.35rem;
  text-shadow: 0 1px 2px rgba(0, 40, 100, 0.25);
}
.tmf-hero__cta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.tmf-progress {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.tmf-progress__track {
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
}
.tmf-progress__fill {
  height: 100%;
  width: 12%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7ef08a, #3ecf6e 60%, #ffe566);
  box-shadow: 0 0 12px rgba(62, 207, 110, 0.6);
  transition: width 0.15s linear;
}
.tmf-progress__label {
  font-size: 0.75rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Single hero promo — native 9:16 */
.tmf-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -0.5rem auto 0;
  z-index: 2;
  width: 100%;
  max-width: 300px;
  padding: 0.5rem 0 1rem;
}
.tmf-promo {
  margin: 0;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow:
    0 18px 36px rgba(11, 111, 212, 0.32),
    0 6px 0 rgba(255, 122, 60, 0.2);
  background: var(--sky-3);
  transform: rotate(3deg);
  transition: transform 0.3s var(--ease-bounce);
}
.tmf-promo:hover {
  transform: rotate(1deg) translateY(-8px);
}
.tmf-promo img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  display: block;
  object-fit: contain;
}

/* ---------- SECTION HEADS ---------- */
.tmf-section-head {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 2rem;
}
.tmf-section-head h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  color: var(--ink);
  margin: 0.5rem 0 0.4rem;
}
.tmf-section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.tmf-section-head--light h2 {
  color: #fff;
  text-shadow: 0 3px 0 rgba(6, 88, 168, 0.3);
}
.tmf-section-head--light p {
  color: rgba(255, 255, 255, 0.9);
}
.tmf-pill {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(26, 159, 255, 0.15);
  border: 2px solid rgba(26, 159, 255, 0.35);
  color: var(--sky-deep);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
}
.tmf-pill--light {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

/* ---------- HOW TO PLAY ---------- */
.tmf-how {
  max-width: 1100px;
  margin: 3rem auto 0;
  padding: 0 1.25rem;
}

.tmf-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.tmf-step {
  position: relative;
  width: 100%;
  max-width: 340px;
}
.tmf-step__num {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  border: 3px solid #c45a00;
  color: #5a2e00;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 0 #a34a00;
}
.tmf-step__tile {
  background: var(--tile);
  border: 4px solid var(--sky-2);
  border-radius: var(--radius-tile);
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-tile);
  transition: transform 0.25s var(--ease-bounce);
}
.tmf-step__tile:hover {
  transform: translateY(-6px);
}
.tmf-step__tile i {
  width: 36px;
  height: 36px;
  color: var(--sky-2);
  margin-bottom: 0.5rem;
}
.tmf-step__tile h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
  color: var(--sky-deep);
}
.tmf-step__tile p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.tmf-step__link {
  width: 6px;
  height: 28px;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(255, 200, 50, 0.6);
  list-style: none;
}

/* ---------- FEATURES BOARD ---------- */
.tmf-features {
  max-width: 1100px;
  margin: 4rem auto 0;
  padding: 0 1.25rem;
}
.tmf-features__panel {
  background: linear-gradient(165deg, var(--sky-1), var(--sky-3));
  border: 5px solid var(--sky-deep);
  border-radius: var(--radius-panel);
  padding: 2.5rem 1.25rem 2rem;
  box-shadow:
    0 12px 0 rgba(6, 88, 168, 0.22),
    0 28px 48px rgba(255, 122, 60, 0.18);
}

.tmf-feat-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.tmf-feat {
  background: linear-gradient(180deg, #fff 0%, #f3f9ff 100%);
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-tile);
  padding: 1.35rem 1.25rem;
  box-shadow:
    0 8px 0 rgba(6, 88, 168, 0.2),
    inset 0 -2px 0 rgba(11, 111, 212, 0.08);
  transition: transform 0.25s var(--ease-bounce);
  cursor: default;
}
.tmf-feat:hover {
  transform: translateY(-5px) scale(1.02);
}
.tmf-feat__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  border: 3px solid transparent;
}
.tmf-feat__icon i {
  width: 24px;
  height: 24px;
  color: #fff;
}
.tmf-feat--a .tmf-feat__icon { background: linear-gradient(145deg, #7af0ff, #2a8dff); border-color: #0b6fd4; }
.tmf-feat--b .tmf-feat__icon { background: linear-gradient(145deg, #ffe566, #ff9a1a); border-color: #c45a00; }
.tmf-feat--c .tmf-feat__icon { background: linear-gradient(145deg, #ff8a9a, #ff3d55); border-color: #c02038; }
.tmf-feat--d .tmf-feat__icon { background: linear-gradient(145deg, #9aef6a, #3ecf6e); border-color: #1fa34a; }
.tmf-feat h3 {
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.tmf-feat p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Staggered brick layout on desktop */
@media (min-width: 720px) {
  .tmf-feat-board {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }
  .tmf-feat--b {
    transform: translateY(28px);
  }
  .tmf-feat--b:hover {
    transform: translateY(22px) scale(1.02);
  }
  .tmf-feat--d {
    transform: translateY(28px);
  }
  .tmf-feat--d:hover {
    transform: translateY(22px) scale(1.02);
  }
}

/* ---------- GALLERY ---------- */
.tmf-shots {
  max-width: 1100px;
  margin: 4.5rem auto 0;
  padding: 0 1.25rem;
}

/* Horizontal dock — fixed width keeps 9:16 intact (no grid squeeze) */
.tmf-gallery {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.25rem 0.5rem 1.75rem;
  margin: 0 -0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.tmf-gal {
  flex: 0 0 min(58vw, 220px);
  margin: 0;
  scroll-snap-align: center;
  border-radius: 22px;
  overflow: hidden;
  border: 4px solid var(--sky-2);
  background: var(--sky-3);
  box-shadow: var(--shadow-tile);
  transition: transform 0.25s var(--ease-bounce);
  aspect-ratio: 9 / 16;
}
.tmf-gal:hover {
  transform: translateY(-6px);
}
.tmf-gal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (min-width: 900px) {
  .tmf-gallery {
    justify-content: center;
    overflow-x: visible;
    flex-wrap: wrap;
    gap: 1.1rem;
    padding: 1rem 0 1.5rem;
  }
  .tmf-gal {
    flex: 0 0 200px;
  }
  .tmf-gal--1 { transform: rotate(-2.5deg); }
  .tmf-gal--2 { transform: rotate(2deg) translateY(12px); }
  .tmf-gal--3 { transform: rotate(-1.5deg); }
  .tmf-gal--4 { transform: rotate(2.5deg) translateY(12px); }
  .tmf-gal--1:hover { transform: rotate(-2.5deg) translateY(-6px); }
  .tmf-gal--2:hover { transform: rotate(2deg) translateY(6px); }
  .tmf-gal--3:hover { transform: rotate(-1.5deg) translateY(-6px); }
  .tmf-gal--4:hover { transform: rotate(2.5deg) translateY(6px); }
}

/* ---------- DOWNLOAD ---------- */
.tmf-download {
  max-width: 720px;
  margin: 4.5rem auto 0;
  padding: 0 1.25rem;
}
.tmf-download__card {
  position: relative;
  text-align: center;
  background: linear-gradient(160deg, #fff8f0, #fff);
  border: 5px solid var(--peach-3);
  border-radius: var(--radius-panel);
  padding: 2.75rem 1.5rem 2rem;
  box-shadow:
    0 12px 0 rgba(255, 122, 60, 0.25),
    0 28px 48px rgba(255, 122, 60, 0.2);
}
.tmf-download__badge {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--sky-1), var(--sky-2));
  border: 3px solid var(--sky-deep);
  display: grid;
  place-items: center;
  box-shadow: 0 5px 0 var(--sky-deep);
  overflow: hidden;
  padding: 4px;
}
.tmf-download__badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.tmf-download__card h2 {
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.tmf-download__card > p {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}
.tmf-download__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ---------- FOOTER ---------- */
.tmf-footer {
  position: relative;
  z-index: 1;
  margin-top: 3.5rem;
  padding: 2rem 1.25rem 2.5rem;
  background: rgba(255, 255, 255, 0.55);
  border-top: 3px solid rgba(26, 159, 255, 0.25);
}
.tmf-footer__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.tmf-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  color: var(--sky-deep);
}
.tmf-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}
.tmf-footer__links a {
  font-weight: 700;
  color: var(--sky-deep);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(26, 159, 255, 0.1);
  transition: background 0.2s, transform 0.2s;
}
.tmf-footer__links a:hover {
  background: rgba(26, 159, 255, 0.2);
  transform: translateY(-2px);
}
.tmf-footer__copy {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---------- MODAL ---------- */
.tmf-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.tmf-modal[hidden] {
  display: none !important;
}
.tmf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 43, 74, 0.55);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.tmf-modal__panel {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  background: #fff;
  border: 4px solid var(--sky-2);
  border-radius: 28px;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 24px 48px rgba(11, 111, 212, 0.3);
  animation: tmf-modal-in 0.35s var(--ease-bounce);
}
@keyframes tmf-modal-in {
  from { opacity: 0; transform: scale(0.85) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.tmf-modal__x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(26, 159, 255, 0.12);
  color: var(--sky-deep);
  display: grid;
  place-items: center;
}
.tmf-modal__x i {
  width: 18px;
  height: 18px;
}
.tmf-modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2));
  border: 3px solid #c45a00;
  display: grid;
  place-items: center;
  color: #5a2e00;
}
.tmf-modal__icon i {
  width: 28px;
  height: 28px;
}
.tmf-modal__panel h2 {
  font-size: 1.65rem;
  color: var(--sky-deep);
  margin-bottom: 0.5rem;
}
.tmf-modal__panel p {
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

/* ---------- RESPONSIVE ---------- */
@media (min-width: 768px) {
  .tmf-nav__chips {
    display: flex;
  }
  .tmf-nav__cta {
    display: inline-flex;
  }
  .tmf-burger {
    display: none;
  }
  .tmf-drawer {
    display: none !important;
  }

  .tmf-hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 0;
    padding-top: 1rem;
  }
  .tmf-hero__board {
    padding: 2.25rem 2rem 2.25rem;
    margin-right: -2.5rem;
  }
  .tmf-showcase {
    margin: 0;
    max-width: min(280px, 30vw);
    justify-self: end;
    align-self: center;
  }
  .tmf-promo {
    transform: rotate(4deg);
  }
  .tmf-promo:hover {
    transform: rotate(2deg) translateY(-8px);
  }

  .tmf-steps {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 0;
  }
  .tmf-step {
    max-width: 260px;
  }
  .tmf-step__link {
    width: 40px;
    height: 6px;
    align-self: center;
    background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  }
}

@media (min-width: 1024px) {
  .tmf-nav {
    padding: 0.85rem 1.5rem;
    margin-top: 1rem;
  }
  .tmf-logo-board {
    max-width: 400px;
  }
  .tmf-features__panel {
    padding: 3rem 2.5rem 2.5rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .tmf-orb,
  .tmf-modal__panel {
    animation: none !important;
  }
  .tmf-btn,
  .tmf-chip,
  .tmf-feat,
  .tmf-gal,
  .tmf-step__tile,
  .tmf-promo {
    transition: none !important;
  }
}
