/* funlifestudio.co.kr
   one family (Pretendard). body text sizes: --text-heading / --text-body / --text-sm.
   hero h1 and the wordmark sit outside that scale. */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --bg: #ffffff;
  --bg-2: #f3f4f6;
  --ink: #0f1115;
  --ink-2: #4b5059;
  --ink-3: #6b7079;
  --line: rgba(15, 17, 21, .08);
  --accent: #1d4ed8;
  --text-heading: clamp(24px, 2.6vw, 32px);
  --text-body: 16px;
  --text-sm: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: var(--text-body);
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.03em; }
p, ul, dl, figure { margin: 0; }
ul { padding: 0; list-style: none; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.meta { font-size: var(--text-sm); color: var(--ink-3); }
.link { color: var(--accent); transition: color .16s var(--ease); }
.link:hover { color: var(--ink); }

/* header: borderless, sits on the hero */
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-size: 20px; font-weight: 800; letter-spacing: -.035em; }
.top nav { display: flex; gap: 32px; font-size: var(--text-sm); color: var(--ink-2); }
.top nav a { transition: color .16s var(--ease); }
.top nav a:hover { color: var(--ink); }

/* hero: centered headline over a wide stage */
.hero { padding: 72px 0 0; text-align: center; }
.hero h1 { font-size: clamp(3.5rem, 7.5vw, 7.5rem); line-height: 1; letter-spacing: -.05em; font-weight: 800; }
.hero .sub { margin: 28px auto 0; max-width: 34em; color: var(--ink-2); }
.hero .meta { margin-top: 8px; }
.hero .icon { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 32px; box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(15, 17, 21, .1); }
.btn { display: inline-flex; align-items: center; height: 52px; padding: 0 28px; margin-top: 36px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; transition: background-color .16s var(--ease), transform .12s var(--ease); }
.btn:hover { background: #2a2d33; }
.btn:active { transform: scale(.98); }

.stage { margin-top: 56px; height: clamp(420px, 52vh, 560px); background: var(--bg-2); border-radius: 28px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; padding-top: 56px; }
.phone { background: var(--ink); padding: 6px; border-radius: 38px; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 32px 64px rgba(15, 17, 21, .16); flex: none; }
.phone img { border-radius: 32px; }
.stage .phone { width: 292px; position: relative; }
.stage .phone.front { z-index: 2; }
.stage .phone.side { width: 256px; margin-top: 48px; }
.stage .phone.side.l { margin-right: -40px; }
.stage .phone.side.r { margin-left: -40px; }

/* sections */
.sec { padding: 128px 0; }
.sec.tint { background: var(--bg-2); }
.sec-head { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; margin-bottom: 56px; align-items: end; }
.sec-head h2 { font-size: var(--text-heading); line-height: 1.15; }
.sec-head p { color: var(--ink-2); max-width: 40em; }

/* home: masthead, then the app grid right away */
.masthead { padding: 96px 0 0; }
.masthead h1 { font-size: clamp(3.5rem, 7.5vw, 7.5rem); line-height: 1; letter-spacing: -.05em; font-weight: 800; }
.masthead .sub { margin-top: 28px; max-width: 34em; color: var(--ink-2); }
.apps-sec { padding-top: 80px; }
.apps-sec h2 { font-size: var(--text-heading); margin-bottom: 32px; }

/* app grid: one <li> per app, grows without layout changes */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.apps li { display: flex; flex-direction: column; background: var(--bg-2); border-radius: 24px; padding: 32px; transition: background-color .16s var(--ease); }
.apps li:hover { background: #eceef1; }
.apps img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); margin-bottom: 28px; }
.apps h3 { font-size: var(--text-heading); line-height: 1.2; }
.apps .meta { margin-top: 4px; }
.apps p { color: var(--ink-2); }
.apps .meta + p { margin-top: 16px; }
.apps .links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: auto; padding-top: 24px; }

/* company */
.info { display: grid; grid-template-columns: 1fr 2fr; gap: 0 64px; border-bottom: 1px solid rgba(15, 17, 21, .1); }
.info dt, .info dd { padding: 20px 0; border-top: 1px solid rgba(15, 17, 21, .1); margin: 0; }
.info dt { color: var(--ink-3); }

/* app page */
.shots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.shots figcaption { margin-top: 16px; font-size: var(--text-sm); color: var(--ink-2); }
.shots .phone { padding: 4px; border-radius: 26px; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 16px 32px rgba(15, 17, 21, .08); }
.shots .phone img { border-radius: 22px; }
.rows li { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; padding: 28px 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows h3 { font-size: var(--text-body); line-height: 1.65; }
.rows p { color: var(--ink-2); max-width: 40em; }
.rows p + p { margin-top: 8px; }
.notice { color: var(--ink-2); max-width: 44em; }
.notice p + p { margin-top: 12px; }

/* reading pages */
.read { padding: 120px 0 160px; }
.read h1 { font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1.02; letter-spacing: -.05em; font-weight: 800; }
.read .sub { margin-top: 24px; color: var(--ink-2); max-width: 32em; }
.read ul { margin-top: 48px; max-width: 560px; border-bottom: 1px solid var(--line); }
.read li { padding: 16px 0; border-top: 1px solid var(--line); }

/* footer */
.bottom { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: var(--text-sm); color: var(--ink-3); }
.bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.bottom nav { display: flex; flex-wrap: wrap; gap: 24px; }
.bottom a { color: var(--ink-2); transition: color .16s var(--ease); }
.bottom a:hover { color: var(--ink); }

@media (max-width: 880px) {
  .hero { padding-top: 40px; }
  .sec-head, .info, .rows li { grid-template-columns: 1fr; gap: 0; }
  .sec { padding: 88px 0; }
  .sec-head { margin-bottom: 40px; }
  .sec-head p { margin-top: 16px; }
  .masthead { padding-top: 56px; }
  .apps-sec { padding-top: 56px; }
  .apps li { padding: 28px; }
  .rows p:first-of-type { margin-top: 4px; }
  .info dd { border-top: 0; padding-top: 0; }
  .stage { margin-top: 48px; height: 440px; padding-top: 40px; border-radius: 20px; }
  .stage .phone { width: 216px; }
  .stage .phone.side { width: 180px; margin-top: 36px; }
  .stage .phone.side.l { margin-right: -96px; }
  .stage .phone.side.r { margin-left: -96px; }
  .shots { grid-template-columns: repeat(5, 200px); overflow-x: auto; padding-bottom: 8px; }
  .top nav { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
