/* =========================================================================
   apps.yummbj.com  —  placeholder build
   Light paper theme + per-app accent that transitions on swipe.
   ========================================================================= */

/* ---------- variables ---------- */
:root {
  --accent: #2b59c8;

  --bg:      #f4f2ec;
  --bg-2:    #ece9e0;
  --surface: #ffffff;
  --ink:     #14141a;
  --ink-2:   #45454d;
  --muted:   #898993;
  --line:    #e1ded4;
  --line-2:  #d8d4c8;

  --footer-bg: #0e0e12;
  --footer-fg: #e9e7e0;
  --footer-mut: #8a8a94;

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Sora', system-ui, sans-serif;

  --nav-h: 64px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-soft: cubic-bezier(.4,.0,.2,1);

  --maxw: 1240px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* =======================================================================
   NAV
   ======================================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  background: rgba(244, 242, 236, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.02em;
}
.brand__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
}
.brand__dot { color: var(--accent); margin: 0 1px; transition: color .5s var(--ease); }
.brand__text--light { color: var(--footer-fg); }

/* tabs */
.tabs {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255,255,255,.55);
  border: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs:focus-visible { outline-offset: 2px; }

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color .35s var(--ease), background .35s var(--ease);
}
.tab__idx {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .04em;
  transition: color .35s var(--ease);
}
.tab__icon {
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  display: grid; place-items: center;
}
.tab__icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tab__icon--letter { color: var(--ic); font-family: var(--font-display); font-weight: 800; font-size: 12px; }
.tab__name { letter-spacing: -.01em; }
.tab:hover { color: var(--ink); background: rgba(0,0,0,.035); }
.tab.is-active {
  color: var(--ink);
  background: color-mix(in srgb, var(--tab-accent) 10%, var(--surface));
  box-shadow: 0 1px 2px rgba(20,20,26,.05), 0 6px 16px -10px color-mix(in srgb, var(--tab-accent) 40%, transparent);
}
.tab.is-active .tab__idx { color: var(--tab-accent); }

.tabs__indicator {
  position: absolute;
  bottom: 4px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s, background .5s var(--ease);
}

/* mobile menu button (hidden on desktop) */
.nav__menu {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.nav__menu span {
  width: 16px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.nav__menu.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__menu.is-open span:nth-child(2) { opacity: 0; }
.nav__menu.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* nav right group (language switch + mobile menu) */
.nav__right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,.55);
}
.lang__btn {
  padding: 7px 11px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .02em;
  transition: background .2s, color .2s;
}
.lang__btn.is-active { background: var(--ink); color: #fff; }
.lang__btn:not(.is-active):hover { color: var(--ink); background: rgba(0,0,0,.04); }

/* =======================================================================
   VIEWPAGER
   ======================================================================= */
.vp {
  position: relative;
  width: 100%;
  overflow: hidden;
  touch-action: pan-y; /* allow vertical scroll, we handle horizontal */
  cursor: grab;
  min-height: calc(100vh - var(--nav-h));
}
.vp.is-grabbing { cursor: grabbing; }
.vp.is-dragging { user-select: none; -webkit-user-select: none; }

.vp__track {
  display: flex;
  width: 100%;
  will-change: transform;
  transition: transform .55s var(--ease);
}

/* ---------- panel ---------- */
.panel {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 56px 28px 96px;
  overflow: hidden;
  isolation: isolate;
}
/* accent wash background */
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 78% 18%, color-mix(in srgb, var(--panel-accent) 14%, transparent), transparent 60%),
    radial-gradient(900px 700px at 12% 92%, color-mix(in srgb, var(--panel-accent) 8%, transparent), transparent 55%),
    var(--bg);
}
/* subtle dotted texture */
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(20,20,26,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: 0 0;
  opacity: .5;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
}

.panel__bgnum {
  position: absolute;
  right: 3vw;
  bottom: -6vh;
  z-index: -1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(220px, 38vw, 560px);
  line-height: .8;
  color: color-mix(in srgb, var(--panel-accent) 12%, transparent);
  letter-spacing: -.05em;
  pointer-events: none;
  user-select: none;
}

