/* devisefriday.com — one screen, no scrolling: bar, pitch + apps + latest update, mascot. Apple-like calm. */
:root {
  --text: #1d1d1f;
  --muted: #6e6e73;
  --gray: #f5f5f7;
  --line: #e5e5ea;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: #fff; color: var(--text);
  font: 16px/1.5 "IBM Plex Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: grid; grid-template-rows: auto 1fr auto; min-height: 100dvh;
}
a { color: inherit; text-decoration: none; }

.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1120px; margin: 0 auto; padding: 18px 28px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.nav-link { color: var(--accent); font-size: 0.95rem; }
.nav-link:hover { text-decoration: underline; }

.stage {
  width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 32px;
  min-height: 0;
}
.pitch { min-width: 0; }
.pitch h1 { margin: 0; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.12; letter-spacing: -0.015em; font-weight: 700; }
.sub { margin: 14px 0 28px; max-width: 470px; font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--muted); }

.apps { display: grid; gap: 10px; max-width: 470px; }
.app { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--gray); transition: background 0.15s, transform 0.15s; }
.app:hover { background: #ececf1; transform: translateY(-1px); }
.app img { border-radius: 11px; flex: none; }
.app-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.app-text strong { font-size: 1.05rem; }
.app-text em { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #e3f6ea; color: #067647; font-style: normal; font-size: 0.72rem; font-weight: 700; vertical-align: middle; }
.app-text small { color: var(--muted); font-size: 0.88rem; }
.go { font-size: 1.6rem; color: var(--accent); line-height: 1; }
.app.next { background: none; border: 1.5px dashed var(--line); }
.app.next:hover { border-color: #c7c7cc; background: none; }
.plus { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--gray); color: var(--muted); font-size: 1.4rem; }

.latest { display: flex; align-items: center; gap: 10px; max-width: 470px; margin-top: 22px; font-size: 0.9rem; color: var(--muted); }
.latest .tag { flex: none; padding: 1px 8px; border-radius: 999px; background: #eef2ff; color: var(--accent); font-weight: 700; font-size: 0.72rem; }
.latest .text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.latest:hover .text { color: var(--accent); }
.latest time { flex: none; }

.mascot { width: 100%; max-width: 540px; max-height: 68dvh; object-fit: contain; justify-self: center; animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; width: 100%; max-width: 1120px; margin: 0 auto; padding: 16px 28px 20px; font-size: 0.78rem; color: var(--muted); }
.foot nav { display: flex; gap: 16px; }
.foot nav a:hover { color: var(--text); text-decoration: underline; }

/* Phones: stack, with a smaller mascot on top, so it stays (nearly) one screen. */
@media (max-width: 760px) {
  .nav { padding: 14px 18px; }
  .stage { grid-template-columns: 1fr; gap: 8px; padding: 0 18px; align-content: start; }
  .mascot { order: -1; max-width: 260px; max-height: 30dvh; }
  .pitch h1 { font-size: clamp(1.7rem, 8vw, 2rem); }
  .sub { margin: 10px 0 18px; }
  .foot { padding: 14px 18px 18px; }
}
