@font-face {
  font-family: "Noto Sans Dup15q";
  src: url("public/assets/fonts/NotoSans-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #07357f;
  --navy-dark: #052b69;
  --blue: #1477ee;
  --ice: #edf7ff;
  --line: #e1eaf5;
  --red: #f14650;
  --yellow: #ffc72d;
  font-family: "Noto Sans Dup15q", "Noto Sans", sans-serif;
  color: var(--navy);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: linear-gradient(180deg, #fafdff 0%, #eef7ff 100%); }
button, a { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 4px solid var(--yellow); outline-offset: 4px; }

.skip-link, .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus { position: fixed; z-index: 20; width: auto; height: auto; margin: 12px; clip: auto; padding: 10px 14px; border-radius: 10px; background: #fff; color: var(--navy); font-weight: 800; }

.site-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 0 0 24px; }
.topbar { min-height: 102px; display: flex; align-items: center; gap: 26px; padding: 15px 18px; border: 1px solid #e6edf5; border-top: 0; border-radius: 0 0 20px 20px; background: rgba(255,255,255,.96); box-shadow: 0 4px 14px rgba(7,53,127,.09); }
.brand { flex: 0 0 215px; }
.brand img { width: 100%; height: 64px; object-fit: contain; mix-blend-mode: multiply; }
.nav-links { display: flex; flex: 1; justify-content: space-around; align-items: center; gap: 6px; }
.nav-links a { display: inline-flex; align-items: center; gap: 7px; padding: 11px 3px; border-bottom: 3px solid transparent; color: var(--navy); text-decoration: none; font-size: 14px; font-weight: 740; white-space: nowrap; }
.nav-links a.active { border-bottom-color: var(--blue); color: var(--blue); }
.nav-icon { width: 21px; height: 21px; display: grid; place-items: center; color: currentColor; font-size: 22px; line-height: 1; }
.account-link { padding: 11px 18px; border: 2px solid #1580ee; border-radius: 999px; background: #1477ee; color: #fff; text-decoration: none; font-size: 14px; font-weight: 780; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); white-space: nowrap; }

.door { margin-top: 23px; }
.hero-scene { position: relative; overflow: hidden; border-radius: 25px; box-shadow: 0 12px 28px rgba(5,45,107,.16); }
.hero-scene > img { width: 100%; aspect-ratio: 1040 / 595; object-fit: cover; }
.hero-action { position: absolute; left: 4.1%; top: 60.5%; width: 34%; height: 16%; border: 0; border-radius: 999px; background: transparent; }
.hero-action::after { content: ""; position: absolute; inset: -5px; border-radius: inherit; background: rgba(255,255,255,.01); transition: transform .2s ease, box-shadow .2s ease; }
.hero-action:hover::after, .hero-action:focus-visible::after { box-shadow: 0 0 0 4px rgba(255,255,255,.75), 0 0 0 7px rgba(255,199,45,.9); }
.hero-action:active::after { transform: scale(.97); }
.hero-success { position: absolute; right: 3%; bottom: 4%; display: flex; align-items: center; gap: 9px; max-width: 250px; padding: 8px 13px 8px 8px; border: 2px solid rgba(255,255,255,.9); border-radius: 18px; background: rgba(5,53,127,.92); color: #fff; box-shadow: 0 7px 18px rgba(3,37,92,.24); opacity: 0; transform: translateY(15px) scale(.96); pointer-events: none; }
.hero-success img { width: 60px; height: 60px; object-fit: cover; object-position: 50% 26%; border-radius: 50%; background: #f2f9ff; }
.hero-success p { display: grid; gap: 1px; margin: 0; font-size: 12px; line-height: 1.15; }
.hero-success strong { font-size: 14px; }
.hero-scene.is-awake .hero-success { opacity: 1; transform: translateY(0) scale(1); animation: success-pop .48s cubic-bezier(.2,1.4,.5,1); }
.hero-scene.is-awake .hero-action { pointer-events: none; }
.action-help { margin: 10px 0 0; text-align: center; color: #32528a; font-size: 14px; font-weight: 650; }

.below-hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr); gap: 18px; margin-top: 22px; }
.how-card, .sleep-card, .reward { border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 7px 18px rgba(5,45,107,.08); }
.how-card { padding: 21px 28px 20px; }
.how-card h2, .sleep-card h2, .reward h2 { margin: 0; color: var(--navy); font-size: clamp(20px, 2.4vw, 27px); font-weight: 900; letter-spacing: -.7px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; padding: 15px 0 0; margin: 0; list-style: none; }
.steps li { position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; min-height: 184px; text-align: center; color: #183f83; font-size: 13px; line-height: 1.27; }
.steps li:not(:last-child)::after { content: "→"; position: absolute; top: 54px; right: -13px; color: #2781ee; font-size: 33px; font-weight: 800; }
.step-number { position: absolute; z-index: 1; top: 3px; left: 14%; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #1978e9; color: #fff; font-weight: 900; font-size: 18px; box-shadow: 0 2px 0 #0c55ac; }
.steps img, .tap-mark { width: 108px; height: 108px; object-fit: cover; object-position: center top; border-radius: 50%; background: #f1f7ff; }
.tap-mark { display: grid; place-items: center; color: var(--navy); font-size: 58px; line-height: 1; }
.steps strong { margin-top: 3px; font-size: 14px; }
.sleep-card { position: relative; padding: 58px 36px 24px; overflow: hidden; }
.sleep-card h2 { margin-bottom: 2px; }
.sleep-card p { margin: 0; color: var(--blue); font-size: 17px; font-weight: 780; }
.snow-mark { position: absolute; top: 18px; right: 26px; color: #d6e8ff; font-size: 49px; line-height: 1; }
.stars { display: flex; gap: 14px; margin-top: 27px; }
.stars span { width: 54px; height: 51px; background: #dce9ff; clip-path: polygon(50% 0, 61% 34%, 98% 37%, 69% 59%, 79% 95%, 50% 74%, 21% 95%, 31% 59%, 2% 37%, 39% 34%); }
.stars span.is-filled { background: linear-gradient(135deg, #ffe876, #ffbd10); filter: drop-shadow(0 2px 0 #e3a415); }
.progress-track { height: 18px; margin-top: 26px; padding: 3px; border-radius: 999px; background: #dfebfa; }
.progress-track span { display: block; width: 0%; height: 100%; border-radius: inherit; background: #2080f0; transition: width .6s cubic-bezier(.2,.9,.2,1); }

.reward { display: grid; grid-template-columns: 32% 1fr 39%; align-items: center; min-height: 190px; margin-top: 19px; overflow: hidden; }
.reward > img { align-self: end; width: 100%; max-height: 190px; object-fit: cover; object-position: 50% top; }
.reward-copy { display: flex; align-items: center; gap: 15px; padding: 18px 12px 18px 0; }
.reward-copy h2 { color: var(--red); font-size: 25px; }
.reward-copy p { margin: 5px 0 0; max-width: 210px; color: #1c478d; font-size: 16px; font-weight: 640; line-height: 1.25; }
.gift-mark { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 auto; border-radius: 15px; background: #fff0ee; color: var(--red); font-size: 33px; }
.progress-card { display: grid; grid-template-columns: 78px 1fr; grid-template-rows: auto 1fr; gap: 5px 12px; align-self: stretch; padding: 20px 24px; border-radius: 20px 0 0 20px; background: #1978e8; color: #fff; }
.progress-card > p { grid-column: 1 / -1; margin: 0; font-size: 16px; font-weight: 760; }
.calendar-sheet { display: grid; place-content: center; justify-items: center; width: 74px; height: 79px; border-radius: 11px; background: #fff; color: var(--navy); box-shadow: inset 0 0 0 2px #d4e5fb; }
.calendar-sheet span { color: #4d9fe5; font-size: 19px; }
.calendar-sheet b { font-size: 30px; line-height: 1; }
.progress-card div:last-child { display: grid; align-content: center; gap: 4px; font-size: 13px; line-height: 1.23; }
.progress-card strong { font-size: 17px; }

.footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding: 20px 26px; border-radius: 21px; background: var(--navy-dark); color: #fff; font-size: 14px; }
.footer a { padding: 9px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: #fff; text-decoration: none; font-weight: 700; }

@keyframes success-pop { from { transform: translateY(15px) scale(.8); } 70% { transform: translateY(-3px) scale(1.03); } to { transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (max-width: 820px) {
  .site-shell { width: min(100% - 20px, 650px); }
  .topbar { min-height: auto; flex-wrap: wrap; gap: 8px 16px; padding: 11px 14px; border-radius: 0 0 16px 16px; }
  .brand { flex: 0 0 145px; }
  .brand img { height: 46px; }
  .account-link { margin-left: auto; padding: 8px 12px; font-size: 12px; }
  .nav-links { order: 3; flex-basis: 100%; justify-content: space-between; overflow-x: auto; }
  .nav-links a { gap: 4px; font-size: 12px; }
  .nav-icon { font-size: 17px; }
  .door { margin-top: 14px; }
  .hero-scene { border-radius: 17px; }
  .hero-success { right: 2%; bottom: 3%; max-width: 195px; padding: 5px 9px 5px 5px; }
  .hero-success img { width: 43px; height: 43px; }
  .hero-success strong { font-size: 12px; }
  .hero-success p { font-size: 10px; }
  .below-hero { grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
  .how-card { padding: 18px 13px 14px; }
  .steps { gap: 3px; }
  .steps li { min-height: 157px; font-size: 11px; }
  .steps li:not(:last-child)::after { top: 43px; right: -7px; font-size: 23px; }
  .step-number { top: 2px; left: 2px; width: 29px; height: 29px; font-size: 15px; }
  .steps img, .tap-mark { width: 82px; height: 82px; }
  .tap-mark { font-size: 42px; }
  .steps strong { font-size: 12px; }
  .sleep-card { padding: 28px 24px 20px; }
  .snow-mark { top: 10px; }
  .stars { margin-top: 17px; }
  .progress-track { margin-top: 17px; }
  .reward { grid-template-columns: 36% 64%; margin-top: 14px; }
  .reward > img { max-height: 155px; }
  .reward-copy { padding: 16px 14px 12px 0; gap: 9px; }
  .gift-mark { display: none; }
  .reward-copy h2 { font-size: 22px; }
  .reward-copy p { font-size: 13px; }
  .progress-card { grid-column: 1 / -1; grid-template-columns: 64px 1fr; min-height: 118px; padding: 14px 18px; border-radius: 0; }
  .calendar-sheet { width: 58px; height: 61px; }
  .footer { flex-direction: column; align-items: flex-start; padding: 18px; }
}