.panel__inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.panel__copy { min-width: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.eyebrow__num { color: var(--panel-accent); }
.eyebrow__sep { width: 22px; height: 1px; background: var(--line-2); }
.eyebrow__cat { color: var(--ink-2); }

.panel__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 7vw, 64px);
  line-height: .98;
  letter-spacing: -.035em;
  margin: 0 0 18px;
  color: var(--ink);
}
.panel__name-icon {
  display: inline-block;
  vertical-align: middle;
  width: 1em;
  height: 1em;
  margin-right: 18px;
  border-radius: .15em;
  overflow: hidden;
}
.panel__name-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.panel__name-icon--letter {
  display: inline-grid; place-items: center;
  width: 2em; height: 2em;
  color: var(--ic);
  font-family: var(--font-display); font-weight: 800;
  font-size: .5em;
}
.panel__name .panel__cn { display: block; }
.panel__name .panel__en {
  display: block;
  font-size: .42em;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
  margin-top: 8px;
  text-transform: uppercase;
}

.panel__tagline {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  color: var(--panel-accent);
  letter-spacing: -.01em;
  margin: 0 0 14px;
  transition: color .5s var(--ease);
}
.panel__desc {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--ink-2);
  max-width: 52ch;
  margin: 0 0 28px;
  line-height: 1.65;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}
.chip {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.6);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  transition: border-color .4s, color .4s;
}
.chip:hover { border-color: var(--panel-accent); color: var(--ink); }

.panel__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* store badge images (App Store / Google Play) */
.store-badge {
  display: inline-block;
  height: 48px;
  line-height: 0;
  transition: transform .2s var(--ease-soft), opacity .2s;
}
.store-badge img {
  height: 48px;
  width: auto;
  display: block;
}
.store-badge:hover { transform: translateY(-2px); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: transform .2s var(--ease-soft), box-shadow .25s, background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { transition: transform .25s var(--ease-soft); }
.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(20,20,26,.5);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(20,20,26,.55); }
.btn--primary:hover svg { transform: translate(2px,-2px); }
.btn--ghost {
  border: 1px solid var(--line-2);
  color: var(--ink);
  background: rgba(255,255,255,.4);
}
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.panel__badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 11px;
  border: 1px dashed var(--line-2);
  border-radius: 8px;
  letter-spacing: .02em;
}

/* ---------- phone mockup ---------- */
.panel__visual { display: flex; justify-content: center; align-items: center; }
.phone {
  position: relative;
  width: 248px;
  height: 510px;
  border-radius: 42px;
  padding: 12px;
  background: linear-gradient(150deg, #20202a 0%, #0e0e14 55%, #1a1a22 100%);
  box-shadow:
    0 2px 4px rgba(20,20,26,.2),
    0 30px 60px -20px rgba(20,20,26,.45),
    inset 0 0 0 1.5px rgba(255,255,255,.06);
  transform: rotate(-4deg);
  transition: transform .5s var(--ease);
}
.panel:hover .phone { transform: rotate(-1.5deg) translateY(-4px); }

.phone__screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 30% 0%, color-mix(in srgb, var(--screen-accent) 55%, #14141a) 0%, #0e0e14 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--screen-accent) 30%, #14141a), #0a0a0e);
  display: grid;
  place-items: center;
}
.phone__placeholder {
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
  color: #fff;
}
.phone__wm {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 64px;
  letter-spacing: -.03em;
  text-shadow: 0 4px 30px color-mix(in srgb, var(--screen-accent) 60%, transparent);
}
.phone__sub {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .82;
}
/* icon-led phone content */
.phone__placeholder--icon { gap: 14px; }
.phone__icon {
  display: block;
  width: auto;
  height: auto;
  max-width: 140px;
  max-height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .42));
}
/* name-only phone content (ToughAlarm) */
.phone__placeholder--name { gap: 0; }
.phone__name-main {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 6.5vw, 32px);
  line-height: 1;
  letter-spacing: -.02em;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 4px 30px color-mix(in srgb, var(--screen-accent) 60%, transparent);
}
.phone__shot {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: auto;
  max-width: none;
  height: 104%;
  transform: translateX(-50%);
}
.phone__glow {
  position: absolute;
  z-index: -1;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--screen-accent) 30%, transparent), transparent 75%);
  filter: blur(28px);
  opacity: .7;
}

