:root {
  --bg: #0C0F14;
  --text: #E8ECF1;
  --text2: #9AA3B2;
  --line: #252D3A;
  --tile: #141924;
  --app: #1E4EDB;
  --app-hi: #3B6AE8;
  --app-press: #1740B8;
  --app-ink: #FFFFFF;
  --app-soft: rgba(30, 78, 219, 0.16);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
.tomari {
  --app: #6B93FF;
  --app-hi: #8FADFF;
  --app-press: #8FADFF;
  --app-ink: #0C0F14;
  --app-soft: rgba(107, 147, 255, 0.14);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Noto Sans KR', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--app); color: var(--app-ink); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--app-hi); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; }
html { scrollbar-color: var(--line) var(--bg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; border: 2px solid var(--bg); }

.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 48px; }

.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand {
  font: 900 18px/1 'Archivo', sans-serif; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none;
}
.nav-right { display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--text2); }
.nav-right a { text-decoration: none; transition: color .2s; }
.nav-right .other:hover { color: var(--text); }

.store {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 12px;
  background: var(--app); color: var(--app-ink);
  font: 700 15px/1 'Archivo', sans-serif; text-decoration: none;
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .7);
  transition: background .2s, transform .2s var(--ease);
}
.store:hover { background: var(--app-press); transform: translateY(-1px); }
.store svg { width: 18px; height: 18px; }
.store.small { padding: 10px 16px; font-size: 13px; border-radius: 10px; box-shadow: none; }

.app-row { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; }
.app-row img { width: 64px; height: 64px; border-radius: 15px; }
.app-row span { font: 900 22px/1 'Archivo', sans-serif; letter-spacing: -.01em; }

h1 {
  font: 900 clamp(40px, 6vw, 76px)/0.98 'Archivo', sans-serif;
  letter-spacing: -0.04em; text-wrap: balance; margin-bottom: 24px;
}
h2 {
  font: 900 clamp(28px, 3.4vw, 44px)/1.04 'Archivo', sans-serif;
  letter-spacing: -0.03em; text-wrap: balance;
}
.lede { font-size: 18px; line-height: 1.6; color: var(--text2); max-width: 34ch; margin-bottom: 36px; }
.tag {
  display: inline-block; vertical-align: middle; margin-left: 10px;
  padding: 5px 8px; border-radius: 6px; background: var(--app-soft); color: var(--app-hi);
  font: 700 11px/1 'Archivo', sans-serif; letter-spacing: .04em; text-transform: uppercase;
}

.hero { display: flex; flex-direction: column; align-items: flex-start; padding-block: 64px 72px; }
.hero h1 { max-width: 13ch; }

/* Bento: each feature is one tile, copy on top, its store composite rising from the bottom edge. */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 560px; gap: 16px; }
.tile {
  position: relative; overflow: hidden; border-radius: 28px;
  background: var(--tile); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.tile .txt { padding: 32px 32px 0; position: relative; z-index: 1; }
.tile h2 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.08; }
.tile p { margin-top: 10px; color: var(--text2); font-size: 16px; line-height: 1.55; max-width: 36ch; }
.tile .shot { flex: 1; position: relative; min-height: 0; margin-top: 24px; }
.tile .shot img {
  position: absolute; left: 50%; top: 0; width: 80%; max-width: 340px; height: auto;
  transform: translateX(-50%); border-radius: 28px;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.8);
  transition: transform .7s var(--ease);
}
.tile:hover .shot img { transform: translateX(-50%) translateY(-12px); }
.tile.wide { grid-column: span 2; flex-direction: row; }
.tile.wide .txt { flex: 1; padding: 40px; }
.tile.wide h2 { font-size: clamp(28px, 3vw, 40px); }
.tile.wide .shot { flex: 0 0 50%; margin: 40px 0 0; }
.tile.fill { background: var(--app); border-color: var(--app); color: var(--app-ink); }
.tile.fill p { color: inherit; opacity: .85; }
.tile.fill .tag { background: rgba(255,255,255,.2); color: inherit; }

.price { padding-block: 96px; }
.price p { margin-top: 16px; font-size: 17px; line-height: 1.7; color: var(--text2); max-width: 62ch; }
.plans { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 880px; }
.plan {
  padding: 28px; border-radius: 24px; background: var(--tile); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px;
}
.plan.best { border-color: var(--app); box-shadow: inset 0 0 0 1px var(--app); }
.plan dt {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 23px;
  font: 700 15px/1 'Archivo', sans-serif; color: var(--text);
}
.plan em {
  font: 700 11px/1 'Archivo', sans-serif; font-style: normal; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 8px; border-radius: 6px; background: var(--app-soft); color: #8FADFF;
}
.plan.best em { background: var(--app); color: var(--app-ink); }
.plan .now { display: flex; align-items: baseline; gap: 6px; }
.plan b { font: 900 40px/1 'Archivo', sans-serif; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan .now span { font-size: 15px; color: var(--text2); }
.plan .note { font-size: 14px; color: var(--text2); }
.plan s { text-decoration-thickness: 1.5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.price .fine { margin-top: 16px; font-size: 13px; }

.close {
  margin-bottom: 96px; padding: 72px 48px; border-radius: 28px;
  background: var(--app); color: var(--app-ink);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.close h2 { max-width: 14ch; }
.close .store { background: var(--app-ink); color: var(--app); box-shadow: none; }
.close .store:hover { background: var(--app-ink); opacity: .9; }

footer {
  border-top: 1px solid var(--line); padding-block: 32px 48px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 13px; color: var(--text2);
}
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  .wrap { padding-inline: 20px; }
  .nav-right .other { display: none; }
  .hero { padding-block: 32px 48px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile.wide { grid-column: auto; flex-direction: column; }
  .tile.wide h2 { font-size: clamp(22px, 2.2vw, 30px); }
  .tile .txt, .tile.wide .txt { padding: 28px 24px 0; }
  .tile .shot, .tile.wide .shot { flex: none; height: 480px; margin: 24px 0 0; }
  .tile .shot img, .tile.wide .shot img { width: min(280px, 78%); }
  .price { padding-block: 64px; }
  .plans { grid-template-columns: 1fr; }
  .close { flex-direction: column; align-items: flex-start; padding: 48px 28px; margin-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
