@font-face { font-family: "JariPretendard"; font-weight: 400; font-display: swap; src: url(/assets/fonts/Pretendard-Regular.woff2) format("woff2"); }
@font-face { font-family: "JariPretendard"; font-weight: 700; font-display: swap; src: url(/assets/fonts/Pretendard-Bold.woff2) format("woff2"); }
@font-face { font-family: "JariPretendard"; font-weight: 900; font-display: swap; src: url(/assets/fonts/Pretendard-Black.woff2) format("woff2"); }

/* Layout: the app's own window on the web. Signed out it is the login screen (ink brand
   panel + white panel); signed in it is a hero panel, then PC-list style colour cards.
   One light look on purpose, like the app itself. */
:root {
  --page: #F2F0EA;
  --ink: #111111;
  --ink-hover: #222220;
  --ink-down: #2A2A27;
  --paper: #FFFFFF;
  --lime: #D9F36B;
  --lime-hover: #CDE85C;
  --lime-soft: #E4F59A;
  --lilac: #CDB8FF;
  --clay: #E4E1D8;
  --clay-deep: #CFCBC0;
  --clay-text: #3D3B36;
  --text-2: #5E5B53;
  --text-3: #8A867C;
  --cream: #F2F0EA;
  --cream-2: #A8A49A;
  --danger: #B4471C;
  --f-body: "JariPretendard", "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.5;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 900; }
button { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 24px 48px;
}

/* ---------- buttons (JButton) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  border-radius: 16px; border: 2px solid transparent;
  font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn svg { flex: none; }
.btn.primary { background: var(--ink); color: var(--lime); }
.btn.primary:hover { background: var(--ink-hover); }
.btn.primary:active { background: var(--ink-down); }
.btn.lime { background: var(--lime); color: var(--ink); }
.btn.lime:hover { background: var(--lime-hover); }
.btn.outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn.outline:hover { background: rgba(17, 17, 17, 0.04); }
.btn.ghost-cream { background: transparent; border-color: rgba(242, 240, 234, 0.35); color: var(--cream); }
.btn.ghost-cream:hover { border-color: var(--cream); }
.btn:disabled { background: transparent; border-color: var(--clay-deep); color: var(--text-3); cursor: default; }
.btn.big { min-height: 56px; font-size: 16px; padding: 0 26px; }
.btn.busy { opacity: .6; pointer-events: none; }

/* ---------- hero art: the app icon with a 3D prop (LoginView.qml) ---------- */
.art { position: absolute; width: 300px; height: 300px; transform-origin: top right; transform: scale(var(--k, 1)); }
.art .mark { position: absolute; inset: 0; filter: drop-shadow(0 30px 26px rgba(0, 0, 0, 0.55)); animation: icon 4.8s cubic-bezier(.65, 0, .35, 1) infinite; }
.art .mark svg { display: block; width: 100%; height: 100%; }
.art .ring { position: absolute; left: -6px; top: -6px; width: 312px; height: 312px; border-radius: 74px; border: 4px solid var(--lime); opacity: 0; animation: ring 4.8s cubic-bezier(.33, 1, .68, 1) infinite; }
.art .prop { position: absolute; left: -150px; top: 200px; width: 150px; height: 150px; max-width: none; animation: key 4.8s cubic-bezier(.65, 0, .35, 1) infinite; }
.art.box .prop { left: -128px; top: 176px; width: 156px; height: 156px; animation-name: box; }
@keyframes icon {
  0%, 100% { transform: translateY(0) rotate(-8deg) scale(1); }
  30% { transform: translateY(-6px) rotate(-7deg) scale(1); }
  60% { transform: translateY(0) rotate(-8deg) scale(1); }
  66% { transform: translateY(-10px) rotate(-3deg) scale(1.05); }
  74% { transform: translateY(0) rotate(-9deg) scale(.99); }
  82% { transform: translateY(0) rotate(-8deg) scale(1); }
}
@keyframes ring {
  0%, 62% { opacity: 0; transform: scale(1) rotate(-8deg); }
  66% { opacity: .7; transform: scale(1.03) rotate(-4deg); }
  88%, 100% { opacity: 0; transform: scale(1.24) rotate(-8deg); }
}
@keyframes key {
  0%, 88%, 100% { transform: translate(0, 0) rotate(18deg); }
  40% { transform: translate(4px, -8px) rotate(21deg); }
  56% { transform: translate(52px, -44px) rotate(10deg); }
  64% { transform: translate(52px, -44px) rotate(-40deg); }
  70% { transform: translate(52px, -44px) rotate(-32deg); }
}
@keyframes box {
  0%, 88%, 100% { transform: translate(0, 0) rotate(-6deg); }
  40% { transform: translate(2px, -10px) rotate(-4deg); }
  54% { transform: translate(64px, -96px) rotate(10deg); }
  62% { transform: translate(78px, -52px) rotate(2deg); }
  66% { transform: translate(78px, -56px) rotate(0deg) scaleY(.94); }
  72% { transform: translate(70px, -50px) rotate(-2deg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .art .mark, .art .ring, .art .prop { animation: none; }
  .art .mark { transform: rotate(-8deg); }
  .art .prop { transform: rotate(18deg); }
  .art.box .prop { transform: rotate(-6deg); }
}

/* ---------- gate: signed out / not allowed ---------- */
.gate { display: flex; gap: 16px; min-height: 660px; }
.brand {
  position: relative; overflow: hidden; flex: 3 1 0; min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 48px; border-radius: 28px; background: var(--ink); color: var(--cream);
}
.wordmark { font-size: 18px; font-weight: 900; color: var(--cream); }
.brand .art { right: 70px; top: 72px; }
.brand-copy { display: flex; flex-direction: column; gap: 16px; position: relative; }
.brand-copy h1 { font-size: clamp(44px, 6vw, 68px); line-height: 1.05; letter-spacing: -0.035em; color: var(--cream); }
.brand-copy p { font-size: 16px; color: var(--cream-2); }

.side {
  flex: 0 1 420px; min-width: 0;
  display: flex; align-items: center;
  padding: 44px; border-radius: 28px; background: var(--paper);
}
.side-body { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.side h2 { font-size: 30px; letter-spacing: -0.02em; }
.side .lead { font-size: 15px; color: var(--text-2); margin-top: 8px; }
.side .fine { font-size: 13px; line-height: 1.6; color: var(--text-3); }
.side .error { font-size: 14px; font-weight: 700; color: var(--danger); }
.google.primary { width: 100%; color: var(--cream); }
.denied-pic { width: 72px; height: 72px; border-radius: 18px; background: var(--page); display: grid; place-items: center; }
.denied-pic img { width: 56px; height: 56px; }
.who {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-radius: 14px; background: var(--page); font-size: 14px; font-weight: 700; overflow-wrap: anywhere;
}
.who .dot { width: 10px; height: 10px; border-radius: 5px; background: var(--danger); flex: none; }

/* ---------- signed in ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 4px 20px; }
.brandmark { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 900; }
.brandmark svg { width: 40px; height: 40px; display: block; }
.account { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar {
  width: 40px; height: 40px; border-radius: 20px; flex: none; overflow: hidden;
  display: grid; place-items: center; background: var(--lilac); font-weight: 900; font-size: 16px;
  border: 2px solid var(--ink);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.account .email { font-size: 14px; font-weight: 700; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account .btn { min-height: 40px; border-radius: 14px; padding: 0 14px; font-size: 14px; }

.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px;
  padding: 48px; border-radius: 28px; background: var(--ink); color: var(--cream);
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; min-width: 0; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); line-height: 1.06; letter-spacing: -0.035em; color: var(--cream); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .btn:disabled { border-color: rgba(242, 240, 234, 0.25); color: var(--cream-2); }
.hero-art { position: relative; min-height: 330px; }
.hero .art { right: 30px; top: 0; }

/* chip (PC list status chip) */
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  border-radius: 17px; background: var(--ink); color: var(--chip, var(--lime));
  font-size: 15px; font-weight: 700; white-space: nowrap;
}
.chip i { width: 10px; height: 10px; border-radius: 5px; background: currentColor; }
.hero .chip { background: rgba(242, 240, 234, 0.1); }
.chip.off { background: var(--clay-deep); color: var(--clay-text); }
.chip.off i { background: var(--text-3); }
.hero .chip.off { background: rgba(242, 240, 234, 0.1); color: var(--cream-2); }
.hero .chip.off i { background: var(--cream-2); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding-block: 40px 16px; scroll-margin-top: 16px; }
.section-head h2 { font-size: 26px; letter-spacing: -0.02em; }
.section-head p { font-size: 15px; color: var(--text-2); }
.section-head b { color: var(--ink); }

/* colour cards (PcListView tiles) */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; min-width: 0;
  padding: 26px; border-radius: 28px; background: var(--tint);
}
.card[data-tint="mine"] { --tint: var(--lime-soft); --chip: var(--lime); }
.card[data-tint="shared"] { --tint: var(--lilac); --chip: var(--lilac); }
.card[data-tint="off"] { --tint: var(--clay); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pic { width: 96px; height: 96px; flex: none; border-radius: 22px; background: var(--paper); display: grid; place-items: center; }
.pic .os { display: block; width: 56px; height: 56px; color: var(--ink); }
.card[data-tint="off"] .pic .os { color: var(--text-3); }
.card h3 { font-size: 28px; letter-spacing: -0.02em; margin-top: 28px; margin-bottom: 20px; }
.card[data-tint="off"] h3 { color: var(--text-2); }
.card .btn { width: 100%; margin-top: auto; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 32px 0; font-size: 13px; color: var(--text-3); }

/* ---------- narrower ---------- */
@media (max-width: 1180px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .gate { flex-direction: column; min-height: 0; }
  .brand { flex: none; min-height: 500px; }
  .brand .art { --k: .7; right: 48px; top: 56px; }
  .side { flex: none; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; min-height: 210px; }
  .hero .art { --k: .62; right: 10px; top: 0; }
}
@media (max-width: 620px) {
  .wrap { padding-block: 16px 32px; }
  .brand, .side, .hero { padding: 28px; }
  .brand { min-height: 430px; }
  .brand .art { --k: .46; right: 28px; top: 30px; }
  .hero-art { min-height: 150px; }
  .hero .art { --k: .44; right: 0; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { padding: 18px; border-radius: 24px; }
  .pic { width: 64px; height: 64px; border-radius: 16px; }
  .pic .os { width: 38px; height: 38px; }
  .card-top { flex-direction: column; gap: 12px; }
  .card .chip { height: 28px; padding: 0 10px; font-size: 13px; }
  .card h3 { font-size: 20px; margin-top: 14px; margin-bottom: 14px; }
  .account .email { display: none; }
}
