/* Hyldehelten prototype — the smartphone: frame, home screen, notification banners.
   The phone is built at 414 × 868 px and scaled to fit by main.js. */

.device {
  position: relative;
  width: 414px; height: 868px;
  padding: 12px;
  border-radius: 62px;
  background: #0c1320;
  box-shadow: inset 0 0 0 2px #2b3547, 0 44px 70px -34px rgba(18, 36, 59, .6), 0 16px 26px -14px rgba(18, 36, 59, .35);
}
.device.buzz { animation: buzz .45s ease; }
@keyframes buzz {
  15% { translate: -3px 0; rotate: -.4deg; }
  30% { translate: 3px 0; rotate: .4deg; }
  45% { translate: -2px 0; }
  60% { translate: 2px 0; }
  75% { translate: -1px 0; }
}
.btn-side { position: absolute; width: 4px; border-radius: 2px; background: #0c1320; }
.btn-side.l1 { left: -3px; top: 170px; height: 34px; }
.btn-side.l2 { left: -3px; top: 228px; height: 64px; }
.btn-side.r1 { right: -3px; top: 252px; height: 98px; }

.screen {
  position: relative;
  width: 390px; height: 844px;
  border-radius: 50px;
  overflow: hidden;
  isolation: isolate;
  background: var(--cream);
  color: var(--ink);
}

/* ---------- status bar ---------- */
.statusbar {
  position: absolute; inset: 0 0 auto 0; z-index: 30;
  height: 54px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 30px 0 40px;
  font-size: 16px; font-weight: 600;
  pointer-events: none;
}
.island { position: absolute; left: 50%; top: 12px; width: 118px; height: 34px; margin-left: -59px; border-radius: 20px; background: #0c1320; }
.sb-icons { display: flex; align-items: center; gap: 6px; }
.sb-icons svg { fill: currentColor; }

/* ---------- home screen ---------- */
.home-screen {
  position: absolute; inset: 0;
  padding: 72px 24px 0;
  background: linear-gradient(168deg, #fefbeb 0%, #e8f2dc 46%, #f9c6b6 78%, #fe7059 112%);
  transition: transform .34s cubic-bezier(.2, .9, .3, 1), opacity .22s;
}
.app-open .home-screen { transform: scale(1.1); opacity: 0; pointer-events: none; }

.hs-widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.widget {
  height: 156px;
  display: flex; flex-direction: column;
  padding: 15px 16px;
  border: 0; border-radius: 28px;
  background: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 10px 22px -16px rgba(18, 36, 59, .5);
  text-align: left; font: inherit; color: inherit;
}
.w-hh { cursor: pointer; transition: transform .15s; }
.w-hh:active { transform: scale(.97); }
.w-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; }
.w-hh b { margin-top: auto; font-size: 21px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.w-line { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 12px; color: var(--ink-2); }
.w-line .ic { width: 15px; height: 15px; }
.w-date em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--coral-ink); text-transform: uppercase; letter-spacing: .05em; }
.w-date b { font-size: 50px; font-weight: 500; line-height: 1.05; letter-spacing: -.02em; }
.w-date span { font-size: 14px; font-weight: 500; }
.w-date small { margin-top: auto; font-size: 11px; color: var(--ink-2); }

.hs-grid { display: grid; grid-template-columns: repeat(4, 62px); justify-content: space-between; row-gap: 20px; margin-top: 28px; }
.app-ico { position: relative; display: grid; justify-items: center; gap: 5px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; }
.app-ico .lbl { font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.ico {
  display: grid; place-items: center;
  width: 62px; height: 62px; flex: none;
  border-radius: 17px;
  box-shadow: 0 8px 14px -10px rgba(18, 36, 59, .6);
  transition: transform .15s;
}
.app-ico:active .ico { transform: scale(.92); }
.ico svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.hh { background: url(../logo.png) 74% 5% / 272% auto no-repeat, linear-gradient(165deg, #ffd9cd 0%, #fe7059 100%); box-shadow: 0 8px 14px -10px rgba(18, 36, 59, .6), inset 0 0 0 1px rgba(18, 36, 59, .08); }
.ico.hh.sm { width: 26px; height: 26px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(18, 36, 59, .1); }
.ico.cal { background: #fff; grid-template-rows: auto auto; align-content: center; gap: 0; }
.ico.cal em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--coral-ink); letter-spacing: .04em; line-height: 1.2; }
.ico.cal b { font-size: 27px; font-weight: 500; line-height: 1; }
.app-ico.wiggle .ico { animation: wiggle .4s ease; }
@keyframes wiggle { 25% { transform: rotate(-7deg); } 50% { transform: rotate(6deg); } 75% { transform: rotate(-3deg); } }
.badge-n {
  position: absolute; top: -7px; right: -8px;
  display: grid; place-items: center;
  min-width: 23px; height: 23px; padding: 0 6px;
  border-radius: 12px; border: 2px solid rgba(255, 255, 255, .92);
  background: #ef3e2c; color: #fff;
  font-size: 12.5px; font-weight: 600;
  animation: badgeIn .3s cubic-bezier(.3, 1.6, .5, 1);
}
@keyframes badgeIn { from { transform: scale(0); } }

.hs-search {
  position: absolute; left: 50%; bottom: 138px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 5px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .38);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 13px; font-weight: 500;
}
.hs-search .ic { width: 15px; height: 15px; }
.hs-dock {
  position: absolute; left: 14px; right: 14px; bottom: 30px;
  height: 90px;
  display: flex; align-items: center; justify-content: space-around;
  padding: 0 8px; border-radius: 34px;
  background: rgba(255, 255, 255, .4);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.hs-dock .lbl { display: none; }

/* ---------- the app window ---------- */
.app-win {
  position: absolute; inset: 0; z-index: 10;
  border-radius: 50px; overflow: hidden;
  background: var(--cream);
  opacity: 0; transform: scale(.2);
  pointer-events: none;
  transition: transform .36s cubic-bezier(.2, .9, .25, 1), opacity .2s;
}
.app-open .app-win { opacity: 1; transform: none; pointer-events: auto; }

.homebar { position: absolute; left: 50%; bottom: 2px; z-index: 40; width: 170px; height: 24px; margin-left: -85px; padding: 0; border: 0; background: none; cursor: pointer; }
.homebar::after { content: ''; position: absolute; left: 16px; right: 16px; top: 11px; height: 5px; border-radius: 3px; background: #0c1320; transition: transform .15s; }
.homebar:hover::after { transform: scaleX(1.1) scaleY(1.2); }
.homebar:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 12px; }

/* ---------- notification banners ---------- */
.banners { position: absolute; left: 10px; right: 10px; top: 52px; z-index: 35; display: grid; gap: 8px; pointer-events: none; }
.banner {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: 11px;
  width: 100%; padding: 12px 15px 13px 12px;
  border: 0; border-radius: 24px;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 16px 32px -16px rgba(18, 36, 59, .55), 0 0 0 1px rgba(18, 36, 59, .07);
  text-align: left; font: inherit; color: var(--ink);
  cursor: pointer;
  animation: bannerIn .5s cubic-bezier(.2, 1.25, .3, 1) both;
}
.banner.out { animation: bannerOut .3s ease both; }
.banner:hover { background: #fff; }
.banner .ico { width: 42px; height: 42px; border-radius: 11px; margin-top: 2px; }
.b-main { display: grid; gap: 1px; min-width: 0; flex: 1; }
.b-top { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 500; letter-spacing: .06em; color: var(--ink-2); }
.banner strong { font-size: 14px; font-weight: 600; line-height: 1.3; }
.b-body { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 12.5px; line-height: 1.35; color: var(--ink-2); }
@keyframes bannerIn { from { transform: translateY(-130%); opacity: 0; } }
@keyframes bannerOut { to { transform: translateY(-40%) scale(.96); opacity: 0; } }
