/* Life is Play — site styles
   Palette: playground tiles on cool concrete. One bold moment (the PLAY tiles), everything else quiet. */

:root {
  --ground: #f3f4f6;      /* cool concrete */
  --surface: #ffffff;
  --ink: #16203a;         /* deep navy ink */
  --ink-soft: #4b5470;
  --line: #d9dce4;
  --yellow: #ffc43d;
  --blue: #3d6bff;
  --coral: #ff6b57;
  --green: #22b070;
  --focus: #3d6bff;

  --font: "Gabarito", "Pretendard Variable", Pretendard, system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  --font-ko: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", system-ui, sans-serif;

  --measure: 34rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius-tile: 22%;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

:lang(ko), .ko { font-family: var(--font-ko); word-break: keep-all; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--blue); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header { padding: 1.25rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
/* Brand mark: one smiling play tile (the 즐겁게 살자 tile) */
.brand-mark { display: block; width: 1.75rem; height: 1.75rem; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .brand-mark { transition: transform 260ms cubic-bezier(.3, 1.6, .5, 1); }
  .brand:hover .brand-mark { transform: rotate(12deg) translateY(-2px); }
}

.site-nav { display: flex; gap: 1.25rem; font-size: 0.975rem; }
.site-nav a { text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 9vw, 7rem) 0 clamp(3rem, 8vw, 6rem); }

.hero-title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(3.5rem, 15vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.hero-title .line { display: block; }

.tiles { display: flex; gap: 0.08em; margin-top: 0.12em; }
.tile {
  --c: var(--coral);
  --r: 0deg;
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  font: inherit;
  color: var(--ink);
  width: 1.08em;
  height: 1.08em;
  display: grid;
  place-items: center;
  background: var(--c);
  border-radius: var(--radius-tile);
  box-shadow: inset 0 -0.07em 0 rgba(22, 32, 58, 0.18);
  transform: rotate(var(--r));
  cursor: pointer;
  line-height: 1;
  padding-bottom: 0.06em;
}
.tile:nth-child(1) { --c: var(--coral);  --r: -4deg; }
.tile:nth-child(2) { --c: var(--yellow); --r: 3deg; }
.tile:nth-child(3) { --c: var(--blue);   --r: -2deg; color: #fff; }
.tile:nth-child(4) { --c: var(--green);  --r: 5deg; }
.tile:focus-visible { outline-offset: 6px; }

@media (prefers-reduced-motion: no-preference) {
  .tiles.drop .tile { animation: drop 640ms cubic-bezier(.2, 1.4, .4, 1) both; }
  .tiles.drop .tile:nth-child(2) { animation-delay: 90ms; }
  .tiles.drop .tile:nth-child(3) { animation-delay: 180ms; }
  .tiles.drop .tile:nth-child(4) { animation-delay: 270ms; }
  .tile.hop { animation: hop 520ms cubic-bezier(.3, 1.6, .5, 1); }
}

@keyframes drop {
  from { transform: translateY(-1.4em) rotate(calc(var(--r) * -3)); opacity: 0; }
  to   { transform: translateY(0) rotate(var(--r)); opacity: 1; }
}
@keyframes hop {
  0%   { transform: translateY(0) rotate(var(--r)); }
  40%  { transform: translateY(-0.28em) rotate(calc(var(--r) * -2)); }
  100% { transform: translateY(0) rotate(var(--r)); }
}

.hero-copy { margin-top: clamp(1.75rem, 4vw, 2.75rem); max-width: var(--measure); }
.lede { margin: 0; color: var(--ink); font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1.5px solid var(--line); }
.section h2 { margin: 0 0 1.75rem; font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }

/* Products: big rows, not cards */
.products { list-style: none; margin: 0; padding: 0; }
.product {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem 1.5rem;
  align-items: start;
  padding: 1.5rem 0;
}
.product + .product { border-top: 1.5px dashed var(--line); }
.product h3 { margin: 0 0 0.25rem; font-size: clamp(1.25rem, 2.6vw, 1.6rem); letter-spacing: -0.015em; font-weight: 700; }
.product p { margin: 0; max-width: var(--measure); color: var(--ink-soft); }
.product .meta { margin-top: 0.5rem; font-size: 0.95rem; color: var(--ink-soft); }

.emblem { width: 3.5rem; height: 3.5rem; border-radius: 22%; display: grid; place-items: center; box-shadow: inset 0 -4px 0 rgba(22, 32, 58, 0.16); }
.emblem svg { width: 60%; height: 60%; }
.emblem.coffee { background: var(--yellow); }
.emblem.lift { background: var(--blue); }

.status {
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
}

.app-icon { display: block; width: 3.5rem; height: 3.5rem; border-radius: 22%; box-shadow: inset 0 0 0 1px rgba(22, 32, 58, 0.12); }

/* Concept art strip under Espresso Bar Idle */
.product .shots { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.875rem; margin-top: 0.25rem; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; border: 1.5px solid var(--line); background: #e9e4da; }
.shots figcaption { margin-top: 0.45rem; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.product .shots-note { grid-column: 2 / -1; margin: -0.5rem 0 0; font-size: 0.875rem; color: var(--ink-soft); }

/* Roadmap: Now / Next / Later */
.section-lede { margin: -1rem 0 2rem; max-width: var(--measure); color: var(--ink-soft); }
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.stage { position: relative; padding-top: 3rem; }
.stage::before { content: ""; position: absolute; top: 1rem; left: 0; right: -1.5rem; height: 2px; background: var(--line); }
.stage:last-child::before { right: 0; }
.stage-tag { position: absolute; top: 0; left: 0; margin: 0; display: inline-flex; align-items: center; height: 2rem; padding: 0 0.85rem; border-radius: 0.55rem; font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; background: var(--ground); border: 1.5px solid var(--line); color: var(--ink-soft); }
.now .stage-tag { background: var(--coral); border-color: var(--coral); color: var(--ink); transform: rotate(-3deg); box-shadow: inset 0 -3px 0 rgba(22, 32, 58, 0.16); }
.stage ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.stage li { padding: 0.9rem 1rem 1rem; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; line-height: 1.4; }
.stage .prod { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.3rem; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.dot { display: block; width: 0.7rem; height: 0.7rem; border-radius: 0.2rem; flex: none; }
.dot.coffee { background: var(--yellow); }
.dot.lift { background: var(--green); }

.studio p { margin: 0 0 1rem; max-width: var(--measure); }
.contact-line { font-size: 1.25rem; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { padding: 2.5rem 0 3rem; border-top: 1.5px solid var(--line); font-size: 0.875rem; color: var(--ink-soft); }
.site-footer .wrap { display: grid; gap: 1.5rem; grid-template-columns: 1fr auto; }
.biz { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.2rem 1rem; font-family: var(--font-ko); }
.biz dt { color: var(--ink-soft); }
.biz dd { margin: 0; color: var(--ink); }
.footer-links { display: flex; gap: 1rem; align-items: start; }
.footer-links a { color: var(--ink); }
.copyright { grid-column: 1 / -1; margin: 0; }

/* ---------- Document pages (privacy, support) ---------- */
.doc { padding: clamp(2rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem); }
.doc-head { max-width: 44rem; margin-bottom: 2rem; }
.doc-head h1 { margin: 0 0 0.5rem; font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; }
.doc-head p { margin: 0; color: var(--ink-soft); }
.doc-head .lang-switch { display: flex; gap: 0.75rem; margin-top: 1rem; }
.lang-switch a { font-weight: 600; }

.prose { max-width: 44rem; }
.prose h2 { margin: 2.75rem 0 0.75rem; font-size: 1.4rem; letter-spacing: -0.015em; font-weight: 800; padding-top: 1.5rem; border-top: 1.5px solid var(--line); }
.prose h3 { margin: 1.75rem 0 0.5rem; font-size: 1.1rem; font-weight: 700; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.3rem 0; }
.prose .note { color: var(--ink-soft); font-size: 0.95rem; }

.table-wrap { overflow-x: auto; margin: 1rem 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--surface); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border: 1.5px solid var(--line); }
.prose th { font-weight: 700; background: #eceef3; }

.support-box { margin: 1.5rem 0 2rem; padding: 1.5rem; background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; max-width: 44rem; }
.support-box p { margin: 0.25rem 0; }
.support-box .mail { font-size: 1.35rem; font-weight: 800; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .site-nav { gap: 1rem; }
  .product { grid-template-columns: auto 1fr; }
  .product .status { grid-column: 2; justify-self: start; }
  .product .shots { grid-column: 1 / -1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); scrollbar-width: none; }
  .product .shots::-webkit-scrollbar { display: none; }
  .shots figure { flex: 0 0 68%; scroll-snap-align: start; }
  .product .shots-note { grid-column: 1 / -1; }
  .roadmap { grid-template-columns: 1fr; gap: 1.75rem; }
  .stage { padding-top: 2.75rem; }
  .stage::before { display: none; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .biz { grid-template-columns: 1fr; }
  .biz dt { margin-top: 0.4rem; }
}