/* ---------- swipe hint ---------- */
.vp__hint {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(20,20,26,.78);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .01em;
  backdrop-filter: blur(6px);
  z-index: 20;
  pointer-events: none;
  animation: hintBob 2.4s var(--ease-soft) infinite;
  transition: opacity .5s, transform .5s;
}
.vp__hint svg { color: color-mix(in srgb, var(--accent) 75%, #fff); }
.vp__hint.is-gone { opacity: 0; transform: translateX(-50%) translateY(8px); }
@keyframes hintBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

/* ---------- progress bar ---------- */
.vp__progress {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 3px;
  background: rgba(20,20,26,.06);
  z-index: 20;
}
.vp__progress span {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--accent);
  transition: width .5s var(--ease), background .5s var(--ease);
}

/* =======================================================================
   FOOTER
   ======================================================================= */
.footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding: 72px 28px 0;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer__logo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.footer__logo .brand__mark { background: #fff; color: var(--footer-bg); }
.footer__tagline {
  margin: 0 0 22px;
  color: var(--footer-mut);
  font-size: 15px;
  line-height: 1.7;
  max-width: 30ch;
}
.footer__company { margin-top: 4px; }
.footer__company-name {
  margin: 0 0 6px;
  color: var(--footer-fg);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
}
.footer__company-addr {
  margin: 0;
  color: var(--footer-mut);
  font-size: 12.5px;
  line-height: 1.6;
  max-width: 34ch;
}
.footer__h {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--footer-fg);
  margin: 6px 0 20px;
}
.footer__links li { margin-bottom: 12px; }
.footer__links a {
  color: var(--footer-mut);
  font-size: 15px;
  transition: color .25s;
}
.footer__links a:hover { color: var(--footer-fg); }
.footer__muted { color: var(--footer-mut); font-size: 13.5px; }
.footer__note { display: block; color: #5c5c66; font-size: 12px; margin-top: 4px; }
.footer__mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--footer-fg) !important;
  font-weight: 600;
  font-size: 15.5px;
}
.footer__mail svg { color: var(--accent); }
.footer__bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  font-size: 13px;
  color: var(--footer-mut);
  line-height: 1.9;
}
.footer__bar .footer__item { white-space: nowrap; }
.footer__sep { margin-right: 8px; opacity: .4; }

/* =======================================================================
   MOBILE SHEET (tab dropdown)
   ======================================================================= */
.sheet {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 55;
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding: 14px 20px 22px;
  transform: translateY(-12px);
  opacity: 0;
  transition: transform .25s var(--ease), opacity .25s;
  box-shadow: 0 30px 50px -20px rgba(0,0,0,.5);
}
.sheet.is-open { transform: translateY(0); opacity: 1; }
.sheet__list { display: flex; flex-direction: column; gap: 4px; max-width: 480px; margin: 0 auto; }
.sheet__item {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 14px;
  border-radius: 12px;
  text-align: left;
  color: var(--footer-fg);
  transition: background .2s;
}
.sheet__item:hover, .sheet__item.is-active { background: rgba(255,255,255,.07); }
.sheet__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--tab-accent);
}
.sheet__icon {
  width: 26px; height: 26px;
  border-radius: 7px;
  overflow: hidden;
  display: grid; place-items: center;
}
.sheet__icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sheet__icon--letter { color: var(--ic); font-family: var(--font-display); font-weight: 800; font-size: 14px; }
.sheet__name { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.sheet__cat { font-size: 12.5px; color: var(--footer-mut); }

/* =======================================================================
   RESPONSIVE
   ======================================================================= */
@media (max-width: 1000px) {
  .panel__inner { grid-template-columns: 1fr 0.85fr; gap: 36px; }
  .phone { width: 220px; height: 452px; }
  .phone__wm { font-size: 54px; }
}

@media (max-width: 860px) {
  .tabs { display: none; }
  .nav__menu { display: inline-flex; }
  .nav__inner { justify-content: space-between; gap: 12px; padding: 0 18px; }

  .panel { padding: 40px 22px 90px; }
  .panel__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: left;
  }
  .panel__visual { order: -1; justify-content: flex-start; }
  .phone { width: 190px; height: 390px; transform: rotate(-3deg); }
  .phone__wm { font-size: 46px; }
  .panel__bgnum { font-size: clamp(180px, 50vw, 320px); right: -2vw; bottom: -4vh; }

  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .footer__bar { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 480px) {
  .panel { padding: 32px 18px 80px; }
  .panel__name { font-size: clamp(38px, 13vw, 56px); }
  .chips { gap: 7px; }
  .chip { font-size: 12.5px; padding: 6px 11px; }
  .btn { padding: 12px 18px; font-size: 14px; }
  .vp__hint { font-size: 11.5px; padding: 7px 13px; bottom: 22px; }
}

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